/* onestation.dev — shared styles. No build step; keep selectors flat. */

:root {
  --ink: #0a0a0c;
  --ink-2: #0e0e11;
  --card: #121214;
  --card-2: #17171a;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --paper: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #8a8a94;
  --blue: #4f8cff;
  --amber: #f5a524;
  --green: #22c55e;
  --display: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-lg: 22px;
  --r-md: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd {
  font: 500 0.82em/1 var(--mono);
  display: inline-grid; place-items: center;
  min-width: 1.7em; height: 1.7em; padding: 0 0.4em;
  border-radius: 0.38em;
  background: linear-gradient(#2a2a30, #1c1c21);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--paper);
  vertical-align: 0.05em;
}
code { font: 0.9em var(--mono); background: var(--card-2); border: 1px solid var(--line); padding: 0.1em 0.35em; border-radius: 6px; }
::selection { background: rgba(79, 140, 255, 0.35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.br-d { display: none; }
@media (min-width: 760px) { .br-d { display: inline; } }

/* status dots, reused everywhere */
.s-work, .s-need, .s-done { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.s-work { background: var(--blue); box-shadow: 0 0 8px rgba(79, 140, 255, 0.7); }
.s-need { background: var(--amber); box-shadow: 0 0 8px rgba(245, 165, 36, 0.7); }
.s-done { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.55); }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border-radius: 999px;
  font: 500 15px/1 var(--body); letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-light {
  background: var(--paper); color: #0b0b0d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 24px -8px rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.btn-light:hover { background: #fff; box-shadow: 0 1px 0 #fff inset, 0 10px 32px -8px rgba(255, 255, 255, 0.5), 0 0 0 1px #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--paper);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }

.link { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.link:hover { text-decoration-color: var(--paper); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(10, 10, 12, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.nav-inner { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 17px/1 var(--display); letter-spacing: -0.03em; }
.brand .mark { width: 24px; height: 24px; color: var(--paper); }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: 999px; border: 1px solid var(--line-2); }
.nav-toggle span { display: block; width: 14px; height: 1.5px; background: var(--paper); transition: transform 0.3s var(--spring); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav-menu { padding: 8px var(--gutter) 16px; display: grid; background: rgba(10, 10, 12, 0.95); border-bottom: 1px solid var(--line); }
.nav-menu[hidden] { display: none; }
.nav-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.nav-menu a:last-child { border-bottom: 0; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 8px; }
  .nav-toggle, .nav-menu { display: none !important; }
}

/* ---------- Horizon (hero art) ---------- */
.horizon { --hz: 64.7%; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hz-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(79, 140, 255, 0.0) 40%, transparent 70%),
    linear-gradient(180deg, #0a0a0c 0%, #0b0c14 calc(var(--hz) * 0.45), #121633 calc(var(--hz) * 0.8), #2a2350 calc(var(--hz) * 0.93), #48304f calc(var(--hz) - 0.25%), #0a0b10 var(--hz), #070709 100%);
}
.hz-stars {
  position: absolute; inset: 0 0 40% 0; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 34%, #cfd8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, #dfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 7% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 53% 41%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 21%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 6%, #fff 50%, transparent 51%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.hz-glow {
  position: absolute; left: 50%; top: var(--hz); width: 140%; height: 70%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(28% 16% at 50% 50%, rgba(255, 196, 140, 0.55), transparent 70%),
    radial-gradient(48% 26% at 46% 50%, rgba(245, 120, 110, 0.32), transparent 70%),
    radial-gradient(70% 40% at 56% 50%, rgba(110, 90, 230, 0.32), transparent 72%),
    radial-gradient(90% 55% at 50% 50%, rgba(79, 140, 255, 0.22), transparent 75%);
  filter: blur(6px);
  animation: hz-breathe 14s ease-in-out infinite alternate;
}
.hz-line {
  position: absolute; left: 0; right: 0; top: var(--hz); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 190, 255, 0.35) 18%, rgba(255, 228, 200, 0.95) 50%, rgba(160, 190, 255, 0.35) 82%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 200, 160, 0.35);
}
.hz-sea {
  position: absolute; left: 0; right: 0; top: var(--hz); bottom: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 210, 180, 0.07) 0 1px, transparent 1px 7px),
    radial-gradient(40% 30% at 50% 0%, rgba(255, 190, 150, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(40, 30, 70, 0.6), rgba(10, 10, 12, 1) 85%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 85%);
}
.hz-ring {
  position: absolute; left: 50%; top: var(--hz); width: min(112vw, 1240px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(190, 205, 255, 0.10);
  mask-image: linear-gradient(180deg, #000 0%, #000 49.5%, transparent 50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 49.5%, transparent 50%);
}
.hz-ring::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(190, 205, 255, 0.06);
}
.hz-ring i {
  position: absolute; left: 93.3%; top: 25%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(79, 140, 255, 0.12), 0 0 30px 8px rgba(79, 140, 255, 0.55);
  animation: pulse 2.6s ease-in-out infinite;
}
.hz-grain {
  position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes hz-breathe { from { opacity: 0.85; transform: translate(-50%, -50%) scale(1); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.75; transform: scale(0.82); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 960px); margin-top: -64px; padding: clamp(120px, 17vh, 170px) var(--gutter) 210px; display: grid; isolation: isolate; }
.hero .horizon { --hz: calc(100% - 150px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--ink)); z-index: -1; }
.hero .horizon { z-index: -2; }
.hero-inner { max-width: 1240px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(12px, 5vh, 60px); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color 0.2s, border-color 0.2s;
}
.eyebrow-pill:hover { color: var(--paper); border-color: rgba(255, 255, 255, 0.25); }
.ep-arrow { transition: transform 0.3s var(--spring); }
.eyebrow-pill:hover .ep-arrow { transform: translateX(3px); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 2.2s ease-in-out infinite; flex: none; }
.hero-title {
  margin-top: 26px;
  font: 600 clamp(42px, 6.4vw, 84px)/0.98 var(--display);
  letter-spacing: -0.05em;
  color: var(--paper);
}
.hero-title span { display: block; color: rgba(244, 244, 245, 0.4); }
.hero-sub { margin-top: 26px; max-width: 620px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: #c4c4cc; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--dim); letter-spacing: 0.005em; }
.hero-meta span { margin-inline: 6px; opacity: 0.6; }

.load-1, .load-2, .load-3, .load-4, .load-5 { animation: rise 0.9s var(--ease) both; }
.load-2 { animation-delay: 0.08s; }
.load-3 { animation-delay: 0.18s; }
.load-4 { animation-delay: 0.26s; }
.load-5 { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Agents strip ---------- */
.agents { position: relative; padding: 24px var(--gutter) 0; text-align: center; }
.agents-title { font: 500 13px/1.4 var(--body); color: var(--dim); letter-spacing: 0.02em; }
.chips { list-style: none; margin: 20px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 900px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border-radius: 999px;
  font: 500 14.5px/1 var(--display); letter-spacing: -0.015em; color: #d8d8de;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.chip-g { font: 500 12px/1 var(--mono); color: var(--dim); min-width: 14px; text-align: center; }
.agents-note { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--blue); letter-spacing: 0.02em; margin-bottom: 18px; text-transform: lowercase; }
.eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.6; }
.h2 { font: 600 clamp(34px, 5.2vw, 60px)/1.02 var(--display); letter-spacing: -0.045em; }
.lede { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Demo ---------- */
.demo { padding-top: clamp(72px, 9vw, 120px); }
.demo-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.demo-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.dtab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color 0.2s, background-color 0.2s; overflow: hidden; }
.dtab:hover { color: var(--paper); }
.dtab[aria-selected="true"] { color: var(--paper); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dtab-n { font: 500 11px/1 var(--mono); color: var(--dim); }
.dtab[aria-selected="true"] .dtab-n { color: var(--blue); }
.dtab-bar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 1.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); opacity: 0; }
.dtab[aria-selected="true"] .dtab-bar { opacity: 1; }
.dtab-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); border-radius: inherit; }
.demo-pause { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.demo-pause:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.demo-pause svg { width: 14px; height: 14px; fill: currentColor; }
.demo-pause .i-play, .demo-pause[aria-pressed="true"] .i-pause { display: none; }
.demo-pause[aria-pressed="true"] .i-play { display: block; }
.demo-caption { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 15px; min-height: 3.2em; }
@media (max-width: 640px) {
  .dtab-l { display: none; }
  .dtab { padding: 0 14px; }
  .dtab[aria-selected="true"] .dtab-l { display: inline; }
}

.stage {
  container-type: inline-size; container-name: stage;
  position: relative; border-radius: 20px; padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(79, 140, 255, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.stage::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 40% at 50% 0%, rgba(160, 190, 255, 0.18), transparent 70%); mix-blend-mode: screen; }
.screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px;
  font-size: 1.12cqw; line-height: 1.45; color: var(--paper);
  font-family: var(--body);
  user-select: none; -webkit-user-select: none;
}
.sc-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 85%, rgba(245, 120, 110, 0.35), transparent 70%),
    radial-gradient(70% 60% at 20% 90%, rgba(79, 140, 255, 0.35), transparent 70%),
    radial-gradient(80% 60% at 50% 0%, rgba(90, 70, 190, 0.35), transparent 70%),
    linear-gradient(180deg, #14142a, #1d1830 60%, #2a1f2e);
}
.screen.is-dim .sc-wall, .screen.is-dim .term { filter: brightness(0.55) saturate(0.8); }
.sc-wall, .term { transition: filter 0.6s var(--ease); }
.sc-bar { position: absolute; left: 0; right: 0; top: 0; height: 2.1em; display: flex; justify-content: space-between; align-items: center; padding: 0 1.2em; background: rgba(12, 12, 20, 0.45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 0.92em; z-index: 4; }
.sc-bar-l { display: flex; gap: 1.3em; align-items: center; font-weight: 600; }
.sc-bar-l b { width: 0.9em; height: 0.9em; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.sc-bar-l span { font-weight: 400; opacity: 0.8; }
.sc-bar-r { display: flex; gap: 1em; align-items: center; opacity: 0.9; }
.sc-bar .mark, .ph-head .mark { width: 1.3em; height: 1.3em; color: var(--paper); }

.term {
  position: absolute; display: flex; flex-direction: column;
  border-radius: 0.8em; overflow: hidden;
  background: rgba(14, 14, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2em 4em -1em rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.t1 { left: 3%; top: 9%; width: 45%; height: 50%; }
.t2 { left: 27%; top: 30%; width: 45%; height: 54%; z-index: 2; }
.t3 { left: 5%; top: 63%; width: 36%; height: 32%; }
.term-top { position: relative; display: flex; align-items: center; gap: 0.45em; height: 2.3em; padding: 0 0.9em; background: rgba(255, 255, 255, 0.035); border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex: none; }
.term-top i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #3a3a40; }
.term-top i:first-child { background: #ff5f57; } .term-top i:nth-child(2) { background: #febc2e; } .term-top i:nth-child(3) { background: #28c840; }
.term-t { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.9em; color: #b9b9c2; white-space: nowrap; }
.term-tag { margin-left: auto; font: 500 0.78em/1 var(--mono); color: #8e8e98; padding: 0.3em 0.55em; border-radius: 0.4em; background: rgba(255, 255, 255, 0.05); white-space: nowrap; }
.term-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0.7em 1em 0.9em; overflow: hidden; font: 0.88em/1.6 var(--mono); color: #c9c9d1; mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); }
.term-body > div { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: line-in 0.35s var(--ease) both; }
.term-body .c-dim { color: #7a7a85; }
.term-body .c-blue { color: #8fb4ff; }
.term-body .c-green { color: #5ee08f; }
.term-body .c-amber { color: var(--amber); }
.term-body .c-q { color: var(--amber); font-weight: 500; }
.term-body .cursor::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.2em; vertical-align: -0.15em; background: #c9c9d1; animation: blink 1s steps(1) infinite; }
.term[data-s="need"] { border-color: rgba(245, 165, 36, 0.55); box-shadow: 0 0 0 1px rgba(245, 165, 36, 0.25), 0 0 3em -0.5em rgba(245, 165, 36, 0.35), 0 2em 4em -1em rgba(0, 0, 0, 0.6); }
.term { transition: border-color 0.4s, box-shadow 0.4s, filter 0.6s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

.pill {
  position: absolute; right: 1.1%; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 0.75em;
  padding: 0.75em 0.55em; border-radius: 99em;
  background: rgba(16, 16, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 1em 2.5em -0.5em rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pill-mark svg { width: 1.6em; height: 1.6em; color: var(--paper); }
.pd { width: 0.75em; height: 0.75em; border-radius: 50%; transition: background-color 0.35s, box-shadow 0.35s, transform 0.35s var(--spring); }
.pd[data-s="work"] { background: var(--blue); box-shadow: 0 0 0.7em rgba(79, 140, 255, 0.8); animation: dot-work 1.8s ease-in-out infinite; }
.pd[data-s="need"] { background: var(--amber); box-shadow: 0 0 0 0.3em rgba(245, 165, 36, 0.18), 0 0 1em rgba(245, 165, 36, 0.9); transform: scale(1.25); }
.pd[data-s="done"] { background: var(--green); box-shadow: 0 0 0.7em rgba(34, 197, 94, 0.7); }
.pill-count { font: 600 0.82em/1 var(--mono); min-width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 99em; background: rgba(255, 255, 255, 0.07); color: var(--dim); transition: background-color 0.3s, color 0.3s; }
.pill-count.is-on { background: var(--amber); color: #1a1205; }
.pill.ping { animation: ping 0.7s var(--spring); }
@keyframes dot-work { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes ping { 0% { transform: translateY(-50%) scale(1); } 40% { transform: translateY(-50%) scale(1.12); } 100% { transform: translateY(-50%) scale(1); } }

.inbox {
  position: absolute; right: 5.4%; top: 11%; width: 33%; z-index: 5;
  padding: 0.9em; border-radius: 1.1em;
  background: rgba(20, 20, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3em 6em -1.5em rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  opacity: 0; transform: translateX(2em) scale(0.97); transform-origin: right center;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--spring);
}
.screen.inbox-open .inbox { opacity: 1; transform: none; }
.ib-head { display: flex; justify-content: space-between; align-items: center; padding: 0.1em 0.2em 0.75em; font: 600 1.05em/1 var(--display); letter-spacing: -0.02em; }
.ib-keys { display: flex; gap: 0.3em; }
.ib-keys kbd { font-size: 0.68em; }
.ib-card, .ph-card {
  position: relative; padding: 0.95em; border-radius: 0.85em;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: none;
}
.ib-meta { display: flex; align-items: center; gap: 0.45em; font-size: 0.85em; color: #b4b4bd; }
.ib-meta b { color: var(--paper); font-weight: 600; }
.ib-sep { opacity: 0.5; }
.ib-meta .st { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0.6em rgba(245, 165, 36, 0.9); }
.ib-where { margin-left: auto; font: 0.78em/1 var(--mono); color: #85858f; }
.ib-q { margin: 0.55em 0 0.8em; font: 500 1.08em/1.35 var(--display); letter-spacing: -0.015em; }
.ib-opts { display: flex; flex-wrap: wrap; gap: 0.4em; }
.opt { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.35em 0.65em 0.35em 0.35em; border-radius: 0.55em; font-size: 0.85em; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #d5d5dc; transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--spring); }
.opt kbd { font-size: 0.85em; min-width: 1.6em; height: 1.6em; }
.ib-pending, .ib-sent { display: none; align-items: center; gap: 0.6em; margin-top: 0.8em; padding-top: 0.75em; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.85em; color: #c9c9d1; }
.ib-undo { margin-left: 0.4em; color: #85858f; }
.ib-undo kbd { font-size: 0.8em; }
.ring { width: 1.5em; height: 1.5em; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2.4; }
.ring .ring-fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 50.27; stroke-dashoffset: 0; }
.ok { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(34, 197, 94, 0.18); color: #5ee08f; font-size: 0.85em; font-weight: 700; }
.ib-time { margin-left: auto; font: 0.9em/1 var(--mono); color: #85858f; }
.ib-empty { display: none; align-items: center; gap: 0.6em; padding: 1.3em 0.9em; border-radius: 0.85em; border: 1px dashed rgba(255, 255, 255, 0.1); color: #a5a5ae; font-size: 0.92em; animation: line-in 0.5s var(--ease) both; }
.ib-empty-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0.6em rgba(34, 197, 94, 0.8); }

/* card states (shared by desktop card and phone card) */
.screen.card-in [data-card], .screen.pcard-in [data-pcard] { display: block; animation: card-in 0.6s var(--spring) both; }
.screen.card-pressed [data-opt], .screen.pcard-pressed [data-popt] { background: rgba(79, 140, 255, 0.22); border-color: rgba(79, 140, 255, 0.7); color: #fff; transform: scale(0.96); }
.screen.card-pending [data-card] .ib-pending, .screen.pcard-pending [data-pcard] .ib-pending { display: flex; }
.screen.card-sent [data-card] .ib-pending, .screen.pcard-sent [data-pcard] .ib-pending { display: none; }
.screen.card-sent [data-card] .ib-sent, .screen.pcard-sent [data-pcard] .ib-sent { display: flex; animation: line-in 0.4s var(--ease) both; }
.screen.card-sent [data-card] .st, .screen.pcard-sent [data-pcard] .st { background: var(--green); box-shadow: 0 0 0.6em rgba(34, 197, 94, 0.8); }
.screen.card-gone [data-card], .screen.pcard-gone [data-pcard] { display: block; animation: card-out 0.5s var(--ease) both; }
.screen.inbox-empty .ib-empty { display: flex; }
.screen.inbox-empty [data-card] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(-0.8em) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: translateX(3em); } }

.keycap {
  position: absolute; left: 50%; bottom: 7%; z-index: 8;
  width: 5.2em; height: 5.2em; margin-left: -2.6em;
  display: grid; place-items: center;
  border-radius: 1em;
  background: linear-gradient(180deg, #34343b, #202025);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0.5em 0 #0d0d10, 0 1.2em 2.5em rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: 600 2.2em/1 var(--display); font-size: 2.2em; width: 2.4em; height: 2.4em; margin-left: -1.2em; border-radius: 0.45em;
  opacity: 0; transform: translateY(1em) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--spring), box-shadow 0.12s;
}
.screen.key-show .keycap { opacity: 1; transform: none; }
.screen.key-down .keycap { transform: translateY(0.2em) scale(0.97); box-shadow: 0 0.05em 0 #0d0d10, 0 0.4em 1em rgba(0, 0, 0, 0.6), 0 0 2em rgba(79, 140, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12); border-color: rgba(79, 140, 255, 0.8); }

.phone {
  position: absolute; right: 9%; bottom: 3%; z-index: 9;
  width: 19%; aspect-ratio: 9 / 19; padding: 0.9em 0.75em;
  border-radius: 2.2em;
  background: #0c0c0f;
  border: 0.32em solid #1f1f24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 3em 6em -1em rgba(0, 0, 0, 0.9), 0 0 6em -1em rgba(79, 140, 255, 0.35);
  display: flex; flex-direction: column; gap: 0.6em;
  font-size: 0.86em;
  opacity: 0; transform: translateY(40%) rotate(4deg);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--spring);
}
.screen.phone-in .phone { opacity: 1; transform: none; }
.ph-notch { position: absolute; left: 50%; top: 0.55em; width: 32%; height: 1.15em; margin-left: -16%; border-radius: 1em; background: #000; }
.ph-status { display: flex; justify-content: space-between; padding: 0 0.6em; font: 600 0.8em/1 var(--body); }
.ph-sig { display: flex; gap: 0.15em; align-items: flex-end; }
.ph-sig i { width: 0.25em; background: var(--paper); border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 0.4em; } .ph-sig i:nth-child(2) { height: 0.6em; } .ph-sig i:nth-child(3) { height: 0.8em; }
.ph-head { display: flex; align-items: center; gap: 0.45em; margin-top: 0.6em; padding: 0 0.2em; font: 600 1.35em/1 var(--display); letter-spacing: -0.03em; }
.ph-card { padding: 0.85em; }
.ph-card .ib-q { font-size: 1.02em; }
.ph-where { margin: 0.35em 0 0; display: block; }
.ph-opts { display: grid; gap: 0.4em; }
.ph-opts .opt { position: relative; justify-content: center; padding: 0.65em; font-weight: 500; overflow: hidden; }
.ph-opts .opt:first-child { background: rgba(255, 255, 255, 0.1); }
.tap { position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.5); opacity: 0; transform: scale(0.2); }
.screen.pcard-pressed .tap { animation: tap 0.6s var(--ease); }
@keyframes tap { 0% { opacity: 0.6; transform: scale(0.2); } 100% { opacity: 0; transform: scale(2.4); } }
.ph-empty { display: none; padding: 1.2em 0.8em; text-align: center; color: #a5a5ae; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 0.8em; }
.screen.phone-empty .ph-empty { display: block; animation: line-in 0.5s var(--ease) both; }
.screen.phone-empty [data-pcard] { display: none; }
.ph-agents { margin-top: auto; display: grid; gap: 0.45em; padding: 0.7em; border-radius: 0.8em; background: rgba(255, 255, 255, 0.03); font: 0.85em/1 var(--mono); color: #a5a5ae; }
.ph-agents span { display: flex; align-items: center; gap: 0.55em; }
.ph-agents i { width: 0.6em; height: 0.6em; }
.ph-agents i[data-s="need"] { background: var(--amber); box-shadow: 0 0 0.6em rgba(245, 165, 36, 0.9); }

.screen.is-paused *, .screen.is-paused { animation-play-state: paused !important; }

@container stage (max-width: 700px) {
  .screen { aspect-ratio: 3 / 4; font-size: 2.85cqw; }
  .t1 { left: 4%; top: 8%; width: 82%; height: 34%; }
  .t2 { left: 9%; top: 27%; width: 82%; height: 40%; }
  .t3 { display: none; }
  .inbox { left: 4%; right: 13%; width: auto; top: auto; bottom: 4%; }
  .pill { right: 2%; }
  .phone { right: auto; left: 50%; margin-left: -24%; width: 48%; bottom: 3%; }
  .keycap { bottom: auto; top: 30%; }
  .sc-bar-l span { display: none; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 24px 30px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--card), var(--ink-2)); border: 1px solid var(--line); }
.step h3 { margin-top: 10px; font: 600 22px/1.2 var(--display); letter-spacing: -0.03em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-top: 22px; border-radius: 50%; font: 500 13px/1 var(--mono); color: var(--paper); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.step-art { height: 200px; border-radius: var(--r-md); background: radial-gradient(80% 90% at 50% 110%, rgba(79, 140, 255, 0.16), transparent 70%), #0d0d10; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 18px; }
.step:nth-child(2) .step-art { background: radial-gradient(80% 90% at 50% 110%, rgba(140, 100, 255, 0.18), transparent 70%), #0d0d10; }
.step:nth-child(3) .step-art { background: radial-gradient(80% 90% at 50% 110%, rgba(245, 165, 36, 0.15), transparent 70%), #0d0d10; }
.census { width: 100%; max-width: 290px; display: grid; gap: 7px; font-size: 12.5px; }
.cs-row { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.cs-row span { font-weight: 500; }
.cs-row em { font-style: normal; color: var(--dim); font-size: 11.5px; }
.cs-row b { margin-left: auto; font: 500 10.5px/1 var(--mono); color: #5ee08f; }
.cs-scan { color: var(--dim); border-style: dashed; }
.cs-scan i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--dim); border-top-color: transparent; animation: spin 1s linear infinite; }
.cs-scan span { font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }
.pair { display: flex; align-items: center; gap: 20px; }
.qr { width: 108px; height: 108px; padding: 10px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 40px -8px rgba(140, 100, 255, 0.5); }
.qr svg { width: 100%; height: 100%; }
.pair-list { display: grid; gap: 8px; font: 500 12.5px/1 var(--mono); color: #c9c9d1; }
.pair-list span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.answer { width: 100%; max-width: 260px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ans-q { font: 500 15px/1.3 var(--display); letter-spacing: -0.015em; }
.ans-keys { margin-top: 14px; display: flex; gap: 8px; font-size: 16px; }
.ans-keys kbd { width: 2.2em; height: 2.2em; }
.ans-keys .is-hit { background: linear-gradient(#3b6fd6, #2d5ab8); border-color: rgba(140, 180, 255, 0.6); box-shadow: 0 0 18px rgba(79, 140, 255, 0.5); animation: hit 2.4s var(--ease) infinite; }
.ans-ok { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9c9d1; animation: fade-loop 2.4s var(--ease) infinite; }
@keyframes hit { 0%, 20% { transform: none; } 28% { transform: translateY(2px) scale(0.95); } 40%, 100% { transform: none; } }
@keyframes fade-loop { 0%, 40% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Features (bento) ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .f-inbox { grid-column: span 4; }
  .f-pill { grid-column: span 2; }
  .f-router, .f-phone, .f-machines { grid-column: span 2; }
  .f-runtimes { grid-column: span 6; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
  .f-runtimes .fart { order: 2; }
}
.fcard {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), #0d0d10);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.fcard:hover { border-color: var(--line-2); }
.fart { position: relative; height: 260px; display: grid; place-items: center; padding: 22px; overflow: hidden; isolation: isolate; }
.fart::before { content: ""; position: absolute; inset: -20%; z-index: -1; opacity: 0.9; filter: blur(30px); }
.f-inbox .fart::before { background: radial-gradient(40% 50% at 30% 70%, rgba(79, 140, 255, 0.45), transparent 70%), radial-gradient(40% 50% at 75% 40%, rgba(60, 200, 230, 0.25), transparent 70%); }
.f-pill .fart::before { background: radial-gradient(45% 55% at 50% 60%, rgba(245, 165, 36, 0.32), transparent 70%), radial-gradient(40% 40% at 30% 30%, rgba(230, 80, 120, 0.22), transparent 70%); }
.f-router .fart::before { background: radial-gradient(50% 55% at 50% 60%, rgba(140, 100, 255, 0.42), transparent 70%); }
.f-phone .fart::before { background: radial-gradient(45% 55% at 50% 70%, rgba(236, 90, 140, 0.35), transparent 70%), radial-gradient(40% 40% at 70% 20%, rgba(79, 140, 255, 0.25), transparent 70%); }
.f-machines .fart::before { background: radial-gradient(50% 55% at 50% 60%, rgba(34, 197, 94, 0.25), transparent 70%), radial-gradient(40% 40% at 20% 30%, rgba(79, 140, 255, 0.25), transparent 70%); }
.f-runtimes .fart::before { background: radial-gradient(40% 55% at 50% 60%, rgba(79, 140, 255, 0.35), transparent 70%), radial-gradient(30% 40% at 80% 30%, rgba(245, 165, 36, 0.2), transparent 70%); }
.ftext { padding: 4px 26px 26px; }
.f-runtimes .ftext { padding: 30px 34px; }
.ftext h3 { font: 600 21px/1.2 var(--display); letter-spacing: -0.03em; }
.ftext p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 46ch; }

.glass { background: rgba(18, 18, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.mi-inbox { width: 100%; max-width: 440px; display: grid; gap: 8px; align-self: start; mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
.mi-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(18, 18, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; opacity: 0.55; transform: scale(0.97); }
.mi-card.is-active { opacity: 1; transform: none; border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.mi-meta { display: flex; align-items: center; gap: 7px; color: #b4b4bd; font-size: 12px; }
.mi-q { font: 500 14.5px/1.3 var(--display); letter-spacing: -0.01em; color: var(--paper); }
.mi-opts { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c9c9d1; }
.mi-opts kbd { font-size: 11px; }
.mi-opts kbd + kbd, .mi-opts kbd:not(:first-child) { margin-left: 6px; }

.mi-pill { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 999px; background: rgba(16, 16, 20, 0.85); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.mi-pill-mark { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--paper); position: relative; }
.mi-pill-mark::after { content: ""; position: absolute; right: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(16, 16, 20, 1); }
.mi-pill i { width: 10px; height: 10px; }
.mi-pill .s-work { animation: dot-work 1.8s ease-in-out infinite; }
.mi-pill .s-need { transform: scale(1.2); }
.mi-legend { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; font: 11.5px/1 var(--mono); color: var(--dim); }
.mi-legend span { display: flex; align-items: center; gap: 6px; }
.f-pill .fart { grid-template-rows: 1fr; }

.mi-router { display: grid; justify-items: center; gap: 14px; text-align: center; }
.mi-keys { display: flex; gap: 8px; font-size: 22px; }
.mi-keys kbd { width: 2.1em; height: 2.1em; border-radius: 0.3em; }
.mi-keys .tap1 { animation: opt-tap 2.8s var(--ease) infinite; }
.mi-keys .tap2 { animation: opt-tap 2.8s var(--ease) 0.18s infinite; }
@keyframes opt-tap { 0%, 10% { transform: none; } 15% { transform: translateY(3px) scale(0.94); background: linear-gradient(#3b6fd6, #2d5ab8); } 22%, 100% { transform: none; } }
.mi-say { max-width: 250px; padding: 10px 14px; border-radius: 14px; font-size: 13px; color: var(--paper); background: rgba(18, 18, 22, 0.75); border: 1px solid rgba(255, 255, 255, 0.1); }
.mi-route { display: flex; align-items: center; gap: 8px; font: 11.5px/1 var(--mono); color: var(--dim); }
.mi-route b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: var(--paper); background: rgba(79, 140, 255, 0.14); border: 1px solid rgba(79, 140, 255, 0.4); font-weight: 500; }

.mi-phone { position: relative; width: 168px; height: 300px; margin-top: 90px; padding: 34px 10px 10px; border-radius: 30px; background: #0c0c0f; border: 4px solid #1f1f24; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.9); display: grid; gap: 7px; align-content: start; }
.mi-ph-notch { position: absolute; top: 8px; left: 50%; width: 56px; height: 16px; margin-left: -28px; border-radius: 10px; background: #000; }
.mi-ph-card { display: grid; gap: 5px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 11px; }
.mi-ph-card .mi-meta { font-size: 10.5px; }
.mi-ph-card .mi-q { font-size: 12.5px; }
.mi-ph-card.dim { opacity: 0.55; }
.mi-ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 2px; }
.mi-ph-btns b { padding: 6px; text-align: center; border-radius: 8px; font-weight: 500; font-size: 11px; background: rgba(255, 255, 255, 0.06); }
.mi-ph-btns b:first-child { background: var(--paper); color: var(--ink); }

.mi-machines { width: 100%; max-width: 320px; display: grid; gap: 8px; }
.mi-m { display: grid; grid-template-columns: 1fr auto 10px; grid-template-areas: "n c d" "k c d"; align-items: center; column-gap: 12px; row-gap: 3px; padding: 11px 14px; border-radius: 12px; background: rgba(18, 18, 22, 0.75); border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mi-m-n { grid-area: n; font: 500 13.5px/1.2 var(--mono); }
.mi-m-k { grid-area: k; font-size: 11.5px; color: var(--dim); }
.mi-m-c { grid-area: c; font-size: 12px; color: #c9c9d1; }
.mi-m i { grid-area: d; }

.mi-rt { position: relative; width: 100%; max-width: 380px; height: 170px; }
.rt-lines { position: absolute; left: 0; top: 18px; width: 100%; height: 120px; }
.rt-lines path { fill: none; stroke: rgba(160, 190, 255, 0.35); stroke-width: 1.2; stroke-dasharray: 4 5; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.rt { position: absolute; z-index: 1; padding: 9px 16px; border-radius: 999px; font: 500 13.5px/1 var(--display); background: rgba(18, 18, 22, 0.85); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.9); transform: translate(-50%, -50%); }
.rt-a { left: 16.6%; top: 28%; }
.rt-b { left: 83.3%; top: 28%; }
.rt-c { left: 50%; top: 92%; }
.rt-hub { position: absolute; left: 50%; top: 53%; z-index: 1; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(#1d1d21, #0a0a0c); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 40px -6px rgba(79, 140, 255, 0.6); color: var(--paper); }
.rt-hub svg { width: 32px; height: 32px; }

/* ---------- Benefits ---------- */
.benefits { list-style: none; margin: 72px 0 0; padding: 0; display: grid; gap: 32px 28px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { padding-top: 22px; border-top: 1px solid var(--line); }
.benefit svg { width: 22px; height: 22px; color: var(--blue); }
.benefit h3 { margin-top: 14px; font: 600 17px/1.3 var(--display); letter-spacing: -0.02em; }
.benefit p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.benefit kbd { font-size: 0.75em; }

/* ---------- Film ---------- */
.film-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #0d0d10; box-shadow: 0 40px 100px -40px rgba(79, 140, 255, 0.3); }
.film-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0d0d10; }
.film-soon { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; font-size: 13.5px; color: var(--paper); background: rgba(12, 12, 16, 0.75); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); white-space: nowrap; }
.film-soon[hidden] { display: none; }

/* ---------- Pricing ---------- */
.price-switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s, background-color 0.25s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-checked="true"] { color: var(--ink); background: var(--paper); }
.seg-sm button { padding: 0 12px; font: 500 12.5px/1 var(--mono); }
.save { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgba(34, 197, 94, 0.16); color: #5ee08f; }
.seg button[aria-checked="true"] .save { background: rgba(10, 120, 50, 0.14); color: #0f7a3a; }
.plans { display: grid; gap: 16px; max-width: 880px; margin-inline: auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; overflow: hidden; padding: 30px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--card), #0d0d10); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan-hl { border-color: rgba(79, 140, 255, 0.35); background: linear-gradient(180deg, #131826, #0d0d12); }
.plan-glow { position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(79, 140, 255, 0.35), transparent 70%); filter: blur(20px); pointer-events: none; }
.plan > :not(.plan-glow) { position: relative; }
.plan-name { display: flex; align-items: center; gap: 10px; font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.badge { font: 500 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 999px; color: #b9d0ff; background: rgba(79, 140, 255, 0.16); border: 1px solid rgba(79, 140, 255, 0.35); }
.plan-desc { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan-price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; font: 600 56px/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan-price .per { font: 400 16px/1 var(--body); letter-spacing: 0; color: var(--muted); }
.plan-note { margin-top: 10px; min-height: 1.6em; font-size: 14px; color: var(--dim); }
.plan .btn { margin-top: 24px; }
.plan-list { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15px; color: #d0d0d6; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(79, 140, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%238fb4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.price-foot { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 14px; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } .faq .section-head { position: sticky; top: 110px; align-self: start; } }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; text-align: left; font: 500 17.5px/1.35 var(--display); letter-spacing: -0.015em; color: var(--paper); transition: color 0.2s; }
.acc-btn:hover { color: #fff; }
.acc-i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.4s var(--spring), background-color 0.2s; }
.acc-i::before, .acc-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: var(--paper); border-radius: 1px; transition: transform 0.4s var(--spring); }
.acc-i::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-i { transform: rotate(180deg); background: rgba(255, 255, 255, 0.06); }
.acc-btn[aria-expanded="true"] .acc-i::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 44px 24px 2px; color: var(--muted); font-size: 15.5px; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }

/* ---------- Closing ---------- */
.closing { padding: 0 0 clamp(80px, 10vw, 120px); }
.closing-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; border: 1px solid var(--line-2); min-height: 520px; display: grid; place-items: center; text-align: center; padding: 80px 20px 170px; }
.closing-panel .horizon { z-index: -1; }
.closing-panel .horizon { --hz: calc(100% - 120px); }
.closing-title { font-size: clamp(38px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.05em; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.footer-links a { padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }
.footer-copy { margin-left: auto; font-size: 13px; color: var(--dim); }
@media (max-width: 640px) { .footer-copy { margin-left: 0; width: 100%; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; font-size: 14.5px; background: rgba(24, 24, 28, 0.92); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: toast-in 0.45s var(--spring) both; }
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Sub pages ---------- */
.page-hero { position: relative; isolation: isolate; margin-top: -64px; padding: 150px var(--gutter) 70px; text-align: center; overflow: hidden; }
.page-hero .horizon { z-index: -1; }
.page-hero .horizon { --hz: 92%; }
.page-hero h1 { font: 600 clamp(40px, 6.5vw, 76px)/1 var(--display); letter-spacing: -0.05em; }
.page-hero p { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.page-body { padding-block: 40px clamp(80px, 10vw, 120px); }
.prose { max-width: 720px; margin-inline: auto; color: #c9c9d1; font-size: 16px; }
.prose h2 { margin: 44px 0 12px; font: 600 24px/1.25 var(--display); letter-spacing: -0.03em; color: var(--paper); }
.prose h3 { margin: 28px 0 8px; font: 600 18px/1.3 var(--display); color: var(--paper); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.prose .updated { font: 13px/1 var(--mono); color: var(--dim); }
.prose strong { color: var(--paper); font-weight: 600; }

.dl-card { max-width: 720px; margin: 0 auto; padding: 32px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--card), #0d0d10); border: 1px solid var(--line-2); text-align: center; }
.dl-icon { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 18px 30px rgba(79, 140, 255, 0.35)); }
.dl-card h2 { font: 600 26px/1.2 var(--display); letter-spacing: -0.03em; }
.dl-meta { margin-top: 8px; color: var(--muted); font-size: 15px; }
.dl-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dl-alt { margin-top: 16px; font-size: 14px; color: var(--dim); }
.dl-alt button { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.install { list-style: none; counter-reset: s; margin: 56px auto 0; padding: 0; max-width: 720px; display: grid; gap: 12px; }
.install li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.install li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 500 13px/1 var(--mono); border: 1px solid var(--line-2); }
.install h3 { font: 600 17px/1.3 var(--display); letter-spacing: -0.02em; }
.install p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.req { margin: 40px auto 0; max-width: 720px; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.req div { padding: 16px 18px; background: var(--ink-2); }
.req dt { font: 12px/1 var(--mono); color: var(--dim); }
.req dd { margin: 8px 0 0; font-size: 15px; }

.form { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.input { flex: 1 1 240px; height: 50px; padding: 0 18px; border-radius: 999px; font: 16px var(--body); color: var(--paper); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); transition: border-color 0.2s, background-color 0.2s; }
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--blue); background: rgba(79, 140, 255, 0.06); }
.form-msg { margin-top: 12px; min-height: 1.5em; font-size: 14.5px; color: var(--muted); }
.form-msg.is-err { color: #ff8a8a; }
.form-msg.is-ok { color: #5ee08f; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.keybox { margin: 22px auto 0; max-width: 560px; display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); }
.keybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; color: #c9c9d1; text-align: left; }
.cards-3 { display: grid; gap: 14px; max-width: 920px; margin-inline: auto; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.cards-3 a, .cards-3 div.box { display: block; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), #0d0d10); transition: border-color 0.2s, transform 0.3s var(--spring); }
.cards-3 a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cards-3 h3 { font: 600 18px/1.3 var(--display); letter-spacing: -0.02em; }
.cards-3 p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.dl-card.resend { margin-top: 56px; }
.resend .form { justify-content: center; }
.page-body > .wrap > .dl-actions { justify-content: center; }
