/* AMV Editor landing page.
   Tokens follow the app's design system (amv_studio/app/qml/AMV/Theme.qml, "Lumen"):
   obsidian surfaces, smoked glass, Geist type. Accents come from the official logo:
   blue -> violet -> magenta -> orange. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0b0c12;
  --solid: #0e1016;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef0f6;
  --text-2: #a9aec2;
  --text-3: #868ba3;

  --blue: #3d7bff;
  --violet: #8b5cff;
  --magenta: #ff40a0;
  --orange: #ff8a00;
  --brand: linear-gradient(100deg, var(--blue), var(--violet) 38%, var(--magenta) 68%, var(--orange));
  --btn: linear-gradient(100deg, #2c5fe0, #6a3df0 45%, #b02a74 80%, #b2470a);   /* white text >= 4.5:1 along the whole gradient */

  --live: #33d6a6;
  --dev: #f5b54a;
  --planned: #9fa8ff;
  --focus: #9fc0ff;

  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --section: clamp(88px, 12vw, 160px);

  --glide: cubic-bezier(.2, .75, .25, 1);
  --t-hover: 220ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; overflow: clip;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg); font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform 160ms ease;
}
.skip-link:focus { transform: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ── Ambient light ───────────────────────────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__blob {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(80px); opacity: .0; will-change: transform;
  transition: opacity 1600ms ease;
}
.ambient__blob--blue   { left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(61, 123, 255, .55), transparent 62%); animation: drift-a 46s ease-in-out infinite alternate; }
.ambient__blob--violet { right: -20vmax; top: 18vh;   background: radial-gradient(circle, rgba(139, 92, 255, .45), transparent 62%); animation: drift-b 58s ease-in-out infinite alternate; }
.ambient__blob--orange { left: 20vw; bottom: -34vmax; background: radial-gradient(circle, rgba(255, 110, 40, .38), transparent 62%); animation: drift-c 52s ease-in-out infinite alternate; }
.ambient__grain {
  position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(ellipse at 50% -10%, transparent 40%, rgba(0, 0, 0, .55) 100%);
}
/* section "zones" re-balance the light slowly as the reader scrolls */
body[data-zone="hero"] .ambient__blob--blue,
body[data-zone="hero"] .ambient__blob--orange { opacity: .55; }
body[data-zone="hero"] .ambient__blob--violet { opacity: .3; }
body[data-zone="product"] .ambient__blob--violet { opacity: .5; }
body[data-zone="product"] .ambient__blob--blue { opacity: .3; }
body[data-zone="how"] .ambient__blob--blue { opacity: .5; }
body[data-zone="how"] .ambient__blob--orange { opacity: .2; }
body[data-zone="features"] .ambient__blob--violet,
body[data-zone="features"] .ambient__blob--orange { opacity: .3; }
body[data-zone="samples"] .ambient__blob--orange { opacity: .45; }
body[data-zone="samples"] .ambient__blob--violet { opacity: .25; }
body[data-zone="roadmap"] .ambient__blob--blue { opacity: .3; }
body[data-zone="follow"] .ambient__blob--blue,
body[data-zone="follow"] .ambient__blob--violet,
body[data-zone="follow"] .ambient__blob--orange { opacity: .4; }
html.no-js .ambient__blob { opacity: .35; }

@keyframes drift-a { to { transform: translate3d(14vw, 10vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-12vw, 14vh, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-16vw, -8vh, 0) scale(1.08); } }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 12, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding-block: 14px; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 10px; }
.site-header .brand { margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand__name { font-weight: 500; letter-spacing: -.01em; }
.brand--small img { width: 28px; height: 28px; border-radius: 7px; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 14.5px; white-space: nowrap;
  transition: color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="true"] { color: var(--text); }
.site-nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2px; margin-left: -7px;
  border-radius: 2px; background: var(--brand);
}
.site-nav .site-nav__cta { color: var(--text); border: 1px solid var(--border-strong); margin-left: 8px; }
.site-nav .site-nav__cta:hover { border-color: rgba(255, 255, 255, .3); }

/* language switcher: real links to each language's page */
.lang ul { display: flex; gap: 2px; padding: 3px; list-style: none; border: 1px solid var(--border); border-radius: 999px; background: rgba(7, 8, 12, .4); }
.lang a {
  display: block; min-width: 36px; padding: 6px 8px; border-radius: 999px; text-align: center; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text-2);
  transition: color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.lang a:hover { color: var(--text); background: var(--surface-2); }
.lang a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .12); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; place-items: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 260ms var(--glide), opacity 200ms ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); padding: 10px;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: rgba(14, 16, 22, .96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
    transition: opacity 220ms ease, transform 260ms var(--glide), visibility 0s linear 260ms;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .site-nav a[aria-current="true"]::after { left: 16px; bottom: 8px; margin: 0; }
  .site-nav .site-nav__cta { margin: 6px 0 0; text-align: center; }
  html.no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; }
  .lang a { padding: 9px 8px; }
}

/* ── Buttons, badges, statuses ───────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; overflow: hidden; overflow: clip;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--glide), border-color var(--t-hover) ease, background-color var(--t-hover) ease, box-shadow 300ms ease;
}
.btn:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .09); }
.btn:active { transform: scale(.97); }
.btn--primary {
  border-color: transparent; background: var(--btn); color: #fff;
  box-shadow: 0 10px 34px -10px rgba(139, 92, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary::after {           /* light sweep on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--glide);
}
.btn--primary:hover { border-color: transparent; background: var(--btn); box-shadow: 0 14px 40px -10px rgba(255, 64, 160, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn__icon { width: 16px; height: 16px; fill: currentColor; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
}
.badge--real { color: var(--live); background: rgba(51, 214, 166, .08); }
.badge--concept { color: var(--dev); background: rgba(245, 181, 74, .08); }

.status {
  display: inline-flex; align-items: center; gap: 7px; vertical-align: middle;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .03em; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--border);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status--live { color: var(--live); }
.status--dev { color: var(--dev); }
.status--planned { color: var(--planned); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--live { background: var(--live); box-shadow: 0 0 10px var(--live); }
.dot--dev { background: var(--dev); box-shadow: 0 0 10px var(--dev); }
.dot--planned { background: var(--planned); box-shadow: 0 0 10px var(--planned); }

.eyebrow {
  margin-bottom: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.text-gradient {
  background: var(--brand); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue-pan 14s ease-in-out infinite alternate;
}
@keyframes hue-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ── Cards (pointer-following light edge) ────────────────────────── */
.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: transform 320ms var(--glide), border-color var(--t-hover) ease, background-color var(--t-hover) ease, opacity 300ms ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 300ms ease;
}
.card:hover::before { opacity: 1; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .12); } }

/* ── Reveal on scroll (only when JS runs; content is visible otherwise) ── */
/* visible at rest: only sections still below the screen when the page loads wait for the reader */
[data-reveal] {
  transition: opacity var(--t-reveal) var(--glide), transform var(--t-reveal) var(--glide);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-pending { opacity: 0; transform: translateY(18px); }

/* hero: plays once on load (not tied to scrolling, so the first paint is never held back) */
[data-intro] { animation: intro 900ms var(--glide) both; }
.hero__copy > [data-intro]:nth-child(2) { animation-delay: 80ms; }
.hero__copy > [data-intro]:nth-child(3) { animation-delay: 160ms; }
.hero__copy > [data-intro]:nth-child(4) { animation-delay: 240ms; }
.hero__copy > [data-intro]:nth-child(5) { animation-delay: 320ms; }
.hero__visual[data-intro] { animation: intro-logo 1400ms var(--glide) 100ms both; }
@keyframes intro { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes intro-logo { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Sections ────────────────────────────────────────────────────── */
.section { position: relative; padding: var(--section) 0 0; }
.section::before {               /* soft luminous divider between sections */
  content: ""; position: absolute; top: 0; left: 50%; width: min(720px, 80vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(139, 92, 255, .4), rgba(255, 64, 160, .3), transparent);
  opacity: .6;
}
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 300; }
.section__lead { margin-top: 16px; color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 640px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  border: 1px solid rgba(245, 181, 74, .45); background: rgba(245, 181, 74, .08);
  color: #f7c878; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dev); box-shadow: 0 0 0 0 rgba(245, 181, 74, .6); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 181, 74, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(245, 181, 74, 0); } }
.hero__title { font-size: clamp(40px, 6vw, 76px); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.hero__line { display: block; }
.hero__line.text-gradient { padding-bottom: .08em; }
.hero__lead { margin-top: 26px; max-width: 560px; color: var(--text-2); font-size: clamp(17px, 1.7vw, 19.5px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; list-style: none; color: var(--text-3); font-size: 14px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

.hero__visual { display: grid; place-items: center; }
.logo-stage { position: relative; width: min(440px, 72vw); aspect-ratio: 1; display: grid; place-items: center; }
.logo-stage__logo {
  position: relative; width: 100%; height: auto;
  mix-blend-mode: screen;                       /* the logo's black field disappears into the page */
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
  animation: float 9s ease-in-out infinite;
}
.logo-stage__halo {                             /* the logo's colours, slowly turning behind it */
  position: absolute; inset: 14%; border-radius: 30%;
  background: conic-gradient(from 0deg, var(--blue), var(--violet), var(--magenta), var(--orange), var(--blue));
  filter: blur(46px); opacity: .32;
  animation: spin 28s linear infinite, breathe 7s ease-in-out infinite;
}
.logo-stage__ring {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 80px rgba(139, 92, 255, .06);
}
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .24; } 50% { opacity: .4; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 28px; height: 44px; margin-left: -14px;
  border: 1px solid var(--border-strong); border-radius: 999px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: cue 2.2s var(--glide) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .logo-stage { width: min(300px, 64vw); }
  .scroll-cue { display: none; }
}

/* ── Tabs (shared) ───────────────────────────────────────────────── */
.tabs { position: relative; display: flex; gap: 6px; padding: 5px; margin-bottom: 18px; width: max-content; max-width: 100%; overflow-x: auto;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.tab__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dev); }

/* ── Product window ──────────────────────────────────────────────── */
.window {
  position: relative; border-radius: var(--r-xl); overflow: hidden; overflow: clip;
  border: 1px solid var(--border-strong); background: var(--solid);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px -40px rgba(139, 92, 255, .35);
}
.window::before {               /* thin brand light along the top edge */
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: var(--brand); opacity: .7; z-index: 1;
}
.window__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.window__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.window__title { margin-left: 10px; color: var(--text-3); font-size: 13px; }
.window__body { position: relative; }
.panel { margin: 0; }
.panel:focus-visible { outline-offset: -3px; }
.panel img { width: 100%; background: #07080c; }
.panel__zoom { display: block; cursor: zoom-in; }
.panel__zoom:focus-visible { outline-offset: -3px; }
@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tab { justify-content: center; border-radius: 13px; }
}
.panel figcaption, .panel__caption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px;
  border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px;
}
html.js .panel:not([hidden]) { animation: panel-in 420ms var(--glide); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Editor concept ──────────────────────────────────────────────── */
.editor { padding: clamp(14px, 2vw, 22px); display: grid; gap: 16px; background: radial-gradient(ellipse at 30% 0%, rgba(139, 92, 255, .08), transparent 60%); }
.editor__top { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.editor__player {
  position: relative; width: clamp(140px, 20vw, 210px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; overflow: clip;
  border: 1px solid var(--border-strong); background: #000;
}
.editor__frame { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.editor__safe { position: absolute; inset: 9% 13% 22% 6%; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 6px; pointer-events: none; }
.editor__play {
  position: absolute; left: 50%; bottom: 12px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(7, 8, 12, .6); backdrop-filter: blur(6px); cursor: pointer;
  display: grid; place-items: center; transition: transform 160ms var(--glide), background-color 200ms ease;
}
.editor__play:hover { background: rgba(7, 8, 12, .85); }
.editor__play:active { transform: scale(.94); }
.editor__play svg { width: 18px; height: 18px; fill: #fff; }
.editor__play .i-pause { display: none; }
.editor__play[aria-pressed="true"] .i-play { display: none; }
.editor__play[aria-pressed="true"] .i-pause { display: block; }
.editor__inspector { display: grid; gap: 12px; align-content: start; min-width: 0; }
.editor__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.editor__clip { font-size: 22px; font-weight: 300; margin-top: -6px; }
.editor__fx { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.editor__fx legend { margin-bottom: 8px; color: var(--text-2); font-size: 14px; padding: 0; }
.editor__fx label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; user-select: none;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.editor__fx label:has(input:checked) { border-color: rgba(139, 92, 255, .7); background: rgba(139, 92, 255, .16); }
.editor__fx input { accent-color: var(--violet); width: 15px; height: 15px; margin: 0; }
.editor__fx label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.editor__inspector .btn { justify-self: start; }
.editor__note { min-height: 3.2em; color: var(--text-2); font-size: 14px; }

.timeline { position: relative; display: grid; gap: 6px; padding: 10px 0 4px; user-select: none; touch-action: pan-y; }
.timeline__ruler { position: relative; height: 16px; color: var(--text-3); font-family: var(--mono); font-size: 10.5px; }
.timeline__ruler span { position: absolute; top: 0; transform: translateX(-50%); }
.timeline__track { position: relative; border-radius: 8px; }
.timeline__track--video { height: 58px; }
.timeline__track--fx { height: 14px; }
.timeline__track--music { height: 44px; background: rgba(51, 214, 166, .05); border: 1px solid rgba(51, 214, 166, .14); overflow: hidden; overflow: clip; }
.timeline__wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.timeline__wave rect { fill: rgba(51, 214, 166, .45); }
.timeline__beats span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .12); }
.timeline__beats span.is-down { background: rgba(255, 255, 255, .3); }
.timeline__beats span.is-drop { width: 2px; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

.clip {
  position: absolute; top: 0; bottom: 0; padding: 0; overflow: hidden; overflow: clip; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background-color: #111;
  background-size: auto 100%; background-repeat: repeat-x;
  transition: border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7)); }
.clip__name { position: absolute; left: 8px; bottom: 5px; z-index: 1; font-family: var(--mono); font-size: 10.5px; color: #fff; }
.clip:hover { filter: brightness(1.15); }
.clip[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 0 24px rgba(139, 92, 255, .6); z-index: 1; }
.clip.is-swapped { animation: swap 600ms var(--glide); }
@keyframes swap { 0% { filter: brightness(2); } 100% { filter: none; } }
.clip--zoom { background-image: url("../media/zoom.webp"); }
.clip--slash { background-image: url("../media/slash.webp"); }
.clip--luma { background-image: url("../media/luma.webp"); }
.clip--light_leak { background-image: url("../media/light_leak.webp"); }
.clip--glitch { background-image: url("../media/glitch.webp"); }
.clip--dissolve { background-image: url("../media/dissolve.webp"); }
.clip--iris { background-image: url("../media/iris.webp"); }
.clip--flash { background-image: url("../media/flash.webp"); }

.cut {
  position: absolute; top: -4px; bottom: -4px; width: 22px; margin-left: -11px; z-index: 2;
  border: 0; background: transparent; cursor: ew-resize; padding: 0; touch-action: none;
}
.cut::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #fff; opacity: .0; transition: opacity 160ms ease; }
.cut::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 22px; margin: -11px 0 0 -5px; border-radius: 4px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); opacity: .0; transition: opacity 160ms ease; }
.timeline:hover .cut::after, .cut:focus-visible::after, .cut.is-dragging::after { opacity: .9; }
.cut:hover::before, .cut.is-dragging::before, .cut:focus-visible::before { opacity: .9; }
.cut:focus-visible { outline: none; }
.cut:focus-visible::after { box-shadow: 0 0 0 3px var(--focus); }

.fxdot { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); transition: opacity 200ms ease, transform 200ms ease; }
.fxdot.is-off { opacity: .25; transform: scale(.7); background: transparent; box-shadow: inset 0 0 0 1.5px var(--violet); }

.timeline__playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); pointer-events: none; z-index: 3; opacity: 0; transition: opacity 200ms ease; }
.timeline.is-playing .timeline__playhead { opacity: 1; }

@media (max-width: 640px) {
  .editor__top { grid-template-columns: 1fr; }
  .editor__player { width: 150px; justify-self: center; }
  .timeline__track--video { height: 48px; }
}

/* ── Steps ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.steps__list { position: relative; display: grid; gap: 6px; padding-left: 18px; }
.steps__progress { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--border); overflow: hidden; overflow: clip; }
.steps__progress span { position: absolute; left: 0; top: 0; width: 100%; height: 25%; background: var(--brand); transition: height 500ms var(--glide); }
.step-tab {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 12px 18px; text-align: left;
  border: 1px solid transparent; border-radius: var(--r-md); background: transparent; cursor: pointer; color: var(--text-2);
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease;
}
.step-tab:hover { background: var(--surface); color: var(--text); }
.step-tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.step-tab__num { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.step-tab[aria-selected="true"] .step-tab__num { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-tab__name { font-size: 17px; }

.steps__panels { border: 1px solid var(--border); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); padding: clamp(18px, 3vw, 32px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; min-height: 290px; }
html.js .step:not([hidden]) { animation: panel-in 480ms var(--glide); }
.step__text h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.step__text ul { margin-top: 18px; list-style: none; display: grid; gap: 10px; }
.step__text li { position: relative; padding-left: 22px; color: var(--text-2); }
.step__text li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--brand); }
.step__fine { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.steps__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.steps__count { color: var(--text-3); font-family: var(--mono); font-size: 12.5px; }

.step__visual { position: relative; display: grid; place-items: center; min-height: 240px; border-radius: var(--r-lg); background: rgba(0, 0, 0, .35); border: 1px solid var(--border); overflow: hidden; overflow: clip; padding: 20px; }
.drop { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; padding: 30px 18px 48px; border: 1.5px dashed rgba(139, 92, 255, .5); border-radius: 16px; }
.drop__chip { padding: 7px 12px; border-radius: 10px; font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); animation: chip-in 700ms var(--glide) both; }
.drop__chip:nth-child(2) { animation-delay: 120ms; }
.drop__chip:nth-child(3) { animation-delay: 240ms; }
.drop__chip--video { color: #b9cbff; }
.drop__chip--audio { color: #8ff0d1; }
.drop__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--text-3); font-size: 13px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.beatline { position: relative; width: 100%; height: 120px; }
.beatline__wave { position: absolute; inset: 30px 0; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(51, 214, 166, .55) 0 2px, transparent 2px 6px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent), linear-gradient(90deg, #000, #000);
  mask-image: radial-gradient(ellipse 100% 50% at 50% 50%, #000 40%, transparent 75%); opacity: .8; }
.beatline__cuts { position: absolute; inset: 0; display: flex; justify-content: space-around; }
.beatline__cuts span { width: 2px; background: #fff; border-radius: 2px; opacity: .85; animation: cut-in 600ms var(--glide) both; }
.beatline__cuts span:nth-child(2) { animation-delay: 90ms; }
.beatline__cuts span:nth-child(3) { animation-delay: 180ms; }
.beatline__cuts span:nth-child(4) { animation-delay: 270ms; }
.beatline__cuts span:nth-child(5) { animation-delay: 360ms; }
.beatline__cuts span:nth-child(6) { animation-delay: 450ms; }
.beatline__cuts span:nth-child(7) { animation-delay: 540ms; }
.beatline__cuts span.is-drop { width: 3px; background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }
@keyframes cut-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.beatline__legend { position: absolute; left: 20px; bottom: 14px; display: flex; gap: 16px; align-items: center; color: var(--text-3); font-size: 12.5px; }
.k { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.k--beat { background: rgba(51, 214, 166, .7); }
.k--cut { background: #fff; }
.k--drop { background: var(--magenta); }

.mini-tl { position: relative; display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.3fr; gap: 4px; width: 100%; height: 76px; }
.mini-tl__clip { border-radius: 8px; background: linear-gradient(135deg, #24345e, #1b1530); border: 1px solid var(--border-strong); }
.mini-tl__clip:nth-child(3) { background: linear-gradient(135deg, #3a1f3f, #1b1530); }
.mini-tl__clip:nth-child(4) { background: linear-gradient(135deg, #43301b, #1b1530); }
.mini-tl__clip.is-swapping { animation: mini-swap 3.2s var(--glide) infinite; }
@keyframes mini-swap { 0%, 40% { background: linear-gradient(135deg, #24345e, #1b1530); } 50%, 90% { background: linear-gradient(135deg, #5b2bd6, #c2307f); box-shadow: 0 0 22px rgba(139, 92, 255, .5); } 100% { background: linear-gradient(135deg, #24345e, #1b1530); } }
.mini-tl__cut { position: absolute; top: -8px; bottom: -8px; left: 55%; width: 3px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .7); animation: mini-cut 3.2s var(--glide) infinite; }
@keyframes mini-cut { 0%, 30% { transform: translateX(0); } 50%, 80% { transform: translateX(22px); } 100% { transform: translateX(0); } }
.mini-tl__label { position: absolute; left: 20px; right: 20px; bottom: 16px; text-align: center; color: var(--text-3); font-size: 13px; }

.formats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.formats li { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 20px; font-weight: 300; text-align: center; }
.formats small { color: var(--text-3); font-size: 12.5px; }
.formats__ratio { display: block; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 4px; }
.formats__ratio--portrait { width: 27px; height: 48px; }
.formats__ratio--landscape { width: 64px; height: 36px; margin: 6px 0; }
.formats__check { grid-column: 1 / -1; font-family: var(--mono); font-size: 12.5px !important; color: var(--live); border-color: rgba(51, 214, 166, .3) !important; background: rgba(51, 214, 166, .06) !important; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 12px; }
  .step-tab { min-height: 52px; padding: 10px 14px; gap: 10px; }
  .step-tab__name { font-size: 15.5px; line-height: 1.3; }
  .steps__progress { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 2px; }
  .steps__progress span { height: 100% !important; width: 25%; transition: width 500ms var(--glide); }
  .step { grid-template-columns: 1fr; min-height: 0; }
  .step__visual { min-height: 200px; }
}

/* ── Real example: how one edit was built ────────────────────────── */
.example { display: grid; gap: 18px; }
.ex-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ex-tab {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r-md); background: transparent; color: var(--text-2);
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease;
}
.ex-tab:hover { color: var(--text); background: var(--surface); }
.ex-tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.ex-tab__num {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--mono); font-size: 12px; border: 1px solid var(--border-strong);
}
.ex-tab[aria-selected="true"] .ex-tab__num { border-color: transparent; background: var(--btn); color: #fff; }
.ex-tab__name { font-size: 14.5px; line-height: 1.25; }

.ex-board {
  margin: 0; padding: clamp(16px, 2.6vw, 28px); display: grid; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.ex-lane {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; min-width: 0;
  opacity: .14; transform: translateY(4px); filter: saturate(0);
  transition: opacity 600ms var(--glide), transform 600ms var(--glide), filter 600ms ease;
}
.ex-lane.is-on { opacity: 1; transform: none; filter: none; }
.ex-lane__label { color: var(--text-2); font-size: 13.5px; }
.ex-lane__svg { width: 100%; height: 44px; overflow: visible; }
.ex-lane--music .ex-lane__svg { height: 60px; }
.ex-lane--edit .ex-lane__svg { height: 64px; }

.ex-src-bar { fill: rgba(255, 255, 255, .06); }
.ex-src-shot { opacity: .9; }
.ex-wave { fill: rgba(51, 214, 166, .55); }
.ex-beat, .ex-downbeat, .ex-cut { vector-effect: non-scaling-stroke; }
.ex-beat { stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.ex-downbeat { stroke: rgba(255, 255, 255, .75); stroke-width: 1.5; }
.ex-cut { stroke: #fff; stroke-width: 2; }
.ex-fx--flash { fill: #fff6d5; }
.ex-fx--blur { fill: #8fb8ff; }
.ex-fx--bw { fill: #9aa0b4; }
.ex-repeat { fill: rgba(255, 64, 160, .55); }
.ex-repeat--again { fill: none; stroke: rgba(255, 64, 160, .9); stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.ex-shot { transform-box: fill-box; transform-origin: center bottom; }
.ex-lane--edit.is-on .ex-shot { animation: ex-grow 700ms var(--glide) both; animation-delay: var(--d, 0ms); }
@keyframes ex-grow { from { transform: scaleY(.15); opacity: 0; } to { transform: none; opacity: 1; } }
.ex-changed { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 500ms ease; }
.ex-ramp { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .85; }
.ex-smooth { fill: var(--violet); opacity: 0; transition: opacity 500ms ease; }
.example[data-step="5"] .ex-changed, .example[data-step="6"] .ex-changed { opacity: 1; }
.example[data-step="5"] .ex-smooth, .example[data-step="6"] .ex-smooth { opacity: .8; }
.example[data-step="5"] .ex-changed { animation: ex-pulse 1.6s ease-in-out 2; }
@keyframes ex-pulse { 50% { opacity: .35; } }

.ex-ruler { position: relative; height: 16px; margin-left: 164px; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.ex-ruler span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ex-ruler span:first-child { transform: none; }

.ex-exports {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0 164px;
  opacity: 0; transform: translateY(6px); transition: opacity 600ms var(--glide), transform 600ms var(--glide);
}
.ex-exports.is-on { opacity: 1; transform: none; }
.ex-out {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); min-width: 0;
}
.ex-out__frame { grid-row: 1 / 4; width: 30px; max-width: 100%; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 3px; background: linear-gradient(160deg, rgba(61, 123, 255, .35), rgba(255, 64, 160, .25)); }
.ex-out strong { font-weight: 500; font-size: 14.5px; }
.ex-out__spec { color: var(--text-2); font-family: var(--mono); font-size: 11.5px; }
.ex-out__ok { color: var(--live); font-size: 12px; }

.ex-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0 164px; color: var(--text-3); font-size: 12.5px; }
.ex-legend__item { display: inline-flex; align-items: center; gap: 7px; opacity: .3; transition: opacity 500ms ease; }
.ex-legend__item.is-on { opacity: 1; }
.ex-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.ex-key--beat { width: 2px; background: rgba(255, 255, 255, .75); }
.ex-key--cut { width: 2px; background: #fff; }
.ex-key--fx { background: #8fb8ff; }
.ex-key--repeat { background: rgba(255, 64, 160, .45); }
.ex-key--shot { background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.ex-key--changed { border: 1.5px solid #fff; }
.ex-board__caption { margin-top: 6px; color: var(--text-3); font-size: 13px; }

.ex-panels {
  display: grid; gap: 8px; padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
}
.ex-panel h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 400; }
.ex-panel p { margin-top: 8px; color: var(--text-2); max-width: 760px; }
html.js .ex-panel:not([hidden]) { animation: panel-in 420ms var(--glide); }

@media (max-width: 960px) {
  .ex-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ex-tabs { grid-template-columns: repeat(2, 1fr); }
  .ex-tab { min-height: 46px; padding: 8px 10px; }
  .ex-lane { grid-template-columns: 1fr; gap: 4px; }
  .ex-ruler, .ex-exports, .ex-legend { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-lane, .ex-exports { transition: none; }
  .ex-lane--edit.is-on .ex-shot, .example[data-step="5"] .ex-changed { animation: none; }
}

/* ── Features ────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 14.5px;
  transition: color var(--t-hover) ease, background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter[aria-pressed="true"] { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }

.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.feature { padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; }
.feature h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.feature p { color: var(--text-2); font-size: 15px; }
.feature .status { justify-self: start; }
.feature.is-hidden { display: none; }
html.js .feature.is-entering, html.js .sample.is-entering { animation: panel-in 420ms var(--glide) both; }

/* ── Samples ─────────────────────────────────────────────────────── */
.samples { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sample { position: relative; }
.sample__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; overflow: clip; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 14px; background: #0c0d12;
  transition: transform 320ms var(--glide), border-color 220ms ease, box-shadow 320ms ease;
}
.sample__btn img, .sample__btn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sample__btn video { opacity: 0; transition: opacity 250ms ease; }
.sample.is-playing video { opacity: 1; }
.sample__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75)); pointer-events: none; }
@media (hover: hover) { .sample__btn:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .35); box-shadow: 0 20px 40px -18px rgba(139, 92, 255, .6); } }
.sample__icon {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(7, 8, 12, .55); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px);
  transition: opacity 250ms ease, transform 250ms var(--glide);
}
.sample__icon svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.sample.is-playing .sample__icon { opacity: 0; transform: scale(.8); }
.sample__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sample__meta { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; text-align: left; }
.sample__name { display: block; font-size: 15px; font-weight: 500; color: #fff; }
.sample__use { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.sample.is-loading .sample__icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: #fff; animation: spin 800ms linear infinite; }

.notice { margin-top: 28px; padding: 22px 24px; display: grid; gap: 10px; justify-items: start; }
.notice h3 { font-size: 19px; font-weight: 500; }
.notice p { color: var(--text-2); max-width: 760px; }

/* ── Roadmap + FAQ ───────────────────────────────────────────────── */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: none; }
.roadmap__col { padding: 24px; }
.roadmap__col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 400; margin-bottom: 16px; }
.roadmap__col ul { list-style: none; display: grid; gap: 12px; }
.roadmap__col li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.roadmap__col li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--text-3); }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } }

.faq { margin-top: clamp(48px, 7vw, 80px); max-width: 820px; }
.faq__title { font-size: 24px; font-weight: 300; margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 4px;
  cursor: pointer; list-style: none; font-size: 17px; border-radius: 8px;
  transition: color var(--t-hover) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform 300ms var(--glide); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 4px 20px; color: var(--text-2); max-width: 700px; }
html.js .faq details[open] p { animation: panel-in 380ms var(--glide); }

/* ── Download (not available yet) ────────────────────────────────── */
.platforms { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform { display: grid; justify-items: start; align-content: start; gap: 10px; padding: 24px; }
.platform__logo { width: 34px; height: 34px; fill: var(--text); opacity: .92; }
.platform__eye { fill: var(--solid); }
.platform:hover .platform__logo { filter: drop-shadow(0 0 12px rgba(139, 92, 255, .55)); }
.platform__name { margin-top: 6px; font-size: 21px; font-weight: 400; }
.platform__note { color: var(--text-2); font-size: 14.5px; min-height: 2.9em; }
.platform__btn { margin-top: 4px; }
.platform__btn:disabled { opacity: 1; cursor: not-allowed; color: var(--text-2); border-style: dashed; background: transparent; }
.platform__soon {
  padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dev); border: 1px solid rgba(245, 181, 74, .45); background: rgba(245, 181, 74, .08);
}
@media (max-width: 960px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .platform { padding: 18px; } .platform__btn { white-space: normal; } }

/* ── Follow ──────────────────────────────────────────────────────── */
.section--follow { padding-bottom: var(--section); }
.follow { overflow: hidden; overflow: clip; display: grid; justify-items: center; gap: 18px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center; }
.follow::after { content: ""; position: absolute; inset: 45% 0 0; background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(139, 92, 255, .22), transparent 70%); pointer-events: none; }
.follow__logo { width: 120px; height: 120px; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.follow h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 300; }
.follow__text { max-width: 560px; color: var(--text-2); font-size: 17px; }
.follow__social { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.follow__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.follow__toast { min-height: 1.6em; color: var(--live); font-size: 14px; }

/* ── 404 page ───────────────────────────────────────────────────── */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 14px; padding-block: 48px; text-align: center; }
.notfound__logo { width: 140px; height: 140px; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.notfound h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 300; }
.notfound p { color: var(--text-2); }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.page-404 .ambient__blob { opacity: .35; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--text-3); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer .brand { color: var(--text); }
.site-footer__fine { margin-left: auto; }
@media (max-width: 720px) { .site-footer__fine { margin-left: 0; } }

/* ── Reduced motion: no movement, content stays immediate and readable ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .ambient__blob, .logo-stage__logo, .logo-stage__halo, .text-gradient, .status-pill__dot, .scroll-cue span,
  .mini-tl__clip, .mini-tl__cut, [data-intro] { animation: none !important; }
  [data-reveal].is-pending { opacity: 1; transform: none; }
  .card:hover, .sample__btn:hover { transform: none; }
}
