:root {
  --bg: #0f1e22;
  --ink: #f6efe1;
  --ink-soft: #c9c0ad;
  --card: #fbf6ea;
  --card-ink: #2b2418;
  --card-soft: #6e6350;
  --line: #ddd2bb;
  --gold: #d9a441;
  --gold-deep: #a8731b;
  --teal: #2f8f80;
  --ok: #2f8f5b;
  --bad: #c0462f;
  --warn: #c58a1c;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 22, 26, .94) 0%, rgba(10, 22, 26, .78) 45%, rgba(10, 22, 26, .35) 100%),
    url("elim.png") center 30% / cover no-repeat;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px clamp(16px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  text-decoration: none;
}

.status {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.status li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink-soft);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7d8a8c;
}

.status li[data-state="up"] .dot { background: #4fd18b; box-shadow: 0 0 0 3px rgba(79, 209, 139, .2); }
.status li[data-state="down"] .dot { background: #ef6a4c; }

.layout {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: 24px clamp(16px, 5vw, 56px) 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 20px 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
}

.lead b { color: var(--ink); }

.facts {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  margin: 0;
}

.facts dt {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.card {
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border-top: 4px solid var(--gold);
}

.card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
}

.optional { color: var(--card-soft); font-weight: 400; }

.field { position: relative; }

input[type="text"], input:not([type]), input[type="password"], input[type="email"] {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--card-ink);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.field input { padding-right: 92px; }

input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 143, 128, .2);
}

input[aria-invalid="true"] { border-color: var(--bad); }

.badge, .reveal {
  position: absolute;
  right: 8px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
}

.badge { padding: 3px 8px; border-radius: 999px; }
.badge[data-tone="ok"] { background: #e2f3e8; color: var(--ok); }
.badge[data-tone="bad"] { background: #f8e2dc; color: var(--bad); }
.badge[data-tone="wait"] { background: #efe9dc; color: var(--card-soft); }

.reveal {
  border: 0;
  background: none;
  color: var(--teal);
  cursor: pointer;
  padding: 6px;
}

.hint {
  min-height: 1.4em;
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--card-soft);
}

.hint[data-tone="bad"] { color: var(--bad); }
.hint[data-tone="ok"] { color: var(--ok); }

.meter {
  height: 4px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bad);
  transition: width .2s, background .2s;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-weight: 400;
  color: var(--card-soft);
}

.check input { margin-top: 4px; accent-color: var(--teal); }

button { font: inherit; }

.primary, .secondary {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}

.primary {
  border: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2a1c05;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--card-ink);
}

.primary:hover, .secondary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(1px); }
.primary:disabled { filter: grayscale(.6); opacity: .7; cursor: progress; }

.message {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  text-align: center;
}

.message[data-tone="bad"] { color: var(--bad); }

.done { text-align: center; }

.seal {
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2f3e8;
  color: var(--ok);
  font-size: 30px;
  font-weight: 700;
}

.done ol {
  text-align: left;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--card-soft);
}

.done li { margin: 6px 0; }

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #efe7d6;
  font-size: 13px;
  color: var(--card-ink);
}

.foot {
  padding: 18px clamp(16px, 5vw, 56px);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .lead { margin-bottom: 24px; }
  .backdrop {
    background:
      linear-gradient(180deg, rgba(10, 22, 26, .78) 0%, rgba(10, 22, 26, .94) 60%),
      url("elim.png") center top / cover no-repeat;
  }
}

@media (max-width: 420px) {
  .status { width: 100%; justify-content: space-between; }
  .status li { padding: 5px 8px; }
  .facts dt { font-size: 24px; }
}
