@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #071419;
  --ink-soft: #0b1c22;
  --panel: #10262d;
  --line: #23414a;
  --paper: #f4f2e9;
  --muted: #a5b8be;
  --teal: #28d7c0;
  --purple: #a989ff;
  --amber: #ffb52e;
  --marine: #4fa5ff;
  --danger: #ff6b66;
  --content: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --heading: "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", Impact, sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--paper); font-family: var(--body); line-height: 1.6; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 var(--gutter); border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--paper); font-family: var(--heading); font-size: 1.25rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; }
.brand strong { color: var(--teal); font-size: 1.42em; }
.brand-mark { display: flex; align-items: center; gap: 3px; height: 24px; }
.brand-mark i { display: block; width: 3px; border-radius: 3px; background: var(--teal); }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 24px; }
.brand-mark i:nth-child(3) { height: 16px; }
.primary-nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.6rem); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.primary-nav > a { text-decoration: none; }
.primary-nav > a:hover { color: var(--teal); }
.locale-links { display: inline-flex; padding-left: .65rem; border-left: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; }
.locale-links a { padding: .3rem .42rem; text-decoration: none; }
.locale-links a[aria-current="page"] { background: var(--teal); color: var(--ink); }
.menu-toggle { display: none; border: 0; background: none; color: var(--paper); font: 700 .75rem var(--mono); }
.menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; }
.menu-toggle i { position: relative; margin-left: .7rem; }
.menu-toggle i::before { position: absolute; top: -6px; }
.menu-toggle i::after { position: absolute; top: 6px; }

.section-shell { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font: 400 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 900; line-height: .94; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 10vw, 8rem); text-transform: uppercase; }
h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.section-lead { max-width: 48rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: min(860px, calc(100svh - 74px)); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; opacity: .7; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, #000, transparent 78%); }
.hero::after { position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--teal) 0 25%, var(--purple) 25% 50%, var(--amber) 50% 75%, var(--marine) 75%); content: ""; }
.hero-copy { position: relative; z-index: 1; align-self: center; max-width: 850px; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.hero h1 { max-width: 8em; font-size: clamp(3.4rem, 7vw, 6.5rem); }
.hero-lead { max-width: 680px; margin: 2rem 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.status-chip { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; padding: .6rem .85rem; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 76%, transparent); font: .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.status-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 18%, transparent); }
.store-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: .25rem 0 1.4rem; }
.store-button { display: grid; min-width: 170px; padding: .65rem 1rem; border: 1px solid var(--paper); color: var(--paper); font: .74rem/1.25 var(--mono); text-decoration: none; }
.store-button span { font: 800 1rem var(--body); }
.store-button.is-disabled { cursor: not-allowed; opacity: .48; }
.text-link { display: inline-flex; gap: .7rem; align-items: center; color: var(--teal); font: .78rem var(--mono); text-decoration: none; text-transform: uppercase; }
.signal-visual { position: relative; z-index: 1; align-self: center; justify-self: center; width: min(34vw, 470px); color: var(--teal); text-align: center; }
.radar { position: relative; display: grid; aspect-ratio: 1; place-items: center; border: 1px solid color-mix(in srgb, var(--teal) 48%, transparent); border-radius: 50%; }
.radar::before, .radar::after { position: absolute; background: color-mix(in srgb, var(--teal) 38%, transparent); content: ""; }
.radar::before { width: 100%; height: 1px; }
.radar::after { width: 1px; height: 100%; }
.radar i { position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); border-radius: 50%; }
.radar i:nth-child(2) { width: 45%; }
.radar i:nth-child(3) { width: 18%; background: color-mix(in srgb, var(--teal) 20%, transparent); }
.radar b { z-index: 2; color: var(--paper); font: 5rem var(--mono); }
.radar b::after { position: absolute; inset: 50% 50% 50% 50%; width: 47%; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); transform-origin: left; animation: sweep 7s linear infinite; content: ""; }
.signal-visual p { font: .72rem var(--mono); letter-spacing: .12em; }
@keyframes sweep { to { transform: rotate(360deg); } }

.how { padding-block: clamp(5rem, 10vw, 9rem); }
.how h2 { max-width: 8em; font-size: clamp(2.8rem, 5vw, 5rem); }
.how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 4rem 0 0; padding: 1px; list-style: none; background: var(--line); }
.how li { min-height: 250px; padding: clamp(1.3rem, 3vw, 2.4rem); background: var(--ink-soft); }
.how li > span { color: var(--teal); font: .76rem var(--mono); }
.how h3 { margin: 3rem 0 1rem; text-transform: uppercase; }
.how li p { margin: 0; color: var(--muted); }

.features { padding-bottom: clamp(4rem, 8vw, 8rem); }
.feature { --accent: var(--teal); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; min-height: 720px; padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature--purple { --accent: var(--purple); }
.feature--amber { --accent: var(--amber); }
.feature--marine { --accent: var(--marine); }
.feature .eyebrow { color: var(--accent); }
.feature h2 { max-width: none; font-size: clamp(2.5rem, 4.2vw, 4rem); }
.feature-copy > p:not(.eyebrow) { max-width: 36rem; margin: 1.75rem 0; color: var(--muted); font-size: 1.1rem; }
.feature-copy ul { display: grid; gap: .8rem; max-width: 36rem; margin: 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding-left: 1.4rem; }
.feature-copy li::before { position: absolute; top: .72em; left: 0; width: 7px; height: 2px; background: var(--accent); content: ""; }
.app-frame { position: relative; justify-self: center; width: min(100%, 390px); margin: 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 32px; background: #dfe6ef; box-shadow: 0 24px 80px color-mix(in srgb, var(--accent) 13%, transparent); }
.app-frame-bar { position: absolute; z-index: 2; top: 22px; left: 50%; display: flex; gap: 3px; transform: translateX(-50%); }
.app-frame-bar span { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.58); }
.app-frame img { width: 100%; aspect-ratio: 945 / 2048; border-radius: 22px; object-fit: cover; object-position: top; background: #e7edf4; }
.app-frame--crop img { aspect-ratio: 4 / 5; object-position: top; }
.app-frame figcaption { position: absolute; bottom: 22px; left: -12px; max-width: 85%; padding: .58rem .75rem; background: var(--ink); color: var(--paper); font: .66rem/1.4 var(--mono); }

.safety { border-block: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.safety .section-shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(5rem, 10vw, 9rem); }
.safety .eyebrow { color: #067367; }
.safety h2 { font-size: clamp(2.5rem, 3.8vw, 3.75rem); }
.safety .section-lead { color: #486068; }
.safety ul { display: grid; gap: 1px; margin: 0; padding: 1px; list-style: none; background: #b9c6c8; }
.safety li { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 1.3rem; padding: 1.35rem; background: var(--paper); }
.safety li strong { font-family: var(--heading); font-size: 1.2rem; text-transform: uppercase; }
.safety li span { color: #486068; }
.safety-note { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid #b9c6c8; color: #51666d; font: .76rem var(--mono); }

.final-cta { padding-block: clamp(6rem, 12vw, 11rem); text-align: center; }
.final-cta .eyebrow { margin-inline: auto; }
.final-cta h2 { max-width: 12ch; margin-inline: auto; }
.final-cta > p:not(.eyebrow) { max-width: 40rem; margin: 1.6rem auto; color: var(--muted); }
.final-cta .store-actions { justify-content: center; }
.final-cta .text-link { margin-top: 1.25rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 3rem var(--gutter); border-top: 1px solid var(--line); background: #040d10; color: var(--muted); }
.brand--footer { color: var(--paper); }
.site-footer p { max-width: 34rem; margin: .6rem 0 0; font-size: .86rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1.2rem; font-size: .82rem; }
.copyright { grid-column: 1 / -1; padding-top: 1.6rem; border-top: 1px solid var(--line); font: .68rem var(--mono); }

.document-page { background: #ebeee9; color: #13272d; }
.document-page .site-header { background: color-mix(in srgb, var(--ink) 95%, transparent); color: var(--paper); }
.document-page .site-footer { color: var(--muted); }
.document { max-width: 860px; padding-block: clamp(4rem, 9vw, 8rem); }
.document > header { padding-bottom: 3rem; border-bottom: 3px solid #13272d; }
.document h1 { max-width: none; font-size: clamp(3rem, 7vw, 5.4rem); }
.document .eyebrow { color: #067367; }
.document-summary { max-width: 48rem; margin: 1.8rem 0; color: #486068; font-size: 1.2rem; }
.document-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; font: .72rem var(--mono); text-transform: uppercase; }
.document-meta strong { color: #8d5000; }
.document > section { padding-block: 2.5rem; border-bottom: 1px solid #b9c6c8; }
.document h2 { margin-bottom: 1.5rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.document p, .document li { color: #334c54; }
.document ul { padding-left: 1.2rem; }
.document a { color: #086d63; }
.not-found { min-height: 70svh; padding-block: 10rem; }
.not-found p:not(.eyebrow) { max-width: 42rem; color: #486068; font-size: 1.2rem; }
.button-link { display: inline-flex; margin-top: 1.5rem; padding: .8rem 1.1rem; background: var(--ink); color: var(--paper); font: .78rem var(--mono); text-decoration: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .primary-nav { position: absolute; top: 74px; right: 0; left: 0; display: none; align-items: stretch; padding: 1.2rem var(--gutter) 1.6rem; border-bottom: 1px solid var(--line); background: var(--ink); }
  .primary-nav[data-open="true"] { display: grid; }
  .locale-links { width: fit-content; margin-top: .5rem; padding: 0; border: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 3rem; }
  .signal-visual { width: min(68vw, 410px); margin-bottom: 5rem; }
  .how ol { grid-template-columns: 1fr; }
  .how li { min-height: auto; }
  .how h3 { margin-top: 2rem; }
  .feature, .safety .section-shell { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .feature { min-height: auto; }
  .safety-note { grid-column: auto; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; }
  .primary-nav { top: 66px; }
  .hero-copy { padding-top: 4rem; }
  .hero h1 { max-width: none; font-size: clamp(3.2rem, 14vw, 4.2rem); }
  .signal-visual { display: none; }
  .store-button { width: 100%; }
  .feature { padding-block: 4.5rem; }
  .safety li { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .copyright { grid-column: auto; }
}

@media (min-width: 1600px) {
  :root { --content: 1380px; }
  .hero-copy { max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--content)) / 2)); }
}

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