/* any — product site. Self-contained: no external fonts, scripts or trackers.
   Every URL in this module is relative, so the folder can be served from
   /any/ on the company domain or as the root of any.<domain> unchanged.
   Frameless by design: surfaces are separated by light and depth, never by outlines. */

:root {
  /* Canvas: deep space */
  --space-0: #05060a;
  --space-1: #06070b;
  --space-2: #0a0d14;

  /* Text — mirrors ThemePalette (black theme) */
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.40);
  --text-4: rgba(255, 255, 255, 0.22);

  /* App controls — ThemePalette (black theme) */
  --app-card: rgba(255, 255, 255, 0.04);
  --app-control: rgba(255, 255, 255, 0.08);
  --app-icon: rgba(255, 255, 255, 0.85);

  /* Status colours used by the app */
  --ok: #33c773;          /* Color(0.20, 0.78, 0.45) */
  --selection: #64d2ff;   /* SwiftUI .cyan (dark) — «Выделение» */

  /* Agent colours: only ever shown while the agent works (CommandModeBadge.swift) */
  --agent-violet: #9e73ff; /* Color(0.62, 0.45, 1.0) */
  --agent-blue: #4d8cff;   /* Color(0.30, 0.55, 1.0) */
  --agent-pink: #ff73bf;   /* Color(1.0, 0.45, 0.75) */
  --agent-sky: #8fd1ff;    /* Color(0.56, 0.82, 1.0) */
  --agent-tint: #ad85ff;   /* Color(0.68, 0.52, 1.0) */

  /* Atmosphere (site only) */
  --horizon: #9cc7ff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--space-1);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--horizon); outline-offset: 4px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 760px) { :root { --gutter: 36px; } }

/* ---------- Sky: starfield + horizon (fixed, behind everything) ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(120% 70% at 50% 120%, #0d1626 0%, rgba(10, 13, 20, 0) 60%),
  linear-gradient(180deg, var(--space-0) 0%, var(--space-1) 45%, var(--space-2) 100%); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* A section with its own horizon: a planet limb glowing at the bottom edge */
.horizon { position: relative; isolation: isolate; overflow-x: clip; }
.horizon::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; z-index: -1;
  width: max(1600px, 160vw); aspect-ratio: 1; transform: translate(-50%, 92%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #04060b 97.4%, rgba(4, 6, 11, 0) 100%);
  box-shadow: 0 -2px 0 rgba(156, 199, 255, 0.55), 0 -18px 60px rgba(156, 199, 255, 0.22), 0 -80px 180px rgba(80, 130, 220, 0.18), 0 -10px 30px rgba(255, 184, 119, 0.10);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 -2px 0 rgba(156, 199, 255, 0.7), 0 -24px 80px rgba(156, 199, 255, 0.3), 0 -110px 220px rgba(80, 130, 220, 0.24), 0 -10px 30px rgba(255, 184, 119, 0.14); } }

/* ---------- Typography ---------- */
.display { font-size: clamp(42px, 7.4vw, 96px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.title { font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; max-width: 900px; }
.sub { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: clamp(17px, 1.8vw, 21px); color: var(--text-2); }
.meta { margin-top: 22px; font: 500 12.5px/1.6 var(--font-mono); color: var(--text-3); letter-spacing: .02em; }
.meta .dot { display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: var(--text-3); vertical-align: middle; }
.grad-text { background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-wide { display: none; }
@media (min-width: 760px) { .br-wide { display: inline; } }

/* ---------- Keys (borderless caps, lit from above) ---------- */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 36px; padding: 0 12px;
  font: 600 14px/1 var(--font-rounded); color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border-radius: 9px; box-shadow: 0 3px 0 rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .35);
  white-space: nowrap; vertical-align: middle;
}
.kbd.sm { min-width: 30px; height: 26px; padding: 0 8px; font-size: 12.5px; border-radius: 7px; }
.kbd.is-down { transform: translateY(3px); box-shadow: 0 0 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 40px rgba(156, 199, 255, .35); background: rgba(255, 255, 255, .24); }
.keys-line { display: flex; align-items: center; gap: 4px; margin-bottom: 26px; }
.plus { color: var(--text-3); font-size: 15px; margin: 0 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, opacity .2s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: #fff; color: #000; box-shadow: 0 10px 50px rgba(156, 199, 255, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 60px rgba(156, 199, 255, .4); }
.btn-primary[aria-disabled="true"] { background: rgba(255, 255, 255, .1); color: var(--text-2); box-shadow: none; cursor: default; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn:active { transform: scale(.97); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; transition: background .3s; }
.nav.is-scrolled { background: rgba(6, 7, 11, .55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-3); transition: color .2s, background .2s; }
.lang:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 15vw, 180px) 0; }
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(140px, 18vw, 240px); text-align: center; overflow: hidden; }
.hero .display { margin: 0 auto; max-width: 1000px; }
.hero-cta { display: flex; justify-content: center; margin-top: 8px; }

/* ---------- Screen: a frameless stage where the notch hangs from a line of light ---------- */
.screen { position: relative; width: 100%; max-width: 860px; min-height: 400px; margin: clamp(44px, 6vw, 72px) auto 0; padding: 0 0 36px; isolation: isolate; }
/* the top edge of a display, drawn as light rather than a border */
.screen::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(156, 199, 255, .5) 30%, rgba(255, 255, 255, .8) 50%, rgba(156, 199, 255, .5) 70%, transparent); }
.screen::after { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 220px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(120, 160, 255, .12), transparent 70%); }
.hero-screen { max-width: 940px; min-height: 380px; }
.canvas-text { position: relative; max-width: 620px; margin: 0 auto; padding: clamp(110px, 13vw, 128px) 4px 0; text-align: left; }
.app-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; color: var(--text-3); }
.app-dot { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font: 700 10px/1 var(--font); color: #fff; }
.typed { white-space: pre-wrap; min-height: 1.7em; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.typed.big { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; letter-spacing: -.015em; color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.18em; background: #fff; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sel { background: rgba(100, 160, 255, .38); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* Words arrive out of the light */
.w { display: inline-block; white-space: pre; animation: word-in .7s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes word-in { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: none; } }
.glyph { color: var(--selection); text-shadow: 0 0 12px rgba(100, 210, 255, .7); }

/* Spoken phrase drifting under the notch, then pulled up into it */
.said { position: absolute; z-index: 6; left: 50%; top: 92px; transform: translate(-50%, 6px); width: max-content; max-width: min(560px, calc(100% - 24px));
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-style: italic; color: var(--text-2);
  opacity: 0; filter: blur(6px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease), filter .35s; }
.said svg { width: 14px; height: 14px; flex-shrink: 0; color: #fff; }
.said span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.said.show { opacity: 1; filter: none; transform: translate(-50%, 0); }
.said.up { opacity: 0; transform: translate(-50%, -48px) scale(.85); filter: blur(4px); }

/* ---------- Hero ---------- */
.hero-keys { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 36px; }
.fn-key { position: relative; min-width: 72px; height: 50px; font-size: 16px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .08s, box-shadow .2s, background .08s; }
/* a soft halo invites a press; it flares while the key is held */
.fn-key::after { content: ""; position: absolute; inset: -34px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(156, 199, 255, .32), transparent); animation: halo 2.6s ease-in-out infinite; }
.fn-key.is-down::after { animation: none; opacity: 1; transform: scale(1.25); background: radial-gradient(closest-side, rgba(156, 199, 255, .6), transparent); }
@keyframes halo { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.hold-hint { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-4); }

/* ---------- Notch HUD — geometry from NotchOverlayView / NotchShape ---------- */
.notch-host { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.notch-host > * { pointer-events: auto; }
.notch {
  --top: 32px; --sh: 14px; --rb: 22px; --lvl: 0;
  position: relative; display: block; max-width: 100%;
  width: var(--w, 195px); height: calc(var(--top) + var(--h, 0px));
  padding: 0 var(--sh); color: #fff; font-family: var(--font);
  transition: width .32s var(--spring), height .32s var(--spring), filter .12s linear;
  filter: drop-shadow(0 6px calc(18px + var(--lvl) * 40px) rgba(140, 180, 255, calc(.14 + var(--lvl) * .5)));
}
/* NotchShape: flush top edge, 14pt outward shoulders ("ears"), continuous bottom corners */
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: var(--sh); height: var(--sh); }
.notch::before { left: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--sh) - .5px), #000 var(--sh)); }
.notch::after { right: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--sh) - .5px), #000 var(--sh)); }
.notch-body { position: relative; height: 100%; background: #000; border-radius: 0 0 var(--rb) var(--rb); overflow: hidden; }
.notch[data-state="idle"] { --w: 195px; --h: 0px; }
.notch[data-state="hold"] { --w: 500px; --h: 50px; }
.notch[data-state="command"] { --w: 600px; --h: 50px; }
.notch[data-state="processing"], .notch[data-state="task"] { --w: 420px; --h: 50px; }
.notch[data-state="translating"] { --w: 600px; --h: 50px; }
.notch[data-state="done"] { --w: 460px; --h: 52px; }
.notch[data-state="sheet"] { --w: 600px; --h: 292px; --rb: 24px; }
.notch-row { position: relative; z-index: 1; margin-top: var(--top); height: var(--h); display: flex; align-items: center; gap: 12px; padding: 0 calc(34px - var(--sh)); white-space: nowrap; transition: opacity .18s; }
.notch[data-state="idle"] .notch-row { opacity: 0; }
.notch-row > * { flex-shrink: 0; }
.notch-row > .status, .notch-row > .hint, .notch-row > .snippet { flex-shrink: 1; }
.notch .timer { font: 600 13.5px/1 var(--font-rounded); font-variant-numeric: tabular-nums; }
.notch .status { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notch .hint { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notch .spacer { flex: 1 1 auto; min-width: 10px; }
.notch .wave { display: flex; align-items: center; justify-content: flex-end; gap: 3.2px; width: 170px; height: 20px; overflow: hidden; flex-shrink: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.notch .wave i { display: block; flex-shrink: 0; width: 2.8px; height: 2.8px; border-radius: 2px; background: #fff; opacity: .4; transition: height .06s linear, opacity .06s linear; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--app-control); color: var(--app-icon); }
.gbtn svg { width: 11px; height: 11px; stroke-width: 2.6; }
.gbtn.finish { width: 28px; height: 28px; background: rgba(255, 255, 255, .12); color: #fff; }
.gbtn.finish svg { width: 12px; height: 12px; }
.notch .done-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--ok); }
.notch .snippet { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5.5px; height: 26px; padding: 0 12px; border-radius: 999px; background: #fff; color: #000; font: 700 11.5px/1 var(--font-rounded); flex-shrink: 0; }
.copy-pill svg { width: 11.5px; height: 11.5px; stroke-width: 2.4; }
.copy-pill.copied { background: var(--ok); color: #fff; }
.spinner { width: 13px; height: 13px; flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .6), #fff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.8px), #000 calc(100% - 1.8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.8px), #000 calc(100% - 1.8px));
  animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Command badges (CommandModeBadge.swift) */
.badge-task, .badge-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.badge-task { color: var(--agent-tint); }
.badge-sel { color: var(--selection); }
.badge-sel svg { width: 14px; height: 14px; }
.orb { position: relative; display: inline-block; width: 13px; height: 13px; flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(from var(--a, 0deg), var(--agent-violet), var(--agent-blue), var(--agent-pink), var(--agent-violet));
  animation: orb 3s linear infinite; }
.orb::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: inherit; filter: blur(2.2px); opacity: .7; z-index: -1; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), transparent 46%); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb { 0% { --a: 0deg; transform: scale(1); } 25% { transform: scale(1.07); } 50% { transform: scale(1); } 75% { transform: scale(1.07); } 100% { --a: 360deg; transform: scale(1); } }
.shimmer { background: linear-gradient(90deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .5) 35%, #fff 45%, var(--agent-tint) 52%, rgba(255, 255, 255, .5) 62%, rgba(255, 255, 255, .5) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
/* Task aura: violet/blue/pink glow drifting along the bottom edge (TaskAuraBackground) */
.notch .aura { position: absolute; z-index: 0; left: 19%; bottom: -23px; width: 62%; height: 46px; border-radius: 50%; opacity: 0;
  background: conic-gradient(from var(--a, 0deg), var(--agent-violet), var(--agent-blue), var(--agent-pink), var(--agent-violet));
  filter: blur(22px); transition: opacity .3s; animation: aura 3s linear infinite; }
.notch[data-state="task"] .aura { opacity: .55; }
@keyframes aura { 0% { --a: 0deg; translate: 0 0; } 25% { translate: 17% 0; } 75% { translate: -17% 0; } 100% { --a: 360deg; translate: 0 0; } }
/* While the agent works its light spills onto the screen */
.agent-spill { position: absolute; z-index: -1; left: 50%; top: 30px; width: min(560px, 90%); height: 220px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), var(--agent-violet), var(--agent-blue), var(--agent-pink), var(--agent-violet));
  filter: blur(80px); opacity: 0; transition: opacity .8s; animation: aura 5s linear infinite; }
.screen.agent .agent-spill { opacity: .2; }

/* Translation sheet expanding from the notch */
.notch-row.sheet-mode { display: block; height: auto; padding: 14px 14px 18px; white-space: normal; text-align: left; }
.sheet-mode .sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.sheet-mode .sheet-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--text-2); }
.sheet-mode .sheet-status svg { width: 11px; height: 11px; color: var(--ok); stroke-width: 3; }
.sheet-mode .sheet-langs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.lchip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--app-control); font-size: 12px; font-weight: 500; white-space: nowrap; }
.lchip svg { width: 9px; height: 9px; color: var(--text-3); stroke-width: 3; flex-shrink: 0; }
.sheet-mode .swap { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--app-control); color: var(--text-2); flex-shrink: 0; }
.sheet-mode .swap svg { width: 11px; height: 11px; }
.sheet-result { padding: 14px 16px; border-radius: 14px; background: var(--app-card); font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.sheet-mode .sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; background: rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.sbtn svg { width: 13px; height: 13px; flex-shrink: 0; }
.sbtn.ok { background: rgba(51, 199, 115, .18); color: #7be3a6; }
.sbtn.ghost { background: transparent; color: var(--text-2); padding: 0 6px; }
button.sbtn:hover { background: rgba(255, 255, 255, .14); }
.sheet-source { font-size: 12px; color: var(--text-2); }

/* ---------- Task assistant ---------- */
/* Web search beacon (Groq browser_search, backed by Exa) */
.beacon { position: absolute; z-index: 4; top: 104px; right: 6%; display: grid; place-items: center; width: 64px; height: 64px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--spring); pointer-events: none; color: var(--agent-sky); }
.beacon.on { opacity: 1; transform: none; }
.beacon svg { position: relative; width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(143, 209, 255, .8)); }
.beacon i { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(143, 209, 255, .5); opacity: 0; }
.beacon.on i { animation: ripple 2.1s var(--ease) infinite; }
.beacon.on i:nth-child(2) { animation-delay: .7s; }
.beacon.on i:nth-child(3) { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.beacon b { position: absolute; top: calc(100% + 4px); font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; color: var(--agent-sky); }

/* Text tabs: no pill outline — the active one is lit */
.prompts, .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 30px; }
.prompts button, .tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-3); transition: color .25s, background .25s; }
.prompts button svg, .tabs button svg { width: 15px; height: 15px; flex-shrink: 0; }
.prompts button:hover, .tabs button:hover { color: #fff; }
.prompts button[aria-pressed="true"], .tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.prompts button[aria-pressed="true"] { background: linear-gradient(90deg, rgba(158, 115, 255, .22), rgba(77, 140, 255, .14)); }
.prompts button[aria-pressed="true"]::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -6px; height: 10px; border-radius: 50%; background: var(--agent-tint); filter: blur(10px); opacity: .7; pointer-events: none; }

/* ---------- Translation ---------- */
.chat-bubble { display: inline-block; max-width: 100%; padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .06); }
.article h4 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 30px; font: 600 13px/1 var(--font-mono); letter-spacing: .08em; }
.langs span { padding: 6px 2px; color: var(--text-4); transition: color .4s, text-shadow .4s; }
.langs span.on { color: #fff; text-shadow: 0 0 14px rgba(100, 210, 255, .9), 0 0 2px #fff; }
.langs span.from { color: var(--text-2); }

/* ---------- Vocabulary ---------- */
.vocab { display: grid; gap: clamp(64px, 9vw, 96px); width: 100%; max-width: 760px; margin-top: clamp(44px, 6vw, 72px); }
.layer { display: flex; flex-direction: column; align-items: center; }
.layer-num { font: 600 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
.hint-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px 16px; min-height: 130px; font: 500 15px/1.5 var(--font-mono); }
.hint-cloud span { color: #fff; opacity: 0; transform: translateY(-18px) scale(.9); filter: blur(6px); transition: opacity .5s, transform .6s var(--ease), filter .5s, color .4s; }
.hint-cloud span.in { opacity: 1; transform: none; filter: none; text-shadow: 0 0 16px rgba(156, 199, 255, .55); }
.hint-cloud span.out { opacity: .22; transform: none; filter: none; text-decoration: line-through; color: var(--text-3); }
.bytes-bar { position: relative; width: 100%; max-width: 520px; height: 4px; margin-top: 26px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bytes-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(156, 199, 255, .3), #fff); box-shadow: 0 0 16px #9cc7ff; transition: width .5s var(--ease); }
.bytes-count { margin-top: 12px; font: 500 12.5px/1 var(--font-mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-bottom: 34px; }
.apps button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; transition: transform .4s var(--spring), background .3s; }
.apps button img { width: 30px; height: 30px; object-fit: contain; filter: grayscale(.7); opacity: .45; transition: filter .4s, opacity .4s; }
.apps button:hover img { opacity: .8; filter: none; }
.apps button[aria-selected="true"] { transform: scale(1.18); background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent); }
.apps button[aria-selected="true"] img { filter: drop-shadow(0 4px 14px rgba(255, 255, 255, .25)); opacity: 1; }
.vline { min-height: 3.1em; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.55; letter-spacing: -.015em; max-width: 720px; color: rgba(255, 255, 255, .78); }
.vline .term { position: relative; color: var(--text-3); transition: color .4s; }
.vline .term::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--ok); box-shadow: 0 0 10px var(--ok); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.vline .term.hit { color: #fff; }
.vline .term.hit::after { transform: scaleX(1); }
.vline .term.keep { color: rgba(255, 255, 255, .78); }
.bundle { margin-top: 18px; font: 500 12px/1 var(--font-mono); color: var(--text-4); }

/* ---------- Chain: three nodes on a beam of light ---------- */
.track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 560px; margin-top: clamp(40px, 6vw, 60px); }
.track-beam { position: absolute; top: 25px; left: 16.66%; right: 16.66%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .07); }
.track-beam i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--agent-violet), var(--selection)); box-shadow: 0 0 14px rgba(100, 210, 255, .8); transition: width .9s var(--ease); }
.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-3); transition: color .3s; }
.node-dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #0b0e15; font: 600 13px/1 var(--font-rounded); color: var(--text-3); box-shadow: 0 0 0 6px var(--space-1); transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--spring); }
.node-dot .orb { width: 16px; height: 16px; opacity: .45; transition: opacity .3s; }
.node-label { font-size: 13.5px; font-weight: 500; }
.node[aria-current="step"], .node.done { color: #fff; }
.node[aria-current="step"] .node-dot { background: #fff; color: #000; transform: scale(1.08); box-shadow: 0 0 0 6px var(--space-1), 0 0 40px rgba(156, 199, 255, .6); }
.node.done .node-dot { background: rgba(255, 255, 255, .14); color: #fff; }
.node[aria-current="step"] .orb, .node.done .orb { opacity: 1; }

/* ---------- Local vs cloud flow ---------- */
.flow { position: relative; width: 100%; max-width: 900px; margin-top: 12px; }
.flow canvas { width: 100%; height: clamp(320px, 42vw, 440px); }

/* ---------- Price ---------- */
.price-days { display: flex; align-items: baseline; gap: 16px; font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -.02em; color: var(--text-2); }
.price-days b { font-size: clamp(96px, 16vw, 200px); line-height: .9; letter-spacing: -.06em; font-weight: 600; color: transparent;
  background: linear-gradient(180deg, #fff 35%, rgba(156, 199, 255, .5)); -webkit-background-clip: text; background-clip: text; }
.price-once { margin: 18px 0 40px; font-size: clamp(17px, 2vw, 20px); color: var(--text-3); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 56px; font-size: 13px; color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-right: auto; }
.footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-note { flex-basis: 100%; font-size: 11.5px; color: var(--text-4); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Recorded loops replace a live stage when present */
[data-video] { position: relative; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; pointer-events: none; }
.has-video .stage-video { opacity: 1; }
.has-video > :not(.stage-video) { visibility: hidden; }

/* ---------- Narrow screens: the notch keeps its shape, content compacts ---------- */
@media (max-width: 680px) {
  .notch .hint { display: none; }
  .notch .wave { width: 96px; }
  .notch-row { gap: 8px; padding: 0 12px; }
  .notch[data-state="sheet"] { --h: 340px; }
  .copy-pill span { display: none; }
  .screen { min-height: 440px; }
  .said { top: 88px; font-size: 13px; }
  .beacon { top: 150px; right: 0; }
  .apps { gap: 2px; }
  .apps button { width: 40px; height: 44px; }
  .apps button img { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  .notch .gbtn:not(.finish):not(:last-child) { display: none; }
  .notch .wave { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Text pages (help, privacy) ---------- */
.document { max-width: 820px; padding-top: 56px; padding-bottom: 120px; }
.document h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin-bottom: 32px; }
.document h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; margin: 44px 0 12px; }
.document p, .document li { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.document p + p { margin-top: 12px; }
.document ol { padding-left: 22px; display: grid; gap: 12px; }
.document a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
