:root {
  color-scheme: dark;
  --bg: #050a12;
  --bg-deep: #02060b;
  --panel: #0a121d;
  --panel-2: #0d1824;
  --text: #eef3f7;
  --muted: #a8b4bf;
  --quiet: #748391;
  --line: rgba(206, 222, 236, .15);
  --line-strong: rgba(206, 222, 236, .28);
  --light: #c8eff6;
  --warm: #d4b175;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(78, 119, 143, .12), transparent 35rem),
    linear-gradient(180deg, #07101a 0%, var(--bg) 35%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: white;
  color: black;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) 20px 0;
  width: min(100%, var(--max));
  margin: 0 auto;
}
.brand {
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .22em;
}
.header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px 20px max(72px, calc(52px + env(safe-area-inset-bottom)));
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,11,.12), rgba(2,6,11,.22) 48%, rgba(2,6,11,.92) 88%);
  z-index: -1;
}
.hero-depth { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.layer, .threshold, .path, .light { position: absolute; left: 50%; transform: translateX(-50%); }
.layer {
  bottom: -6%;
  border: 1px solid rgba(189, 211, 226, .12);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(25, 42, 56, .15), rgba(5, 10, 18, .75));
  clip-path: polygon(17% 0, 83% 0, 100% 100%, 0 100%);
}
.layer-far { width: 118%; height: 66%; opacity: .35; }
.layer-mid { width: 88%; height: 58%; bottom: -2%; opacity: .6; }
.layer-near { width: 62%; height: 50%; bottom: 2%; opacity: .92; }
.threshold {
  top: 15%;
  width: min(44vw, 240px);
  height: min(52vh, 430px);
  border: 1px solid rgba(209, 229, 239, .15);
  box-shadow: 0 0 0 14px rgba(4,9,15,.65), 0 0 0 15px rgba(209,229,239,.06);
}
.path {
  bottom: -6%;
  width: 22%;
  height: 60%;
  background: linear-gradient(180deg, rgba(213, 181, 121, .03), rgba(213, 181, 121, .18));
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
}
.light {
  top: 21%;
  width: 80px;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(200,239,246,.5), rgba(200,239,246,.08) 42%, transparent 72%);
  filter: blur(5px);
}
.hero-copy { width: min(100%, 720px); margin: 0 auto; text-align: center; }
.eyebrow, .section-kicker {
  color: var(--warm);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin: 10px 0 12px;
  font-size: clamp(54px, 18vw, 112px);
  line-height: .9;
  letter-spacing: .09em;
  font-weight: 760;
}
.hero-line {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(21px, 6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero-note {
  max-width: 35rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
}
.actions, .test-actions {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}
.button {
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.button-primary {
  background: var(--text);
  color: #09111a;
  border-color: var(--text);
}
.button-secondary { background: rgba(255,255,255,.025); color: var(--text); }
.button:focus-visible, .header-link:focus-visible, .brand:focus-visible, .text-link:focus-visible {
  outline: 3px solid var(--light);
  outline-offset: 4px;
}
.button:hover { border-color: rgba(220,235,245,.55); }
.button-primary:hover { background: #dfe8ee; }
.is-disabled { color: var(--quiet); border-color: var(--line); pointer-events: none; }
.scroll-cue {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: var(--quiet);
  font-size: 22px;
}

.section {
  position: relative;
  padding: 88px 20px;
  border-top: 1px solid rgba(200, 220, 235, .08);
}
.section > * { width: min(100%, var(--max)); margin-left: auto; margin-right: auto; }
.section h2 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 9vw, 58px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.lead {
  color: #d6dee5;
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.45;
}
.split { display: grid; gap: 38px; }
.plain-steps { display: grid; border-top: 1px solid var(--line); }
.plain-steps > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.plain-steps span { grid-row: 1 / 3; color: var(--quiet); font-size: 12px; letter-spacing: .08em; }
.plain-steps strong { font-size: 18px; }
.plain-steps small { color: var(--muted); font-size: 14px; }

.evidence-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(16,29,42,.9), rgba(7,14,23,.9));
}
.evidence-copy p { color: var(--muted); max-width: 44rem; }
.text-link { color: var(--light); text-underline-offset: 5px; font-weight: 650; }
.evidence-facts {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.evidence-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.evidence-facts span { color: var(--quiet); font-size: 13px; }
.evidence-facts strong { text-align: right; font-size: 14px; }

.section-wanderer { background: #070d15; }
.narrow { max-width: 800px; }
.history-line {
  display: flex;
  align-items: center;
  margin-top: 44px;
}
.history-line span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--warm);
  transform: rotate(45deg);
}
.history-line i { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(212,177,117,.6), rgba(200,239,246,.25)); }

.section-depth {
  min-height: 620px;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: linear-gradient(180deg, #07111a, #04090f);
}
.depth-frame {
  position: absolute;
  inset: 70px 12% auto;
  height: 360px;
  border: 1px solid rgba(206,222,236,.12);
  box-shadow:
    inset 0 0 0 22px #07111a,
    inset 0 0 0 23px rgba(206,222,236,.08),
    inset 0 0 0 64px #07111a,
    inset 0 0 0 65px rgba(206,222,236,.06);
}
.depth-frame::after {
  content: "";
  position: absolute;
  inset: 82px 28% 0;
  background: linear-gradient(180deg, rgba(200,239,246,.12), rgba(212,177,117,.05));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}
.depth-copy { position: relative; z-index: 2; }

.test-grid, .community-row { display: grid; gap: 32px; }
.test-points { border-top: 1px solid var(--line); }
.test-points p {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.test-points strong { color: var(--text); }
.community-status { color: var(--quiet); font-size: 13px; margin: 12px 0 0; }

.site-footer {
  padding: 40px 20px max(44px, calc(28px + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  color: var(--muted);
}
.site-footer > div { display: flex; gap: 10px; align-items: baseline; }
.site-footer strong { color: var(--text); letter-spacing: .14em; font-size: 13px; }
.site-footer span { font-size: 13px; }
.site-footer nav { display: grid; gap: 10px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.site-footer p { margin: 0; color: var(--quiet); font-size: 13px; }

@media (min-width: 760px) {
  .site-header { padding-left: 36px; padding-right: 36px; }
  .hero { padding-left: 36px; padding-right: 36px; align-items: center; }
  .hero-copy { margin-top: 12vh; }
  .actions { display: flex; justify-content: center; }
  .button { min-width: 210px; }
  .section { padding: 124px 36px; }
  .split, .test-grid, .community-row { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .evidence-card { padding: 42px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .evidence-facts { margin-top: 0; border-top: 0; }
  .test-actions { display: flex; }
  .site-footer { grid-template-columns: 1fr auto; padding-left: 36px; padding-right: 36px; }
  .site-footer nav { display: flex; gap: 22px; grid-column: 2; grid-row: 1; }
  .site-footer p { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
