:root {
  --ink: #10161b;
  --ink-soft: #182127;
  --paper: #e8e3d8;
  --paper-dim: #a9aaa4;
  --cyan: #83c5be;
  --amber: #e3a857;
  --red: #c85c4a;
  --line: rgba(232, 227, 216, 0.17);
  --glass: rgba(16, 22, 27, 0.72);
  --display: "Syne", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; color: var(--paper); background: var(--ink); font-family: var(--mono); }
button, input { font: inherit; }
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noise { position: fixed; inset: 0; z-index: 50; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

/* Landing */
.landing-page { min-height: 100svh; overflow-x: hidden; background: radial-gradient(circle at 78% 34%, #26323a 0, #12191e 28%, var(--ink) 58%); }
.landing-page::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, transparent 49.85%, rgba(255,255,255,.035) 50%, transparent 50.15%), linear-gradient(transparent 49.85%, rgba(255,255,255,.025) 50%, transparent 50.15%); background-size: 110px 110px; mask-image: linear-gradient(to bottom, black, transparent 86%); }
.site-header, .console-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(24px, 5vw, 72px); }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.brand-mark svg { width: 36px; color: var(--cyan); }
.status-chip { display: inline-flex; align-items: center; gap: 9px; color: var(--paper-dim); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.status-chip i, .live-dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(131,197,190,.09); }
.landing-shell { position: relative; z-index: 5; width: min(1320px, calc(100% - 48px)); min-height: calc(100svh - 168px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); align-items: center; gap: clamp(40px, 7vw, 110px); padding: 45px 0 70px; }
.eyebrow { margin: 0 0 24px; color: var(--cyan); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(4.8rem, 9vw, 9.4rem); font-weight: 700; line-height: .78; letter-spacing: -.075em; }
.hero-copy h1 em { color: var(--amber); font-style: normal; font-weight: 500; }
.hero-summary { max-width: 520px; margin: 38px 0 0; color: var(--paper-dim); font-family: var(--display); font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.65; }
.mission-data { display: flex; gap: 25px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--paper-dim); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.mission-data span { display: grid; gap: 7px; }
.mission-data b { color: var(--paper); font-weight: 400; }
.mode-selector { display: grid; gap: 16px; perspective: 1200px; }
.mode-card { position: relative; min-height: 270px; padding: 28px 32px; display: grid; grid-template-columns: 55px 1fr; gap: 20px; overflow: hidden; color: var(--paper); text-decoration: none; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); backdrop-filter: blur(18px); transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s; }
.mode-card::before { content: ""; position: absolute; width: 230px; height: 230px; right: -100px; top: -110px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.018), 0 0 0 70px rgba(255,255,255,.012); transition: transform .6s ease; }
.mode-card:hover, .mode-card:focus-visible { transform: translate3d(-12px, -4px, 0) rotateY(-2deg); border-color: rgba(131,197,190,.55); background: linear-gradient(120deg, rgba(131,197,190,.13), rgba(255,255,255,.025)); outline: none; }
.mode-card:hover::before { transform: scale(1.15) translate(-12px, 12px); }
.mode-travel { margin-left: 54px; }
.mode-travel:hover, .mode-travel:focus-visible { border-color: rgba(227,168,87,.6); background: linear-gradient(120deg, rgba(227,168,87,.14), rgba(255,255,255,.025)); }
.mode-number { color: var(--paper-dim); font-size: .7rem; }
.mode-kicker { margin: 0 0 14px; color: var(--cyan); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.mode-travel .mode-kicker { color: var(--amber); }
.mode-card h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.8rem); line-height: .95; letter-spacing: -.045em; }
.mode-card p:not(.mode-kicker) { max-width: 420px; margin: 18px 0 55px; color: var(--paper-dim); line-height: 1.55; font-size: .82rem; }
.mode-action { position: absolute; left: 107px; bottom: 28px; display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.mode-action svg { width: 18px; transition: transform .25s; }
.mode-card:hover .mode-action svg { transform: translate(4px, -4px); }
.orbit-field { position: fixed; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.orbit { position: absolute; border: 1px solid rgba(232,227,216,.08); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 62vw; height: 24vw; right: -13vw; top: 16vh; }
.orbit-two { width: 86vw; height: 38vw; right: -28vw; top: 8vh; }
.planet { position: absolute; right: 8vw; top: 21vh; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 24px rgba(227,168,87,.48); animation: planetFloat 5s ease-in-out infinite; }
.landing-footer { position: relative; z-index: 5; display: flex; justify-content: space-between; padding: 0 clamp(24px, 5vw, 72px) 25px; color: rgba(232,227,216,.38); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }

/* Experience */
.experience-page { height: 100svh; min-height: 680px; overflow: hidden; background: radial-gradient(circle at 68% 36%, #233139 0, #121a1f 26%, var(--ink) 65%); }
.travel-page { background: radial-gradient(circle at 68% 36%, #3a2c1e 0, #1c1a17 27%, #11171a 67%); }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.console-header { position: fixed; inset: 0 0 auto 0; padding-top: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-dim); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; transition: color .2s; }
.back-link:hover { color: var(--paper); }
.back-link svg { width: 20px; }
.console-meta { display: flex; gap: 22px; align-items: center; color: var(--paper-dim); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.live-dot { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.live-dot::before { content: ""; display: block; animation: livePulse 1.8s ease-out infinite; }
.console-main { position: relative; z-index: 5; width: min(1160px, calc(100% - 48px)); height: calc(100svh - 235px); min-height: 445px; margin: 0 auto; padding-top: 105px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.console-copy { align-self: center; }
.wordmark { margin: 0; padding: 0; color: var(--paper); border: 0; background: none; font-family: var(--display); font-size: clamp(4rem, 7vw, 7.5rem); font-weight: 800; line-height: .73; letter-spacing: -.065em; text-align: left; cursor: pointer; user-select: none; touch-action: manipulation; transition: transform .2s, color .2s; }
.wordmark span { color: var(--cyan); font-weight: 500; }
.travel-page .wordmark span { color: var(--amber); }
.wordmark:focus-visible { outline: 1px solid var(--cyan); outline-offset: 10px; }
.wordmark:active { transform: scale(.985); }
.console-intro { max-width: 480px; margin: 32px 0 26px; color: var(--paper-dim); font-family: var(--display); line-height: 1.6; }
.nitro-hint { display: inline-flex; align-items: center; gap: 12px; color: rgba(232,227,216,.48); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.nitro-hint span { display: grid; place-items: center; width: 34px; height: 23px; color: var(--paper); border: 1px solid var(--line); }
.voice-module { position: relative; display: grid; justify-items: center; align-content: center; min-height: 350px; }
.voice-rings { position: absolute; width: 315px; aspect-ratio: 1; }
.voice-rings i { position: absolute; inset: 0; border: 1px solid rgba(131,197,190,.16); border-radius: 50%; animation: ringTurn 12s linear infinite; }
.voice-rings i:nth-child(2) { inset: 38px; border-style: dashed; animation-direction: reverse; animation-duration: 18s; }
.voice-rings i:nth-child(3) { inset: 76px; border-color: rgba(227,168,87,.2); animation-duration: 8s; }
.voice-orb { position: relative; z-index: 2; width: 138px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--ink); border: 0; border-radius: 50%; background: var(--cyan); cursor: pointer; box-shadow: 0 22px 60px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.45); transition: transform .25s, background .25s; }
.travel-page .voice-orb { background: var(--amber); }
.voice-orb:hover, .voice-orb:focus-visible { transform: scale(1.04); outline: 0; }
.voice-orb svg { width: 30px; }
.voice-orb span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.voice-status { position: absolute; top: calc(50% + 98px); color: var(--paper-dim); font-size: .65rem; letter-spacing: .08em; }
.voice-module.listening .voice-orb { background: var(--paper); animation: listeningPulse .8s ease-in-out infinite alternate; }
.voice-module.listening .voice-rings i { animation-duration: 2.5s; border-color: rgba(232,227,216,.42); }
.chat-dock { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(1080px, calc(100% - 40px)); transform: translateX(-50%); padding: 14px 18px max(18px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; background: rgba(13,18,22,.82); backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 -22px 80px rgba(0,0,0,.24); }
.dock-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 3px 10px; color: rgba(232,227,216,.45); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.dock-heading div { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.dock-heading i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.travel-page .dock-heading i { background: var(--amber); }
.message-stream { height: 58px; display: flex; align-items: flex-end; gap: 9px; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 9px; scrollbar-width: none; mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.message-stream::-webkit-scrollbar { display: none; }
.message { flex: 0 0 auto; max-width: min(480px, 75vw); padding: 9px 12px; color: var(--paper-dim); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: messageIn .35s both; }
.message span { margin-right: 8px; color: var(--cyan); text-transform: uppercase; font-size: .56rem; letter-spacing: .1em; }
.travel-page .message span { color: var(--amber); }
.user-message { color: var(--paper); border-color: rgba(227,168,87,.2); }
.message.fading { animation: crystalFade .75s forwards; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.chat-form input { min-width: 0; height: 48px; padding: 0 16px; color: var(--paper); border: 1px solid var(--line); border-radius: 0; outline: none; background: rgba(255,255,255,.035); font-size: .78rem; transition: border-color .2s, background .2s; }
.chat-form input:focus { border-color: rgba(131,197,190,.58); background: rgba(131,197,190,.05); }
.travel-page .chat-form input:focus { border-color: rgba(227,168,87,.58); background: rgba(227,168,87,.05); }
.chat-form button { min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink); border: 0; background: var(--cyan); cursor: pointer; font-size: .62rem; letter-spacing: .11em; text-transform: uppercase; transition: transform .2s, filter .2s; }
.travel-page .chat-form button { background: var(--amber); }
.chat-form button:hover { filter: brightness(1.08); }
.chat-form button:active { transform: scale(.98); }
.chat-form button svg { width: 18px; }

/* Traffic and nitro */
.space-traffic { position: fixed; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.space-car { position: absolute; width: 58px; height: 19px; border: 1px solid rgba(227,168,87,.58); border-radius: 40% 50% 20% 25%; background: rgba(227,168,87,.08); box-shadow: -22px 3px 20px rgba(227,168,87,.18); opacity: .7; animation: carDrift 14s linear infinite; }
.space-car::before { content: ""; position: absolute; left: 13px; top: -10px; width: 25px; height: 12px; border: 1px solid rgba(131,197,190,.55); border-bottom: 0; border-radius: 50% 55% 0 0; background: rgba(131,197,190,.08); }
.space-car i, .space-car b { position: absolute; bottom: -5px; width: 9px; height: 9px; border: 1px solid rgba(232,227,216,.5); border-radius: 50%; background: var(--ink); }
.space-car i { left: 8px; } .space-car b { right: 8px; }
.car-one { top: 18%; left: -90px; }
.car-two { top: 42%; left: -120px; transform: scale(.7); animation-delay: -5s; animation-duration: 18s; }
.car-three { top: 70%; left: -100px; transform: scale(1.25); animation-delay: -9s; animation-duration: 21s; }
.car-four { top: 30%; left: -80px; transform: scale(.5); animation-delay: -13s; animation-duration: 16s; }
.nitro-active .wordmark { color: var(--amber); animation: nitroJolt .16s linear 5; }
.nitro-active .wordmark span { color: var(--red); }
.nitro-active #starfield { filter: contrast(1.6) brightness(1.35); }
.nitro-active .voice-rings { transform: scale(1.18); transition: transform .3s; }
.nitro-active .space-car { animation-duration: 3s; }
.nitro-flash { position: fixed; z-index: 40; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(232,227,216,.35) 50%, transparent 58%); transform: translateX(-110%); animation: flashAcross .55s ease-out; }

@keyframes planetFloat { 50% { transform: translateY(12px); } }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(131,197,190,0); } }
@keyframes ringTurn { to { transform: rotate(360deg); } }
@keyframes listeningPulse { to { transform: scale(1.08); box-shadow: 0 25px 80px rgba(131,197,190,.32); } }
@keyframes messageIn { from { opacity: 0; transform: translateY(9px); } }
@keyframes crystalFade { to { opacity: 0; transform: translateY(-12px) scale(.96); filter: blur(7px); } }
@keyframes carDrift { from { translate: -10vw 0; } to { translate: 120vw -12vh; } }
@keyframes nitroJolt { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes flashAcross { to { transform: translateX(110%); } }

@media (max-width: 900px) {
  .landing-shell { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-copy h1 { font-size: clamp(4.2rem, 18vw, 7rem); }
  .mode-selector { margin-left: 8vw; }
  .console-main { grid-template-columns: 1fr 320px; gap: 25px; }
  .wordmark { font-size: clamp(3.5rem, 9vw, 5.5rem); }
}

@media (max-width: 680px) {
  .site-header, .console-header { padding: 20px; }
  .status-chip { font-size: 0; }
  .status-chip i { display: block; }
  .landing-shell { width: calc(100% - 36px); min-height: auto; padding: 72px 0 60px; }
  .hero-summary { margin-top: 28px; }
  .mission-data { gap: 14px; justify-content: space-between; }
  .mode-selector { margin-left: 0; }
  .mode-card, .mode-travel { min-height: 245px; margin-left: 0; padding: 24px 22px; grid-template-columns: 34px 1fr; }
  .mode-card h2 { font-size: 2.25rem; }
  .mode-action { left: 76px; }
  .landing-footer { gap: 20px; padding-inline: 18px; }
  .landing-footer span:last-child { text-align: right; }
  .experience-page { min-height: 620px; }
  .console-meta > span:first-child { display: none; }
  .console-main { width: calc(100% - 34px); height: calc(100svh - 210px); min-height: 410px; padding-top: 82px; grid-template-columns: 1fr; align-content: start; gap: 6px; }
  .console-copy { padding-top: 12px; }
  .console-copy .eyebrow { margin-bottom: 15px; }
  .wordmark { font-size: clamp(3.25rem, 16vw, 5rem); }
  .console-intro { max-width: 88%; margin: 22px 0 14px; font-size: .86rem; }
  .voice-module { position: absolute; right: 3px; bottom: 18px; min-height: 180px; width: 180px; }
  .voice-rings { width: 180px; }
  .voice-rings i:nth-child(2) { inset: 24px; }
  .voice-rings i:nth-child(3) { inset: 48px; }
  .voice-orb { width: 88px; }
  .voice-orb svg { width: 23px; }
  .voice-status { top: calc(50% + 65px); width: 180px; text-align: center; }
  .nitro-hint { max-width: 150px; line-height: 1.5; }
  .chat-dock { width: 100%; padding: 11px 12px max(12px, env(safe-area-inset-bottom)); border-left: 0; border-right: 0; }
  .dock-heading { padding-bottom: 8px; }
  .message-stream { height: 48px; padding-bottom: 7px; }
  .message { max-width: 86vw; padding: 7px 9px; }
  .chat-form input { height: 45px; }
  .chat-form button { min-width: 52px; }
  .chat-form button span { display: none; }
}

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