:root {
  --card-radius: 22px;
  --group-radius: 16px;
  --control-radius: 12px;
  --pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --smooth: cubic-bezier(.25, .1, .25, 1);
  --max-width: 1160px;
  --section-inline-gap: clamp(48px, 6vw, 76px);
  --section-stack-gap: 56px;
  --brand-blue: #2070df;
  --brand-coral: #e84e46;
}

html[data-theme="light"] {
  --canvas: #fff;
  --canvas-2: #fff;
  --surface: #efeff1;
  --surface-2: #e6e6e9;
  --surface-3: #dcdce0;
  --separator: rgba(122, 122, 122, .12);
  --separator-strong: rgba(0, 0, 0, .08);
  --label: #000;
  --label-2: rgba(20, 20, 25, .60);
  --label-3: rgba(20, 20, 25, .30);
  --accent: #0a0a0c;
  --accent-press: #242429;
  --on-accent: #fff;
  --glass-border: rgba(0, 0, 0, .14);
  --glass-highlight: rgba(255, 255, 255, .72);
  --shadow: rgba(0, 0, 0, .14);
  --good: #168052;
  --warn: #e32400;
  --danger: #d92d20;
  --graph-ink: 10, 10, 12;
  --grain-opacity: .028;
  --logo-surface: transparent;
  --logo-accent-2: #000;
  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #000;
  --canvas-2: #000;
  --surface: #101012;
  --surface-2: #19191c;
  --surface-3: #232327;
  --separator: rgba(255, 255, 255, .10);
  --separator-strong: rgba(255, 255, 255, .06);
  --label: #fff;
  --label-2: rgba(235, 235, 245, .60);
  --label-3: rgba(235, 235, 245, .30);
  --accent: #fdfdfd;
  --accent-press: #7d86f5;
  --on-accent: #0a0a0c;
  --glass-border: rgba(255, 255, 255, .14);
  --glass-highlight: rgba(255, 255, 255, .12);
  --shadow: rgba(0, 0, 0, .70);
  --good: #34d18a;
  --warn: #ff6251;
  --danger: #ff5a52;
  --graph-ink: 235, 235, 245;
  --grain-opacity: .045;
  --logo-surface: #101012;
  --logo-accent-2: #fff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  transition: background .28s ease, color .28s ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
::selection { color: var(--on-accent); background: var(--accent); }

.skip-link {
  position: fixed; z-index: 1000; left: 18px; top: -80px;
  padding: 10px 16px; border-radius: 12px;
  color: var(--on-accent); background: var(--accent);
}
.skip-link:focus { top: 18px; }
.wrap { width: min(100%, var(--max-width)); margin: 0 auto; padding-inline: 28px; }

.ambient-graph {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  opacity: 0; pointer-events: none;
  transition: opacity 1.2s var(--ease);
}
.ambient-graph.ready { opacity: .58; }
.ambient-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 4%, transparent 24%, var(--canvas) 96%),
    linear-gradient(to bottom, transparent 62%, var(--canvas) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer { position: relative; z-index: 2; }

/* Navigation */
.site-nav {
  position: fixed; z-index: 100; inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background .28s ease, border-color .28s ease;
}
.site-nav.scrolled {
  background: color-mix(in srgb, var(--canvas) 76%, transparent);
  border-bottom-color: var(--separator);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.site-nav.hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(100%, var(--max-width)); margin: auto; padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 154px; }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--label-3); font-size: 10.5px; letter-spacing: .025em; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--pill);
  color: var(--label-2); font-size: 13.5px; font-weight: 560;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--label); background: color-mix(in srgb, var(--surface) 76%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle {
  position: relative; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--separator); border-radius: 50%;
  color: var(--label); background: color-mix(in srgb, var(--surface) 78%, transparent);
  cursor: pointer; transition: transform .25s var(--ease), border-color .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--label-3); }
.theme-toggle:active { transform: scale(.93); }
.theme-toggle svg { position: absolute; inset: 9px; width: 18px; height: 18px; transition: opacity .28s var(--ease), transform .35s var(--ease); }
.theme-toggle .sun { opacity: 0; transform: rotate(-80deg) scale(.5); }
.theme-toggle .moon { opacity: 1; transform: none; }
html[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: none; }
html[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(80deg) scale(.5); }
.nav-cta {
  min-height: 38px; display: inline-flex; align-items: center;
  padding: 0 16px; border-radius: var(--pill);
  color: var(--on-accent); background: var(--accent);
  font-size: 13.5px; font-weight: 620;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* Type and section scaffolding */
.eyebrow {
  margin: 0 0 17px; color: var(--label-3);
  font-size: 12px; line-height: 1; font-weight: 680;
  letter-spacing: .13em; text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-weight: 670; letter-spacing: -.044em; }
h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); line-height: .98; }
h2 { font-size: clamp(2.2rem, 4.15vw, 3.7rem); line-height: 1; }
h1 span, h2 span { color: var(--label-2); font-weight: 590; }
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].revealed { opacity: 1; transform: none; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid transparent; border-radius: var(--pill);
  font-size: 14.5px; font-weight: 610;
  transition: transform .28s var(--ease), border-color .2s ease, box-shadow .28s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button.primary { color: var(--on-accent); background: var(--accent); box-shadow: 0 8px 28px color-mix(in srgb, var(--shadow) 38%, transparent); }
.button.secondary { border-color: var(--separator); color: var(--label); background: transparent; }
.button.secondary:hover { border-color: var(--label-3); }

/* Hero */
.hero { min-height: 100svh; padding: 118px 0 72px; display: flex; align-items: center; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); gap: var(--section-inline-gap); align-items: center; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-copy > .eyebrow { height: 12px; margin-bottom: 17px; overflow: hidden; line-height: 12px; white-space: nowrap; text-wrap: nowrap; }
.hero-title {
  --hero-title-size: clamp(3rem, 6.5vw, 5.5rem);
  width: 100%; height: clamp(5.88rem, 12.74vw, 10.78rem);
  display: grid; grid-template-rows: repeat(2, minmax(0, 1fr));
  font-size: var(--hero-title-size); line-height: .98;
}
.hero-title-row { position: relative; min-width: 0; overflow: visible; display: block; color: var(--label); font-weight: 670; }
.hero-title-row.secondary { color: var(--label-2); font-weight: 590; }
.hero-title .hero-title-layer {
  position: absolute; left: 0; top: 50%; width: 100%;
  color: inherit; font-weight: inherit;
  transform: translate3d(0, -50%, 0); transform-origin: left center;
  will-change: transform;
}
.hero-title .hero-title-text { display: block; width: max-content; max-width: none; color: inherit; font-weight: inherit; line-height: .98; white-space: nowrap; text-wrap: nowrap; }
.hero-glyph-run { position: absolute; left: 0; top: 50%; color: inherit; font-weight: inherit; transform: translate3d(0, -50%, 0); }
.hero-glyph { position: absolute; left: var(--glyph-x); top: 0; color: inherit; font-size: var(--glyph-size); font-weight: inherit; line-height: .98; white-space: pre; will-change: transform, opacity, filter; }
.hero-glyph.out-up { animation: heroGlyphOutUp .42s cubic-bezier(.4, 0, .2, 1) both; }
.hero-glyph.in-up { animation: heroGlyphInUp .42s var(--ease) both; }
.hero-glyph.out-down { animation: heroGlyphOutDown .42s cubic-bezier(.4, 0, .2, 1) both; }
.hero-glyph.in-down { animation: heroGlyphInDown .42s var(--ease) both; }
.hero-lead { height: 30px; margin: 24px 0 0; overflow: hidden; color: var(--label-2); font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 30px; letter-spacing: -.016em; white-space: nowrap; text-wrap: nowrap; }
.hero-actions { height: 46px; display: flex; flex-wrap: nowrap; gap: 11px; margin-top: 30px; }
.hero-actions .button { width: min(178px, calc(50% - 5.5px)); flex: 0 0 min(178px, calc(50% - 5.5px)); overflow: hidden; padding-inline: 16px; white-space: nowrap; }
.hero-player-wrap { width: min(100%, 570px); justify-self: end; }

/* Section headings keep a fixed row frame and use the hero's numeric-style glyph motion. */
.localized-heading {
  position: relative; width: 100%; min-width: 0;
  display: grid; grid-template-rows: repeat(var(--localized-heading-rows, 1), minmax(0, 1fr));
}
.localized-heading-row { position: relative; min-width: 0; display: block; overflow: visible; color: var(--label); font-weight: 670; }
.localized-heading-row.secondary { color: var(--label-2); font-weight: 590; }
.localized-heading span { color: inherit; font-weight: inherit; }
.localized-heading-layer {
  position: absolute; left: 0; top: 50%; width: 100%;
  transform: translate3d(0, -50%, 0); transform-origin: left center;
}
.localized-heading-text { display: block; width: max-content; max-width: none; line-height: 1; white-space: nowrap; text-wrap: nowrap; }
.localized-heading.align-center .localized-heading-text { margin-inline: auto; }
.localized-heading.align-right .localized-heading-text { margin-left: auto; }
.localized-heading .localized-heading-glyph-run { top: 50%; }
.localized-heading.align-center .localized-heading-glyph-run { left: 50%; transform: translate3d(-50%, -50%, 0); }
.localized-heading.align-right .localized-heading-glyph-run { left: auto; right: 0; }
.localized-heading-frame {
  position: absolute; left: 0; top: 50%; width: var(--cycler-frame-width, 100%);
  display: flex; align-items: center;
  transform: translate3d(0, -50%, 0);
}
.localized-heading.align-center .localized-heading-frame { left: 50%; transform: translate3d(-50%, -50%, 0); }
.localized-heading.align-right .localized-heading-frame { left: auto; right: 0; }
.localized-heading-prefix {
  flex: 0 0 auto; font-size: var(--cycler-font-size, 1em); line-height: 1;
  white-space: pre; text-wrap: nowrap;
}
.localized-heading-suffix {
  position: relative; min-width: 0; height: var(--cycler-font-size, 1em);
  flex: 1 1 auto; overflow: clip; font-size: var(--cycler-font-size, 1em); line-height: 1;
}
.localized-heading.section-title-cycler .localized-heading-layer {
  left: 0; width: 100%; transform: translate3d(0, -50%, 0);
}
.localized-heading.section-title-cycler.align-center .localized-heading-text,
.localized-heading.section-title-cycler.align-right .localized-heading-text { margin-inline: 0; }
.localized-heading.section-title-cycler .localized-heading-glyph-run {
  left: 0 !important; right: auto !important; width: 100% !important;
  transform: translate3d(0, -50%, 0) !important;
}
.localized-heading-layer.localized-heading-outgoing {
  z-index: 1; animation: headingMaskOut .2s ease both;
}
.localized-heading-layer.localized-heading-incoming {
  z-index: 2; animation: headingMaskIn .42s var(--ease) both;
}
.localized-heading-glyph-run .hero-glyph.out-up { animation: localizedHeadingOutUp .4s cubic-bezier(.4, 0, .2, 1) var(--glyph-delay, 0ms) both; }
.localized-heading-glyph-run .hero-glyph.in-up { animation: localizedHeadingInUp .4s var(--ease) var(--glyph-delay, 0ms) both; }
.localized-heading-glyph-run .hero-glyph.out-down { animation: localizedHeadingOutDown .4s cubic-bezier(.4, 0, .2, 1) var(--glyph-delay, 0ms) both; }
.localized-heading-glyph-run .hero-glyph.in-down { animation: localizedHeadingInDown .4s var(--ease) var(--glyph-delay, 0ms) both; }
.localized-heading-glyph-run.localized-heading-settled .hero-glyph { animation: none; opacity: 1; filter: none; transform: none; }
/* Shared native onboarding shell */
.onboarding-player {
  --shell-width: 520px;
  position: relative; width: min(100%, var(--shell-width)); height: 620px; margin-inline: auto;
  isolation: isolate;
}
.player-viewport { position: absolute; top: 224px; left: 0; right: 0; height: 372px; overflow: hidden; }
.player-pages { position: absolute; inset: 0; }
.onboard-page { position: absolute; inset: 0; width: 100%; height: 372px; will-change: transform; }
.onboard-page[aria-hidden="true"] { pointer-events: none; }

.liquid-controls { position: absolute; left: 0; right: 0; bottom: 30px; height: 64px; }
.liquid-shape { position: absolute; inset: 0; width: 100%; height: 64px; overflow: visible; filter: drop-shadow(0 5px 6px rgba(0,0,0,.18)); }
.liquid-base { fill: color-mix(in srgb, var(--surface-2) 62%, transparent); }
.liquid-glow { fill: var(--accent); opacity: .035; mix-blend-mode: screen; }
.liquid-back, .liquid-continue {
  position: absolute; z-index: 2; top: 0; border: 0; padding: 0;
  color: var(--accent); background: transparent; cursor: pointer;
  transform-origin: center; will-change: transform, opacity, left, top;
}
.liquid-continue { width: 142px; height: 40px; font-size: 15px; }
.liquid-back { width: 56px; height: 64px; opacity: 0; }
.liquid-back svg { width: 16px; height: 16px; margin: auto; }
.liquid-back:focus, .liquid-continue:focus { outline: none; }
.liquid-back:focus-visible, .liquid-continue:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 3px; border-radius: var(--pill); }

.native-stage {
  position: relative; width: min(100%, 520px); height: 410px; justify-self: center;
  isolation: isolate;
}
.stage-content { position: absolute; top: 19px; left: 0; right: 0; height: 372px; overflow: hidden; }
.scene { position: relative; width: 100%; height: 372px; color: var(--label); }
.onboard-page .scene { height: 100%; }
.content-transition-stack {
  display: grid; align-items: center; overflow: clip;
  padding-block: 4px; margin-block: -4px;
}
.content-transition-stack > span { grid-area: 1 / 1; display: block; }
.content-transition-old { animation: contentTextOut .32s cubic-bezier(.25,.82,.3,1) both; }
.content-transition-new { animation: contentTextIn .32s cubic-bezier(.25,.82,.3,1) both; }
.sf-symbol {
  width: 1em; height: 1em; display: inline-block; flex: none; background: currentColor;
  -webkit-mask: var(--sf-symbol) center / contain no-repeat;
  mask: var(--sf-symbol) center / contain no-repeat;
}

/* Language */
.language-scene { display: grid; place-items: center; padding-inline: 18px; }
.language-control { position: relative; width: 100%; transform: translateY(5px); contain: layout; }
.language-options { height: 48px; display: flex; align-items: center; gap: 4px; overflow: visible; }
.language-option {
  --dock-scale: .92; --dock-shell-lift: 0px; --dock-flag-lift: 0px; --dock-opacity: .66; --dock-z: 1;
  height: 44px; flex: 0 0 31px; min-width: 20px; padding: 0; border: 0;
  color: var(--label); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: var(--dock-z);
  opacity: var(--dock-opacity); transform: translate3d(0, var(--dock-shell-lift), 0); transform-origin: 50% 100%; will-change: transform;
  transition: flex-basis .38s cubic-bezier(.18,1.32,.3,1), transform .42s cubic-bezier(.18,1.42,.3,1), opacity .24s ease, color .2s ease;
}
.language-option .flag {
  display: block; flex: 0 0 auto; font-size: 21px; line-height: 1; font-weight: 700;
  transform: translate3d(0, var(--dock-flag-lift), 0) scale(var(--dock-scale)); transform-origin: 50% 100%; will-change: transform;
  transition: transform .44s cubic-bezier(.18,1.5,.3,1), filter .28s ease;
}
.language-option .native-name {
  max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; font-size: 13.5px; font-weight: 800;
  transform: translate3d(-5px,0,0);
  transition: max-width .34s cubic-bezier(.18,1.32,.3,1), opacity .18s ease, transform .36s cubic-bezier(.18,1.32,.3,1);
}
.language-option.selected {
  flex-basis: 160px; color: var(--accent);
}
.language-option.selected .flag { filter: drop-shadow(0 7px 9px color-mix(in srgb, var(--accent) 30%, transparent)); }
.language-option.selected .native-name { max-width: 120px; opacity: 1; transform: translate3d(0,0,0); }
.language-options:not(.dock-ready) .language-option,
.language-options:not(.dock-ready) .language-option .flag,
.language-options:not(.dock-ready) .language-option .native-name { transition: none; }
.language-options.is-scrubbing .language-option { transition: flex-basis .24s cubic-bezier(.2,.8,.2,1), transform .08s linear, opacity .1s linear, color .16s ease; }
.language-options.is-scrubbing .language-option .flag { transition: transform .08s linear, filter .16s ease; }
.language-slider { width: 100%; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.language-slider:focus { outline: none; }
.language-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.language-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--label) 14%, transparent); }
.language-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px;
  border: 0; border-radius: 50%; background: var(--accent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 22%, transparent);
  cursor: grab; transform: scale(1);
  transition: transform .3s cubic-bezier(.18,1.5,.3,1), box-shadow .22s ease;
}
.language-slider:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.16); box-shadow: 0 5px 15px color-mix(in srgb, var(--accent) 36%, transparent); }
.language-slider::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--label) 14%, transparent); }
.language-slider::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--accent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 22%, transparent); cursor: grab; transform: scale(1);
  transition: transform .3s cubic-bezier(.18,1.5,.3,1), box-shadow .22s ease;
}
.language-slider:active::-moz-range-thumb { cursor: grabbing; transform: scale(1.16); box-shadow: 0 5px 15px color-mix(in srgb, var(--accent) 36%, transparent); }
.language-slider { -webkit-appearance: none; background: transparent; }
.language-greeting {
  position: absolute; left: 0; top: calc(100% + 12px); width: 100%; height: 34px;
  display: grid; place-items: center; overflow: hidden;
  color: var(--label); font-size: 21px; line-height: 34px; font-weight: 650; letter-spacing: -.018em; text-align: center;
}
.language-greeting-run { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.language-greeting-glyph {
  display: inline-block; white-space: pre; will-change: transform, opacity, filter;
  animation-delay: calc(var(--greeting-glyph-index) * 9ms);
}
.language-greeting-glyph.out-up { animation: heroGlyphOutUp .28s cubic-bezier(.4,0,.2,1) both; }
.language-greeting-glyph.in-up { animation: heroGlyphInUp .28s cubic-bezier(.2,.82,.25,1) both; }
.language-greeting-glyph.out-down { animation: heroGlyphOutDown .28s cubic-bezier(.4,0,.2,1) both; }
.language-greeting-glyph.in-down { animation: heroGlyphInDown .28s cubic-bezier(.2,.82,.25,1) both; }

/* Auth */
.auth-scene { display: grid; place-items: center; }
.auth-options { width: 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-option {
  width: 236px; height: 52px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--pill);
  display: flex; align-items: center; gap: 14px;
  color: var(--label); background: transparent; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s ease, box-shadow .3s ease, transform .18s ease;
}
.auth-option:active { transform: scale(.98); }
.auth-option.selected {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 22%, transparent);
}
.auth-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); font-size: 26px; font-weight: 650; }
.auth-mark img { width: 27px; height: 27px; object-fit: contain; filter: grayscale(1) contrast(4); }
.auth-mark .sf-symbol { width: 27px; height: 27px; }
html[data-theme="dark"] .auth-mark img { filter: grayscale(1) invert(1) contrast(4); }
.auth-title { font-size: 16px; font-weight: 430; }

/* Search */
.search-scene { --search-surface-width: min(500px, calc(100% - 8px)); padding-top: 0; }
.search-block {
  position: absolute; left: 0; right: 0; top: 50%;
  display: flex; flex-direction: column; gap: 62px;
  transform: translateY(-50%);
}
.demo-searchbar {
  position: relative; height: 46px; width: var(--search-surface-width); margin-inline: auto; padding: 0 13px;
  display: flex; align-items: center; gap: 9px;
  border: 1.15px solid color-mix(in srgb, var(--accent) 78%, transparent); border-radius: var(--pill);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent);
  transition: box-shadow .26s ease;
}
.demo-searchbar.searching { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent); }
.search-icon { width: 20px; height: 20px; display: grid; place-items: center; color: var(--accent); }
.search-icon .sf-symbol { width: 15px; height: 15px; }
.search-window { position: relative; flex: 1; height: 20px; overflow: hidden; }
.search-window-inner { position: absolute; right: 0; min-width: 100%; height: 20px; display: flex; align-items: center; justify-content: flex-start; white-space: nowrap; }
.search-query, .search-placeholder { font-size: 14px; line-height: 20px; font-weight: 620; }
.search-placeholder { color: color-mix(in srgb, var(--label-2) 58%, transparent); }
.search-caret { width: 2px; height: 17px; margin-left: 6px; border-radius: 2px; background: var(--accent); animation: caretBlink 1s steps(1) infinite; }
.search-spinner {
  width: 16px; height: 16px; flex: none; border: 1.7px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-top-color: var(--accent); border-radius: 50%; opacity: 0; animation: spin .7s linear infinite;
}
.searching .search-spinner { opacity: 1; }
.search-transfer { position: absolute; left: 0; top: 56px; width: 100%; height: calc(100% - 56px); pointer-events: none; }
.repo-card {
  position: relative; left: 50%; width: var(--search-surface-width); height: 144px; flex: none;
  transform: translate(-50%, 16px); opacity: 0;
  padding: 10px 11px; border: .9px solid color-mix(in srgb, var(--accent) 78%, transparent); border-radius: var(--card-radius);
  background: transparent; overflow: hidden;
  transition: opacity .3s ease, transform .42s cubic-bezier(.18,.88,.27,1.18);
}
.repo-card.visible { opacity: 1; transform: translate(-50%, 0); }
.repo-title { margin: 0; padding-right: 2px; color: var(--label); font-size: 13px; line-height: 1.26; font-weight: 650; }
.repo-row { margin-top: 5px; display: flex; align-items: first baseline; gap: 6px; min-width: 0; color: var(--label-2); font-size: 10.5px; line-height: 1.25; }
.repo-row .sf-symbol { width: 13px; height: 13px; color: var(--accent); transform: translateY(1px); }
.repo-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.repo-abstract { margin: 6px 0 0; color: color-mix(in srgb, var(--label-2) 82%, transparent); font-size: 10.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Import */
.import-scene { padding-top: 30px; }
.import-pipeline { position: relative; height: 76px; }
.import-track { position: absolute; left: 3px; top: 9px; width: calc(100% - 6px); height: 58px; }
.import-endpoints { position: absolute; left: 3px; right: 3px; top: 9px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.import-source, .import-target { width: 58px; height: 58px; display: grid; place-items: center; }
.import-source {
  transform: translate3d(var(--source-recoil-x, 0px), 0, 0) scale(var(--source-recoil-scale-x, 1), var(--source-recoil-scale-y, 1));
  transform-origin: center;
  will-change: transform;
}
.import-source-core { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); font-size: 19px; font-weight: 800; transition: transform .28s cubic-bezier(.17,.8,.31,1.35); }
.import-source.pulse .import-source-core { transform: scale(1.06); }
.import-source-core.circle { border: 1.2px solid color-mix(in srgb, var(--accent) 82%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--accent) 6%, transparent); font-size: 15px; }
.import-source-core.hex { border: 1.2px solid color-mix(in srgb, var(--accent) 82%, transparent); clip-path: polygon(50% 2%,93% 25%,93% 75%,50% 98%,7% 75%,7% 25%); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.import-source-core .sf-symbol { width: 24px; height: 24px; }
.file-badge { position: relative; }
.file-badge small { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; white-space: nowrap; }
.import-logo { position: relative; width: 34px; height: 34px; }
.import-logo-layer {
  position: absolute; inset: 0;
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
}
.logo-glass {
  --logo-mask: url("app-assets/splash_logo_glass.svg");
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--logo-surface) 90%, transparent),
    color-mix(in srgb, var(--accent) 90%, transparent));
}
.logo-book-back {
  --logo-mask: url("app-assets/splash_logo_book_back.svg");
  background: color-mix(in srgb, var(--accent) 78%, transparent);
  opacity: .9;
}
.logo-book-front {
  --logo-mask: url("app-assets/splash_logo_book_front.svg");
  background: linear-gradient(135deg, var(--accent), var(--logo-accent-2));
  opacity: .95;
}
.logo-text {
  --logo-mask: url("app-assets/splash_logo_text.svg");
  background: color-mix(in srgb, var(--accent) 96%, transparent);
  opacity: .95;
}
.import-logo.impact { animation: logoImpact .7s linear; }
.import-list { height: 236px; display: flex; flex-direction: column; gap: 8px; }
.import-row {
  position: relative; width: 100%; height: 108px; padding: 9px;
  border: .75px solid color-mix(in srgb, var(--accent) 62%, transparent); border-radius: var(--card-radius);
  opacity: 0; transform: translateY(12px) scale(.96); transform-origin: top;
  transition: opacity .28s ease, transform .36s cubic-bezier(.2,.82,.24,1.16);
}
.import-row.visible { opacity: 1; transform: none; }
.import-row:nth-child(2) { transition-delay: 65ms; }
.import-row-head { display: flex; align-items: baseline; gap: 8px; }
.import-row-head strong { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.25; }
.import-row-head b { flex: none; color: var(--accent); font-size: 10px; font-weight: 800; }
.import-row .repo-row { margin-top: 4px; }
.import-row .repo-abstract { -webkit-line-clamp: 2; margin-top: 4px; }
/* Citation */
.citation-preview-wrap {
  position: relative; isolation: isolate; width: 100%; height: 100%;
  display: grid; grid-template-columns: 3px minmax(0,1fr); align-items: center; column-gap: 26px;
  padding-inline: 18px 10px;
}
.citation-accent {
  position: relative; z-index: 2; width: 3px; height: 126px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--accent) 82%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  transform-origin: center;
}
.citation-accent::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--accent); opacity: 0; transform: scaleY(.2); transform-origin: top;
}
.citation-preview-wrap.is-typesetting .citation-accent::after { animation: citationAccentSweep .66s var(--ease) both; }
.citation-copy {
  position: relative; width: 100%; height: 210px; overflow: clip;
  color: color-mix(in srgb, var(--label-2) 88%, transparent);
  font-family: var(--font); font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.5; font-weight: 400;
  text-align: left;
}
.citation-text-layer {
  position: absolute; left: 0; top: 50%; width: 100%;
  padding-left: 1.25em; text-indent: -1.25em;
  transform: translate3d(0, -50%, 0); transform-origin: center;
}
.citation-text-layer.is-code {
  padding-left: 0; text-indent: 0; white-space: pre-wrap;
  font-family: var(--mono); font-size: clamp(.78rem, 1.1vw, .9rem); line-height: 1.48;
}
/* AI */
.ai-canvas { position: relative; height: 340px; margin-top: 12px; }
.ai-particles { position: absolute; inset: 0; width: 100%; height: 340px; pointer-events: none; }
.ai-paper {
  position: absolute; left: 50%; top: -2px; width: min(500px, calc(100% - 8px)); height: 144px;
  transform: translateX(-50%); opacity: 1;
  padding: 10px 11px; border: .9px solid color-mix(in srgb, var(--accent) 78%, transparent);
  display: block; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 10%, transparent);
}
.ai-paper .repo-abstract { -webkit-line-clamp: 3; }
.ai-core { position: absolute; left: 50%; top: 146px; width: 62px; height: 62px; transform: translateX(-50%); display: grid; place-items: center; }
.ai-core-symbol { width: 38px; height: 38px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 24%, transparent)); }
.ai-core.pulse .ai-core-symbol { animation: coreBounce .32s cubic-bezier(.18,.8,.26,1.35); }
.ai-providers { position: absolute; left: 50%; top: 215px; width: min(304px, calc(100% - 12px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.ai-provider {
  height: 28px; padding: 0 7px; border: .75px solid color-mix(in srgb, var(--label-2) 14%, transparent); border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center; gap: 4px; color: color-mix(in srgb, var(--label-2) 66%, transparent);
  font-size: 9.2px; font-weight: 800; white-space: nowrap;
  transition: transform .3s cubic-bezier(.18,.8,.26,1.25), color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ai-provider .sf-symbol { width: 11px; height: 11px; }
.ai-provider.active { color: var(--label); border-color: color-mix(in srgb, var(--accent) 68%, transparent); background: color-mix(in srgb, var(--accent) 4%, transparent); transform: scale(1.04); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 14%, transparent); }
.ai-outputs { position: absolute; left: 50%; top: 255px; width: min(308px, calc(100% - 10px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.ai-output {
  height: 78px; padding: 8px; border: .75px solid color-mix(in srgb, var(--label-2) 13%, transparent); border-radius: 8px;
  overflow: hidden;
  transform: scale(.985); transition: transform .32s cubic-bezier(.18,.8,.26,1.18), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ai-output.active { transform: scale(1.035); border-color: color-mix(in srgb, var(--accent) 66%, transparent); background: color-mix(in srgb, var(--accent) 3%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 14%, transparent); }
.ai-output-head { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--label-2) 68%, transparent); font-size: 9.2px; line-height: 13px; font-weight: 800; white-space: nowrap; }
.ai-output-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ai-output-head.long { gap: 3px; font-size: 6.8px; letter-spacing: -.04em; }
.ai-output.active .ai-output-head { color: var(--label); }
.ai-output-head .sf-symbol { width: 12px; height: 12px; }
.ai-output-head.long .sf-symbol { width: 10px; height: 10px; }
.ai-lines { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.ai-lines i { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--label-2) 18%, transparent); }
.ai-output.active .ai-lines i:first-child { background: color-mix(in srgb, var(--accent) 72%, transparent); }
/* Stats */
.stats-canvas { height: 322px; margin-top: 25px; }
.stats-totals { height: 58px; padding: 0 8px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
.stat-total { text-align: center; }
.stat-total span { display: block; color: var(--label-3); font-size: 9.2px; line-height: 12px; font-weight: 620; letter-spacing: .065em; text-transform: uppercase; }
.stat-total strong { display: block; margin-top: 3px; font-size: 23px; line-height: 28px; font-weight: 620; font-variant-numeric: tabular-nums; }
.numeric-text { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.numeric-text-run {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center;
  overflow: clip; vertical-align: -.12em; padding-block: .12em; margin-block: -.12em;
}
.numeric-glyph {
  position: relative; display: grid; place-items: center; min-width: .58em; overflow: clip;
}
.numeric-glyph.punctuation { min-width: .34em; }
.numeric-glyph > span { grid-area: 1 / 1; display: block; }
.numeric-glyph-static { position: relative; }
.numeric-glyph-old,
.numeric-glyph-new { will-change: transform, opacity, filter; }
.numeric-text-run.counts-up .numeric-glyph-old { animation: numericOldUp .34s cubic-bezier(.2,.78,.2,1) both; }
.numeric-text-run.counts-up .numeric-glyph-new { animation: numericNewUp .34s cubic-bezier(.2,.78,.2,1) both; }
.numeric-text-run.counts-down .numeric-glyph-old { animation: numericOldDown .34s cubic-bezier(.2,.78,.2,1) both; }
.numeric-text-run.counts-down .numeric-glyph-new { animation: numericNewDown .34s cubic-bezier(.2,.78,.2,1) both; }
.stat-divider { width: .5px; height: 34px; margin: 0 10px; background: color-mix(in srgb, var(--label-2) 12%, transparent); }
.stats-switch { width: 208px; height: 31px; margin: 8px auto 0; padding: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: .7px solid color-mix(in srgb, var(--label-2) 11%, transparent); border-radius: var(--pill); }
.stats-mode { height: 25px; border: .7px solid transparent; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; gap: 5px; color: color-mix(in srgb, var(--label-2) 50%, transparent); font-size: 10.2px; font-weight: 620; transition: color .2s ease, border-color .25s ease, box-shadow .25s ease; }
.stats-mode .sf-symbol { width: 11px; height: 11px; }
.stats-mode.active { color: var(--label); border-color: color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 12%, transparent); }
.stats-plot { width: 100%; height: 215px; margin-top: 11px; overflow: visible; }
.stats-plot text { fill: var(--label-3); font-family: var(--font); font-size: 8.5px; font-variant-numeric: tabular-nums; }
.stats-grid { stroke: color-mix(in srgb, var(--label-2) 9%, transparent); stroke-width: .6; stroke-dasharray: 2 5; }
.stats-grid.base { stroke: color-mix(in srgb, var(--label-2) 16%, transparent); stroke-dasharray: none; }
.stats-bar { fill: color-mix(in srgb, var(--accent) 68%, transparent); transform-origin: bottom; }
.stats-area { fill: url(#statsAreaGradient); }
.stats-line { fill: none; stroke: var(--accent); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 28%, transparent)); }
.stats-focus-line { stroke: color-mix(in srgb, var(--accent) 28%, transparent); stroke-width: .8; stroke-dasharray: 3 4; }
.stats-focus-dot { fill: var(--accent); stroke: var(--canvas); stroke-width: 1.4; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 52%, transparent)); }
.stats-focus-ring { fill: none; stroke: color-mix(in srgb, var(--accent) 38%, transparent); stroke-width: 1; animation: focusRing 1.43s linear infinite; transform-origin: center; transform-box: fill-box; }
.stats-tooltip { fill: var(--canvas); stroke: color-mix(in srgb, var(--accent) 38%, transparent); stroke-width: .65; }
.stats-tooltip-text { fill: var(--label) !important; font-size: 10px !important; font-weight: 700; }
/* More features */
.more-canvas { position: relative; height: 322px; margin-top: 25px; }
#more .stage-content { overflow: visible; }
.more-card {
  position: absolute; left: 50%; top: 50%; width: min(500px, calc(100% - 8px)); height: 144px;
  transform: translate(-50%,-50%) scale(.82); opacity: 0;
  padding: 10px 11px; border: .9px solid color-mix(in srgb, var(--accent) 78%, transparent); border-radius: var(--card-radius);
  overflow: hidden; transform-origin: center;
}
.more-card.revealed { animation: cardReveal .48s cubic-bezier(.15,.78,.25,1.22) forwards; }
.more-card .repo-title { font-size: 13px; }
.more-card .repo-abstract { -webkit-line-clamp: var(--more-abstract-lines, 3); }
.more-card.pdf-unmasked { overflow: visible; }
.author-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2.5px; opacity: 0; transform: translate3d(0,0,0); background: var(--danger); box-shadow: 0 0 7px color-mix(in srgb, var(--danger) 42%, transparent); will-change: transform, opacity; }
.resolved-author { color: var(--danger); text-shadow: 0 0 7px color-mix(in srgb, var(--danger) 28%, transparent); }
.pdf-drag-group { position: absolute; z-index: 4; width: 62px; height: 62px; right: -8px; top: -8px; opacity: 0; pointer-events: none; transform: translate3d(48px,-54px,0) rotate(7deg) scale(.96); transform-origin: center; will-change: transform, opacity; }
.pdf-document, .pdf-hand, .pdf-clip { position: absolute; z-index: 4; color: var(--accent); will-change: transform, opacity; }
.pdf-document { width: 36px; height: 36px; right: 18px; top: 8px; }
.pdf-hand { width: 30px; height: 30px; right: -5px; top: 24px; color: var(--label); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.pdf-clip { width: 18px; height: 18px; right: 6px; top: 6px; opacity: 0; transform: rotate(-34deg) scale(.28); }
.pdf-document .sf-symbol, .pdf-hand .sf-symbol, .pdf-clip .sf-symbol { width: 100%; height: 100%; }
.resize-corner { position: absolute; width: 29px; height: 29px; color: var(--accent); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 34%, transparent)); }
.resize-corner svg { width: 29px; height: 29px; }
.resize-corner.tl { left: -14px; top: -14px; }
.resize-corner.tr { right: -14px; top: -14px; transform: rotate(90deg); }
.resize-corner.br { right: -14px; bottom: -14px; transform: rotate(180deg); }
.resize-corner.bl { left: -14px; bottom: -14px; transform: rotate(270deg); }
.live-activity {
  --live-width: 9px; --live-height: 9px;
  position: absolute; left: 50%; top: 50%; width: var(--live-width); height: var(--live-height);
  transform: translate(-50%,-50%); border: 1.1px solid rgba(255,255,255,.48); border-radius: 999px;
  color: #fff; background: #0b0b0c; opacity: 0; overflow: hidden;
  box-shadow: 0 8px 12px rgba(0,0,0,.22); will-change: width, height, opacity;
}
.live-activity.visible { opacity: 1; }
.live-content { position: absolute; inset: 0; opacity: var(--live-content-opacity,0); will-change: opacity; }
.rabbit-lottie { position: absolute; left: 0; top: 50%; width: 58px; height: 58px; transform: translateY(-50%) scale(var(--live-content-scale,0)); filter: grayscale(1) brightness(0) invert(1); }
.live-status { position: absolute; left: 74px; right: 14px; top: 18px; }
.live-status-row { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 620; white-space: nowrap; }
.live-progress { position: relative; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.18); }
.live-progress i { display: block; width: var(--live-progress,4%); height: 100%; border-radius: inherit; background: var(--live-progress-color,#fff); transition: width .3s var(--smooth), background .2s ease; }
/* Story layout */
.story { padding: clamp(18px, 1.8vw, 24px) 0; }
.story + .story { margin-top: -80px; }
#import, #auth { margin-top: -80px; }
.story-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(460px,520px); gap: var(--section-inline-gap); align-items: center; }
.story-grid.reverse { grid-template-columns: minmax(460px,520px) minmax(0,1fr); }
.story-grid.reverse .story-copy { grid-column: 2; grid-row: 1; }
.story-grid.reverse .native-stage { grid-column: 1; grid-row: 1; }
.story-copy > p:last-child { margin: 20px 0 0; color: var(--label-2); font-size: clamp(1rem, 1.4vw, 1.16rem); }
.compact-head { max-width: 760px; }
.compact-head.center { margin-inline: auto; text-align: center; }
.compact-head > p:last-child { margin: 20px 0 0; color: var(--label-2); font-size: 1.05rem; }
.final-story { padding-bottom: 28px; }

/* Languages */
.languages { margin-top: -34px; padding: clamp(30px, 3.4vw, 42px) 0; overflow: hidden; }
.language-marquee { width: 100%; margin-top: 38px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); mask-image: linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); }
.language-track { width: max-content; display: flex; align-items: center; gap: 13px; animation: marquee 34s linear infinite; }
.language-chip { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--separator); border-radius: var(--pill); color: var(--label-2); background: color-mix(in srgb, var(--surface) 64%, transparent); white-space: nowrap; }
.language-chip b { color: var(--label); font-size: 14px; }
.language-chip span { font-size: 19px; }

/* Plans */
.plans { margin-top: 8px; }
.plan-native-stage { height: 390px; }
.quota-scene { position: relative; width: min(100%, 510px); height: 360px; margin: 4px auto 0; }
.quota-plan-nav { width: min(100%, 270px); height: 39px; margin: 0 auto 17px; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: .75px solid color-mix(in srgb, var(--label-2) 15%, transparent); }
.quota-plan-nav button { position: relative; min-width: 0; border: 0; padding: 0 8px 8px; color: var(--label-3); background: transparent; cursor: pointer; font-size: 14px; line-height: 30px; font-weight: 650; white-space: nowrap; transition: color .22s ease; }
.quota-plan-nav button::after { content:""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .36s var(--ease); }
.quota-plan-nav button:hover { color: var(--label-2); }
.quota-plan-nav button.active { color: var(--label); }
.quota-plan-nav button.active::after { transform: scaleX(1); }
.quota-table { width: 100%; }
.quota-row { --quota-position: 0%; --quota-delay: 0ms; min-height: 39px; display: grid; grid-template-columns: minmax(138px,1fr) minmax(140px,1.25fr) 78px; align-items: center; column-gap: 10px; border-bottom: .65px solid color-mix(in srgb, var(--label-2) 10%, transparent); }
.quota-row:last-child { border-bottom-color: transparent; }
.quota-label { min-width: 0; overflow: hidden; color: var(--label-2); font-size: 13.5px; line-height: 18px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.quota-value { color: var(--label); font-family: var(--font); font-size: 14px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.012em; text-align: right; white-space: nowrap; }
.quota-scale { position: relative; height: 19px; }
.quota-axis { position: absolute; left: 0; right: 0; top: 9px; height: .75px; background: color-mix(in srgb, var(--label-2) 18%, transparent); }
.quota-ticks { position: absolute; inset: 0; }
.quota-ticks i { position: absolute; left: var(--tick); top: 5px; width: .75px; height: 9px; background: color-mix(in srgb, var(--label-2) 16%, transparent); transform: translateX(-50%); }
.quota-marker { position: absolute; left: var(--quota-position); top: 1px; width: 10px; height: 17px; transform: translateX(-50%); transition: left .78s cubic-bezier(.18,.78,.2,1), opacity .24s ease; transition-delay: var(--quota-delay); }
.quota-marker::before, .quota-marker::after { content:""; position: absolute; left: 50%; background: var(--accent); transform: translateX(-50%); }
.quota-marker::before { top: 0; width: 1.5px; height: 17px; }
.quota-marker::after { top: 8px; width: 10px; height: 1.5px; }
.quota-row.empty .quota-marker { opacity: .28; }

/* Closing and footer */
.closing { position: relative; margin-top: 0; padding: clamp(36px, 4vw, 48px) 0; text-align: center; overflow: hidden; }
.closing-glow { position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle,color-mix(in srgb,var(--accent) 8%,transparent),transparent 67%); pointer-events: none; }
.closing .wrap { position: relative; }
.closing-icon { width: 92px; height: 92px; margin: 0 auto 30px; border-radius: 22px; box-shadow: 0 20px 50px var(--shadow); }
.closing h2 { font-size: clamp(2.6rem,5.6vw,4.8rem); }
.closing > .wrap > p { margin: 23px auto 0; color: var(--label-2); }
.closing-actions { margin-top: 30px; display: flex; justify-content: center; gap: 11px; }
.footer { min-height: 130px; border-top: 1px solid var(--separator); overflow: hidden; }
.footer-inner { position: relative; min-height: 130px; padding-top: 32px; padding-bottom: 20px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.footer-math { position: absolute; inset: 0; pointer-events: none; }
.footer-math span { position: absolute; left: var(--x); top: var(--y); font-size: var(--s); color: var(--label-3); pointer-events: auto; cursor: default; transition: color .2s ease; }
.footer-math span:hover { color: var(--label); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-nav a { color: var(--label-2); font-size: 12.5px; transition: color .2s ease; }
.footer-nav a:hover { color: var(--label); }
.footer-copy { margin: 24px 0 0; color: var(--label-3); font-size: 11.5px; }

/* Motion */
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes logoImpact {
  0%,100% { transform: none; }
  12% { transform: translateX(4px) scale(.97,1.04); }
  28% { transform: translateX(-2.5px) scale(1.02,.98); }
  48% { transform: translateX(1.4px); }
  70% { transform: translateX(-.6px); }
}
@keyframes coreBounce { 0%,100% { scale:1; } 45% { scale:1.08; } 72% { scale:.98; } }
@keyframes focusRing { from { opacity:.38; transform:scale(.45); } to { opacity:0; transform:scale(2.8); } }
@keyframes cardReveal { from { opacity:0; transform:translate(-50%,-50%) scale(.82); } 70% { opacity:1; transform:translate(-50%,-50%) scale(1.025); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes contentTextOut { to { opacity:0; filter:blur(2px); transform:translateY(-.72em) scaleY(.94); } }
@keyframes contentTextIn { from { opacity:0; filter:blur(2px); transform:translateY(.72em) scaleY(.94); } }
@keyframes numericOldUp { to { opacity:0; filter:blur(2px); transform:translateY(-.72em) scaleY(.92); } }
@keyframes numericNewUp { from { opacity:0; filter:blur(2px); transform:translateY(.72em) scaleY(.92); } }
@keyframes numericOldDown { to { opacity:0; filter:blur(2px); transform:translateY(.72em) scaleY(.92); } }
@keyframes numericNewDown { from { opacity:0; filter:blur(2px); transform:translateY(-.72em) scaleY(.92); } }
@keyframes citationAccentSweep {
  0% { opacity: 0; transform: scaleY(.12); transform-origin: top; }
  24% { opacity: .72; }
  58% { opacity: .38; transform: scaleY(1); transform-origin: top; }
  59% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(.16); transform-origin: bottom; }
}
@keyframes headingMaskOut {
  to { opacity: 0; }
}
@keyframes headingMaskIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes heroGlyphOutUp {
  0% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
  24% { opacity: .82; filter: blur(.5px); }
  50% { opacity: .14; filter: blur(2.6px); }
  100% { opacity: 0; filter: blur(4.5px); transform: translate3d(0, -.62em, 0); }
}
@keyframes heroGlyphInUp {
  0% { opacity: 0; filter: blur(4.5px); transform: translate3d(0, .62em, 0); }
  38% { opacity: .14; filter: blur(2.6px); }
  70% { opacity: .9; filter: blur(.45px); }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}
@keyframes heroGlyphOutDown {
  0% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
  24% { opacity: .82; filter: blur(.5px); }
  50% { opacity: .14; filter: blur(2.6px); }
  100% { opacity: 0; filter: blur(4.5px); transform: translate3d(0, .62em, 0); }
}
@keyframes heroGlyphInDown {
  0% { opacity: 0; filter: blur(4.5px); transform: translate3d(0, -.62em, 0); }
  38% { opacity: .14; filter: blur(2.6px); }
  70% { opacity: .9; filter: blur(.45px); }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}
@keyframes localizedHeadingOutUp {
  0% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
  52% { opacity: .28; }
  100% { opacity: 0; filter: blur(1.4px); transform: translate3d(0, -.68em, 0); }
}
@keyframes localizedHeadingInUp {
  0% { opacity: 0; filter: blur(1.4px); transform: translate3d(0, .68em, 0); }
  48% { opacity: .34; }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}
@keyframes localizedHeadingOutDown {
  0% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
  52% { opacity: .28; }
  100% { opacity: 0; filter: blur(1.4px); transform: translate3d(0, .68em, 0); }
}
@keyframes localizedHeadingInDown {
  0% { opacity: 0; filter: blur(1.4px); transform: translate3d(0, -.68em, 0); }
  48% { opacity: .34; }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glyph { animation: none !important; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding-top: 112px; }
  .hero-grid, .story-grid, .story-grid.reverse { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid { gap: calc(var(--section-stack-gap) - 8px); }
  #workflow { --mobile-stage-lift: 47px; }
  #import { --mobile-stage-lift: 17px; }
  #cite { --mobile-stage-lift: 25px; }
  #intelligence { --mobile-stage-lift: 6px; }
  #stats { --mobile-stage-lift: 12px; }
  #more { --mobile-stage-lift: 87.5px; }
  #auth { --mobile-stage-lift: 85px; }
  #tiers { --mobile-stage-lift: 18px; }
  .hero-copy { text-align: center; }
  .hero-title .hero-title-layer {
    left: 50%; width: max-content;
    transform: translate3d(-50%, -50%, 0); transform-origin: center;
  }
  .hero-title .hero-glyph-run {
    left: 50%; transform: translate3d(-50%, -50%, 0);
  }
  .hero-actions { justify-content: center; }
  .hero-player-wrap { justify-self: center; }
  .onboarding-player { height: 164px; }
  .player-viewport { top: 0; height: 138px; }
  .onboard-page { height: 138px; }
  .liquid-controls { bottom: 0; }
  .language-scene { height: 138px; padding-top: 8px; place-items: start center; }
  .language-control { transform: none; }
  .story-copy, .story-grid.reverse .story-copy { grid-column: 1; grid-row: 1; text-align: center; }
  .localized-heading.section-title-cycler.align-center .localized-heading-text { margin-inline: auto; }
  .native-stage, .story-grid.reverse .native-stage { grid-column: 1; grid-row: 2; }
  .story .native-stage { height: calc(410px - var(--mobile-stage-lift, 0px)); }
  .story .stage-content { transform: translate3d(0, calc(-1 * var(--mobile-stage-lift, 0px)), 0); }
  .story { padding-block: 20px; }
  .story + .story { margin-top: -8px; }
  #import, #auth { margin-top: -8px; }
  #cite .native-stage { height: calc(240px - var(--mobile-stage-lift)); }
  #cite .stage-content { position: relative; inset: auto; width: 100%; height: auto; overflow: visible; }
  #cite .scene { height: auto; }
  #cite .citation-preview-wrap { height: 240px; padding: 0; transform: none; }
  .languages { margin-top: -4px; }
  .plans { margin-top: 12px; }
  .closing { margin-top: 14px; }
  .story-copy > p:last-child { margin-top: 14px; }
  .quota-scene { margin-top: 0; }
}

@media (max-height: 800px) and (min-width: 961px) {
  .hero { min-height: 100svh; padding-top: 78px; padding-bottom: 18px; }
  .onboarding-player { height: 490px; }
  .player-viewport { top: 134px; height: 326px; }
  .onboard-page { height: 326px; }
  .liquid-controls { bottom: 12px; }
}

@media (max-height: 800px) and (min-width: 961px) {
  #workflow { margin-top: -84px; }
  .story + .story { margin-top: -80px; }
  #import, #auth { margin-top: -80px; }
  .languages { margin-top: -34px; }
  .plans { margin-top: -8px; }
}

@media (min-height: 801px) and (min-width: 961px) {
  #workflow { margin-top: -90px; }
}

@media (max-width: 620px) {
  .wrap, .nav-inner { padding-inline: 18px; }
  .nav-inner { gap: 16px; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .nav-actions { gap: 7px; }
  .nav-cta { flex: none; padding-inline: 13px; font-size: 13px; white-space: nowrap; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  h2 { font-size: clamp(2.05rem, 9.6vw, 3.05rem); }
  .hero { min-height: auto; padding: 126px 0 24px; }
  .hero-grid { gap: calc(var(--section-stack-gap) - 8px); }
  .hero-title { --hero-title-size: clamp(2.8rem, 15vw, 4.2rem); height: clamp(5.49rem, 29.4vw, 8.23rem); }
  .onboarding-player { height: 164px; }
  .player-viewport { top: 0; height: 138px; }
  .onboard-page { height: 138px; }
  .liquid-controls { bottom: 0; }
  .language-scene { height: 138px; padding-top: 8px; place-items: start center; }
  .language-control { transform: none; }
  .language-options { gap: 2px; }
  .language-option { flex-basis: clamp(17px, 5.1vw, 23px); min-width: 0; }
  .language-option.selected { flex-basis: min(120px, 34vw); }
  #workflow { --mobile-stage-lift: 42px; }
  #import { --mobile-stage-lift: 12px; }
  #cite { --mobile-stage-lift: 25px; }
  #intelligence { --mobile-stage-lift: 1px; }
  #stats { --mobile-stage-lift: 7px; }
  #more { --mobile-stage-lift: 82.5px; }
  #auth { --mobile-stage-lift: 80px; }
  #tiers { --mobile-stage-lift: 12px; }
  .native-stage { height: 400px; }
  .story .native-stage { height: calc(400px - var(--mobile-stage-lift, 0px)); }
  #cite .native-stage { height: calc(240px - var(--mobile-stage-lift)); }
  .stage-content { top: 14px; height: 372px; }
  .story { padding-block: 16px; }
  .story + .story { margin-top: -16px; }
  #import, #auth { margin-top: -16px; }
  #cite .citation-preview-wrap { padding-bottom: 0; }
  .languages { margin-top: -8px; }
  .plans { margin-top: 12px; }
  .closing { margin-top: 14px; }
  .languages { padding-block: 32px; }
  .language-marquee { margin-top: 30px; }
  .final-story { padding-bottom: 24px; }
  .closing { padding-block: 36px; }
  .quota-scene { height: 360px; margin-top: 0; }
  .quota-plan-nav { width: min(100%, 240px); margin-bottom: 15px; }
  .quota-row { min-height: 39px; grid-template-columns: minmax(112px,1.08fr) minmax(82px,1.05fr) 64px; column-gap: 6px; }
  .quota-label { font-size: clamp(12.5px, 3.35vw, 13.5px); }
  .quota-value { font-size: clamp(13px, 3.55vw, 14px); }
  .footer-inner { padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ambient-graph { display: none; }
}
