:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --card: #1e293b;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --rose: #e11d48;
  --rose-soft: #fb7185;
  --emerald: #059669;
  --emerald-2: #22c55e;
  --focus: #fde047;
  --focus-glow: rgba(253, 224, 71, 0.45);
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
  --font-sans: "Manrope", sans-serif;
  --font-display: "Sora", sans-serif;
  --font: var(--font-sans);
  --display: var(--font-display);
  --nav: 76px;
  --section: 88px;
  --wide: 1180px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  background: var(--focus);
  color: #1c1917;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
}
.skip:focus { top: 12px; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--wide), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.45), 0 0 18px rgba(253, 224, 71, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1.5px;
  background: #b7f0c8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta)[aria-current="page"] {
  color: var(--text);
  background: transparent;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 10px 16px !important;
  border-radius: 12px;
  background: #c8f5d4 !important;
  color: #102018 !important;
  font-weight: 650;
  box-shadow: none;
}
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { filter: brightness(1.05); background: #d7fbe0 !important; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  place-items: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav) + var(--section)) 0 var(--section);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.94) 0%, rgba(8, 14, 24, 0.82) 36%, rgba(8, 14, 24, 0.38) 62%, rgba(8, 14, 24, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.55) 0%, transparent 22%, transparent 72%, rgba(8, 14, 24, 0.72) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: left;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #b7f0c8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
}
.kicker i {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b7f0c8;
  box-shadow: 0 0 0 4px rgba(183, 240, 200, 0.16);
}
.hero-copy .kicker {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 22px;
}
.hero-beta {
  color: #fde047;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.hero-title {
  max-width: 10.6em;
  font-size: clamp(2.35rem, 3.6vw, 3.15rem);
}
.hero-copy h1 {
  max-width: none;
  margin: 0;
  font-size: inherit;
  text-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
}
h1 em {
  font-style: normal;
  color: #b7f0c8;
}
.hero-break { display: block; }
.lede {
  max-width: 52ch;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn-primary {
  background: #c8f5d4;
  color: #102018;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary:hover { background: #d7fbe0; }
.btn-ghost {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(200, 245, 212, 0.55); background: rgba(15, 23, 42, 0.9); }

section { padding: var(--section) 0; }
.surface { background: #0f172a; }
.surface-deep { background: #020617; }
#functii,
#control { border-top: 0; }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-top: 0;
}
.choice-ico { width: 28px; height: 28px; color: #b7f0c8; }
.choice-grid h2 {
  margin: 16px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.choice-grid p {
  margin: 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.deck-lead { text-align: center; }
.deck-lead .wrap { display: flex; flex-direction: column; align-items: center; }
.deck-lead h2 {
  max-width: 16em;
  font-size: clamp(2.15rem, 3.3vw, 2.85rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.deck-lead .lede {
  max-width: 40rem;
  margin: 18px 0 0;
  color: #94a3b8;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}
.section-head { max-width: 40rem; margin-bottom: 28px; }
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.78fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}
.about-split .section-head { max-width: none; margin-bottom: 0; }
.about-visual { margin: 0; }
.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}
.section-head p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.55rem); }
.eyebrow {
  margin: 0 0 14px;
  color: #b7f0c8;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--card);
  border: 1px solid rgba(51, 65, 85, 0.9);
  min-height: 180px;
}
.card h3 { margin: 12px 0 8px; font-size: 1.35rem; font-family: var(--display); }
.card p { margin: 0; color: var(--muted); }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card-blink {
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(253, 224, 71, 0.16), transparent 50%),
    linear-gradient(160deg, #1e293b, #0f172a 55%, #020617);
}
.mini-board {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
  margin-top: 18px;
}
.mini {
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.mini.on {
  box-shadow: 0 0 0 3px var(--focus), 0 0 18px var(--focus-glow);
  animation: pulse 1.6s ease-in-out infinite;
}

.swatch {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: white;
}
.swatch svg { width: 22px; height: 22px; }

.showcase {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.picker { display: grid; gap: 8px; }
.picker button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--muted);
}
.picker button strong { display: block; color: var(--text); font-weight: 620; }
.picker button small { display: block; margin-top: 2px; }
.picker button[aria-pressed="true"] {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(253, 224, 71, 0.45);
  color: var(--text);
}

.stage-wrap { position: relative; }
.bezel {
  padding: 14px;
  border-radius: 36px;
  background: linear-gradient(160deg, #334155, #0f172a 40%, #020617);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device {
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.screen { display: none; flex: 1; flex-direction: column; min-height: 0; }
.screen.is-on { display: flex; }

.chrome, .device-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #000;
  min-height: 36px;
}
.cam {
  width: 46px;
  height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, #34d399 0 5px, #064e3b 6px 9px, #0f172a 10px);
  box-shadow: inset 0 0 0 1px #334155;
}
.chrome-label { color: #cbd5e1; font-size: 12px; font-weight: 600; }
.chrome-spacer { flex: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #14532d;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
}
.pill.warn { background: #422006; color: #fcd34d; }
.pill.sleep { background: #312e81; color: #c7d2fe; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.dot.off { background: #64748b; }

.device-foot { color: #94a3b8; font-size: 11px; border-top: 1px solid #1e293b; }
.gear {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #1e293b;
  position: relative;
}
.gear::before, .gear::after {
  content: "";
  position: absolute;
  background: #e2e8f0;
}
.gear::before { width: 10px; height: 2px; left: 6px; top: 10px; }
.gear::after { width: 2px; height: 10px; left: 10px; top: 6px; }

.board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  min-height: 0;
}
.tile {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--a), var(--b));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 0;
  padding: 6px;
  position: relative;
}
.tile svg { width: 28%; height: 28%; max-width: 42px; max-height: 42px; }
.tile b { font-size: clamp(11px, 1.5vw, 16px); letter-spacing: -0.03em; line-height: 1.15; }
.tile small { display: block; opacity: 0.8; font-size: 10px; font-weight: 500; }
.tile.letters { font-weight: 750; letter-spacing: 0.04em; font-size: clamp(10px, 1.3vw, 14px); line-height: 1.25; }
.tile.word { background: linear-gradient(135deg, #6d28d9, #1e1b4b); font-size: clamp(11px, 1.4vw, 15px); font-weight: 700; }
.tile.empty { background: transparent; border-color: transparent; }

.screen.is-on [data-scan] > .tile:nth-child(1) { animation: hop 8.1s linear infinite; }
.screen.is-on [data-scan] > .tile:nth-child(2) { animation: hop 8.1s linear infinite 0.9s; }
.screen.is-on [data-scan] > .tile:nth-child(3) { animation: hop 8.1s linear infinite 1.8s; }
.screen.is-on [data-scan] > .tile:nth-child(4) { animation: hop 8.1s linear infinite 2.7s; }
.screen.is-on [data-scan] > .tile:nth-child(5) { animation: hop 8.1s linear infinite 3.6s; }
.screen.is-on [data-scan] > .tile:nth-child(6) { animation: hop 8.1s linear infinite 4.5s; }
.screen.is-on [data-scan] > .tile:nth-child(7) { animation: hop 8.1s linear infinite 5.4s; }
.screen.is-on [data-scan] > .tile:nth-child(8) { animation: hop 8.1s linear infinite 6.3s; }
.screen.is-on [data-scan] > .tile:nth-child(9) { animation: hop 8.1s linear infinite 7.2s; }

.notes {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 8px;
  padding: 8px;
  min-height: 0;
}
.note-list { display: grid; gap: 8px; align-content: start; }
.note-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}
.note {
  padding: 8px 10px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  font-size: 13px;
}
.note.on { box-shadow: 0 0 0 2px var(--focus); }
.settings {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(2, 6, 23, 0.35);
}
.tabs { display: flex; gap: 6px; padding: 8px 8px 0; overflow: auto; }
.tabs span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 650;
}
.tabs span.on { background: var(--emerald); color: white; }
.set-body { padding: 12px 14px; color: #cbd5e1; font-size: 13px; }
.set-body h4 { margin: 0 0 6px; color: white; }
.set-body p { margin: 0; color: var(--muted); }
.toggle {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #1e293b;
}
.switch {
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: var(--rose);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 3px;
  right: 3px;
}

.overlay-phone {
  flex: 1;
  margin: 10px;
  border-radius: 18px;
  border: 1px solid #334155;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.55)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(148, 163, 184, 0.08) 18px 19px);
  position: relative;
}
.notch-btn {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #334155, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.notch-btn.on { box-shadow: 0 0 0 2px var(--focus); }
.n-back { left: 8px; bottom: 8px; }
.n-home { left: 50px; bottom: 8px; }
.n-recent { left: 92px; bottom: 8px; }
.n-up { right: 8px; top: 8px; }
.n-down { right: 8px; top: 50px; }
.n-pause { right: 8px; bottom: 8px; background: linear-gradient(135deg, #4338ca, #0f172a); }

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  justify-content: flex-end;
}
.bubble {
  max-width: 70%;
  padding: 8px 10px;
  border-radius: 14px;
  background: #1e293b;
  font-size: 13px;
}
.bubble.mine { align-self: flex-end; background: #14532d; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.85);
}
.num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(200, 245, 212, 0.45);
  color: #c8f5d4;
  font-weight: 700;
  font-size: 0.85rem;
}
.steps h3 { margin: 14px 0 8px; font-family: var(--display); font-size: 1.5rem; }
.steps p { margin: 0; color: var(--muted); }

.band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 28px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(51, 65, 85, 0.85);
}
.rig {
  position: relative;
  height: 280px;
  border-radius: 24px;
  background: #020617;
  border: 1px solid var(--line);
  overflow: hidden;
}
.rig-light, .rig-face, .rig-tablet, .rig-gap {
  position: absolute;
}
.rig-light {
  top: 18px;
  left: 18px;
  color: #fcd34d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rig-face {
  width: 92px;
  height: 116px;
  border-radius: 46px;
  left: 22%;
  top: 70px;
  background: linear-gradient(#1e293b, #0f172a);
  border: 1px solid #334155;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 42px;
}
.eye-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff, #34d399 40%, #064e3b);
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.7);
}
.rig-tablet {
  width: 118px;
  height: 58px;
  right: 16%;
  top: 108px;
  border-radius: 12px;
  background: #09090b;
  border: 2px solid #3f3f46;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px #0f172a;
}
.lens {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #020617;
  box-shadow: 0 0 0 3px #fde047, 0 0 16px var(--focus-glow);
}
.rig-gap {
  left: 46%;
  top: 124px;
  width: 18%;
  border-top: 1px dashed rgba(253, 224, 71, 0.7);
}
.rig figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: var(--section) 0;
  border-top: 0;
  color: var(--muted);
  background: #020617;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.55fr) minmax(220px, 0.9fr);
  gap: 56px;
  align-items: start;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.footer-col .eyebrow { margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links a { color: #e2e8f0; font-size: 0.98rem; }
.footer-links a:hover { color: #b7f0c8; }
.footer-note {
  margin: 0 0 16px;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-mail {
  color: #b7f0c8;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.footer-mail:hover { color: #d7fbe0; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.85);
  color: #64748b;
  font-size: 0.86rem;
}
.footer-base a { color: #94a3b8; }
.footer-base a:hover { color: #b7f0c8; }

/* Docs */
.page-docs {
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.page-docs .nav {
  background: rgba(2, 6, 23, 0.88);
  border-bottom-color: rgba(51, 65, 85, 0.8);
  box-shadow: none;
}
.docs-hero {
  padding: calc(var(--nav) + 64px) 0 40px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.75);
}
.docs-kicker {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.docs-hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 4.2vw, 3.35rem);
}
.docs-hero .lede {
  max-width: 40rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}
.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 740px);
  gap: 64px;
  justify-content: start;
  padding-top: 36px;
  padding-bottom: 88px;
}
.docs-nav {
  position: sticky;
  top: calc(var(--nav) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--nav) - 48px);
  overflow: auto;
}
.docs-nav p {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.docs-nav-links { display: grid; gap: 2px; }
.docs-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 0;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
}
.docs-nav a:hover {
  color: var(--text);
  background: transparent;
  border-left-color: #94a3b8;
}
.docs-nav a.active,
.docs-nav a.active:hover {
  background: transparent;
  color: var(--text);
  border-left-color: #b7f0c8;
}
.doc {
  scroll-margin-top: calc(var(--nav) + 24px);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.doc + .doc {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
}
.doc h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 2.4vw, 2.05rem); }
.doc h3 { margin: 28px 0 10px; font-size: 1.12rem; }
.doc p, .doc li { color: #cbd5e1; }
.doc strong { color: var(--text); font-weight: 700; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
}
.doc li::marker { color: var(--muted); }
.doc .btn { margin: 2px 0 22px; }
.callout {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-left: 3px solid var(--focus);
  color: #e2e8f0;
}
.callout strong { color: var(--text); }
.os-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 8px;
}
.os { margin: 0; }
.os-screen {
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid rgba(51, 65, 85, 0.95);
  overflow: hidden;
  font-size: 0.84rem;
}
.os-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: #f8fafc;
  font-weight: 650;
}
.os-dots {
  color: #b7f0c8;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
}
.os-menu {
  margin: 0 12px 12px auto;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 12px;
  border-radius: 8px;
  background: #1e293b;
  color: #b7f0c8;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}
.os-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(51, 65, 85, 0.75);
  color: #e2e8f0;
}
.os-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.os-row em { font-style: normal; color: #94a3b8; font-size: 0.75rem; }
.os-row.is-target { background: rgba(183, 240, 200, 0.08); }
.os-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 99px;
  background: #334155;
}
.os-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
}
.os-switch.on { background: #059669; }
.os-switch.on i { left: 19px; }
.os-radio {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #64748b;
}
.os-radio.on { border-color: #b7f0c8; background: radial-gradient(circle, #b7f0c8 0 4px, transparent 5px); }
.os figcaption {
  margin: 8px 2px 0;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 0.95rem;
}
.table th, .table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  vertical-align: top;
}
.table tbody tr:hover td { background: rgba(30, 41, 59, 0.4); }
.table th { color: var(--faint); font-weight: 650; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.page-docs .footer { background: #020617; }

.reveal { animation: rise 0.8s ease both; }

@keyframes drift {
  50% { transform: translate3d(20px, -24px, 0) scale(1.08); }
}
@keyframes floaty {
  50% { transform: translateY(-12px); }
}
@keyframes scan {
  from { top: -20%; }
  to { top: 110%; }
}
@keyframes hop {
  0%, 10% { box-shadow: 0 0 0 3px var(--focus), 0 0 22px var(--focus-glow); }
  14%, 100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 3px var(--focus), 0 0 22px var(--focus-glow); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Phone frames — landscape, same chrome as the app */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
}
.why article {
  padding: 0 32px;
  background: none;
  border: 0;
  border-radius: 0;
}
.why article:first-child { padding-left: 0; }
.why article:last-child { padding-right: 0; }
.why article + article { border-left: 1px solid rgba(51, 65, 85, 0.95); }
.why h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.why p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.story p + p { margin-top: 14px; }

.prep {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: start;
}
.prep-intro h2 { max-width: 14em; }
.prep-intro > p:not(.eyebrow) {
  margin: 16px 0 22px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.prep-ready {
  margin-top: 28px;
  padding: 18px 18px 6px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 12px;
}
.prep-ready .eyebrow { margin-bottom: 14px; }
.prep-ready ul { list-style: none; margin: 0; padding: 0; }
.prep-ready li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.prep-ready svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #b7f0c8; }
.prep-steps { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; }
.prep-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start; }
.prep-steps li + li {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(51, 65, 85, 0.95);
}
.prep-ico { width: 26px; height: 26px; color: #b7f0c8; margin-top: 1px; }
.prep-steps h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.03em; }
.prep-steps p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.closing { background: #0f172a; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.closing h2 { max-width: 16em; font-size: clamp(2.05rem, 3.3vw, 2.85rem); line-height: 1.12; }
.closing h2 em { font-style: normal; color: #b7f0c8; }
.closing .lede { max-width: 42ch; margin-top: 16px; color: var(--muted); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.closing-note { margin: 18px 0 0; color: #64748b; font-size: 0.86rem; }

.deck {
  position: relative;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--section);
  overflow: hidden;
  scroll-margin-top: var(--nav);
}
.deck-viewport { flex: none; height: auto; min-height: 0; overflow: hidden; }
.deck-track {
  display: flex;
  width: 100%;
  height: auto;
  align-items: stretch;
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0 0 52px;
  overflow: hidden;
}
.slide .wrap { position: relative; z-index: 1; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: center;
}
.feature-copy { text-align: left; justify-self: start; max-width: 34rem; }
.feature-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.7vw, 1.85rem);
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-align: left;
}
.feature-copy p:not(.eyebrow) {
  color: #94a3b8;
  margin: 12px 0 0;
  text-align: left;
  max-width: 36rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.feature-copy .feature-note {
  color: #94a3b8;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.deck-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--section);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.deck-arrow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}
.deck-arrow:hover { border-color: rgba(200, 245, 212, 0.55); color: #c8f5d4; }
.deck-dots { display: flex; gap: 7px; align-items: center; }
.deck-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.45);
}
.deck-dots button.is-on {
  width: 22px;
  background: #c8f5d4;
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 19.5 / 9;
  border-radius: 18px;
  padding: 7px 9px 7px 15px;
  background:
    linear-gradient(180deg, #6a6a72 0%, #3a3a42 7%, #1c1c22 18%, #121216 82%, #2a2a30 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px #070709,
    0 28px 60px rgba(0, 0, 0, 0.5);
}
.phone::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.phone-cam {
  position: absolute;
  left: 5px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #9aa3b2 0 1px, #1f2937 1.5px 2.5px, #050507 3px);
  box-shadow: 0 0 0 1.5px #0a0a0c, 0 0 0 2.5px #3f3f46;
}
.phone-vol, .phone-power {
  position: absolute;
  top: 0;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, #8b8b94, #2e2e34 55%, #1a1a1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.phone-vol { left: 24%; width: 46px; }
.phone-power { right: 16%; width: 28px; }
.shot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.shot-col .phone { width: 100%; }
.shot-credit {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  text-align: center;
}
.phone-screen.android-shot { display: block; position: relative; }
.android-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hud {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: min(460px, 62%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 5px 5px 7px;
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.9);
}
.hud-status {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.hud-badge {
  color: #3fb950;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.hud-label {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-index {
  color: #fff176;
  font-size: 9px;
  font-weight: 700;
}
.hud-key,
.hud-row span {
  display: grid;
  place-items: center;
  height: 20px;
  border-radius: 8px;
  background: #30363d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.hud-key { width: 22px; flex-shrink: 0; }
.hud-row { display: flex; gap: 3px; }
.hud-row span { flex: 1; }
.hud-launch {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff176 url("../assets/mark.png") center / 68% no-repeat;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.hud-focus {
  position: absolute;
  z-index: 2;
  left: 53.5%;
  top: 69.2%;
  width: 7.8%;
  aspect-ratio: 1;
  border: 2px solid #fff176;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 241, 118, 0.28), 0 0 14px rgba(255, 241, 118, 0.55);
  pointer-events: none;
}
.phone-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 11px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.appbar, .appfoot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.appbar {
  padding: 5px 7px;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}
.cam-prev {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid rgba(71, 85, 105, 0.8);
  background:
    radial-gradient(circle at 50% 45%, #6ee7b7 0 2px, #064e3b 3px 6px, #020617 7px);
  flex-shrink: 0;
}
.logo-eye { height: 20px; width: auto; flex-shrink: 0; }
.wifi { width: 14px; height: 14px; color: #34d399; flex-shrink: 0; }
.badge {
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: #16a34a;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.appbar-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.kb-word {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chat-name {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.chat-name .ico { width: 14px; height: 14px; }
.strips { flex: 1; display: flex; gap: 5px; min-width: 0; }
.strip {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 6px;
}
.strip em {
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  color: #64748b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strip b { display: block; color: #f8fafc; font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse { width: 5px; height: 5px; border-radius: 50%; background: #fb7185; }
.eye-pill {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(6, 95, 70, 0.4);
  background: rgba(6, 78, 59, 0.4);
  color: #6ee7b7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eye-pill .ico { width: 12px; height: 12px; }

.grid3 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
}
.cell {
  min-height: 0;
  border-radius: 14px;
  border: 2px solid var(--edge, transparent);
  background: linear-gradient(to bottom right, var(--a), var(--b));
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.05;
  padding: 3px 5px;
}
.cell.t-ok { font-size: 13px; font-weight: 800; }
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.cell > * { position: relative; z-index: 1; }
.cell.on { border-color: #fde047; }
.cell.dim { opacity: 0.42; }
.hole {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(30, 41, 59, 0.35);
}
.ico { width: 18px; height: 18px; }
.abc { font-size: 18px; font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.n-mark { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.yt {
  width: 26px;
  height: 18px;
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-items: center;
}
.yt .ico { width: 12px; height: 12px; color: #ff0000; }
.letters {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 0;
  flex-wrap: nowrap;
}
.letters span {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}
.words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  justify-items: center;
  row-gap: 2px;
  column-gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0 4px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.words span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.edit-slot {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.edit-slot .cell { flex: 1; height: 100%; border-radius: 10px; padding: 2px; }
.edit-slot .mini { font-size: 11px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.edit-slot .ico { width: 14px; height: 14px; }
.cap { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 8px; font-weight: 700; }
.who { display: flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; padding: 0 4px; }
.who .ico { width: 11px; height: 11px; }
.dot-live {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  z-index: 2;
}

.appfoot {
  padding: 4px 7px;
  background: rgba(2, 6, 23, 0.92);
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  color: #94a3b8;
  font-size: 8px;
  font-weight: 600;
}
.appfoot > span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot-actions { display: flex; gap: 3px; flex-shrink: 0; }
.foot-btn {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  display: grid;
  place-items: center;
}
.foot-btn .ico { width: 9px; height: 9px; }
.foot-btn.hot { border-color: rgba(244, 63, 94, 0.85); background: rgba(136, 19, 55, 0.65); color: #fda4af; }

.split {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 6px;
  padding: 6px;
}
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: flex-start; }
.note-row {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.85);
  padding: 2px 3px 2px 6px;
  color: #f8fafc;
  font-size: 9px;
  font-weight: 600;
}
.note-row b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid var(--edge);
  background: linear-gradient(to bottom right, var(--a), var(--b));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mini .ico { width: 8px; height: 8px; }
.rail { width: 54px; display: flex; flex-direction: column; gap: 5px; }
.rail .cell { flex: 1; border-radius: 12px; }
.bubbles {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
}
.bubble {
  max-width: 78%;
  border-radius: 8px;
  padding: 3px 6px;
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
  font-size: 9px;
  line-height: 1.3;
}
.bubble.mine { align-self: flex-end; background: #14532d; }
.status-line {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 600;
  padding: 4px 8px 0;
}
.sheet {
  flex: 1;
  margin: 8px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 6px 0; }
.sheet-tabs i {
  font-style: normal;
  font-size: 8px;
  font-weight: 650;
  color: #cbd5e1;
  background: #1e293b;
  border-radius: 999px;
  padding: 3px 6px;
  white-space: nowrap;
}
.sheet-tabs i.on { background: #059669; color: #fff; }
.sheet-body { padding: 6px 8px; color: #94a3b8; font-size: 8px; line-height: 1.35; }
.sheet-body strong { display: block; color: #f8fafc; font-size: 10px; margin-bottom: 2px; }
.switch-row {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #1e293b;
  border-radius: 8px;
  padding: 4px 6px;
  color: #f8fafc;
}
.knob { width: 18px; height: 11px; border-radius: 99px; background: #e11d48; position: relative; flex-shrink: 0; }
.knob::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  right: 2px;
}

.t-tv { --a: #7c3aed; --b: #1e1b4b; --edge: rgba(139, 92, 246, 0.4); }
.t-reload { --a: #475569; --b: #020617; --edge: rgba(100, 116, 139, 0.45); }
.t-sos { --a: #dc2626; --b: #4c0519; --edge: rgba(239, 68, 68, 0.5); }
.t-phone { --a: #3ddc84; --b: #064e3b; --edge: rgba(61, 220, 132, 0.45); }
.t-sleep { --a: #4338ca; --b: #0f172a; --edge: rgba(67, 56, 202, 0.4); }
.t-notes { --a: #ca8a04; --b: #422006; --edge: rgba(234, 179, 8, 0.5); }
.t-comm { --a: #0369a1; --b: #312e81; --edge: rgba(3, 105, 161, 0.4); }
.t-kb { --a: #06b6d4; --b: #0f172a; --edge: rgba(6, 182, 212, 0.45); }
.t-wa { --a: #059669; --b: #134e4a; --edge: rgba(4, 120, 87, 0.4); }
.t-netflix { --a: #e50914; --b: #e50914; --edge: rgba(255, 255, 255, 0.1); }
.t-yt { --a: #ff0000; --b: #ff0000; --edge: rgba(255, 255, 255, 0.1); }
.t-remote { --a: #fbbf24; --b: #ea580c; --edge: rgba(251, 191, 36, 0.4); }
.t-live { --a: #e11d48; --b: #020617; --edge: rgba(244, 63, 94, 0.45); }
.t-mirror { --a: #2563eb; --b: #172554; --edge: rgba(37, 99, 235, 0.45); }
.t-power { --a: #e11d48; --b: #020617; --edge: rgba(244, 63, 94, 0.45); }
.t-set { --a: #64748b; --b: #020617; --edge: rgba(148, 163, 184, 0.45); }
.t-back { --a: #1e293b; --b: #0f172a; --edge: rgba(71, 85, 105, 0.5); }
.t-dpad { --a: #334155; --b: #1e293b; --edge: rgba(71, 85, 105, 0.45); }
.t-ok { --a: #f43f5e; --b: #e11d48; --edge: rgba(251, 113, 133, 0.5); }
.t-cc { --a: #0284c7; --b: #3730a3; --edge: rgba(14, 165, 233, 0.4); }
.t-chan { --a: #e11d48; --b: #9f1239; --edge: rgba(244, 63, 94, 0.4); }
.t-vol { --a: #0284c7; --b: #155e75; --edge: rgba(14, 165, 233, 0.45); }
.t-guide { --a: #f59e0b; --b: #c2410c; --edge: rgba(245, 158, 11, 0.45); }
.t-menu { --a: #1e293b; --b: #0f172a; --edge: rgba(71, 85, 105, 0.5); }
.t-1 { --a: #0369a1; --b: #0c4a6e; --edge: rgba(3, 105, 161, 0.45); }
.t-2 { --a: #059669; --b: #115e59; --edge: rgba(5, 150, 105, 0.4); }
.t-3 { --a: #c2410c; --b: #9a3412; --edge: rgba(194, 65, 12, 0.4); }
.t-4 { --a: #6d28d9; --b: #312e81; --edge: rgba(109, 40, 217, 0.4); }
.t-kbg { --a: #0891b2; --b: #0f172a; --edge: rgba(6, 182, 212, 0.4); }
.t-kbnum { --a: #f59e0b; --b: #9a3412; --edge: rgba(251, 191, 36, 0.4); }
.t-browser { --a: #0ea5e9; --b: #0c4a6e; --edge: rgba(14, 165, 233, 0.45); }
.t-kbw { --a: #6d28d9; --b: #1e1b4b; --edge: rgba(139, 92, 246, 0.45); }
.t-done { --a: #059669; --b: #134e4a; --edge: rgba(16, 185, 129, 0.4); }
.t-del { --a: #9f1239; --b: #0f172a; --edge: rgba(190, 18, 60, 0.4); }
.t-yes { --a: #059669; --b: #115e59; --edge: rgba(4, 120, 87, 0.5); }
.t-danger { --a: #e11d48; --b: #9f1239; --edge: rgba(225, 29, 72, 0.45); }

.grid3.scan > :nth-child(1) { animation: ring 8.1s linear infinite; }
.grid3.scan > :nth-child(2) { animation: ring 8.1s linear infinite 0.9s; }
.grid3.scan > :nth-child(3) { animation: ring 8.1s linear infinite 1.8s; }
.grid3.scan > :nth-child(4) { animation: ring 8.1s linear infinite 2.7s; }
.grid3.scan > :nth-child(5) { animation: ring 8.1s linear infinite 3.6s; }
.grid3.scan > :nth-child(6) { animation: ring 8.1s linear infinite 4.5s; }
.grid3.scan > :nth-child(7) { animation: ring 8.1s linear infinite 5.4s; }
.grid3.scan > :nth-child(8) { animation: ring 8.1s linear infinite 6.3s; }
.grid3.scan > :nth-child(9) { animation: ring 8.1s linear infinite 7.2s; }
@keyframes ring {
  0%, 10% { border-color: #fde047; }
  14%, 100% { border-color: var(--edge, transparent); }
}

@media (max-width: 980px) {
  .span-7, .span-5, .span-4, .span-6, .span-8 { grid-column: span 12; }
  .showcase, .band, .docs-layout, .steps, .feature-grid, .feature.flip .feature-grid, .why, .about-split, .choice-grid, .footer-grid, .prep, .os-grid { grid-template-columns: 1fr; }
  .why article,
  .why article:first-child,
  .why article:last-child { padding: 22px 0; }
  .why article + article { border-left: 0; border-top: 1px solid rgba(51, 65, 85, 0.95); }
  .deck {
    height: 100svh;
    min-height: 680px;
    padding: 0;
  }
  .deck-ui { bottom: 18px; }
  .deck-viewport { flex: 1; height: auto; }
  .deck-track { height: 100%; }
  .slide {
    height: 100%;
    overflow: auto;
    align-items: flex-start;
    padding: calc(var(--nav) + 8px) 0 76px;
  }
  .hero-photo { object-position: 80% center; }
  .hero-break { display: none; }
  .hero-title { max-width: none; font-size: clamp(2.15rem, 8vw, 2.7rem); }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 14, 24, 0.62), rgba(8, 14, 24, 0.7) 42%, rgba(8, 14, 24, 0.82));
  }
  .docs-hero { padding-top: calc(var(--nav) + 36px); }
  .docs-hero h1 { max-width: none; font-size: clamp(2.15rem, 8vw, 2.8rem); }
  .docs-nav { position: static; max-height: none; overflow: visible; }
  .docs-nav-links { display: flex; gap: 6px; overflow: auto; padding-bottom: 4px; }
  .docs-nav-links a { white-space: nowrap; }
  .menu-btn { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(2, 6, 23, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
