:root {
  --bg: #070a0f;
  --bg-soft: #0b1017;
  --surface: #0e141c;
  --surface-2: #121a23;
  --line: #1e2833;
  --line-strong: #2b3947;
  --text: #e9eef4;
  --muted: #8b9aac;
  --muted-2: #637184;
  --teal: #4fd1c5;
  --teal-dark: #14332f;
  --amber: #e5aa4a;
  --amber-dark: #2a2112;
  --max: 1180px;
  --radius: 10px;
  --sans: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 12% -10%, #122029 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 18%, #1a150e 0%, transparent 58%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
::selection { background: rgba(79, 209, 197, .28); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 8px 12px; background: var(--teal); color: #04100e;
  border-radius: 6px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 10, 15, .82);
  border-bottom: 1px solid rgba(30, 40, 51, .75);
  backdrop-filter: blur(12px);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: .16em; font-size: 14px;
  white-space: nowrap;
}
.wordmark .mark {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 14px rgba(79, 209, 197, .7);
}
.wordmark-sub { color: var(--muted-2); font-weight: 500; letter-spacing: .12em; }
.topbar nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.topbar nav .nav-cta {
  color: #06201d; background: var(--teal); padding: 7px 13px; border-radius: 999px;
  font-weight: 700;
}
.topbar nav .nav-cta:hover { background: #6ee6dc; color: #04100e; }
.topbar nav .nav-cta.is-pending {
  background: #18242e; color: var(--muted); cursor: not-allowed; pointer-events: none;
}

/* ------------------------------------------------------------------- hero */
main { overflow: clip; }
.hero {
  max-width: var(--max); margin: 0 auto; padding: 84px 32px 56px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
}
.eyebrow {
  margin: 0 0 18px; color: var(--teal); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
h1 {
  margin: 0; font-size: clamp(44px, 5.8vw, 78px); line-height: 1.06;
  letter-spacing: -.03em; font-weight: 650;
}
h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--teal); letter-spacing: -.01em;
}
.lede {
  margin: 26px 0 0; max-width: 34em; color: #b9c6d4;
  font-size: clamp(15px, 1.35vw, 18px);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sim-note { margin: 18px 0 0; color: var(--muted-2); font-size: 12.5px; }
.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
figcaption { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 10px; }

/* ---------------------------------------------------------------- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--line-strong); color: var(--text);
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background .16s, border-color .16s, transform .08s;
}
.button:hover { background: var(--surface-2); border-color: #3b4b5c; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--teal); border-color: var(--teal); color: #04110f; }
.button.primary:hover { background: #6ee6dc; border-color: #6ee6dc; }
.button.is-pending {
  background: #121a23; border-color: var(--line); color: var(--muted);
  cursor: not-allowed;
}
.button.is-pending:hover { background: #121a23; border-color: var(--line); }

/* ---------------------------------------------------------------- sections */
.section {
  max-width: var(--max); margin: 0 auto; padding: 64px 32px;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px;
  margin-bottom: 34px;
}
.section-head .num {
  color: var(--muted-2); font: 600 12px/1.9 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: .12em; padding-top: 6px;
}
.section-head h2 {
  margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18; letter-spacing: -.02em; font-weight: 650;
}
.section-head p { margin: 0; max-width: 760px; color: var(--muted); }

/* ---------------------------------------------------------------- video */
.video-frame {
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.caption-note { margin: 12px 0 0; color: var(--muted-2); font-size: 12.5px; }

/* ------------------------------------------------------------------ rules */
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule {
  position: relative; padding: 26px 22px 22px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.rule-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--teal-dark); color: var(--teal);
  font-weight: 700; font-size: 13px; margin-bottom: 14px;
}
.rule h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.rule p { margin: 0; color: #b3c0cf; font-size: 14px; }
.rule-foot {
  margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--teal);
  color: var(--muted); font-size: 14px; max-width: 820px;
}
.rule-foot strong { color: var(--text); }

/* ----------------------------------------------------------------- stories */
.story-list { display: grid; gap: 34px; }
.story {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px; align-items: center;
}
.story:nth-child(even) figure { order: 2; }
.story figure { margin: 0; }
.story figure img {
  width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
}
.story-copy .tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid #2b5a54; background: var(--teal-dark);
  color: #9cebe3; font-size: 11px; letter-spacing: .08em;
}
.story-copy h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.02em; }
.story-copy p { margin: 0 0 14px; color: #b9c6d4; }
.story-copy ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.story-copy li { margin-bottom: 5px; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 38px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
}
.gallery figcaption { margin-top: 8px; }

/* ------------------------------------------------------------------- loop */
.loop {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; counter-reset: loop;
}
.loop li {
  position: relative; padding: 22px 22px 22px 58px; background: var(--surface);
  counter-increment: loop;
}
.loop li::before {
  content: "0" counter(loop);
  position: absolute; left: 20px; top: 22px;
  color: var(--teal); font: 600 12px/1 ui-monospace, monospace; letter-spacing: .08em;
}
.loop span { display: block; font-weight: 650; margin-bottom: 5px; }
.loop p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ----------------------------------------------------------------- mobile */
.mobile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mobile-grid figure { margin: 0; text-align: center; }
.mobile-grid img {
  width: min(100%, 300px); margin: 0 auto; border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}
.mobile-grid figcaption { text-align: left; max-width: 300px; margin: 12px auto 0; }

/* ------------------------------------------------------------- boundaries */
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.boundary {
  padding: 24px 24px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.boundary.done { border-top: 3px solid var(--teal); }
.boundary.open { border-top: 3px solid var(--amber); }
.boundary h3 { margin: 0 0 14px; font-size: 18px; }
.boundary ul { margin: 0; padding-left: 18px; color: #b3c0cf; font-size: 14px; }
.boundary li { margin-bottom: 7px; }
.boundary.open li { color: #c9b795; }
.honesty {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 8px;
  background: var(--amber-dark); border: 1px solid #3a2f1a;
  color: #d8c39d; font-size: 13.5px; max-width: 900px;
}

/* -------------------------------------------------------------------- cta */
.cta { text-align: center; padding-top: 76px; padding-bottom: 84px; }
.cta .eyebrow { margin-bottom: 10px; }
.cta h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.025em; }
.cta > p { margin: 0 auto; max-width: 620px; color: var(--muted); }
.cta-actions {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 0;
}
.demo-status { min-height: 20px; margin-top: 16px; color: var(--muted-2); font-size: 12.5px; }

/* ----------------------------------------------------------------- footer */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 24px 32px 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 12px;
}
.footer a { color: var(--muted-2); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .hero-shot { order: 2; }
  .rule-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 20px; }
  .story:nth-child(even) figure { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .mobile-grid { grid-template-columns: 1fr; }
  .mobile-grid figure {
    display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 20px;
    align-items: center; text-align: left;
  }
  .mobile-grid figcaption { margin: 0; max-width: none; }
  .boundary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .topbar nav .nav-cta.is-pending { display: none; }
  .wordmark-sub { display: none; }
  .hero { padding: 44px 18px 36px; }
  .section { padding: 44px 18px; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-head .num { padding-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .mobile-grid figure { grid-template-columns: 1fr; text-align: center; }
  .mobile-grid figcaption { text-align: left; margin-top: 10px; }
  .footer { padding: 20px 18px 40px; }
  .cta-actions .button { width: 100%; }
}

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