:root {
  --bg: #d7ece3;
  --bg-elevated: #f4faf6;
  --bg-subtle: #e4f2eb;
  --paper: #fbfefc;
  --fg: #16241e;
  --ink: #10211b;
  --muted: #4d645b;
  --subtle: #6a8076;
  --accent: #1a7a86;
  --accent-dim: #d4eef1;
  --accent-fg: #f7fbf9;
  --border: color-mix(in oklab, var(--ink) 10%, transparent);
  --border-strong: color-mix(in oklab, var(--ink) 18%, transparent);
  --ok: #2f7a56;
  --warn: #9a6b20;
  --alert: #b44545;
  --hr: #1a7a86;
  --spo: #2f7a56;
  --bp: #b56a2a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --nav-h: 72px;
  --motion-quick: 150ms;
  --motion-fast: 250ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-device: 0 28px 60px color-mix(in oklab, var(--ink) 16%, transparent);
  color-scheme: light;
}

html.hud-skin {
  --bg: #05080d;
  --bg-elevated: #0b1219;
  --bg-subtle: #111b24;
  --paper: #0b1219;
  --fg: #e8f2f6;
  --ink: #e8f2f6;
  --muted: #7a93a3;
  --subtle: #4d6573;
  --accent: #4ad4e8;
  --accent-dim: #163944;
  --accent-fg: #041016;
  --border: color-mix(in oklab, #e8f2f6 12%, transparent);
  --border-strong: color-mix(in oklab, #e8f2f6 22%, transparent);
  --ok: #5ee0a0;
  --warn: #e2c36b;
  --alert: #ef7b7b;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
}

html, body { min-height: 100%; margin: 0; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

button:not(:disabled),
[role="button"]:not(:disabled) { cursor: pointer; }

h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
p { text-wrap: pretty; }

::selection {
  background: color-mix(in oklab, var(--accent) 28%, transparent);
  color: var(--ink);
}

.mark {
  font-family: var(--font-display);
  letter-spacing: 0.42em;
  font-weight: 500;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* Overlapping mint discs — Teton-style field, S U L E ice/cyan mix */
.orbs {
  position: absolute;
  inset: 0 0 auto;
  height: 140vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
}
.o1 {
  width: min(820px, 78vw);
  height: min(820px, 78vw);
  top: -6%;
  right: -12%;
  background: #c3e0d2;
}
.o2 {
  width: min(560px, 56vw);
  height: min(560px, 56vw);
  top: 10%;
  right: 16%;
  background: #d4eadc;
}
.o3 {
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  top: 42%;
  right: -6%;
  background: #b9ddd8;
}
.o4 {
  width: min(480px, 52vw);
  height: min(480px, 52vw);
  top: -8%;
  left: -14%;
  background: #cfe8de;
  opacity: 0.85;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav .mark { font-size: 1.15rem; color: var(--ink); letter-spacing: 0.38em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.875rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--motion-quick) var(--ease-out), transform var(--motion-quick) var(--ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  white-space: nowrap;
}
.btn-primary:hover { background: #0a1612; color: #fff; }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 32px) 0 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  width: min(1200px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero h1,
.hero h1.mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  letter-spacing: 0.2em;
  line-height: 1.05;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: visible;
}

.lede {
  margin: 22px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.lede strong { color: var(--ink); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.fine {
  margin-top: 20px;
  font-size: 12px;
  color: var(--subtle);
  max-width: 42ch;
}

.hero-film {
  position: relative;
  width: 100%;
}
.hero-film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  object-fit: contain;
  background: #05080d;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 1px 0 color-mix(in oklab, #fff 28%, transparent),
    0 28px 70px rgba(16, 33, 28, 0.2);
}
.hero-film.is-playing video { border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; }
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-2xl);
  background: color-mix(in oklab, #05080d 28%, transparent);
  color: #f4faf6;
  cursor: pointer;
}
.film-play:hover { background: color-mix(in oklab, #05080d 18%, transparent); }
.hero-film.is-playing .film-play { display: none; }
.film-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fbfefc;
  box-shadow: 0 10px 28px rgba(5, 8, 13, 0.28);
  position: relative;
}
.film-play-icon::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #10211b;
}
.film-play-copy { text-align: center; }
.film-play-copy b {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.film-play-copy em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, #f4faf6 72%, transparent);
}

.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-row b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}
.stat-row span { color: var(--subtle); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

section { padding: 88px 0; position: relative; z-index: 1; }
.system { padding-top: 24px; }
.section-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 16px;
}
.section-h {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.section-p { color: var(--muted); max-width: 62ch; }

.rail {
  padding: 64px 0 72px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.rail-head { width: min(1160px, calc(100% - 40px)); margin: 0 auto 28px; }
.marquee {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: march 90s linear infinite;
}
.marquee.reverse { animation-direction: reverse; animation-duration: 108s; }
.marquee.slow { animation-duration: 124s; }
.logo-chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-chip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f3f8f4;
  border-radius: 10px;
  padding: 5px;
  flex: none;
}
.logo-chip .name { font-weight: 500; }
.track { overflow: hidden; margin-bottom: 12px; }

@keyframes march {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Device frames */
.phone { margin: 0; }
.phone-shell {
  background: #111411;
  border-radius: 36px;
  padding: 12px 10px 14px;
  box-shadow: var(--shadow-device);
  position: relative;
}
.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 3px;
  background: #0a0c0a;
  border-radius: 2px;
}
.phone-shell::before { top: 92px; height: 36px; }
.phone-shell::after { top: 140px; height: 52px; }
.island {
  display: block;
  width: 92px;
  height: 22px;
  margin: 0 auto 8px;
  background: #000;
  border-radius: 999px;
}
.phone-shell img {
  width: 100%;
  aspect-ratio: 9 / 19.4;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 22px;
  background: #05080d;
}
.phone figcaption,
.laptop figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.product { padding: 48px 0 80px; }
.product-intro { margin-bottom: 8px; }

.stage-band { padding: 24px 0 8px; overflow: visible; }

.cluster-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 680px;
  padding: 32px 12px 56px;
}
.cluster-phones .phone { width: min(270px, 28vw); }
.cluster-phones .p-left {
  transform: rotate(-8deg) translate(12px, 48px);
  z-index: 1;
}
.cluster-phones .p-center {
  width: min(320px, 34vw);
  transform: translateY(-20px);
  z-index: 3;
  margin: 0 -36px;
}
.cluster-phones .p-right {
  transform: rotate(8deg) translate(-12px, 56px);
  z-index: 2;
}

.cluster-desk {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 12px 16px 48px;
  position: relative;
}
.laptop { width: min(860px, 72vw); margin: 0; z-index: 1; }
.lid {
  background: #1c1f1d;
  border-radius: 16px 16px 10px 10px;
  padding: 16px 14px 12px;
  box-shadow: var(--shadow-device);
}
.lid .cam {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3f3c;
  margin: 0 auto 10px;
}
.lid img {
  width: 100%;
  border-radius: 4px;
  background: #05080d;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.base {
  height: 16px;
  background: linear-gradient(#d8dcd6, #b4b8b2);
  border-radius: 0 0 18px 18px;
  position: relative;
}
.base span {
  display: block;
  width: 16%;
  height: 7px;
  margin: 0 auto;
  background: #9aa198;
  border-radius: 0 0 8px 8px;
}
.p-desk {
  width: min(240px, 28vw);
  margin: 0 0 38px -88px;
  transform: rotate(9deg);
  z-index: 2;
}

.note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--subtle);
}

.study-sec { padding-top: 40px; }
.study {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: start;
}

.monitor {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 20px 12px;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--ink) 6%, transparent);
}
.monitor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.monitor-sub { margin: 0; font-size: 12px; color: var(--subtle); }
.monitor-now {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.monitor-now b {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-right: 4px;
}
.nv { display: inline-flex; align-items: baseline; gap: 6px; }
.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.swatch.hr { background: var(--hr); }
.swatch.spo { background: var(--spo); }
.swatch.bp { background: var(--bp); }
.monitor-plot { position: relative; }
.monitor canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}
.monitor-foot {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.04em;
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transform: translate(-20%, -120%);
  z-index: 3;
}

.metrics { display: grid; gap: 4px; padding-top: 12px; }
.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.metric b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 500;
}
.metric span { color: var(--muted); font-size: 0.9rem; }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--subtle);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a:hover { color: var(--ink); }

.legal {
  padding: calc(var(--nav-h) + 56px) 0 80px;
  position: relative;
  z-index: 1;
}
.legal h1 { font-size: 2rem; margin: 8px 0 24px; color: var(--ink); }
.legal .prose { max-width: 68ch; color: var(--muted); }
.legal .prose p { margin: 0 0 14px; }
.legal .prose h2 {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 10px;
}

.auth-shell {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 16px 40px color-mix(in oklab, var(--ink) 8%, transparent);
}
.auth-card h1 { font-size: 1.5rem; margin: 8px 0 8px; color: var(--ink); }
.auth-card p.sub { color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--subtle); letter-spacing: 0.08em; text-transform: uppercase; }
.field input {
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 0 12px;
}
.field input:focus { outline: 2px solid color-mix(in oklab, var(--accent) 50%, transparent); outline-offset: 1px; }
.err { color: var(--alert); font-size: 0.875rem; min-height: 1.2em; margin: 0 0 10px; }
.switch-mode {
  margin-top: 16px;
  background: none;
  border: 0;
  color: var(--accent);
  padding: 0;
  font-size: 0.875rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in oklab, var(--ink) 38%, transparent);
  display: grid;
  place-items: center;
  padding: 20px;
}
.overlay[hidden] { display: none; }
.terms-box {
  width: min(920px, 100%);
  height: min(88svh, 900px);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--fg);
}
.terms-box header {
  padding: 22px 28px 12px;
  border-bottom: 1px solid var(--border);
}
.terms-box header h2 { font-size: 1.4rem; color: var(--ink); }
.terms-box .scroll {
  flex: 1;
  overflow: auto;
  padding: 22px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
.terms-box .scroll h3 { color: var(--ink); font-size: 0.9rem; margin: 18px 0 8px; }
.terms-box footer {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink);
  max-width: 52ch;
}
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

.dash {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 16px) 16px 40px;
}
.banner {
  width: min(1120px, 100%);
  margin: 0 auto 16px;
  background: var(--bg-elevated);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border));
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.banner p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 62ch; }
.hud {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 70svh;
  background:
    radial-gradient(ellipse at 50% 45%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 55%),
    var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.chips {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vital {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}
.vital label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}
.vital b {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--subtle);
}
.hud-center {
  position: absolute;
  inset: 22% 18% 18%;
  display: grid;
  place-items: center;
}
.hud-center .ghost {
  width: min(280px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, transparent);
  display: grid;
  place-items: center;
  color: var(--subtle);
  text-align: center;
  font-size: 0.85rem;
  padding: 24px;
}

@media (max-width: 960px) {
  .hero-grid, .study, .privacy-grid { grid-template-columns: 1fr; }
  .hero-film { margin-top: 8px; }
  .hero-film video,
  .film-play { border-radius: var(--radius-xl); }
  .cluster-phones {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 12px 0 32px;
  }
  .cluster-phones .phone,
  .cluster-phones .p-center {
    width: min(280px, 78vw);
    margin: -48px 0;
    transform: none;
  }
  .cluster-phones .p-left { transform: rotate(-4deg); z-index: 1; }
  .cluster-phones .p-center { transform: none; z-index: 3; margin: -64px 0; }
  .cluster-phones .p-right { transform: rotate(4deg); z-index: 2; }
  .cluster-desk { flex-direction: column; align-items: center; }
  .laptop { width: min(860px, 92vw); }
  .p-desk {
    width: min(240px, 64vw);
    margin: -72px 0 0;
    transform: rotate(6deg);
  }
  .nav { padding: 0 16px; gap: 12px; }
  .nav-links { gap: 10px; }
  .stat-row { flex-wrap: wrap; gap: 16px; }
  .hero h1 { letter-spacing: 0.16em; font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .terms-box footer { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}
