:root {
  --bg: #05080d;
  --bg-deep: #071019;
  --surface: #0d1822;
  --surface-strong: #122431;
  --surface-input: #07121a;
  --text: #f4f8f9;
  --text-soft: #c7d5db;
  --text-muted: #9eb2bc;
  --cyan: #75dcf5;
  --cyan-strong: #a6edff;
  --orange: #ff9f43;
  --orange-strong: #ffc074;
  --green: #7de2b5;
  --red: #ff938e;
  --line: #29404e;
  --line-strong: #52798a;
  --focus: #b1efff;
  --radius: 12px;
  --shadow: 0 24px 64px rgb(0 0 0 / 35%);
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Avenir Next", Inter, ui-sans-serif, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 7%, rgb(48 132 164 / 20%) 0, transparent 27rem),
    radial-gradient(circle at 8% 62%, rgb(255 133 48 / 8%) 0, transparent 24rem),
    linear-gradient(90deg, rgb(117 220 245 / 2.4%) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgb(117 220 245 / 2.4%) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
  font: 400 1rem/1.65 var(--font-ui);
  letter-spacing: .005em;
}

a { color: var(--cyan-strong); text-underline-offset: .2em; }
button, input { font: inherit; }
:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgb(117 220 245 / 14%);
}
::selection { color: #021015; background: var(--cyan-strong); }

.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .7rem 1rem; transform: translateY(-200%); color: #061018; background: var(--cyan-strong); font-weight: 750; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgb(5 8 13 / 94%);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: .85rem; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan-strong);
  background: linear-gradient(145deg, #123646, #091820);
  font: 650 1.15rem/1 var(--font-display);
  clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 24% 100%, 0 76%);
}
.brand strong { display: block; font-size: .95rem; letter-spacing: .19em; }
.brand small { display: block; margin-top: .15rem; color: var(--text-muted); font: 650 .63rem/1.3 var(--font-mono); letter-spacing: .09em; }
nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.6rem); }
nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-soft); font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--text); }
.nav-cta { padding: .45rem 1rem; border: 1px solid var(--line-strong); border-radius: 6px; background: #11232e; }

main, footer { width: min(1240px, calc(100% - 2.5rem)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); min-height: calc(100vh - 82px); padding: clamp(4rem, 9vw, 8rem) 0; }
.eyebrow { margin: 0 0 1rem; color: var(--cyan-strong); font: 750 .77rem/1.4 var(--font-mono); letter-spacing: .16em; }
.status-dot { display: inline-block; width: .65rem; height: .65rem; margin-right: .55rem; border: 2px solid var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgb(125 226 181 / 10%); }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 560; letter-spacing: -.035em; }
h1 { max-width: 790px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .99; }
h1 span { color: var(--cyan-strong); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; }
.hero-intro { max-width: 720px; margin: 1.8rem 0 0; color: var(--text-soft); font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .75rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: linear-gradient(180deg, #182b37, #0d1b24);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--cyan); background: #183541; }
.button.primary { border-color: var(--orange-strong); background: linear-gradient(180deg, #b75c1f, #7c3512); color: #fffaf6; }
.button.primary:hover { background: linear-gradient(180deg, #d06a25, #944317); }
.button:disabled, .button[aria-disabled="true"] { border-color: #47535a; color: #bac3c7; background: #1a2228; cursor: not-allowed; opacity: .78; }
.full { width: 100%; }
.quiet, .fine-print { color: var(--text-muted); font-size: .86rem; }
.quiet { max-width: 690px; margin-top: 1rem; }

.system-visual { position: relative; aspect-ratio: 1; max-width: 530px; width: 100%; margin-inline: auto; isolation: isolate; }
.system-visual::before { position: absolute; inset: 8%; border: 1px solid rgb(117 220 245 / 15%); border-radius: 50%; background: radial-gradient(circle, rgb(117 220 245 / 9%), transparent 57%); content: ""; }
.orbit { position: absolute; border: 1px solid rgb(117 220 245 / 38%); border-radius: 50%; }
.orbit::after { position: absolute; width: 8px; height: 8px; border: 1px solid var(--orange-strong); border-radius: 50%; background: #7c3512; content: ""; }
.orbit-one { inset: 13%; transform: rotate(-17deg); }
.orbit-one::after { top: 7%; right: 21%; }
.orbit-two { inset: 25%; border-color: rgb(255 159 67 / 33%); transform: rotate(34deg); }
.orbit-two::after { bottom: 3%; left: 32%; }
.core { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 138px; height: 138px; place-content: center; transform: translate(-50%, -50%); border: 1px solid var(--cyan); border-radius: 50%; text-align: center; background: radial-gradient(circle at 38% 30%, #244b5c, #0a1720 67%); box-shadow: inset 0 0 32px rgb(117 220 245 / 15%), 0 0 36px rgb(117 220 245 / 8%); }
.core span { color: var(--orange-strong); font: 500 2.6rem/1 var(--font-display); }
.core strong { margin-top: .45rem; font: 750 .68rem/1.2 var(--font-mono); letter-spacing: .13em; }
.core small { margin-top: .25rem; color: var(--text-muted); font: 650 .55rem/1 var(--font-mono); letter-spacing: .1em; }
.visual-nodes span { --angle: calc(var(--node) * 45deg); position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 54px; height: 32px; place-items: center; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-225px) rotate(calc(var(--angle) * -1)); border: 1px solid var(--line-strong); border-radius: 5px; color: var(--cyan-strong); background: #0c1b24; font: 700 .63rem/1 var(--font-mono); letter-spacing: .06em; box-shadow: 0 8px 18px rgb(0 0 0 / 35%); }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.proof-strip p { margin: 0; padding: 1.3rem 1.5rem; }
.proof-strip p + p { border-left: 1px solid var(--line); }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { margin-bottom: .25rem; color: var(--text); font-size: .98rem; }
.proof-strip span { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }

.modules-section, .access-section, .download-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 3rem; margin-bottom: 2.4rem; }
.section-heading > p { max-width: 560px; margin: 0 0 .25rem; color: var(--text-soft); font-size: 1.02rem; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.module-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, var(--surface-strong), var(--surface)); }
.module-card::before { position: absolute; top: -1px; left: -1px; width: 42px; height: 42px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); content: ""; pointer-events: none; }
.module-card[open] { border-color: var(--line-strong); box-shadow: 0 18px 42px rgb(0 0 0 / 28%); }
.module-card summary { display: grid; grid-template-columns: 34px 44px 1fr auto 28px; align-items: center; gap: .75rem; min-height: 94px; padding: 1rem 1.1rem; list-style: none; cursor: pointer; }
.module-card summary::-webkit-details-marker { display: none; }
.module-number { color: var(--text-muted); font: 650 .68rem/1 var(--font-mono); }
.module-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-strong); color: var(--cyan-strong); background: #0b1a23; }
.module-title strong, .module-title small { display: block; }
.module-title strong { color: var(--text); letter-spacing: .07em; }
.module-title small { margin-top: .2rem; color: var(--text-muted); font-size: .78rem; }
.module-state { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font: 700 .62rem/1.2 var(--font-mono); letter-spacing: .07em; }
.module-state i { width: 7px; height: 7px; border: 1px solid var(--green); border-radius: 50%; }
.module-open { color: var(--orange-strong); font-size: 1.3rem; transition: transform 150ms ease; }
.module-card[open] .module-open { transform: rotate(45deg); }
.module-body { padding: 0 1.5rem 1.5rem 6rem; border-top: 1px solid var(--line); }
.module-headline { margin: 1.3rem 0 .3rem; color: var(--text); font-size: 1.05rem; font-weight: 700; }
.module-origin { margin: 0 0 1rem; color: var(--text-muted); font-size: .85rem; }
.module-body ul { margin: 0; padding-left: 1.15rem; color: var(--text-soft); }
.module-body li { margin: .45rem 0; padding-left: .25rem; }
.module-body li::marker { color: var(--cyan); }
.module-boundary { margin: 1.2rem 0 0; padding: .85rem 1rem; border-left: 3px solid var(--orange); color: var(--text-soft); background: #161b1f; font-size: .88rem; }
.module-boundary strong { display: block; margin-bottom: .2rem; color: var(--orange-strong); font: 700 .67rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.access-section { display: grid; grid-template-columns: 1fr minmax(350px, .75fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; border-top: 1px solid var(--line); }
.access-copy > p:not(.eyebrow) { max-width: 660px; color: var(--text-soft); font-size: 1.04rem; }
.check-list { display: grid; gap: .65rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--text-soft); }
.check-list li::before { position: absolute; left: 0; color: var(--cyan); content: "◇"; }
.signup-card { position: relative; padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(145deg, #132733, #0b151d); box-shadow: var(--shadow); }
.signup-card::after { position: absolute; right: -1px; bottom: -1px; width: 42px; height: 42px; border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange); content: ""; pointer-events: none; }
.card-index { margin-bottom: 1.5rem; color: var(--cyan-strong); font: 700 .72rem/1.3 var(--font-mono); letter-spacing: .12em; }
.signup-card label:not(.consent) { display: block; margin-bottom: .5rem; color: var(--text); font-weight: 700; }
.signup-card input[type="email"] { width: 100%; min-height: 52px; margin-bottom: 1rem; padding: .75rem .9rem; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); background: var(--surface-input); }
.signup-card input:disabled { color: #a9b2b7; background: #11181d; }
.consent { display: flex; align-items: flex-start; gap: .7rem; margin: .2rem 0 1.2rem; color: var(--text-soft); font-size: .9rem; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: .15rem; accent-color: var(--orange); }
.form-status { min-height: 3rem; margin: 1rem 0 0; color: var(--orange-strong); font-weight: 650; }

.download-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 5rem); align-items: center; border-top: 1px solid var(--line); }
.download-section > div > p:not(.eyebrow) { color: var(--text-soft); }
.download-card { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 1.2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.download-icon { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid var(--cyan); color: var(--cyan-strong); background: #0d2632; font: 400 1.8rem/1 var(--font-display); }
.download-card strong, .download-card span, .download-card small { display: block; }
.download-card span { color: var(--text-soft); font-size: .9rem; }
.download-card small { max-width: 380px; margin-top: .35rem; color: var(--text-muted); line-height: 1.4; }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0 4rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .82rem; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--text); letter-spacing: .15em; }
.footer-status { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; border-left: 3px solid var(--orange); background: rgb(255 159 67 / 6%); }
footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .system-visual { max-width: 430px; }
  .visual-nodes span { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-183px) rotate(calc(var(--angle) * -1)); }
  .section-heading, .access-section, .download-section { grid-template-columns: 1fr; }
  .section-heading { gap: 1rem; }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 72px; padding-inline: 1rem; }
  .brand small { display: none; }
  nav a:not(.nav-cta) { display: none; }
  main, footer { width: min(100% - 1.5rem, 1240px); }
  .hero { padding-top: 4rem; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
  .system-visual { max-width: 340px; }
  .core { width: 112px; height: 112px; }
  .visual-nodes span { width: 44px; height: 28px; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-144px) rotate(calc(var(--angle) * -1)); font-size: .55rem; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p + p { border-top: 1px solid var(--line); border-left: 0; }
  .module-card summary { grid-template-columns: 26px 40px 1fr 24px; min-height: 88px; gap: .55rem; padding-inline: .8rem; }
  .module-state { grid-column: 3 / -1; }
  .module-open { grid-column: 4; grid-row: 1; }
  .module-body { padding: 0 1rem 1rem; }
  .download-card { grid-template-columns: 54px 1fr; }
  .download-icon { width: 52px; height: 52px; }
  .download-card .button { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr; }
  .footer-status { grid-column: auto; }
}

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