:root {
  color-scheme: dark;
  --night: #071627;
  --panel: #102b47;
  --panel-deep: #0b223a;
  --paper: #f4fbff;
  --muted: #9cb5cb;
  --mint: #4ce0b3;
  --amber: #ffbd59;
  --coral: #ff7976;
  --cyan: #68d4ff;
  --line: rgba(222, 240, 255, .14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  background: var(--night);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100svh;
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 4%, rgba(76, 224, 179, .13), transparent 21rem),
    radial-gradient(circle at -10% 48%, rgba(104, 212, 255, .10), transparent 24rem),
    var(--night);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }

.app-shell {
  width: min(100%, 580px);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 17px) 17px calc(env(safe-area-inset-bottom) + 112px);
}
.brandbar, .brand-lockup { display: flex; align-items: center; }
.brandbar { justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.brand-lockup { gap: 10px; }
.brand-lockup img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 8px 22px rgba(0, 5, 14, .32); }
.brand-lockup p { margin: 0 0 2px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.brand-lockup h1, h2 { margin: 0; font-family: "Arial Rounded MT Bold", "SF Pro Rounded", "PingFang SC", sans-serif; letter-spacing: -.04em; }
.brand-lockup h1 { font-size: 22px; }
.connection { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(7,22,39,.65); font-size: 10px; font-weight: 800; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,189,89,.10); }
.connection[data-state="online"] i { background: var(--mint); box-shadow: 0 0 0 4px rgba(76,224,179,.11); }
.connection[data-state="offline"] i { background: var(--coral); box-shadow: none; }

.companion-stage {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  border: 1px solid rgba(104,212,255,.25);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(155deg, #153b60, #0c2742 63%, #102239);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: inset 0 0 0 7px rgba(5,17,31,.22), 0 26px 65px rgba(0,6,16,.34);
}
.companion-stage::before { content: ""; position: absolute; width: 290px; height: 290px; top: -105px; right: -100px; border: 1px solid rgba(76,224,179,.18); border-radius: 50%; box-shadow: 0 0 0 27px rgba(104,212,255,.025), 0 0 0 62px rgba(104,212,255,.02); }
.route { position: absolute; top: 30px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: "SF Mono", Menlo, monospace; font-size: 9px; font-weight: 800; }
.route span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.route i { width: 68px; height: 1px; }
.route-play { left: 24px; }
.route-play span { color: #062119; background: var(--mint); }
.route-play i { background: linear-gradient(90deg, var(--mint), transparent); }
.route-family { right: 24px; flex-direction: row-reverse; }
.route-family span { color: #2b1903; background: var(--amber); }
.route-family i { background: linear-gradient(270deg, var(--amber), transparent); }

.robot-console { position: absolute; top: 76px; left: 50%; width: 180px; height: 123px; transform: translateX(-50%); }
.robot-console::before { content: ""; position: absolute; inset: 0 0 11px; border: 6px solid #edf8ff; border-radius: 39px 39px 32px 32px; background: #08182a; box-shadow: 0 10px 0 #071421, 0 18px 38px rgba(0,0,0,.38); }
.robot-screen { position: absolute; z-index: 1; inset: 20px 21px 31px; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: #07101b; }
.robot-screen img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(255,255,255,.15)); animation: screen-breathe 3.4s ease-in-out infinite alternate; }
.antenna { position: absolute; z-index: 1; left: 87px; top: -22px; width: 6px; height: 26px; border-radius: 4px; background: var(--mint); }
.antenna i { position: absolute; left: -4px; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 7px rgba(255,189,89,.10); }
.robot-foot { position: absolute; bottom: 0; width: 48px; height: 17px; border-radius: 14px; background: #071421; }
.robot-foot.left { left: 24px; transform: rotate(-4deg); }
.robot-foot.right { right: 24px; transform: rotate(4deg); }
.stage-copy { position: absolute; right: 25px; bottom: 59px; left: 25px; }
.eyebrow { margin: 0 0 6px; color: var(--mint); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.stage-copy h2 { font-size: clamp(28px, 8.2vw, 40px); line-height: 1.04; }
.stage-copy h2 span { color: var(--mint); }
.stage-copy > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.presence-strip { position: absolute; right: 19px; bottom: 15px; left: 19px; display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.presence-strip span { display: flex; align-items: center; gap: 6px; }
.presence-strip span i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.presence-strip strong { color: #d7e9f7; font-weight: 750; }

.feature-stack { display: grid; gap: 11px; margin-top: 14px; }
.feature-card { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; min-height: 164px; overflow: hidden; padding: 19px 47px 17px 18px; border: 1px solid var(--line); border-radius: 27px; background: linear-gradient(145deg, rgba(17,45,73,.98), rgba(11,32,54,.98)); box-shadow: 0 16px 38px rgba(0,7,17,.22); transition: transform .16s, border-color .16s; }
.feature-card:active { transform: scale(.985); }
.feature-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -63px; bottom: -73px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; box-shadow: 0 0 0 18px currentColor; }
.play-card { color: var(--mint); }
.family-card { color: var(--amber); }
.feature-number { position: absolute; top: 15px; right: 18px; color: #66839e; font-family: "SF Mono", Menlo, monospace; font-size: 9px; letter-spacing: .12em; }
.feature-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: 8px; border: 1px solid currentColor; border-radius: 17px; background: rgba(76,224,179,.08); }
.family-card .feature-icon { background: rgba(255,189,89,.08); }
.feature-icon span { font-size: 25px; font-weight: 900; }
.feature-copy p { margin: 0 0 3px; color: currentColor; font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.feature-copy h2 { color: var(--paper); font-size: 25px; }
.feature-copy > span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.feature-readout { grid-column: 2; align-self: end; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.feature-readout strong { color: var(--paper); font-size: 11px; }
.feature-readout span { color: var(--muted); font-size: 9px; }
.feature-arrow { position: absolute; right: 17px; top: 61px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #071627; background: currentColor; font-size: 15px; font-weight: 900; }

.privacy-strip { display: flex; gap: 11px; margin-top: 13px; padding: 15px 16px; border: 1px solid rgba(104,212,255,.14); border-radius: 20px; color: var(--muted); background: rgba(10,31,52,.66); }
.privacy-strip > span { flex: 0 0 auto; color: var(--cyan); font-size: 21px; }
.privacy-strip p { margin: 0; font-size: 10px; line-height: 1.55; }
.privacy-strip strong { color: #dcecf8; }

.app-nav { position: fixed; z-index: 100; right: max(13px, calc((100vw - 580px) / 2 + 13px)); bottom: calc(env(safe-area-inset-bottom) + 11px); left: max(13px, calc((100vw - 580px) / 2 + 13px)); display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px; border: 1px solid rgba(222,240,255,.18); border-radius: 23px; background: rgba(8,24,41,.91); box-shadow: 0 18px 55px rgba(0,0,0,.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.app-nav a { min-height: 52px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 17px; color: #7893aa; font-size: 9px; font-weight: 800; }
.app-nav a.is-active { color: #071627; background: var(--mint); box-shadow: 0 8px 20px rgba(76,224,179,.16); }
.app-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@keyframes screen-breathe { to { transform: scale(1.035); opacity: .84; } }
@media (max-width: 370px) {
  .companion-stage { min-height: 350px; }
  .feature-card { padding-left: 15px; }
  .feature-readout { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
