:root {
  color-scheme: light;
  --navy: #061a46;
  --navy-2: #08122b;
  --teal: #145cff;
  --teal-soft: #edf3ff;
  --gold: #145cff;
  --gold-soft: #eef3ff;
  --ink: #0b163a;
  --muted: #5c6a7d;
  --line: #dde3ea;
  --paper: #f5f7fa;
  --green: #19b37a;
  --red: #a43232;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.hero {
  min-height: 480px;
  padding: 1.4rem max(1.2rem, 7vw) 7rem;
  color: white;
  background:
    radial-gradient(circle at 83% 18%, rgba(20, 92, 255, .35), transparent 30%),
    radial-gradient(circle at 68% 88%, rgba(74, 125, 255, .16), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.nav { display: flex; justify-content: space-between; align-items: center; color: #b9d3d6; }
.brand { color: white; font-size: 1.25rem; font-weight: 900; letter-spacing: .16em; text-decoration: none; }
.hero-content { max-width: 900px; margin-top: 6rem; }
.eyebrow { margin: 0 0 .65rem; color: #8db0ff; font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal); }
h1 { max-width: 840px; margin: 0; font-size: clamp(3rem, 8vw, 6.7rem); line-height: .95; letter-spacing: -.055em; }
.lead { max-width: 760px; margin: 1.5rem 0; color: #dceced; font-size: clamp(1.06rem, 2vw, 1.28rem); }
.mode { display: inline-flex; gap: .65rem; align-items: center; padding: .65rem 1rem; border: 1px solid #5574b8; border-radius: 999px; font-size: .78rem; font-weight: 850; letter-spacing: .06em; }
.mode span { width: .68rem; height: .68rem; border-radius: 50%; background: #60e0ba; box-shadow: 0 0 18px #60e0ba; }

main { width: min(1060px, calc(100% - 2rem)); margin: -3.7rem auto 5rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.steps li { display: flex; gap: .65rem; align-items: center; min-height: 66px; padding: .8rem; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--muted); box-shadow: 0 10px 28px rgba(19, 52, 66, .08); }
.steps b { display: grid; flex: 0 0 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #edf2f2; }
.steps span { font-size: .88rem; font-weight: 750; }
.steps .complete { color: var(--green); border-color: #9dd7c5; background: #f5fffb; }
.steps .complete b { color: white; background: var(--green); }

.card { margin-bottom: 1rem; padding: clamp(1.25rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 14px 40px rgba(19, 52, 66, .07); }
.section-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
h2 { margin: 0 0 1rem; color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.025em; }
.badge { flex: 0 0 auto; padding: .45rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .07em; }
.badge.pending { color: #16449f; background: var(--gold-soft); }
.badge.verified { color: var(--green); background: #def5eb; }
.badge.failed { color: var(--red); background: #ffe4e4; }
.badge.live { color: #16449f; background: var(--gold-soft); }

.facts { display: grid; grid-template-columns: 1.2fr 1.2fr .7fr; gap: .7rem; margin: 1rem 0; }
.facts div { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfd; }
small { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .76rem; font-weight: 750; }
.facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
summary { cursor: pointer; color: var(--teal); font-weight: 800; }
.hash-row { display: grid; grid-template-columns: 135px 1fr; gap: 1rem; margin-top: .8rem; }
code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; color: #294452; font-weight: 760; }
label > span { color: var(--muted); font-weight: 500; }
input, textarea { width: 100%; margin-top: .4rem; padding: .82rem .9rem; border: 1px solid #becfd2; border-radius: 11px; background: #fcfefe; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(22, 137, 141, .18); border-color: var(--teal); }
fieldset { display: grid; gap: .65rem; margin: 1.3rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
legend { padding: 0 .45rem; color: var(--teal); font-weight: 850; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-weight: 600; }
.check input { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--teal); }
.privacy-note { margin-bottom: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--teal); background: var(--teal-soft); color: #31515a; }
button { padding: .75rem 1rem; border: 1px solid #b9cbce; border-radius: 11px; background: white; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--teal); }
button:disabled { cursor: not-allowed; opacity: .45; }
.go { width: 100%; padding: 1rem; border: 0; color: white; background: linear-gradient(135deg, #145cff, #0b42bf); font-size: 1rem; letter-spacing: .04em; }
.authorization { border-color: #b9cafa; background: linear-gradient(145deg, var(--gold-soft), white 62%); }
.auth-check { margin: 1rem 0; padding: 1rem; border: 1px solid #c9d6f7; border-radius: 12px; background: rgba(255,255,255,.72); }
.authorization-result { margin-top: 1rem; padding: 1rem; border: 1px solid #9dd7c5; border-radius: 14px; background: #f2fff9; }

.error { margin-bottom: 1rem; padding: 1rem; border: 1px solid #e0a5a5; border-radius: 14px; color: #7d1e1e; background: #fff2f2; font-weight: 700; }
.evidence { position: relative; overflow: hidden; border-color: #9cd8c3; background: linear-gradient(150deg, #f3fff9, white 58%); }
.success-mark { position: absolute; top: 1.2rem; right: 1.5rem; display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 1.7rem; font-weight: 900; }
.hashes { display: grid; gap: .6rem; margin: 1.4rem 0; }
.hashes div { padding: .8rem 1rem; border: 1px solid #baddd0; border-radius: 12px; background: rgba(255,255,255,.75); }
.hashes code { display: block; color: #164d3c; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.final-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .65rem; }
.primary { color: white; border-color: var(--teal); background: var(--teal); }
.instruction { margin: 1rem 0 0; color: var(--muted); }

.limits { padding: 2rem .2rem; }
.limits > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.limits p { margin: 0; padding: 1.2rem; border-top: 2px solid var(--teal); background: white; }
footer { padding: 2rem 1rem; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .hero { min-height: 420px; padding-bottom: 6rem; }
  .hero-content { margin-top: 4rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts, .form-grid, .download-grid, .limits > div { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .badge { display: inline-block; margin-bottom: 1rem; }
  .hash-row { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
