/* spacewarden.app. Values come from design/mockups/html/Site.dc.html and SiteUtility.dc.html (docs/06 §8, §9).
   Dark only (D-24). Fonts are the brand WOFF2 files served from this site (D-49, D-94). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* The brand set stops at 800; the mockup's 900 roles (hero headline, $29) use it. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/fonts/orbitron-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #070A16;
  --f: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --t1: #F1F3FF;
  --t2: rgba(225, 230, 255, 0.76);
  --t3: rgba(225, 230, 255, 0.52);
  --hair: rgba(148, 163, 255, 0.12);
  --acc: #00FA9A;
  --ink: #05261A;
  --warn: #FB923C;
  --card: rgba(20, 26, 48, 0.75);
  --gx: 96px;           /* side gutter: 96 at the 1440 design width */
  --navh: 72px;
}
@media (max-width: 1200px) { :root { --gx: 48px; } }
@media (max-width: 760px)  { :root { --gx: 20px; --navh: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; min-width: 320px; background: var(--ground); color: var(--t1);
  font-family: var(--f); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid rgba(0, 250, 154, 0.6); outline-offset: 2px; } /* docs/05 §13 */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--acc); color: var(--ink); font: 700 14px var(--f); text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- page shell ------------------------------------------------------------------------------------- */
.page { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.sky { position: absolute; top: 0; bottom: 0; left: 50%; width: 1440px; margin-left: -720px; pointer-events: none; z-index: -1; }
.sky.stars { background: url("/img/stars.svg") top center / 1440px auto repeat-y; }
.glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.wrap { width: min(1248px, calc(100% - 2 * var(--gx))); margin: 0 auto; }

/* ---- nav --------------------------------------------------------------------------------------------- */
.nav { position: relative; z-index: 2; height: var(--navh); display: flex; align-items: center; gap: 36px; }
.nav > a:not(.wm) { color: var(--t2); text-decoration: none; font: 500 15px var(--f); transition: color 80ms; }
.nav > a:not(.wm):hover { color: var(--t1); }
.wm { display: flex; align-items: center; gap: 11px; color: var(--t1); text-decoration: none; margin-right: 12px; font-family: "Orbitron", var(--f); font-weight: 700; font-size: 16px; letter-spacing: 0.6px; white-space: nowrap; }
.wm img { width: 30px; height: 30px; flex: 0 0 auto; }
.nav .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 960px) { .nav > a:not(.wm) { display: none; } }
@media (max-width: 480px) { .nav .end .btn.s { display: none; } .wm { margin-right: 0; } }

/* ---- type -------------------------------------------------------------------------------------------- */
.eyebrow { font: 800 13px var(--f); letter-spacing: 2px; color: var(--acc); text-transform: uppercase; }
.h1 { font: 900 clamp(46px, 6.12vw, 88px)/0.98 var(--f); letter-spacing: -0.041em; }
.h2 { font: 800 clamp(36px, 3.9vw, 56px)/1.04 var(--f); letter-spacing: -0.036em; }
.h3 { font: 700 22px var(--f); letter-spacing: -0.4px; }
.lead { font: 500 clamp(18px, 1.46vw, 21px)/1.45 var(--f); color: var(--t2); letter-spacing: -0.2px; }
.body { font: 400 clamp(16px, 1.25vw, 18px)/1.55 var(--f); color: var(--t2); }
.small { font: 500 14px var(--f); color: var(--t3); }
.grad { background: linear-gradient(90deg, #F1F3FF 0%, #C7B8FF 45%, #00FA9A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-variant-numeric: tabular-nums; }

/* ---- buttons ----------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 12px; border: 0; font: 700 15.5px var(--f); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 80ms, box-shadow 80ms, filter 80ms;
}
.btn svg { flex: 0 0 auto; }
.btn.p { background: var(--acc); color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 250, 154, 0.4), 0 10px 34px rgba(0, 250, 154, 0.28); }
.btn.p:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(0, 250, 154, 0.5), 0 10px 40px rgba(0, 250, 154, 0.38); }
.btn.s { background: rgba(255, 255, 255, 0.07); color: var(--t1); border: 1px solid rgba(255, 255, 255, 0.1); }
.btn.s:hover { background: rgba(255, 255, 255, 0.11); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-busy="true"] { cursor: default; filter: saturate(0.6) brightness(0.85); }
.btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-note { margin-top: 10px; font: 500 14px var(--f); color: var(--t2); }

/* ---- landing: hero ----------------------------------------------------------------------------------- */
.hero { position: relative; height: calc(900px - var(--navh)); }
.hero .stage { position: relative; height: 100%; }
.hero .copy { position: absolute; left: 0; top: 132px; width: 600px; display: flex; flex-direction: column; gap: 28px; z-index: 1; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 8px; border-radius: 999px; background: rgba(0, 250, 154, 0.08); border: 1px solid rgba(0, 250, 154, 0.25); color: var(--t1); font: 600 13px var(--f); }
.pill i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.hero .lead { max-width: 520px; }
.hero .btns { margin-top: 6px; }
.hero .small { margin-top: -10px; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid rgba(148, 163, 255, 0.22); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 140px rgba(99, 88, 255, 0.25); background: #0A0D1A; }
.frame img { width: 100%; height: auto; }
.hero .frame { position: absolute; left: 640px; top: 104px; width: 1060px; transform: perspective(2200px) rotateY(-8deg) rotateX(2deg); transform-origin: left center; }

/* ---- landing: stats ---------------------------------------------------------------------------------- */
.stats-sec { height: 180px; display: flex; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 0 8px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-height: 150px; align-items: center; list-style: none; margin-block: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font: 800 40px var(--f); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.stat span { font: 500 15px var(--f); color: var(--t3); }

/* ---- landing: features ------------------------------------------------------------------------------- */
.feat { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 64px; align-items: center; height: 760px; }
.feat.r { grid-template-columns: minmax(0, 1fr) 470px; }
.feat .h2 { font-size: clamp(36px, 3.75vw, 54px); }
.feat .copy { display: flex; flex-direction: column; gap: 22px; }
.feat .copy .body { max-width: 460px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.chip { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font: 600 13px var(--f); background: rgba(255, 255, 255, 0.07); color: var(--t2); border: 1px solid rgba(255, 255, 255, 0.06); }
.chip.c { color: #fff; }
.chip.ok { color: var(--acc); background: rgba(0, 250, 154, 0.1); }
.shot { position: relative; }
.shot.end { display: flex; justify-content: flex-end; }
.shot .frame.map { width: 800px; aspect-ratio: 800 / 468; margin-left: -40px; }
.shot .frame.map img { width: 132.5%; max-width: none; margin: -18.5% 0 0 -31%; }
.shot .frame.wide { width: 860px; flex: 0 0 auto; }
.feat:not(.r) .shot .frame.wide { margin-left: -40px; }
.feat.r .shot .frame.wide { margin-right: -40px; }

/* ---- landing: safety, pricing, faq, closing --------------------------------------------------------- */
.safety-sec { min-height: 560px; display: flex; align-items: center; }
.safety-sec .wrap { display: flex; flex-direction: column; gap: 48px; }
.safety-sec .head { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; list-style: none; margin: 0; padding: 0; }
.safe li { display: flex; gap: 16px; align-items: flex-start; font: 600 clamp(20px, 1.95vw, 28px)/1.3 var(--f); letter-spacing: -0.025em; }
.safe svg, .inc svg { flex: 0 0 auto; }
.safe svg { margin-top: 0.22em; }

.pricing-sec { min-height: 680px; display: flex; align-items: center; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.price .copy { display: flex; flex-direction: column; gap: 20px; }
.price .amount { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price .amount .big { font: 900 clamp(92px, 9.17vw, 132px)/1 var(--f); letter-spacing: -0.045em; padding-right: 0.04em; }
.price .amount .once { font: 800 clamp(30px, 2.8vw, 40px) var(--f); letter-spacing: -1.5px; }
.price .lead { max-width: 480px; }
.price .btns { margin-top: 8px; }
.price .small { margin-top: -8px; }
.card { padding: 40px 44px; border-radius: 20px; background: var(--card); border: 1px solid var(--hair); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); }
.card .label { font: 800 13px var(--f); letter-spacing: 2px; color: var(--t3); margin-bottom: 22px; text-transform: uppercase; }
.inc { display: flex; flex-direction: column; gap: 14px; font: 500 18px var(--f); color: var(--t1); list-style: none; margin: 0; padding: 0; }
.inc li { display: flex; gap: 12px; align-items: center; }

.faq-sec { min-height: 560px; display: flex; align-items: center; }
.faq-sec .wrap { display: flex; flex-direction: column; gap: 40px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; }
.faq h3 { font: 700 19px var(--f); letter-spacing: -0.4px; margin-bottom: 8px; }
.faq p { font: 400 16px/1.55 var(--f); color: var(--t2); }

.closing { min-height: 550px; display: flex; flex-direction: column; justify-content: flex-end; }
.closing .cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-bottom: 110px; }
.closing .cta img { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(99, 88, 255, 0.35); margin-bottom: 6px; }
.closing .cta .h2 { font-size: clamp(40px, 4.45vw, 64px); }
.closing .btns { justify-content: center; }

/* ---- footer ------------------------------------------------------------------------------------------ */
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 48px 0 40px; border-top: 1px solid var(--hair); font: 500 14px var(--f); color: var(--t3); }
.foot .brand { display: flex; flex-direction: column; gap: 12px; }
.foot .wm { color: var(--t1); font-size: 14px; letter-spacing: 0.5px; gap: 10px; margin: 0; }
.foot .cols { display: flex; gap: 72px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot nav h2 { color: var(--t1); font: 700 14px var(--f); margin-bottom: 4px; }
.foot a { color: var(--t3); text-decoration: none; transition: color 80ms; }
.foot a:hover { color: var(--t1); }
.foot-sec { position: relative; }

/* ---- illustrated utility pages (docs/06 §9, docs/08 §7) --------------------------------------------- */
/* 1. The container is the section including its nav; it clips. 2. The image is larger than the container, offset in
   percentages, object-fit cover. 3. Two gradients in the ground color. 4. Foreground on top. */
.illu { position: relative; overflow: hidden; min-height: max(680px, 100vh); min-height: max(680px, 100svh); display: flex; flex-direction: column; }
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop img { position: absolute; left: -21%; top: -17%; width: 104%; height: 132%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.backdrop .fx, .backdrop .fy { position: absolute; inset: 0; }
.backdrop .fx { background: linear-gradient(90deg, rgba(7, 10, 22, 0) 0%, rgba(7, 10, 22, 0) 36%, rgba(7, 10, 22, 0.8) 52%, #070A16 62%, #070A16 100%); }
.backdrop .fy { background: linear-gradient(180deg, rgba(7, 10, 22, 0.7) 0%, rgba(7, 10, 22, 0) 16%, rgba(7, 10, 22, 0) 84%, rgba(7, 10, 22, 0.7) 100%); }
.illu .nav-row { position: relative; z-index: 2; }
.illu .content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; margin-left: 52.78%; padding: 0 var(--gx) 30px 0; max-width: 47.22%; }
.illu .content .h2 { font-size: 48px; letter-spacing: -2px; }
.illu .content .lead { max-width: 540px; }
.illu .content .btns, .illu .content form { margin-top: 8px; }
.illu .content form { width: 100%; max-width: 560px; }
.illu .note { font: 500 13px var(--f); color: var(--t3); margin-top: 4px; }
.illu .note a { color: var(--t2); }

/* Narrow screens: the scene sits in a top band and the text in the band below it. The band is its own clipping
   container with the same construction; its bottom fades to solid ground so its edge never shows. */
@media (max-width: 960px) {
  .illu { display: block; min-height: 0; }
  .backdrop { bottom: auto; height: calc(var(--navh) + min(110vw, 640px)); }
  .backdrop img { left: -30%; top: -8%; width: 150%; height: 118%; object-position: 34% 50%; }
  .backdrop .fx { background: linear-gradient(90deg, rgba(7, 10, 22, 0.35) 0%, rgba(7, 10, 22, 0) 14%, rgba(7, 10, 22, 0) 86%, rgba(7, 10, 22, 0.35) 100%); }
  .backdrop .fy { background: linear-gradient(180deg, rgba(7, 10, 22, 0.7) 0%, rgba(7, 10, 22, 0) 14%, rgba(7, 10, 22, 0) 56%, rgba(7, 10, 22, 0.9) 80%, #070A16 92%, #070A16 100%); }
  .illu .content { margin: 0 auto; max-width: none; width: min(640px, calc(100% - 2 * var(--gx))); padding: min(80vw, 470px) 0 64px; }
  .illu .content .h2 { font-size: clamp(34px, 8.6vw, 48px); letter-spacing: -0.04em; }
}

/* ---- forms ------------------------------------------------------------------------------------------- */
.form-row { display: flex; gap: 10px; width: 100%; }
.field {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 255, 0.18); font: 500 15px var(--f); color: var(--t1); transition: border-color 80ms;
}
.field::placeholder { color: var(--t3); opacity: 1; }
.field:hover { border-color: rgba(148, 163, 255, 0.3); }
.field:focus-visible { border-color: rgba(0, 250, 154, 0.5); }
.status { display: none; align-items: flex-start; gap: 10px; max-width: 560px; font: 500 15px/1.45 var(--f); color: var(--t1); }
.status.show { display: flex; }
.status svg, .status .dot { flex: 0 0 auto; margin-top: 2px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin: 7px 5px 0 4px; }
@media (max-width: 520px) { .form-row { flex-direction: column; } .form-row .field { flex: none; } .form-row .btn { width: 100%; } }

/* ---- plain pages: legal, changelog, download -------------------------------------------------------- */
.plain-top { position: relative; }
.doc { max-width: 760px; padding: 64px 0 112px; }
.doc > h1 { font: 800 clamp(38px, 4.2vw, 56px)/1.04 var(--f); letter-spacing: -0.036em; margin-bottom: 14px; }
.doc > h1 + p { font: 500 15px var(--f); color: var(--t3); margin-bottom: 40px; }
.doc h2 { font: 700 24px/1.25 var(--f); letter-spacing: -0.5px; margin: 48px 0 14px; scroll-margin-top: 24px; }
.doc h3 { font: 700 19px var(--f); letter-spacing: -0.3px; margin: 32px 0 10px; }
.doc p, .doc li { font: 400 17px/1.65 var(--f); color: var(--t2); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--t3); }
.doc strong { color: var(--t1); font-weight: 600; }
.doc a:not(.btn) { color: var(--acc); text-decoration: underline; text-decoration-color: rgba(0, 250, 154, 0.4); text-underline-offset: 3px; }
.doc a:not(.btn):hover { text-decoration-color: var(--acc); }
.doc code { font: 500 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair); border-radius: 6px; padding: 1px 6px; color: var(--t1); overflow-wrap: anywhere; }
.doc .empty { color: var(--t3); }
.doc .lead { font: 500 clamp(18px, 1.46vw, 21px)/1.45 var(--f); color: var(--t2); }
.doc .small { font: 500 14px var(--f); color: var(--t3); }
.doc .btns { margin: 28px 0 14px; }
.doc .steps { counter-reset: s; list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--hair); }
.doc .steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); margin: 0; }
.doc .steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--f); color: var(--acc); background: rgba(0, 250, 154, 0.1); border: 1px solid rgba(0, 250, 154, 0.22); }

/* ---- landing: responsive ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero { height: auto; padding-bottom: 72px; }
  .hero .stage { height: auto; }
  .hero .copy { position: static; width: auto; max-width: 640px; padding-top: 56px; }
  .hero .frame { position: relative; left: 0; top: 0; margin-top: 56px; width: min(1060px, 135%); transform: perspective(2200px) rotateY(-6deg) rotateX(2deg); }
  .feat, .feat.r { grid-template-columns: minmax(0, 1fr); height: auto; gap: 40px; padding: 96px 0; }
  .feat.r .shot { order: 2; }
  .shot.end { justify-content: flex-start; }
  .shot .frame.map, .shot .frame.wide { width: calc(100% + var(--gx)); margin: 0 !important; }
  .feat .copy .body { max-width: 620px; }
}
@media (max-width: 900px) {
  .stats-sec { height: auto; padding: 24px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: 28px 8px; }
  .stat b { font-size: 34px; }
  .safe, .price, .faq { grid-template-columns: minmax(0, 1fr); }
  .safety-sec, .pricing-sec, .faq-sec { min-height: 0; padding: 88px 0; }
  .price { gap: 48px; }
  .closing { min-height: 0; padding-top: 72px; }
  .closing .cta { padding-bottom: 88px; }
}
@media (max-width: 760px) {
  .foot { flex-direction: column; }
  .foot .cols { flex-wrap: wrap; gap: 32px 56px; }
}
@media (max-width: 520px) {
  .hero .copy { gap: 22px; padding-top: 36px; }
  .hero .btns .btn, .price .btns .btn, .closing .btns .btn { width: 100%; }
  .card { padding: 28px 24px; }
  .inc { font-size: 16px; }
  .stat span { font-size: 14px; }
}
