:root {
  color-scheme: dark;
  --bg: #100c07;
  --bg-soft: #171108;
  --panel: #20170e;
  --panel-2: #2a1f13;
  --line: #4b3922;
  --gold: #e1b63c;
  --gold-soft: #f4d674;
  --text: #fff8e8;
  --muted: #c8b99d;
  --muted-2: #9e8f77;
  --danger: #ff8b7f;
  --ok: #85d48a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(225, 182, 60, 0.16), transparent 34rem),
    linear-gradient(180deg, #151007 0%, #0c0905 46%, #100c07 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(14, 10, 5, 0.9);
  border-bottom: 1px solid rgba(225, 182, 60, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 14rem;
}

.brand-mark,
.app-icon {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
}

.brand-mark rect,
.app-icon rect {
  fill: #161009;
  stroke: rgba(225, 182, 60, 0.55);
}

.shield {
  fill: var(--gold);
}

.check {
  fill: none;
  stroke: #fff9e7;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.public-nav a,
.header-cta {
  border-radius: 0.45rem;
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.public-nav a.active,
.public-nav a:hover {
  color: var(--text);
  background: rgba(225, 182, 60, 0.12);
}

.header-cta {
  color: #171008;
  background: var(--gold);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.55fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 75rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem) 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  max-width: 13ch;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

p,
li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.lead {
  max-width: 43rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  color: #171008;
  background: var(--gold);
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  border: 1px solid rgba(225, 182, 60, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: var(--gold-soft);
  background: rgba(225, 182, 60, 0.08);
  font-weight: 800;
}

.phone-preview {
  border: 1px solid rgba(225, 182, 60, 0.28);
  border-radius: 1.4rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.phone-top strong,
.record-card strong {
  display: block;
  font-size: 1.1rem;
}

.phone-top small,
.record-card small {
  display: block;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.scan-box {
  min-height: 15rem;
  border: 1px solid rgba(225, 182, 60, 0.35);
  border-radius: 1rem;
  padding: 1.2rem;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(225, 182, 60, 0.2) 15% 16%, transparent 16% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.25));
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.scan-box span {
  height: 0.18rem;
  width: 100%;
  margin: auto 0;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(225, 182, 60, 0.75);
}

.scan-box p {
  margin: 1rem 0 0.35rem;
  color: var(--ok);
  font-weight: 900;
}

.scan-box strong {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.05rem;
}

.record-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.record-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #ff5c4f;
  box-shadow: 0 0 0 0.45rem rgba(255, 92, 79, 0.12);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.info-card,
.beta-note,
.document,
.form-card {
  border: 1px solid rgba(225, 182, 60, 0.22);
  border-radius: 0.7rem;
  background: rgba(32, 23, 14, 0.86);
}

.info-card {
  padding: 1.25rem;
}

.info-card.highlighted {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(225, 182, 60, 0.12), rgba(32, 23, 14, 0.86));
}

.info-card h2 {
  font-size: 1.25rem;
}

.info-card p,
.info-card li {
  font-size: 0.98rem;
}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.steps {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  align-items: start;
  border: 1px solid rgba(225, 182, 60, 0.18);
  border-radius: 0.65rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.steps li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #171008;
  background: var(--gold);
  font-weight: 900;
}

.steps strong {
  color: var(--text);
}

.steps span {
  grid-column: 2;
}

.beta-note {
  max-width: 75rem;
  margin: 0 auto 4rem;
  padding: 1.35rem;
  background: linear-gradient(90deg, rgba(225, 182, 60, 0.12), rgba(32, 23, 14, 0.86));
}

.text-page {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.document {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.document.narrow,
.narrow-card {
  max-width: 42rem;
}

.document h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.document h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.document ul {
  padding-left: 1.2rem;
}

.document a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.muted {
  color: var(--muted-2);
}

.form-card {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--gold-soft);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.85rem 0.9rem;
  color: var(--text);
  background: #100c07;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 800;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--danger);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  margin: 1.5rem 0 1rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(225, 182, 60, 0.18);
  padding: 1.6rem 1rem;
  color: var(--muted);
  background: #0b0804;
}

.site-footer a {
  color: var(--gold-soft);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-nav {
    order: 3;
    width: 100%;
  }

  .hero-band,
  .how-it-works {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .info-card.highlighted {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.85rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .header-cta {
    display: none;
  }

  .public-nav a {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-band {
    padding-top: 2.5rem;
  }
}
