/* ONARU design system — source of truth: docs/DESIGN_SYSTEM.md
   Language: soft white frosted glass, white clay forms, one glossy cobalt orb,
   black pill actions, light grotesk type. */
:root {
  --bg: #e7e8ec;
  --bg-deep: #d9dbe2;
  --glass: rgba(232, 244, 255, 0.38);
  --glass-strong: rgba(239, 248, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --clay: #f4f4f6;
  --ink: #0d0f14;
  --ink-2: #3a3e48;
  --ink-3: #6d727e;
  --line: rgba(13, 15, 20, 0.08);
  --cobalt: #1f4dff;
  --cobalt-hi: #7aa6ff;
  --violet: #6a3dff;
  --ok: #138a5b;
  --warn: #b26a00;
  --risk: #c2283a;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-panel: 0 30px 80px -30px rgba(25, 30, 60, 0.28), inset 0 1px 0 var(--glass-edge);
  --shadow-clay: 0 18px 40px -18px rgba(25, 30, 60, 0.35);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% 10%, #f3f4f7 0%, var(--bg) 55%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- primitives ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; font-size: 15px; }
.wordmark .mark { width: 25px; height: 25px; flex: 0 0 auto; background: url("/icons/icon.svg") center / contain no-repeat; }
.wordmark .mark::before,.wordmark .mark::after { content: none; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 0; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(13,15,20,.6); }
.pill-dark:hover { background: #22252e; }
.pill-light { background: var(--glass-strong); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -14px rgba(25,30,60,.4); backdrop-filter: blur(14px); }
.pill-light:hover { background: #fff; }
.pill .chev { width: 26px; height: 26px; margin-right: -12px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.pill-dark .chev { background: #fff; color: var(--ink); }

.nav-dock {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
}
.nav-dock a { padding: 9px 16px; border-radius: var(--radius-pill); text-decoration: none; font-size: 13px; color: rgba(255,255,255,.78); }
.nav-dock a:hover, .nav-dock a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }

.glass {
  background: linear-gradient(132deg, rgba(255,255,255,.62), rgba(85,219,255,.12) 48%, rgba(151,119,255,.12));
  border: 1px solid rgba(129, 199, 255, .24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel), 0 0 28px rgba(91, 200, 255, .08);
  backdrop-filter: blur(24px) saturate(1.65);
  -webkit-backdrop-filter: blur(24px) saturate(1.65);
}
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 12px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.5); color: var(--ink-2);
}
.tag-dark { background: var(--ink); color: #fff; box-shadow: none; }
.concept-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.topbar {
  position: fixed; inset: 18px 18px auto 18px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* ---------- landing: the page is one continuous moving picture ---------- */
.film { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.film-frame {
  position: fixed; inset: 64px 18px 18px 18px; z-index: 1; pointer-events: none;
  border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 1px 0 #fff;
}
.beats { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.beat {
  position: absolute; left: 50%; bottom: 13vh; width: min(760px, calc(100% - 48px));
  transform: translate(-50%, 24px); opacity: 0; text-align: center;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: blur(8px);
}
.beat.on { opacity: 1; transform: translate(-50%, 0); filter: blur(0); pointer-events: auto; }
.beat h1, .beat h2 { font-weight: 300; letter-spacing: -0.045em; line-height: .98; margin: 0 0 14px; font-size: clamp(40px, 7vw, 92px); }
.beat p { margin: 0 auto; max-width: 520px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; }
.beat .row { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.beat-top { bottom: auto; top: 16vh; }

.film-controls {
  position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
}
.progress { display: flex; gap: 6px; }
.progress button {
  width: 34px; height: 4px; border-radius: 2px; border: 0; padding: 0; cursor: pointer;
  background: rgba(13,15,20,.14); overflow: hidden; position: relative;
}
.progress button i { position: absolute; inset: 0; width: 0; background: var(--ink); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 12px;
}

/* ---------- waitlist ---------- */
.stage { min-height: 100%; display: grid; place-items: center; padding: 96px 18px 40px; position: relative; z-index: 2; }
.panel { width: min(1080px, 100%); padding: clamp(24px, 5vw, 56px); display: grid; gap: 36px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.panel h1 { font-weight: 300; letter-spacing: -0.045em; line-height: .98; font-size: clamp(40px, 6vw, 76px); margin: 14px 0 16px; }
.panel .lede { color: var(--ink-2); line-height: 1.6; max-width: 460px; }
.gets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.gets li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 15px; }
.gets b { font-weight: 500; color: var(--ink); min-width: 18px; }
.form-card { padding: 28px; border-radius: var(--radius-lg); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.field input[type="email"] {
  width: 100%; height: 52px; padding: 0 18px; border-radius: var(--radius-pill); border: 0; font: inherit; font-size: 16px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--risk); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.status { min-height: 22px; font-size: 14px; margin-top: 12px; }
.status.ok { color: var(--ok); } .status.err { color: var(--risk); }
.form-card .pill { width: 100%; justify-content: center; height: 52px; }
.fineprint { font-size: 12px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* ---------- app (ONARU OS) ---------- */
.os { min-height: 100%; display: grid; grid-template-columns: 300px 1fr 320px; gap: 18px; padding: 84px 18px 18px; position: relative; z-index: 2; }
.os .col { display: grid; gap: 18px; align-content: start; }
.os .card { padding: 20px; }
.os h2 { font-size: 13px; font-weight: 500; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.core { min-height: 560px; display: grid; grid-template-rows: auto 1fr auto; padding: 22px; }
.orb-wrap { position: relative; display: grid; place-items: center; }
.orb-btn { position: relative; width: min(340px, 70vw); aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.orb-btn canvas { width: 100%; height: 100%; display: block; }
.orb-hint { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 8px; min-height: 20px; }
.heard { text-align: center; font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; letter-spacing: -0.02em; min-height: 36px; margin: 10px 0 0; }
.ask { display: flex; gap: 8px; margin-top: 14px; }
.ask input { flex: 1; height: 46px; border-radius: var(--radius-pill); border: 0; padding: 0 18px; font: inherit; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.plan { margin-top: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); display: none; }
.plan.on { display: block; animation: rise .5s var(--ease); }
.plan dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.plan dt { color: var(--ink-3); } .plan dd { margin: 0; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.risk-low { color: var(--ok); } .risk-medium { color: var(--warn); } .risk-high { color: var(--risk); }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pipeline li { display: flex; gap: 10px; align-items: center; color: var(--ink-3); }
.pipeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(13,15,20,.15); flex: none; }
.pipeline li.done { color: var(--ink); } .pipeline li.done::before { background: var(--ink); }
.pipeline li.now { color: var(--cobalt); } .pipeline li.now::before { background: var(--cobalt); box-shadow: 0 0 0 4px rgba(31,77,255,.15); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.list li { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.list li small { color: var(--ink-3); }
.list .x { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 16px; }
.empty { color: var(--ink-3); font-size: 13px; }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.layer { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.layer small { display: block; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.layer.live small { color: var(--ok); }
.voice-setting { display: flex; gap: 10px; align-items: center; margin: 12px 0; color: var(--ink-2); font-size: 13px; }
.voice-setting input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.voice-select-label { align-items: flex-start; flex-direction: column; gap: 7px; }
.voice-select-label select { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,.8); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.voice-note { margin: 10px 0; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.voice-listen { width: 100%; justify-content: center; margin-top: 4px; }
.voice-listen[aria-pressed="true"] { background: var(--ink); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(231,232,236,.6); backdrop-filter: blur(8px); padding: 18px; }
.modal.on { display: grid; }
.modal .glass { max-width: 440px; padding: 28px; }
.modal h3 { font-weight: 400; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; }
.modal p { color: var(--ink-2); line-height: 1.55; margin: 0 0 18px; }

.legal { max-width: 720px; margin: 0 auto; padding: 110px 22px 60px; line-height: 1.65; color: var(--ink-2); position: relative; z-index: 2; }
.legal h1 { color: var(--ink); font-weight: 300; letter-spacing: -0.04em; font-size: 48px; }
.legal h2 { color: var(--ink); font-weight: 500; font-size: 17px; margin-top: 28px; }
.onaru-footer {
  position: relative; z-index: 2; width: min(1240px, calc(100% - 40px)); margin: 0 auto;
  padding: 24px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 14px 24px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px;
}
.onaru-footer p { margin: 0; }
.onaru-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.onaru-footer a { text-decoration: none; }
.onaru-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.onaru-footer small { flex-basis: 100%; }
.life-page .onaru-footer {
  width: min(1452px, calc(100% - 48px)); color: #b7c7d0;
  border-color: rgba(143, 221, 255, .18);
}
.life-page .onaru-footer a:hover { color: #f3fbff; }
.game-page .onaru-footer {
  width: min(1076px, calc(100% - 44px)); color: #c6c5c0;
  border-color: rgba(126, 220, 255, .2);
}
.game-page .onaru-footer a:hover { color: #fff; }
@media (max-width: 620px) {
  .onaru-footer { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; }
}

/* ---------- landing: interactive command simulation ---------- */
.landing-page { min-height: 100%; }
.landing-main { position: relative; z-index: 2; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding-top: 78px; }
.landing-hero {
  min-height: min(820px, calc(100svh - 78px)); padding: clamp(40px, 8vh, 90px) 0 84px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; position: relative;
}
.hero-copy { max-width: 570px; }
.hero-copy h1,.section-intro h2,.story-copy h2,.landing-download h2 { font-weight: 300; letter-spacing: -.055em; line-height: .96; }
.hero-copy h1 { font-size: clamp(54px, 8vw, 100px); margin: 24px 0; }
.hero-copy h1 span { color: var(--cobalt); }
.hero-lede { max-width: 470px; color: var(--ink-2); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }
.hero-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.command-demo { padding: clamp(22px, 4vw, 40px); width: 100%; max-width: 600px; justify-self: end; }
.demo-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.demo-topline h2 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 34px); font-weight: 300; letter-spacing: -.04em; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(19,138,91,.1); }
.demo-orb-wrap { display: grid; justify-items: center; margin: 14px auto 18px; }
.demo-orb { display: grid; place-items: center; width: clamp(114px, 18vw, 176px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 27%, #eff5ff, #7aa6ff 25%, #1f4dff 61%, #3817c8); box-shadow: 0 0 0 10px rgba(255,255,255,.32), 0 16px 65px rgba(31,77,255,.28); animation: demo-orb-breathe 5s ease-in-out infinite; }
.demo-orb span { width: 80%; height: 80%; border: 1px solid rgba(255,255,255,.66); border-radius: 47% 53% 49% 51%; transform: rotate(-18deg); box-shadow: 0 0 18px rgba(255,255,255,.45), inset 0 0 24px rgba(255,255,255,.3); }
.demo-orb.listening { animation: demo-orb-listen .8s ease-in-out infinite alternate; }
.demo-orb.thinking { animation: demo-orb-think 1.2s ease-in-out infinite; }
.demo-orb-wrap p { color: var(--ink-3); font-size: 13px; margin: 18px 0 0; }
.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.demo-speak { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.demo-speak input { accent-color: var(--cobalt); width: 17px; height: 17px; }
.demo-result { margin-top: 20px; padding: 18px; border-radius: var(--radius-lg); background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); animation: rise .35s var(--ease); }
.demo-result[hidden] { display: none; }
.demo-result > div > p { font-size: 18px; line-height: 1.45; margin: 8px 0 16px; }
.demo-result details { border-top: 1px solid var(--line); padding-top: 12px; }
.demo-result summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.demo-result dl { display: grid; grid-template-columns: 90px 1fr; gap: 7px 12px; font-size: 13px; line-height: 1.45; margin: 12px 0 0; }
.demo-result dt { color: var(--ink-3); }
.demo-result dd { margin: 0; }
.demo-boundary { font-size: 11px; line-height: 1.45; color: var(--ink-3); margin: 14px 0 0; }
.scroll-cue { position: absolute; bottom: 24px; left: 0; text-decoration: none; color: var(--ink-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.scroll-cue span { display: block; height: 34px; width: 1px; background: var(--cobalt); transform-origin: top; animation: scroll-pulse 1.7s ease-in-out infinite; }
.landing-section { padding: clamp(72px, 12vh, 140px) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 100px); align-items: center; }
.section-intro h2 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0; }
.section-intro p,.story-copy p,.landing-download p { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 440px; }
.flow-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.flow-card { padding: 24px; min-height: 175px; }
.flow-card > span { color: var(--cobalt); font-size: 12px; letter-spacing: .1em; }
.flow-card h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 400; }
.flow-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
.story-preview { position: relative; min-height: 390px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(26px, 6vw, 70px); background: linear-gradient(120deg,rgba(255,255,255,.78),rgba(239,241,247,.52)); box-shadow: var(--shadow-panel); }
.story-scene-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-content: center; min-width: 0; perspective: 1000px; }
.story-scene-card { --story-accent: #d4b760; --story-glow: rgba(212,183,96,.24); position: relative; display: grid; min-height: 116px; grid-template-columns: 52px minmax(0,1fr); grid-template-rows: auto 1fr auto; align-items: center; gap: 5px 10px; padding: 12px; overflow: hidden; border: 1px solid rgba(220,235,231,.16); border-radius: 16px; background: linear-gradient(145deg,rgba(36,53,62,.88),rgba(12,21,27,.91)); box-shadow: 0 13px 28px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.1); color: #edf1e9; text-decoration: none; transform: perspective(780px) rotateX(5deg) rotateY(-4deg); transform-style: preserve-3d; animation: story-card-float 6s ease-in-out infinite; transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease; }
.story-scene-card:nth-child(even) { transform: perspective(780px) rotateX(5deg) rotateY(4deg); animation-delay: -2.6s; }
.story-scene-card:hover,.story-scene-card:focus-visible { z-index: 1; border-color: var(--story-accent); box-shadow: 0 20px 42px var(--story-glow),inset 0 1px rgba(255,255,255,.16); transform: perspective(780px) rotateX(0) rotateY(0) translateY(-5px) scale(1.025); animation-play-state: paused; }
.story-scene-card:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 3px; }
.story-card-number { grid-column: 1/-1; color: var(--story-accent); font-size: 8px; font-weight: 600; letter-spacing: .15em; }
.story-card-art { position: relative; display: grid; width: 48px; height: 48px; grid-column: 1; grid-row: 2/4; place-items: center; transform-style: preserve-3d; }
.story-card-art::before { position: absolute; inset: 3px; border: 1px solid var(--story-accent); border-radius: 50%; opacity: .58; content: ""; transform: rotateX(67deg) rotateZ(-24deg); animation: story-card-orbit 9s linear infinite; }
.story-card-art::after { position: absolute; width: 27px; height: 27px; border: 1px solid var(--story-accent); border-radius: 50%; background: radial-gradient(circle at 35% 30%,#ffffffb8,var(--story-accent) 42%,var(--story-glow) 76%); box-shadow: 0 0 20px var(--story-glow); content: ""; transform: translateZ(12px); animation: story-card-glow 3.8s ease-in-out infinite; }
.story-card-art i,.story-card-art b { position: absolute; z-index: 1; display: block; background: linear-gradient(145deg,#f6f1d4,var(--story-accent) 56%,#3a5960); box-shadow: 0 8px 15px #0007,0 0 14px var(--story-glow); transform-style: preserve-3d; }
.story-card-art i { width: 19px; height: 13px; border-radius: 4px; transform: translate3d(4px,12px,17px) rotate(-25deg); }
.story-card-art b { width: 8px; height: 8px; border-radius: 2px; transform: translate3d(-12px,-9px,22px) rotate(35deg); }
.story-scene-card strong { grid-column: 2; grid-row: 2; align-self: end; font-size: 12px; font-weight: 500; line-height: 1.25; }
.story-scene-card small { grid-column: 2; grid-row: 3; align-self: start; color: #aebcbd; font-size: 9px; line-height: 1.3; }
.story-scene-card--resource { --story-accent: #e3a973; --story-glow: rgba(227,169,115,.24); }
.story-scene-card--resource .story-card-art::after { width: 22px; height: 17px; border-radius: 45% 38% 44% 35%; transform: translate3d(-4px,6px,13px) rotate(-24deg); }
.story-scene-card--creation { --story-accent: #9ed7c5; --story-glow: rgba(112,220,189,.23); }
.story-scene-card--creation .story-card-art i { width: 12px; height: 30px; border-radius: 3px; transform: translate3d(0,0,20px); }
.story-scene-card--exchange { --story-accent: #8dd2e0; --story-glow: rgba(103,204,227,.23); }
.story-scene-card--exchange .story-card-art::after { width: 23px; height: 23px; border-radius: 50%; }
.story-scene-card--exchange .story-card-art i { width: 5px; height: 18px; transform: translate3d(0,0,23px) rotate(25deg); }
.story-scene-card--choice { --story-accent: #d6bd82; --story-glow: rgba(214,189,130,.23); }
.story-scene-card--choice .story-card-art i { transform: translate3d(-7px,9px,18px) rotate(-42deg); }
.story-scene-card--choice .story-card-art b { transform: translate3d(9px,9px,18px) rotate(42deg); }
.story-scene-card--consequences { --story-accent: #a9d3a4; --story-glow: rgba(137,207,140,.22); }
.story-scene-card--consequences .story-card-art i { width: 9px; height: 23px; transform: translate3d(-7px,2px,17px); }
.story-scene-card--consequences .story-card-art b { width: 11px; height: 15px; transform: translate3d(8px,6px,18px); }
.story-scene-card--completion { --story-accent: #cfb2f1; --story-glow: rgba(189,143,239,.24); }
.story-scene-card--completion .story-card-art::after { width: 20px; height: 20px; border: 3px solid var(--story-accent); background: transparent; box-shadow: 0 0 20px var(--story-glow),inset 0 0 12px var(--story-glow); }
.story-scene-card--completion .story-card-art i { width: 5px; height: 5px; border-radius: 50%; transform: translate3d(0,-21px,25px); }
.story-preview-note { display: block; margin-top: 14px; color: #9aabad; font-size: 11px; line-height: 1.45; }
.story-copy { grid-column: 2; position: relative; z-index: 1; }
.story-copy h2 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0; }
.landing-download { margin: clamp(70px, 10vh, 120px) 0; padding: clamp(26px, 5vw, 58px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.landing-download h2 { font-size: clamp(36px, 5vw, 56px); margin: 10px 0; }
.landing-footer { position: relative; z-index: 2; width: min(1240px,calc(100% - 40px)); margin: 0 auto; padding: 24px 0 38px; display: flex; justify-content: space-between; gap: 18px; align-items: center; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.landing-footer p { margin: 0; }
.install-hub { grid-column: 1/-1; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.install-hub h1 { margin: 6px 0; font-size: clamp(24px,3vw,36px); font-weight: 300; letter-spacing: -.04em; }
.install-options { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.install-options .voice-note { flex-basis: 100%; text-align: right; }
[data-connected="false"] { color: var(--warn); }
[data-error="true"] { color: var(--risk); }
button:disabled { opacity: .55; cursor: not-allowed; }
@keyframes demo-orb-breathe { 50% { transform: scale(1.045); box-shadow: 0 0 0 15px rgba(255,255,255,.25), 0 22px 80px rgba(31,77,255,.35); } }
@keyframes demo-orb-listen { to { transform: scale(1.1); filter: brightness(1.16); } }
@keyframes demo-orb-think { 50% { transform: scale(.94) rotate(12deg); filter: hue-rotate(24deg); } }
@keyframes story-float { 50% { transform: translate(18px,-12px) scale(1.04); } }
@keyframes story-card-float { 50% { translate: 0 -4px; } }
@keyframes story-card-orbit { to { rotate: 1turn; } }
@keyframes story-card-glow { 50% { filter: brightness(1.3); } }
@keyframes scroll-pulse { 50% { transform: scaleY(.45); opacity: .45; } }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr 1fr; gap: 24px; }
  .landing-main { width: min(100% - 28px,720px); }
  .landing-section { grid-template-columns: 1fr; }
  .story-preview { min-height: 430px; gap: 24px; }
}
@media (max-width: 680px) {
  .landing-main { width: calc(100% - 24px); padding-top: 80px; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; padding: 40px 0 72px; gap: 26px; }
  .hero-copy h1 { font-size: clamp(52px,14vw,76px); }
  .command-demo { justify-self: stretch; padding: 22px; }
  .scroll-cue { display: none; }
  .landing-section { padding: 76px 0; }
  .flow-grid { gap: 10px; }
  .flow-card { padding: 18px; min-height: 158px; }
  .story-preview { min-height: 0; grid-template-columns: 1fr; align-items: stretch; gap: 28px; }
  .story-scene-cards { gap: 9px; }
  .story-scene-card { min-height: 102px; padding: 10px; }
  .story-copy { grid-column: 1; }
  .landing-download,.landing-footer { align-items: flex-start; flex-direction: column; }
  .landing-footer { width: calc(100% - 24px); }
  .install-hub { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .install-options { justify-content: flex-start; }
  .install-options .voice-note { text-align: left; }
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .os { grid-template-columns: 1fr; }
  .os .col-core { order: -1; }
}
@media (max-width: 820px) {
  .panel { grid-template-columns: 1fr; }
  .topbar .nav-dock { display: none; }
  .film-frame { inset: 64px 10px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.life-preview{position:relative;display:grid;grid-template-columns:1fr .8fr;align-items:center;min-height:500px;margin:0 32px 100px;padding:clamp(32px,7vw,100px);overflow:hidden;border:1px solid #ffffff24;border-radius:28px;background:#111923;color:#f2f0e8}
.life-preview-copy{position:relative;z-index:2;max-width:540px}
.life-preview-copy h2{margin:16px 0;font-size:clamp(48px,7vw,88px);font-weight:400;line-height:.96;letter-spacing:-.055em}
.life-preview-copy>p:not(.concept-label){max-width:470px;color:#c0c8c6;line-height:1.7}
.life-preview .concept-label{color:#c6d3ae}
.life-preview .hero-links{flex-wrap:wrap;margin-top:25px}
.life-preview-note{font-size:10px;color:#a6b0b0}
.life-preview-art{position:relative;width:min(100%,460px);aspect-ratio:1;margin:auto;border:1px solid #aebd9b38;border-radius:50%;background:radial-gradient(circle at 50% 50%,#d6cb9e20 0,#78a79019 28%,transparent 62%)}
.life-preview-orbit{position:absolute;inset:17%;border:1px solid #c9d4ba44;border-radius:50%;animation:life-orbit 26s linear infinite}
.life-preview-orbit:before,.life-preview-orbit:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#ced9af;box-shadow:0 0 28px #d1daae;top:13%;left:11%}
.life-preview-orbit:after{top:auto;left:auto;right:4%;bottom:25%;background:#78b8ae;box-shadow:0 0 28px #78b8ae}
.life-preview-glow{position:absolute;inset:34%;border:1px solid #d8c49680;border-radius:50%;background:radial-gradient(circle,#bd996426,transparent 70%);box-shadow:0 0 65px #86a88e1f}
.life-preview-art>span{position:absolute;color:#c4d0bd;font-size:9px;letter-spacing:.2em}
.life-preview-art>span:nth-of-type(1){top:12%;left:45%}.life-preview-art>span:nth-of-type(2){right:4%;top:55%}.life-preview-art>span:nth-of-type(3){left:6%;bottom:17%}
.onaru-opener{width:min(1000px,calc(100vw - 32px));max-width:none;padding:18px;border:1px solid #ffffff32;border-radius:20px;background:#111923;color:#f2f0e8;box-shadow:0 25px 100px #0009}
.onaru-opener::backdrop{background:#080c12d9;backdrop-filter:blur(12px)}
.opener-header,.opener-footer{display:flex;align-items:center;justify-content:space-between;gap:20px}
.opener-header{padding:4px 4px 13px}
.opener-header h2{margin:5px 0 0;font-size:26px;font-weight:400}
.opener-header button{padding:8px 13px;border:1px solid #ffffff35;border-radius:999px;background:transparent;color:#f2f0e8;cursor:pointer}
.onaru-opener video{display:block;width:100%;max-height:min(65vh,600px);aspect-ratio:16/9;object-fit:cover;border-radius:12px;background:#080c12}
.opener-footer{padding:12px 3px 2px}
.opener-footer p{max-width:480px;margin:0;color:#bcc5c4;font-size:12px;line-height:1.5}
@keyframes life-orbit{to{transform:rotate(360deg)}}
@media(max-width:760px){.life-preview{grid-template-columns:1fr;margin:0 16px 70px;padding:34px 26px}.life-preview-art{width:70%;margin:32px auto 0}.opener-footer{align-items:flex-start;flex-direction:column}.onaru-opener{padding:12px}}
@media(prefers-reduced-motion:reduce){.life-preview-orbit{animation:none}}

/* Cinematic 3D landing surface; the app and waitlist retain the light design system. */
.landing-page {
  --bg: #0a1016;
  --bg-deep: #080c11;
  --glass: rgba(14, 23, 31, .72);
  --glass-strong: rgba(17, 27, 36, .92);
  --glass-edge: rgba(210, 231, 239, .16);
  --ink: #f1f5f4;
  --ink-2: #b4c0c4;
  --ink-3: #87969d;
  --line: rgba(219, 235, 238, .14);
  --cobalt: #9dd9dc;
  --cobalt-hi: #c5eeea;
  color-scheme: dark;
  min-height: 100%;
  color: var(--ink);
  background: #080c11;
}
.landing-page::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 9, 13, .88) 0%, rgba(5, 9, 13, .58) 38%, rgba(5, 9, 13, .14) 76%),
    linear-gradient(0deg, #080c11 0%, rgba(8, 12, 17, .1) 44%, rgba(8, 12, 17, .32) 100%);
}
body.landing-page {
  background: radial-gradient(ellipse at 54% 15%, #152934, #080c11 72%);
}
.landing-page .film { background: radial-gradient(ellipse at 52% 28%, #193241, #080c11 78%); }
.landing-page .film-frame {
  inset: 76px 18px 18px;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(220, 239, 237, .16), inset 0 1px 0 rgba(255,255,255,.08);
}
.landing-page .topbar { inset: 16px 22px auto; }
.landing-page .wordmark { color: #eef5f4; }
.landing-page .nav-dock {
  background: rgba(12, 19, 25, .67);
  box-shadow: inset 0 0 0 1px rgba(222, 239, 238, .13);
  backdrop-filter: blur(18px);
}
.landing-page .nav-dock a { color: rgba(235, 244, 242, .72); }
.landing-page .nav-dock a:hover,
.landing-page .nav-dock a[aria-current="page"] { background: rgba(208, 181, 105, .16); color: #f6e5b7; }
.landing-page .pill-dark {
  background: #d3b568;
  color: #111511;
  box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 0 24px rgba(211,181,104,.12);
}
.landing-page .pill-dark:hover { background: #ead08a; }
.landing-page .pill-dark .chev { background: #111511; color: #f1d991; }
.landing-page .pill-light {
  color: #edf4f1;
  background: rgba(216, 232, 229, .08);
  box-shadow: inset 0 0 0 1px rgba(216, 232, 229, .18);
}
.landing-page .pill-light:hover { background: rgba(216, 232, 229, .14); }
.landing-page .landing-main,
.landing-page .landing-footer { z-index: 2; }
.landing-page .landing-hero { min-height: min(900px, calc(100svh - 76px)); }
.landing-page .tag {
  color: #d7c78f;
  background: rgba(213, 181, 104, .1);
  box-shadow: inset 0 0 0 1px rgba(213, 181, 104, .28);
}
.landing-page .tag-dark { color: #f0d98e; background: rgba(213,181,104,.12); }
.landing-page .concept-label { color: #aebfc1; letter-spacing: .16em; }
.landing-page .hero-copy h1 { text-shadow: 0 12px 45px rgba(0,0,0,.34); }
.landing-page .hero-copy h1 span {
  color: #d8c07f;
  background: linear-gradient(100deg, #f1e0ae, #86c7c3 76%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-page .hero-lede { color: #c4d0d1; }
.landing-page .voice-note { color: #93a3a6; }
.landing-page .glass,
.landing-page .story-preview {
  border: 1px solid rgba(217, 234, 232, .15);
  background: linear-gradient(145deg, rgba(20, 32, 41, .83), rgba(10, 17, 23, .77));
  box-shadow: 0 30px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(235,247,242,.1);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}
.landing-page .command-demo { border-radius: 30px; }
.landing-page .demo-topline h2,
.landing-page .section-intro h2,
.landing-page .story-copy h2,
.landing-page .landing-download h2 { color: #f2f4ed; }
.landing-page .live-indicator { color: #b5c2c0; }
.landing-page .live-indicator i { background: #8fd3b7; box-shadow: 0 0 0 5px rgba(143,211,183,.1); }
.landing-page .demo-orb {
  background: radial-gradient(circle at 34% 27%, #f8eab9, #d4ae59 25%, #6b8e8a 61%, #202f55);
  box-shadow: 0 0 0 10px rgba(231,239,227,.08), 0 16px 65px rgba(103,165,165,.24);
}
.landing-page .demo-orb span { border-color: rgba(241,239,213,.72); }
.landing-page .demo-orb-wrap p { color: #b6c2c1; }
.landing-page .ask input {
  color: #eef3ee;
  background: rgba(5, 11, 15, .72);
  box-shadow: inset 0 0 0 1px rgba(221,236,231,.17);
}
.landing-page .ask input::placeholder { color: #859497; }
.landing-page .demo-speak { color: #becac8; }
.landing-page .demo-speak input { accent-color: #d3b568; }
.landing-page .demo-result {
  color: #e8efeb;
  background: rgba(7, 13, 18, .7);
  box-shadow: inset 0 0 0 1px rgba(221,236,231,.14);
}
.landing-page .demo-result details { border-color: rgba(221,236,231,.14); }
.landing-page .demo-result summary,
.landing-page .demo-result dt { color: #a8b7b7; }
.landing-page .demo-boundary { color: #94a2a4; }
.landing-page .landing-section { position: relative; }
.landing-page .section-intro p,
.landing-page .story-copy p,
.landing-page .landing-download p { color: #bac7c7; }
.landing-page .flow-card { min-height: 184px; background: rgba(12,20,26,.72); }
.landing-page .flow-card > span { color: #d5ba71; }
.landing-page .flow-card h3 { color: #eef2eb; }
.landing-page .flow-card p { color: #b0bebb; }
.landing-page .story-preview {
  min-height: 510px;
  background:
    linear-gradient(90deg, rgba(7,12,16,.04), rgba(7,12,16,.46) 47%, rgba(7,12,16,.76)),
    linear-gradient(145deg, rgba(21,37,46,.48), rgba(8,13,18,.76));
}
.landing-page .story-copy { max-width: 540px; }
.landing-page .landing-download { position: relative; }
.landing-page .landing-footer {
  color: #97a5a7;
  border-color: rgba(217,234,232,.14);
}
.landing-page .landing-footer a:last-child { color: #c4d0ce; }
.landing-page .scroll-cue { color: #b6c1bf; }
.landing-page .scroll-cue span { background: #d2b66c; }
.landing-page .film-controls { display: none; }

.os-vision-hub{grid-column:1/-1;display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:22px;padding:22px}
.os-vision-copy h2{margin:8px 0;font-size:clamp(25px,4vw,38px);font-weight:350;letter-spacing:-.04em}
.os-vision-copy p{max-width:620px;margin:0;color:#b3c0c0;line-height:1.55}
.os-vision-actions{display:grid;gap:8px;min-width:175px}
.os-vision-actions .pill{justify-content:center;font-size:11px}
.os-vision-mark{position:relative;display:grid;width:94px;height:94px;place-items:center;border:1px solid #d3ba744d;border-radius:50%;background:radial-gradient(circle,#c9ac493b,#263d4233 58%,transparent 70%);box-shadow:0 0 38px #d0b56020,inset 0 0 30px #83d9d12a;animation:os-mark-breathe 5s ease-in-out infinite}
.os-vision-mark:before,.os-vision-mark:after{position:absolute;inset:8px;border:1px solid #a5dad259;border-radius:50%;content:"";transform:rotateX(65deg) rotateZ(-25deg);animation:os-mark-orbit 12s linear infinite}
.os-vision-mark:after{inset:15px;border-color:#d4bd7959;transform:rotateX(65deg) rotateZ(25deg);animation-direction:reverse}
.os-vision-mark span{width:31px;height:31px;border:1px solid #e4d194;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff4ca,#d7b85c 40%,#537b777d 75%);box-shadow:0 0 26px #e2c8716b}
.os-vision-mark i,.os-vision-mark b{position:absolute;width:5px;height:5px;border-radius:50%;background:#afe8d8;box-shadow:0 0 10px #a5e4d6}
.os-vision-mark i{top:18px;left:24px}.os-vision-mark b{right:16px;bottom:27px;background:#e7cf88}
@keyframes os-mark-orbit{to{rotate:1turn}}
@keyframes os-mark-breathe{50%{box-shadow:0 0 56px #d0b56032,inset 0 0 38px #83d9d143;transform:translateY(-3px)}}

@media (max-width: 900px) {
  .landing-page .landing-hero { grid-template-columns: 1fr 1fr; }
  .os-vision-hub{grid-template-columns:80px minmax(0,1fr);gap:16px}
  .os-vision-mark{width:72px;height:72px}
  .os-vision-actions{grid-column:2;display:flex;flex-wrap:wrap}
}
@media (max-width: 820px) {
  .landing-page .topbar { inset: 12px 12px auto; }
  .landing-page .film-frame { inset: 62px 10px 10px; }
}
@media (max-width: 680px) {
  .landing-page .landing-hero { grid-template-columns: 1fr; }
  .landing-page .story-preview { min-height: 0; }
  .landing-page .landing-download { padding: 26px; }
  .landing-page .film-frame { display: none; }
  .os-vision-hub{grid-template-columns:1fr;padding:18px}
  .os-vision-actions{grid-column:1;display:grid}
  .os-vision-mark{margin-inline:auto}
}
