/* Spec 0071 BR-03 / R138: brand fonts self-hosted per subset. Ordered like Google Fonts, so the
   narrowest overlapping subset is declared first and latin wins ties. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/hanken-grotesk-vietnamese.woff2?v=992b5d147e) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-ext.woff2?v=768af2923e) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin.woff2?v=e9201eddf1) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-cyrillic.woff2?v=71d5ee93cc) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-vietnamese.woff2?v=5c66f9e07e) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2?v=34b9c504ca) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin.woff2?v=3100e775e8) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Spec 0071 BR-02: every color, gradient, glow, radius and curve comes from
   docs/design/stitch/design-system/tokens.json and lives only here. */
:root {
  color-scheme: dark;

  --background: #000000;
  --pure-black: #000000;
  --surface: #101010;
  --surface-container-lowest: #0a0a0a;
  --surface-container-low: #181818;
  --surface-container-high: #252525;
  --surface-container-highest: #2f2f2f;
  --on-background: #e5e2e1;
  --on-surface-variant: #cbc3d7;
  --outline: #958ea0;
  --primary: #d0bcff;
  --secondary: #6bd8cb;
  --secondary-container: #29a195;
  --brand: #8b5cf6;
  --on-brand: #ffffff;
  --brand-gradient-start: #7c3aed;
  --brand-gradient-end: #a78bfa;
  --glass-fill: rgb(24 24 24 / 0.7);
  --glass-border: rgb(255 255 255 / 0.1);
  --glass-border-strong: rgb(255 255 255 / 0.05);
  --topbar-fill: rgb(0 0 0 / 0.8);

  --inline-angle: 90deg;
  --gradient-brand-cta: linear-gradient(var(--inline-angle), var(--brand-gradient-start), var(--brand), var(--brand-gradient-end));

  --glow-panel: 0 0 40px rgb(139 92 246 / 0.25);
  --glow-primary-button: 0 0 24px rgb(139 92 246 / 0.45);
  --glow-cta-brand: 0 0 32px rgb(139 92 246 / 0.55);
  --glow-chip-selected: 0 0 16px rgb(139 92 246 / 0.25);
  --glow-progress: 0 0 10px rgb(139 92 246 / 0.45);
  --glow-ai-panel: 0 0 24px rgb(208 188 255 / 0.12);
  --glow-wordmark: 0 0 12px rgb(208 188 255 / 0.55);
  --glow-text: drop-shadow(0 0 12px rgb(139 92 246 / 0.45));
  --device-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.9);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
  /* The phone bezel is an illustration of the device, so it scales with its own width. */
  --device-radius: 15cqi;
  --device-screen-radius: 12cqi;

  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-cinema: 400ms;
  --ease-brand-float: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-brand-float: 6000ms;
  --ease-brand-glow: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-brand-glow: 4800ms;
  --float-distance: 7px;

  --blur-glass: 20px;
  --opacity-disabled: 0.4;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 40px;
  --sp-xxxl: 48px;
  --gutter: 20px;
  --topbar-h: 64px;
  --cta-height: 56px;
  --hit-target: 44px;
  --badge-h: 46px;
  --content-max: 1200px;
  --prose-max: 720px;
  --section-pad: clamp(64px, 10vw, 128px);

  --stack-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stack-jpan: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", var(--stack-ui);
  --stack-kore: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", var(--stack-ui);
  --stack-hans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", var(--stack-ui);
  --stack-hant: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", var(--stack-ui);
  --stack-arab: "Geeza Pro", "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, var(--stack-ui);
  --stack-thai: Thonburi, "Leelawadee UI", "Noto Sans Thai", "Noto Sans Thai UI", Tahoma, var(--stack-ui);
  --stack-deva: "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--stack-ui);
  --font-brand: "Hanken Grotesk", "Inter", var(--stack-ui);
  --font-headline: "Hanken Grotesk", "Inter", var(--stack-ui);
  --font-body: "Inter", var(--stack-ui);
  --tracking-tight: -0.02em;
  --tracking-caps: 0.12em;
  --lh-display: 1.08;
  --lh-body: 1.6;
  --dir: 1;
}

[dir="rtl"] { --dir: -1; --inline-angle: 270deg; }

/* R138: Cyrillic keeps Inter for titles; the other non-Latin scripts use the system in every role. */
.s-cyrl { --font-headline: "Inter", var(--stack-ui); }
.s-jpan { --font-headline: var(--stack-jpan); --font-body: var(--stack-jpan); }
.s-kore { --font-headline: var(--stack-kore); --font-body: var(--stack-kore); }
.s-hans { --font-headline: var(--stack-hans); --font-body: var(--stack-hans); }
.s-hant { --font-headline: var(--stack-hant); --font-body: var(--stack-hant); }
.s-arab { --font-headline: var(--stack-arab); --font-body: var(--stack-arab); }
.s-thai { --font-headline: var(--stack-thai); --font-body: var(--stack-thai); }
.s-deva { --font-headline: var(--stack-deva); --font-body: var(--stack-deva); }
.s-jpan, .s-kore, .s-hans, .s-hant { --tracking-tight: 0; --tracking-caps: 0.04em; --lh-display: 1.25; }
.s-arab, .s-thai, .s-deva { --tracking-tight: 0; --tracking-caps: 0; --lh-display: 1.4; --lh-body: 1.75; }

@media (min-width: 600px) {
  :root { --gutter: 24px; --badge-h: 48px; }
}

@media (min-width: 840px) {
  :root { --gutter: 32px; --badge-h: 52px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--background);
  color: var(--on-background);
  font: 400 1rem/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 0.2em; }
p { margin: 0 0 var(--sp-md); }
::selection { background: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

h1, h2, h3 {
  font-family: var(--font-headline);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  color: var(--on-background);
}

.s-jpan :is(h1, h2, h3) { word-break: auto-phrase; }

.container {
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: absolute;
  z-index: 100;
  top: var(--sp-sm);
  inset-inline-start: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-md);
  background: var(--surface-container-high);
  color: var(--on-background);
  font-weight: 600;
  transform: translateY(-300%);
}

.skip:focus { transform: none; }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.topbar::before {
  background: var(--topbar-fill);
  -webkit-backdrop-filter: saturate(160%) blur(var(--blur-glass));
  backdrop-filter: saturate(160%) blur(var(--blur-glass));
  border-bottom: 1px solid var(--glass-border-strong);
}

.topbar::after {
  inset-block-start: auto;
  height: 1px;
  background: var(--gradient-brand-cta);
  box-shadow: var(--glow-progress);
  opacity: 0;
  transition: opacity var(--dur-cinema) var(--ease-cinema);
}

.topbar.is-scrolled::after { opacity: 0.7; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  height: var(--topbar-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  margin: 0;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
  color: var(--primary);
  text-decoration: none;
  text-shadow: var(--glow-wordmark);
  white-space: nowrap;
}

.wordmark img {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  box-shadow: var(--glow-chip-selected), 0 0 0 1px var(--glass-border);
}

.lang { position: relative; }

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  min-height: var(--hit-target);
  min-width: var(--hit-target);
  justify-content: center;
  padding: 0 var(--sp-sm);
  border-radius: var(--r-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--on-background);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color var(--dur-cinema) var(--ease-cinema);
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.lang .chevron { width: 16px; height: 16px; transition: transform var(--dur-cinema) var(--ease-cinema); }
.lang[open] .chevron { transform: rotate(180deg); }

@media (max-width: 479.98px) {
  .lang-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.lang-menu {
  position: absolute;
  top: calc(100% + var(--sp-xs));
  inset-inline-end: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  width: min(100vw - 2 * var(--gutter), 440px);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: var(--sp-xs);
  list-style: none;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--surface-container-low) 92%, transparent);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--glow-panel), var(--device-shadow);
  transform-origin: top;
}

@media (min-width: 400px) {
  .lang-menu { grid-template-columns: 1fr 1fr; }
}

.lang[open] .lang-menu { animation: menu-in var(--dur-cinema) var(--ease-cinema); }

.lang-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--sp-sm);
  border-radius: var(--r-sm);
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  text-decoration: none;
}

/* Autonyms span every script; in the system font they never pull another locale's font subsets. */
.lang-menu a, .languages > *, .lang-label { font-family: var(--stack-ui); }

.lang-menu a:hover { background: var(--glass-border); color: var(--on-background); }

.lang-menu a[aria-current] {
  color: var(--primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
}

/* ---------- Shared pieces ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  margin: 0;
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  box-shadow: var(--glow-chip-selected);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
}

.s-latn .chip, .s-cyrl .chip, .s-latn .why-label, .s-cyrl .why-label { text-transform: uppercase; font-size: 0.75rem; }

.hl {
  background: var(--gradient-brand-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter: var(--glow-text);
}

.lead {
  max-width: 36rem;
  color: var(--on-surface-variant);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: var(--lh-body);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-lg) var(--sp-md);
}

.store-badge {
  position: relative;
  display: inline-block;
  border-radius: var(--r-sm);
  line-height: 0;
}

.store-badge img { width: auto; height: var(--badge-h); }
a.store-badge { transition: transform var(--dur-cinema) var(--ease-cinema); }
a.store-badge:hover { transform: translateY(-2px); }
.store-badge.is-soon { cursor: default; }
.store-badge.is-soon img { opacity: var(--opacity-disabled); }

.soon {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  translate: calc(var(--dir) * 28%) -55%;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--brand-gradient-start);
  box-shadow: var(--glow-primary-button);
  color: var(--on-brand);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cta-height);
  padding: 0 var(--sp-xl);
  border-radius: var(--r-lg);
  background: var(--brand-gradient-start);
  box-shadow: var(--glow-primary-button);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-cinema) var(--ease-cinema);
}

.button:hover { transform: translateY(-2px); }

/* ---------- Phone illustration ---------- */

.device {
  position: relative;
  container-type: inline-size;
}

.float {
  position: relative;
  animation: brand-float var(--dur-brand-float) var(--ease-brand-float) infinite alternate;
}

.float::before {
  content: "";
  position: absolute;
  inset: 6% -16%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 70%, transparent), transparent);
  opacity: 0.32;
  animation: brand-glow var(--dur-brand-glow) var(--ease-brand-glow) infinite alternate;
}

.phone {
  position: relative;
  padding: 3cqi;
  border-radius: var(--device-radius);
  background: linear-gradient(155deg, var(--surface-container-highest), var(--surface-container-lowest) 36%, var(--surface-container-low) 72%, var(--surface-container-high));
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 0 0 1px var(--glass-border-strong), var(--glow-panel), var(--device-shadow);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  padding-top: 13cqi;
  border-radius: var(--device-screen-radius);
  background: var(--pure-black);
}

.phone-screen img { width: 100%; }

.island {
  position: absolute;
  z-index: 1;
  top: 3cqi;
  left: 50%;
  width: 27cqi;
  height: 8cqi;
  translate: -50% 0;
  border-radius: var(--r-full);
  background: var(--pure-black);
  box-shadow: 0 0 0 1px var(--glass-border-strong);
}

.status {
  position: absolute;
  top: 3cqi;
  inset-inline: 8cqi 7cqi;
  height: 8cqi;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-background);
  font: 600 4.4cqi/1 var(--font-body);
  direction: ltr;
}

.status-icons { width: 15cqi; height: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--sp-xl) 0;
}

.hero-bg {
  position: absolute;
  inset: calc(-1 * var(--topbar-h)) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--background));
}

.aurora {
  position: absolute;
  width: 80vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
}

.aurora-1 {
  top: -48vmax;
  inset-inline-start: -28vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-gradient-start) 55%, transparent), transparent);
  animation: drift-1 26s var(--ease-brand-glow) infinite alternate;
}

.aurora-2 {
  top: -18vmax;
  inset-inline-end: -40vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--secondary-container) 32%, transparent), transparent);
  animation: drift-2 32s var(--ease-brand-glow) infinite alternate;
}

.aurora-3 {
  bottom: -52vmax;
  inset-inline-start: 12vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 38%, transparent), transparent);
  animation: drift-3 38s var(--ease-brand-glow) infinite alternate;
}

.beam {
  position: absolute;
  width: 70vmax;
  height: 1px;
  rotate: -16deg;
  opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, transparent), transparent);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--brand) 45%, transparent);
}

.beam-1 { top: 26%; inset-inline-start: -20vmax; animation: beam 9s var(--ease-brand-glow) infinite; }

.beam-2 {
  top: 70%;
  inset-inline-end: -25vmax;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--secondary) 60%, transparent), transparent);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--secondary-container) 45%, transparent);
  animation: beam 13s var(--ease-brand-glow) -5s infinite;
}

.hero-inner {
  display: grid;
  gap: var(--sp-xl);
  justify-items: center;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}

.hero h1 {
  margin: var(--sp-lg) 0 var(--sp-md);
  font-size: clamp(2.125rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: var(--lh-display);
}

.hero .lead { margin-bottom: var(--sp-xl); }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding-block: var(--sp-md) var(--sp-xxxl);
}

.hero-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(135%, 780px);
  max-width: none;
  translate: -50% -50%;
  opacity: 0.45;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, var(--pure-black) 30%, transparent);
  mask-image: radial-gradient(closest-side, var(--pure-black) 30%, transparent);
  pointer-events: none;
  animation: art-breathe 14s var(--ease-brand-glow) infinite alternate;
}

.fan {
  --pw: min(172px, 44vw);
  --ps: min(140px, 35vw);
  position: relative;
  display: flex;
  justify-content: center;
  width: calc(var(--pw) + var(--ps) * 1.15);
}

.fan-center { width: var(--pw); z-index: 2; }

.fan-side {
  position: absolute;
  top: 15%;
  z-index: 1;
  width: var(--ps);
}

.fan-side .phone { filter: brightness(0.8); }
.fan-start { inset-inline-start: 0; rotate: calc(var(--dir) * -10deg); }
.fan-end { inset-inline-end: 0; rotate: calc(var(--dir) * 10deg); }
.fan-start .float { animation-delay: -2s; }
.fan-end .float { animation-delay: -4s; }
.fan-side .float::before { animation-direction: alternate-reverse; }

@media (min-width: 600px) {
  .fan { --pw: 220px; --ps: 176px; }
}

@media (min-width: 840px) {
  .hero { padding-block: 0; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    min-height: min(54rem, calc(100svh - var(--topbar-h)));
    text-align: start;
  }

  .hero-copy { align-items: flex-start; }
  .hero-copy .badges { justify-content: flex-start; }
  .hero-visual { padding-block: var(--sp-xxxl); }
  .fan { --pw: 240px; --ps: 192px; }
}

@media (min-width: 1200px) {
  .fan { --pw: 272px; --ps: 216px; }
}

/* ---------- Features ---------- */

.features {
  position: relative;
  overflow: clip;
  padding-block: clamp(32px, 6vw, 80px) var(--sp-xl);
}

.section-title {
  margin: 0 auto var(--sp-lg);
  text-align: center;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-title::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0 auto var(--sp-md);
  border-radius: var(--r-full);
  background: var(--gradient-brand-cta);
  box-shadow: var(--glow-progress);
}

.feature {
  --orb: var(--brand);
  display: grid;
  gap: var(--sp-lg);
  align-items: center;
  padding-block: var(--sp-xl);
}

.feature-2, .feature-4 { --orb: var(--secondary-container); }

.feature-copy {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.feature h3 {
  margin: var(--sp-md) 0 var(--sp-sm);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.feature-copy p:last-child {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 1.125rem;
}

.feature-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding-block: var(--sp-lg);
}

.feature-media::before,
.feature-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}

.feature-media::before {
  width: min(560px, 120%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orb) 34%, transparent), transparent 78%);
}

.feature-media::after {
  width: min(420px, 92%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--orb) 12%, transparent);
}

.stage {
  position: relative;
  width: min(256px, 62vw);
}

.feature:nth-of-type(odd) .float { animation-delay: -3s; }

.why {
  position: absolute;
  z-index: 3;
  bottom: 12%;
  inset-inline-end: -22%;
  width: min(256px, 82%);
  padding: var(--sp-md);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--glow-ai-panel), var(--glow-panel);
}

.why-label {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  margin: 0 0 var(--sp-xs);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
}

.why-text {
  margin: 0;
  color: var(--on-background);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 840px) {
  .feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-xxxl);
    padding-block: var(--sp-xxl);
  }

  .feature-copy { margin-inline: 0; text-align: start; }
  .feature:nth-of-type(even) .feature-media { order: -1; }
  .feature:nth-of-type(even) .feature-copy { justify-self: start; }
  .stage { width: 272px; }
  .why { inset-inline-end: -40%; }
}

/* ---------- Final CTA ---------- */

.cta { padding-block: var(--sp-xl) var(--section-pad); }

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 7vw, 88px) var(--sp-lg);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  background: var(--surface-container-lowest);
  box-shadow: var(--glow-panel);
  text-align: center;
}

.cta-glow {
  position: absolute;
  z-index: -1;
  inset: -60%;
  background:
    radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 32%),
    radial-gradient(circle at 65% 65%, color-mix(in srgb, var(--secondary-container) 26%, transparent), transparent 30%);
  animation: cta-orbit 30s var(--ease-brand-glow) infinite alternate;
}

.cta-icon {
  width: 88px;
  height: 88px;
  margin-bottom: var(--sp-lg);
  border-radius: var(--r-xl);
  box-shadow: var(--glow-cta-brand), 0 0 0 1px var(--glass-border);
  animation: brand-float var(--dur-brand-float) var(--ease-brand-float) infinite alternate;
}

.cta h2 {
  margin: 0 0 var(--sp-sm);
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.cta .lead { margin: 0 auto var(--sp-xl); }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: var(--sp-xxl) var(--sp-xl);
  border-top: 1px solid var(--glass-border-strong);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--brand) 7%, transparent));
  font-size: 0.9375rem;
}

.footer-inner { display: grid; gap: var(--sp-lg); }
.footer-wordmark { font-size: 26px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-lg);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit-target);
  color: var(--on-surface-variant);
  text-decoration: none;
}

.footer-links a:hover, .footer-links a[aria-current] { color: var(--primary); }

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-md);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--glass-border-strong);
  font-size: 0.8125rem;
}

.languages a { color: var(--outline); text-decoration: none; }
.languages a:hover { color: var(--primary); }
.languages [aria-current] { color: var(--on-background); font-weight: 600; }

/* Spec 0055 BR-06: atribuição ao TMDB no rodapé. */
.attribution {
  margin: 0;
  color: var(--outline);
  font-size: 0.8125rem;
}

/* ---------- Legal pages (spec 0061) ---------- */

.doc { position: relative; }

.doc::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 360px;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent);
  pointer-events: none;
}

.prose {
  width: min(100% - 2 * var(--gutter), var(--prose-max));
  margin-inline: auto;
  padding-block: var(--sp-xxl) var(--section-pad);
}

.prose h1 {
  margin: 0 0 var(--sp-lg);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.prose h2 {
  margin: var(--sp-xxl) 0 var(--sp-sm);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose p, .prose li { color: var(--on-surface-variant); }
.prose li + li { margin-top: var(--sp-xs); }
.prose ul, .prose ol { margin: 0 0 var(--sp-md); padding-inline-start: var(--sp-lg); }
.prose strong { color: var(--on-background); }
.prose hr { border: 0; border-top: 1px solid var(--glass-border); margin: var(--sp-xl) 0; }

.notice {
  padding: var(--sp-md);
  padding-inline-start: var(--sp-lg);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  border-inline-start: 3px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  box-shadow: var(--glow-ai-panel);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: var(--sp-md) 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th, .prose td {
  padding: var(--sp-xs);
  border-bottom: 1px solid var(--glass-border);
  text-align: start;
  vertical-align: top;
}

.prose th { color: var(--on-background); }
.prose td { color: var(--on-surface-variant); }

/* ---------- 404 ---------- */

.notfound { position: relative; isolation: isolate; overflow: clip; }

.notfound::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(720px, 140vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent);
}

.notfound-inner {
  display: grid;
  justify-items: center;
  padding-block: clamp(64px, 16vh, 160px);
  text-align: center;
}

.notfound-code {
  margin: 0;
  background: var(--gradient-brand-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: var(--glow-text);
  font: 700 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font-brand);
  letter-spacing: -0.04em;
}

.notfound h1 { margin: var(--sp-md) 0 var(--sp-xl); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }

/* ---------- Motion (spec 0071 BR-05) ---------- */

@keyframes brand-float { to { transform: translateY(calc(-1 * var(--float-distance))); } }
@keyframes brand-glow {
  from { opacity: 0.32; transform: scale(0.97); }
  to { opacity: 0.58; transform: scale(1.04); }
}
@keyframes drift-1 { to { transform: translate(14vmax, 10vmax) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-12vmax, 14vmax) scale(0.92); } }
@keyframes drift-3 { to { transform: translate(10vmax, -12vmax) scale(1.08); } }
@keyframes art-breathe {
  from { transform: scale(1) rotate(0deg); opacity: 0.38; }
  to { transform: scale(1.06) rotate(3deg); opacity: 0.55; }
}
@keyframes beam {
  0% { opacity: 0; transform: translateX(-25%); }
  45% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(35%); }
}
@keyframes cta-orbit { to { transform: rotate(160deg) scale(1.1); } }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes parallax-near { to { transform: translateY(-40px); } }
@keyframes parallax-far { to { transform: translateY(-90px); } }

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
    transition:
      opacity var(--dur-cinema) var(--ease-cinema),
      transform var(--dur-cinema) var(--ease-cinema),
      filter var(--dur-cinema) var(--ease-cinema);
  }

  html.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
  html.js .d1 { transition-delay: 90ms; }
  html.js .d2 { transition-delay: 180ms; }
  html.js .d3 { transition-delay: 270ms; }

  @supports (animation-timeline: scroll()) {
    .fan-center, .fan-side {
      animation: parallax-near var(--ease-cinema) both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }

    .fan-side { animation-name: parallax-far; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
