/* ============================================================
   LUMIERE v2 — Landing page styles
   Premium · restrained · editorial · black/white · grid · whisper-blue
   ============================================================ */

:root {
  /* Accent (emphasis only — buttons stay black/white) */
  --accent: #3b6ff6;
  --accent-deep: #1e40c8;
  --accent-soft: rgba(59, 111, 246, 0.16);
  --mono-accent: #7fb3ff;

  /* DARK defaults */
  --bg: #0a0a0b;
  --bg-1: #111114;
  --bg-2: #16161a;
  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.86);
  --mute: #9a9aa3;
  --mute-2: #5c5c66;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.14);
  --card-bg: rgba(255, 255, 255, 0.03);

  /* Button fills */
  --btn-fill: #ffffff;
  --btn-ink: #000000;

  --font-sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Fraunces', Georgia, serif;
}

[data-theme='light'],
[data-theme='gradient'] {
  --bg: #ffffff;
  --bg-1: #fafafa;
  --bg-2: #f4f4f4;
  --ink: #0a0a0a;
  --ink-2: rgba(10, 10, 10, 0.86);
  --mute: rgba(0, 0, 0, 0.5);
  --mute-2: rgba(0, 0, 0, 0.34);
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(0, 0, 0, 0.025);

  --btn-fill: #000000;
  --btn-ink: #ffffff;
}

[data-theme='gradient'] {
  --bg-2: rgba(255, 255, 255, 0.55);
  --card-bg: rgba(255, 255, 255, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.serif {
  font-family: var(--font-serif);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
svg {
  display: block;
}

/* ============================================================
   BACKGROUND LAYERS — z-stack:
     0  base bg color
     1  gradient (light+gradient only) — soft blobs
     2  grid overlay (ALWAYS visible)
     3  vignette (subtle radial darkening at edges)
     10 content
   ============================================================ */

.bg-dark,
.bg-light,
.bg-grad {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
[data-theme='dark'] .bg-dark {
  opacity: 1;
}
[data-theme='light'] .bg-light {
  opacity: 1;
}
[data-theme='gradient'] .bg-grad {
  opacity: 1;
}

/* DARK hero atmosphere: rich black with a subtle lighter halo high-center.
   STATIC gradient (no animation) — transformed/animated gradients murder scroll perf. */
.bg-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 255, 255, 0.045) 0%, transparent 55%),
    radial-gradient(circle at 50% 95%, rgba(74, 126, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
}

/* LIGHT plain: clean white, no gradient — only grid does the work */
.bg-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
}

/* LIGHT + GRADIENT: Soft Blue Flow — layered radial gradients give
   the impression of flowing blue water with light/dark zones, no live blur. */
.bg-grad {
  background:
    /* Bright white highlight upper-left */
    radial-gradient(circle 420px at 12% 18%, rgba(255, 255, 255, 0.95) 0%, transparent 65%),
    /* Secondary lighter zone center-left */
    radial-gradient(circle 320px at 22% 55%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    /* Deep blue radiating from right */
    radial-gradient(
        ellipse 80% 70% at 110% 30%,
        rgba(40, 110, 255, 0.85) 0%,
        rgba(40, 110, 255, 0.4) 30%,
        transparent 65%
      ),
    /* Wave band 1: diagonal mid-blue sweep */
    radial-gradient(ellipse 100% 35% at 60% 45%, rgba(80, 140, 255, 0.55) 0%, transparent 60%),
    /* Wave band 2: lower-right deep */
    radial-gradient(ellipse 75% 60% at 85% 95%, rgba(20, 70, 200, 0.75) 0%, transparent 65%),
    /* Wave band 3: middle bright streak */
    radial-gradient(ellipse 60% 25% at 70% 70%, rgba(140, 180, 255, 0.55) 0%, transparent 65%),
    /* Bottom-left subtle bright */
    radial-gradient(circle 350px at 18% 95%, rgba(180, 210, 255, 0.6) 0%, transparent 65%),
    /* Base wash */ linear-gradient(135deg, #f0f5ff 0%, #c8dcff 40%, #6ba0ff 75%, #2870ff 100%);
  background-attachment: fixed;
}
.bg-grad .blob {
  display: none;
}

/* GRID OVERLAY — visible on ALL themes. No mask-image (forces compositing every frame);
   use a CSS gradient backdrop fade instead. */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  /* Soft fade at edges using opacity layers instead of mask (mask = full-frame compositing) */
}
.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}
[data-theme='dark'] .grid-overlay {
  color: rgba(255, 255, 255, 0.045);
}
[data-theme='light'] .grid-overlay {
  color: rgba(0, 0, 0, 0.05);
}
[data-theme='gradient'] .grid-overlay {
  color: rgba(0, 0, 0, 0.055);
}

/* ============================================================
   NAV — liquid glass: layered gradients + inset highlights + sheen
   ============================================================ */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 16px;
  border-radius: 100px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.nav.glass {
  position: fixed;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0.04) 70%,
      rgba(255, 255, 255, 0.08)
    ),
    rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px -20px rgba(0, 0, 0, 0.55),
    0 8px 20px -10px rgba(0, 0, 0, 0.35);
}
.nav.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0.75;
  mix-blend-mode: screen;
}
[data-theme='light'] .nav.glass,
[data-theme='gradient'] .nav.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45)),
    rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 20px 40px -20px rgba(0, 0, 0, 0.18),
    0 8px 20px -10px rgba(0, 0, 0, 0.1);
}
[data-theme='light'] .nav.glass::before,
[data-theme='gradient'] .nav.glass::before {
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.5), transparent 60%);
  mix-blend-mode: overlay;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  padding-right: 6px;
  position: relative;
  z-index: 1;
}
.brand-img {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
}
[data-theme='light'] .brand-img,
[data-theme='gradient'] .brand-img {
  filter: invert(1) drop-shadow(0 0 6px rgba(0, 0, 0, 0.15));
}
.brand-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2px;
  padding: 0 4px;
  position: relative;
  z-index: 1;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--mute);
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--card-bg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

/* Theme switcher — floats independently at top-right */
.theme-switch {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 101;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 100px;
}
.theme-switch.glass {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0.04) 70%,
      rgba(255, 255, 255, 0.08)
    ),
    rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
[data-theme='light'] .theme-switch.glass,
[data-theme='gradient'] .theme-switch.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45)),
    rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px -10px rgba(0, 0, 0, 0.18);
}
.theme-switch button {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: all 0.2s;
}
.theme-switch button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
[data-theme='light'] .theme-switch button:hover,
[data-theme='gradient'] .theme-switch button:hover {
  background: rgba(0, 0, 0, 0.05);
}
.theme-switch button.active {
  background: var(--btn-fill);
  color: var(--btn-ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.cta span {
  transition: transform 0.25s;
}
.cta:hover span {
  transform: translateX(3px);
}

/* ============================================================
   HERO — copy + embedded mock UI demo
   ============================================================ */

.hero {
  position: relative;
  z-index: 10;
  padding: 130px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 980px;
}

/* EARLY ACCESS badge — liquid glass pill, no fill */
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  margin-bottom: 38px;
  border-radius: 100px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.12em;
  overflow: hidden;
}
.eyebrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}
[data-theme='light'] .eyebrow,
[data-theme='gradient'] .eyebrow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
[data-theme='light'] .eyebrow::before,
[data-theme='gradient'] .eyebrow::before {
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.6), transparent 60%);
  mix-blend-mode: overlay;
}
.eyebrow .chip {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-weight: 500;
}
.eyebrow .dot-sep {
  position: relative;
  z-index: 1;
  color: var(--mute-2);
}
.eyebrow > .mono {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(54px, 9.5vw, 132px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.05em;
  margin-bottom: 30px;
  max-width: 14ch;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.03em 0;
}
.hero-title .one {
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-title .two {
  animation: rise 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.75em; /* Script is an accent answer, not equal weight */
  line-height: 1;
  vertical-align: baseline;
  background: linear-gradient(90deg, var(--ink), var(--mute));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(59, 111, 246, 0.08);
  filter: drop-shadow(0 0 24px rgba(59, 111, 246, 0.18));
}
@keyframes rise {
  from {
    transform: translateY(105%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-sub {
  max-width: 56ch;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 26px;
  animation: fade 1s 0.35s both;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-sub .sub-line {
  display: block;
}
.hero-sub .sub-line.dim {
  color: var(--mute-2);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Email form — liquid glass pill */
.hero-form {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 100px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 40px -14px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
  width: min(520px, 92vw);
  animation: fade 1s 0.5s both;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.hero-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}
[data-theme='light'] .hero-form,
[data-theme='gradient'] .hero-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6)),
    rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 40px -14px rgba(0, 0, 0, 0.15);
}
[data-theme='light'] .hero-form::before,
[data-theme='gradient'] .hero-form::before {
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.5), transparent 60%);
  mix-blend-mode: overlay;
}
.hero-form:focus-within {
  border-color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 3px var(--card-bg),
    0 14px 40px -14px rgba(0, 0, 0, 0.5);
}
.hero-form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--card-bg);
}
.hero-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hero-form input::placeholder {
  color: var(--mute);
}
.hero-submit {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  white-space: nowrap;
}
.hero-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.hero-submit .arr {
  font-size: 13px;
  letter-spacing: 0;
  transition: transform 0.2s;
}
.hero-submit:hover .arr {
  transform: translateX(2px);
}

.hero-proof {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.14em;
  margin-bottom: 28px;
  animation: fade 1s 0.65s both;
}
.hero-proof .dot {
  opacity: 0.5;
}

.hero-watch {
  position: relative;
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.16em;
  padding: 8px 14px;
  border-radius: 100px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  animation: fade 1s 0.8s both;
  margin-bottom: 56px;
}
[data-theme='light'] .hero-watch,
[data-theme='gradient'] .hero-watch {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hero-watch:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

/* ============================================================
   BROWSER FRAME — embedded in hero (Guideflow-style)
   ============================================================ */

.browser-frame {
  position: relative;
  width: min(1240px, 96vw);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  animation: rise-frame 1.2s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  /* Isolate paints — prevents the editor's animations from invalidating page layers */
  contain: layout paint style;
  will-change: transform;
}
@keyframes rise-frame {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
[data-theme='dark'] .browser-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px -10px rgba(74, 126, 255, 0.12),
    0 50px 100px -30px rgba(0, 0, 0, 0.9);
}
[data-theme='light'] .browser-frame,
[data-theme='gradient'] .browser-frame {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 40px 80px -20px rgba(0, 0, 0, 0.18);
}

.browser-chrome {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.dots {
  display: flex;
  gap: 7px;
}
.dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.dots span:hover {
  background: rgba(255, 255, 255, 0.3);
}
.addr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.chrome-controls {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.chrome-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
}
.chrome-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Demo hint (below the frame) */
.demo-hint {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-size: 9.5px;
  color: var(--mute-2);
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 0;
  animation: fade-hint 1s 1.4s both;
}
@keyframes fade-hint {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   EDITOR MOCK (always dark, regardless of theme)
   ============================================================ */

.editor-mock {
  position: relative;
  background: #030303;
  color: rgba(255, 255, 255, 0.86);
  height: 620px;
  display: grid;
  grid-template-rows: 40px 1fr;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  font-size: 13px;
  /* Pausable animations */
  contain: layout paint style;
}
.editor-mock.paused *,
.editor-mock.paused *::before,
.editor-mock.paused *::after {
  animation-play-state: paused !important;
}

/* TOP BAR */
.em-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #111, #070707);
}
.em-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.em-top-center {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.em-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.em-logo {
  width: 18px;
  height: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.em-pause {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: #fff;
}
.em-project {
  padding: 4px 14px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 500;
}
.em-saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #00d485;
  font-size: 10px;
  font-weight: 600;
}
.em-agent-btn {
  padding: 4px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
.em-export {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 7px;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 600;
}

/* WORKSPACE */
.em-work {
  display: grid;
  grid-template-columns: 40px 220px 1fr 310px;
  min-height: 0;
  overflow: hidden;
}

/* LEFT RAIL */
.em-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  gap: 3px;
  background: linear-gradient(180deg, #050505, #020202);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.em-rail-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.em-rail-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.em-rail-btn svg {
  width: 14px;
  height: 14px;
}
.em-rail-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

/* MEDIA */
.em-media {
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.em-media-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 12px 11px 6px;
}
.em-media-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.em-import {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 600;
}
.em-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 11px 10px;
  padding: 2px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  gap: 2px;
}
.em-tabs button {
  padding: 5px 0;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
  transition: all 0.15s;
}
.em-tabs button:hover {
  color: rgba(255, 255, 255, 0.8);
}
.em-tabs button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.em-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 11px 9px;
  padding: 0 9px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
}
.em-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  min-width: 0;
}
.em-search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.em-assets {
  padding: 0 11px 11px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.em-asset {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.em-asset:hover {
  opacity: 0.9;
}
.em-asset.active .em-thumb {
  outline: 1.5px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}
.em-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  position: relative;
}
.em-thumb-portrait {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a2a2a 0 45%, #0a0a0a 45%);
}
.em-tp-shirt {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 56%;
  border-radius: 48% 48% 0 0 / 18% 18% 0 0;
  background: linear-gradient(180deg, #0e7185, #074050);
}
.em-tp-head {
  position: absolute;
  width: 34%;
  height: 32%;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 45% 30%, #d5b7a6, #a87964 70%);
  z-index: 2;
}
.em-tp-beard {
  position: absolute;
  width: 27%;
  height: 25%;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #514642, #282424 70%, #151515);
  clip-path: polygon(22% 0, 78% 0, 95% 38%, 72% 100%, 29% 100%, 4% 38%);
  z-index: 4;
}
.em-tp-glass {
  position: absolute;
  left: 36%;
  right: 36%;
  top: 24%;
  height: 2px;
  background: rgba(220, 230, 235, 0.4);
  z-index: 5;
}
.em-thumb-broll {
  background:
    linear-gradient(180deg, #18243a 0 40%, #0a1421 60%),
    linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.06) 30% 32%, transparent 32%);
  background-size:
    100% 100%,
    18px 100%;
  background-repeat: no-repeat, repeat-x;
  position: relative;
}
.em-thumb-broll::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 30%;
  top: 45%;
  height: 4px;
  background: rgba(255, 200, 80, 0.6);
  border-radius: 1px;
}
.em-asset-name {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.em-asset-meta {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

/* EDITOR (preview + timeline) */
.em-editor {
  display: grid;
  grid-template-rows: 54% 1fr;
  min-width: 0;
  min-height: 0;
}
.em-preview {
  position: relative;
  background: radial-gradient(circle at 48% 80%, rgba(8, 30, 48, 0.15), transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.em-stage {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 100%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.em-stage picture {
  display: contents;
}
.em-stage-photo {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  display: block;
}

.em-thumb-photo {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  background-image: url('podcast-frame.jpg');
  background-image: image-set(
    url('podcast-frame.webp') type('image/webp'),
    url('podcast-frame.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 20%;
}

/* Caption overlay */
.em-caption-overlay {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 8;
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  letter-spacing: -0.005em;
  max-width: 70%;
  text-align: center;
  pointer-events: none;
}
.em-caption-overlay.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hook marker */
.em-hook-marker {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: #a6c1ff;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-family: var(--font-mono);
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.em-hook-marker.show {
  opacity: 1;
  transform: translateY(0);
  animation: hook-pulse 2s ease-out infinite;
}
@keyframes hook-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 126, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(74, 126, 255, 0);
  }
}

.em-res {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  z-index: 9;
}

/* Player bar */
.em-player {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  height: 30px;
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  z-index: 7;
}
.em-pbtn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.15s;
}
.em-pbtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.em-play {
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}
.em-play:hover {
  transform: scale(1.05);
}
.em-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  padding: 0 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* TIMELINE */
.em-timeline {
  display: grid;
  grid-template-rows: 28px 20px 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  overflow: hidden;
}
.em-tlbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.em-tlbtn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.15s;
}
.em-tlbtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.em-tlbtn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.em-tlsep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 2px;
}
.em-ruler {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.em-ruler-spacer {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.em-marks-wrap {
  position: relative;
}
.em-marks {
  display: flex;
  height: 100%;
}
.em-marks .em-mark {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.3);
  padding: 3px 0 0 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.em-scrub-zone {
  position: absolute;
  inset: 0;
  cursor: ew-resize;
  z-index: 4;
}

.em-tracks {
  position: relative;
  padding: 5px 0;
  overflow: hidden;
}
.em-track {
  display: grid;
  grid-template-columns: 64px 1fr;
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.em-track:last-child {
  border-bottom: 0;
}
.em-tlabel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.em-tlabel .mono {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.08em;
}
.em-lane {
  position: relative;
  padding: 4px 6px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.em-clip {
  position: relative;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex: 1 1 50%;
  min-width: 30px;
  transition:
    flex-basis 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95),
    outline-color 0.2s;
  cursor: pointer;
  outline: 1.5px solid transparent;
  outline-offset: 1px;
}
.em-clip:hover {
  outline-color: rgba(255, 255, 255, 0.3);
}
.em-clip.selected {
  outline-color: #fff;
}
.em-clip-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2c4d68, #1a3146);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px);
}
.em-clip-name {
  position: relative;
  z-index: 2;
  padding: 2px 7px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: inline-block;
}
.em-clip-gap {
  height: 22px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.04) 0 3px,
    transparent 3px 6px
  );
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  transition:
    flex-basis 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95),
    opacity 0.6s,
    margin 0.6s;
  flex: 0 0 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.em-clip-gap::before {
  content: 'SILENCE';
}
.em-clip-gap.closed {
  flex-basis: 0;
  opacity: 0;
  margin: 0 -1px;
}

.em-wave {
  position: absolute;
  inset: 4px 6px;
  width: calc(100% - 12px);
  height: calc(100% - 8px);
}

/* Caption track */
.em-track-c .em-lane {
  padding: 4px 6px;
  gap: 2px;
  flex-wrap: nowrap;
}
.em-caption-blk {
  height: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  flex: 0 0 calc(100% / 12 - 3px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
}
.em-caption-blk.in {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   TIMELINE LANES — absolute-positioned, draggable clips
   ============================================================ */

.em-track-t .em-lane,
.em-track-v .em-lane {
  position: relative;
  padding: 4px 6px;
  overflow: hidden;
  cursor: default;
}

/* T1 transitions — small CLIPS centered on B-roll boundaries.
   Width tunable; midpoint of clip aligns with the adjacent B-roll edge. */
.em-trans {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(220, 220, 220, 0.7)),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0 3px, transparent 3px 6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 2;
}
.em-trans.in {
  opacity: 1;
  transform: scaleY(1);
}
.em-trans::after {
  content: 'T';
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0;
}

/* Generic positioned clip (V1, V2) */
.em-pclip {
  position: absolute;
  top: 4px;
  bottom: 4px;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  cursor: grab;
  outline: 1.5px solid transparent;
  outline-offset: 1px;
  transition:
    outline-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
  user-select: none;
  touch-action: none;
}
.em-pclip:hover {
  outline-color: rgba(255, 255, 255, 0.3);
}
.em-pclip.selected {
  outline-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}
.em-pclip.dragging {
  cursor: grabbing;
  z-index: 10;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  outline-color: #fff;
  transition: none;
}
.em-pclip.entering {
  animation: clip-enter 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes clip-enter {
  from {
    transform: translateY(-22px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.em-pclip-fill {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px);
}
/* Variant fills */
.em-pclip[data-fill='interview'] .em-pclip-fill {
  background-color: #2c4d68;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 16px);
}
.em-pclip[data-fill='broll-a'] .em-pclip-fill {
  background-color: #6b3a78;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
}
.em-pclip[data-fill='broll-b'] .em-pclip-fill {
  background-color: #2c6b58;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
}
.em-pclip[data-fill='broll-c'] .em-pclip-fill {
  background-color: #b06a2e;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
}
.em-pclip[data-fill='broll-d'] .em-pclip-fill {
  background-color: #345b8a;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
}
.em-pclip-name {
  position: relative;
  z-index: 2;
  padding: 3px 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  display: inline-block;
  pointer-events: none;
}

/* Playhead — draggable */
.em-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 64px;
  width: 1px;
  background: #fff;
  z-index: 5;
  pointer-events: none;
}
.em-playhead::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
}

/* AGENT PANEL */
.em-agent {
  display: grid;
  grid-template-rows: 36px 1fr auto;
  background: linear-gradient(180deg, #0e0e10 0%, #060606 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.em-agent-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.em-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  transition: all 0.15s;
}
.em-agent-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.em-agent-history {
  margin-left: auto;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
}

.em-agent-body {
  position: relative;
  overflow: hidden;
  padding: 14px 12px;
}

/* Welcome state */
.em-welcome {
  opacity: 1;
  transition: opacity 0.35s;
}
.em-welcome.hide {
  opacity: 0;
  pointer-events: none;
}
.em-welcome-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
  line-height: 1.4;
}
.em-prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.em-prompt-grid button {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.005em;
  transition: all 0.2s;
  cursor: pointer;
}
.em-prompt-grid button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* Conversation */
.em-convo {
  position: absolute;
  inset: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
  overflow-y: auto;
}
.em-convo.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.em-user-msg {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.45;
}
.em-thinking {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  align-self: flex-start;
}
.em-thinking.show {
  display: inline-flex;
}
.em-think-dots {
  display: flex;
  gap: 3px;
}
.em-think-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: bounce 1.2s ease-in-out infinite;
}
.em-think-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.em-think-dots span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.em-think-label {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.16em;
}

.em-tool-list {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.em-tool-list.show {
  display: flex;
}
.em-tool-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.em-tool-row.show {
  opacity: 1;
  transform: translateX(0);
}
.em-tool-row.running {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.em-tool-row.done {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.em-tool-row.done b {
  color: #fff;
  font-weight: 500;
}
.em-tool-ico {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}
.em-tool-row.running .em-tool-ico {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.8);
  animation: spin 1s linear infinite;
}
.em-tool-row.done .em-tool-ico {
  border: 0;
  background: #00d485;
  position: relative;
  animation: none;
}
.em-tool-row.done .em-tool-ico::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'><polyline points='3 8 7 12 13 4'/></svg>")
    center/8px no-repeat;
}
.em-tool-status {
  color: rgba(255, 255, 255, 0.34);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.em-tool-row.running .em-tool-status {
  color: rgba(255, 255, 255, 0.72);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.em-agent-reply {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  padding: 2px 0;
  letter-spacing: -0.005em;
}
.em-agent-reply b {
  color: #fff;
  font-weight: 500;
}
.em-agent-reply:not(:empty):not(.done)::after {
  content: '|';
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.5);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.em-followup {
  display: none;
  margin-top: 6px;
}
.em-followup.show {
  display: flex;
}
.em-followup button {
  padding: 7px 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.em-followup button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   THINKING FLOW — matches real editor reference
   - Shimmer/sweep on "Thinking" label
   - Spinner before label, elapsed time on the right
   - Continuously streaming thought text inside
   - Collapses to "Thinking flow" header when done
   ============================================================ */

.em-think {
  display: none;
  flex-direction: column;
  padding: 6px 2px 6px;
  margin: 2px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
}
.em-think.show {
  display: flex;
}
.em-think-head {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.em-think-chev {
  width: 11px;
  height: 11px;
  opacity: 0.55;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.em-think.expanded .em-think-chev {
  transform: rotate(90deg);
}
.em-think-spinner {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: th-spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes th-spin {
  to {
    transform: rotate(360deg);
  }
}
.em-think.done .em-think-spinner {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.35);
  animation: none;
  background: transparent;
  opacity: 0.4;
}
.em-think-label {
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: th-shimmer 2.4s linear infinite;
}
@keyframes th-shimmer {
  from {
    background-position: 220% center;
  }
  to {
    background-position: -220% center;
  }
}
.em-think.done .em-think-label {
  animation: none;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.55);
}
.em-think-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.em-think-body {
  padding: 6px 0 4px 18px;
  margin: 4px 0 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  max-height: 110px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 22%,
    black 78%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    opacity 0.35s ease;
}
.em-think.done .em-think-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  opacity: 0;
  border-left-color: transparent;
}
.em-thought {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
}
.em-think:not(.done) .em-thought::after {
  content: '|';
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* Legacy .em-thinking (dots) — no longer used, but keep for safety in case markup lingers */
.em-thinking {
  display: none !important;
}

.em-agent-input {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 11px 9px;
  background: rgba(255, 255, 255, 0.015);
}
.em-input-shell {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 9px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.em-input-shell:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.em-input-shell textarea {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.45;
  resize: none;
  padding: 0;
  letter-spacing: -0.005em;
}
.em-input-shell textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.em-input-shell textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.em-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 7px;
}
.em-model {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.04em;
}
.em-shortcut {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.08em;
}
.em-send {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  cursor: pointer;
}
.em-send.active {
  background: #fff;
  color: #000;
}
.em-send.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
.em-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Welcome state — quick tips */
.em-welcome-text kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fff;
  vertical-align: middle;
}
.em-quick-tips {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}
.em-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}
.em-tip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Phase indicator */
.em-phase {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 30;
  opacity: 0.75;
}
.em-phase-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  animation: phase-pulse 1.8s ease-in-out infinite;
}
@keyframes phase-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.em-phase-label {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.16em;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */

.features {
  position: relative;
  z-index: 10;
  padding: 100px 24px 60px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feat {
  padding: 34px 30px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  transition:
    transform 0.4s,
    border-color 0.25s;
}
[data-theme='gradient'] .feat {
  background: rgba(255, 255, 255, 0.7);
}
.feat:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.feat-num {
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.feat h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.feat p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   BLUR-REVEAL TEXT BLOCKS
   ============================================================ */

.reveal-block {
  position: relative;
  z-index: 10;
  padding: 120px 24px;
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}
.reveal-line {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  filter: blur(12px);
  opacity: 0.3;
  transition:
    filter 0.08s ease-out,
    opacity 0.08s ease-out;
}

/* ============================================================
   HOW SECTION
   ============================================================ */

.how-section {
  position: relative;
  z-index: 10;
  padding: 60px 24px 100px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}
.how-head {
  max-width: 1100px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-label {
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.how-head h2,
.cta-final h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.how-head h2 em,
.cta-final h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mute);
}

.how-list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.how-list li {
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}
[data-theme='gradient'] .how-list li {
  background: rgba(255, 255, 255, 0.65);
}
.how-num {
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  display: block;
}
.how-list h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.how-list p {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.55;
}

/* ============================================================
   PRICING — all black/white, no blue
   ============================================================ */

.pricing {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.price-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.price-card {
  padding: 34px 28px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
[data-theme='gradient'] .price-card {
  background: rgba(255, 255, 255, 0.65);
}
.price-card:hover {
  transform: translateY(-2px);
}
.price-card.feat {
  border-color: var(--line-strong);
  background: var(--card-bg);
}
.pc-name {
  font-size: 9.5px;
  color: var(--mute);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.price-card.feat .pc-name {
  color: var(--ink);
}
.pc-num {
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.pc-num span {
  font-size: 13px;
  color: var(--mute);
  font-family: var(--font-mono);
}
.price-card p {
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.pc-btn:hover {
  background: var(--card-bg);
  border-color: var(--ink);
}
.pc-btn.primary {
  background: var(--btn-fill);
  color: var(--btn-ink);
  border-color: var(--btn-fill);
}
.pc-btn.primary:hover {
  opacity: 0.92;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta-final {
  position: relative;
  z-index: 10;
  padding: 120px 24px;
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta-final h2 {
  margin-bottom: 32px;
}
.cta-final .hero-form,
.cta-final .hero-proof {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  position: relative;
  z-index: 10;
  padding: 36px 24px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.14em;
}

/* ============================================================
   BOTTOM-REVEAL — fixed frost band at bottom of viewport.
   Content scrolls UP through the band; once above the gradient line
   it appears clear. The frost only engages within the bottom zone.
   ============================================================ */

.bottom-reveal {
  position: relative;
  z-index: 10;
}

/* Fixed frosted band at the bottom of the viewport. Tall enough to feel like
   a real reveal zone, masked vertically so it fades from opaque blur at the
   bottom to transparent near the top of the band. */
.bottom-frost {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40vh;
  pointer-events: none;
  z-index: 90;
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  mask-image: linear-gradient(to top, black 0%, black 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 35%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: opacity;
}
.bottom-frost.on {
  opacity: 1;
}

/* Sections in the bottom-reveal zone get a soft entrance only — the FROST
   handles the visual blur. No per-section filter (saves perf). */
[data-reveal-step] {
  --reveal: 0;
  opacity: calc(0.35 + var(--reveal) * 0.65);
  transform: translateY(calc((1 - var(--reveal)) * 28px));
  will-change: opacity, transform;
  transition:
    opacity 0.05s linear,
    transform 0.05s linear;
}

/* ============================================================
   NAV REFINEMENTS — theme back inside pill, divider
   ============================================================ */

.nav.glass {
  transition:
    background-color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    padding 0.25s;
}
.nav.scrolled.glass {
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  padding: 4px 4px 4px 14px;
}
[data-theme='light'] .nav.scrolled.glass,
[data-theme='gradient'] .nav.scrolled.glass {
  background: rgba(255, 255, 255, 0.85);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
}
[data-theme='light'] .nav-divider,
[data-theme='gradient'] .nav-divider {
  background: rgba(0, 0, 0, 0.08);
}

.nav-theme {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme='light'] .nav-theme,
[data-theme='gradient'] .nav-theme {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}
.nav-theme button {
  width: 24px;
  height: 24px;
  border-radius: 100px;
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: all 0.2s;
}
.nav-theme button:hover {
  color: var(--ink);
}
.nav-theme button.active {
  background: var(--btn-fill);
  color: var(--btn-ink);
}

/* CTA standardized — mixed case, no all-caps mono */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.hero-submit {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  padding: 10px 18px;
}
.hero-submit .arr {
  font-size: 14px;
}

/* ============================================================
   SOCIAL PROOF BAR — above email input
   ============================================================ */

.social-proof {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fade 1s 0.55s both;
}
[data-theme='light'] .social-proof,
[data-theme='gradient'] .social-proof {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
.sp-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sp-item:first-child .aws-badge {
  width: 32px;
  height: 18px;
  color: var(--mono-accent);
  flex-shrink: 0;
}
.sp-sep {
  color: var(--mute-2);
  opacity: 0.7;
}

/* ============================================================
   HERO WATCH PILL — pulse + dot
   ============================================================ */

.hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  border-radius: 100px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(127, 179, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(59, 111, 246, 0.08);
  transition: all 0.2s;
  animation:
    hw-pulse 3s ease-in-out infinite,
    fade 1s 0.8s both;
  margin-bottom: 56px;
}
@keyframes hw-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 24px rgba(59, 111, 246, 0.08);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 36px rgba(59, 111, 246, 0.18);
  }
}
[data-theme='light'] .hero-watch,
[data-theme='gradient'] .hero-watch {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.5);
  border-color: rgba(59, 111, 246, 0.3);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 24px rgba(59, 111, 246, 0.12);
}
.hero-watch:hover {
  color: var(--ink);
  transform: translateY(-1px) scale(1.02);
}
.hw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mono-accent);
  box-shadow: 0 0 8px var(--mono-accent);
  flex-shrink: 0;
}

/* ============================================================
   FEATURE CARDS — 3 cards with animated visuals
   ============================================================ */

.features {
  position: relative;
  z-index: 10;
  padding: 100px 24px 60px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}
.features-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feat {
  padding: 0;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  transition:
    transform 0.25s,
    border-color 0.25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feat:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 179, 255, 0.2);
}
.feat-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid var(--line);
}
.feat-num {
  font-size: 10px;
  color: var(--mono-accent);
  letter-spacing: 0.18em;
  margin: 26px 28px 14px;
}
.feat h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 28px 12px;
}
.feat p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 28px 28px;
}

/* Card 01: Agent chat — animated checkmark rows */
.fv-agent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.fv-chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: fv-chat-in 6s ease-in-out infinite;
}
.fv-row:nth-child(1) {
  animation-delay: 0.3s;
}
.fv-row:nth-child(2) {
  animation-delay: 1.5s;
}
.fv-row:nth-child(3) {
  animation-delay: 2.7s;
}
@keyframes fv-chat-in {
  0%,
  8% {
    opacity: 0;
    transform: translateX(-6px);
  }
  15%,
  70% {
    opacity: 1;
    transform: translateX(0);
  }
  85%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}
.fv-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d485;
  position: relative;
  flex-shrink: 0;
}
.fv-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'><polyline points='3 8 7 12 13 4'/></svg>")
    center/9px no-repeat;
}
.fv-text {
  font-size: 11.5px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}

/* Card 02: Librarian — file tree transformation */
.fv-lib {
  display: grid;
  place-items: center;
  padding: 18px 16px;
}
.fv-tree {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.fv-col-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--mute-2);
  margin-bottom: 8px;
}
.fv-file {
  font-size: 9.5px;
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--mute);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}
.fv-file.is-clean {
  color: var(--mono-accent);
  border-color: rgba(127, 179, 255, 0.2);
  background: rgba(127, 179, 255, 0.06);
}
.fv-arrow {
  display: grid;
  place-items: center;
  color: var(--mono-accent);
  animation: fv-arrow-pulse 2s ease-in-out infinite;
}
.fv-arrow svg {
  width: 16px;
  height: 16px;
}
@keyframes fv-arrow-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

/* Card 03: Browser-native drop zone */
.fv-browser {
  display: grid;
  place-items: center;
  padding: 20px;
}
.fv-browser-frame {
  width: 100%;
  border-radius: 8px;
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.fv-browser-chrome {
  height: 16px;
  background: #0c0c0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}
.fv-browser-chrome span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.fv-drop-zone {
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.fv-drop-zone::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(127, 179, 255, 0.3);
  border-radius: 6px;
  animation: fv-drop-pulse 4s ease-in-out infinite;
}
@keyframes fv-drop-pulse {
  0%,
  100% {
    border-color: rgba(127, 179, 255, 0.2);
  }
  50% {
    border-color: rgba(127, 179, 255, 0.5);
  }
}
.fv-drop-icon {
  color: var(--mono-accent);
  z-index: 1;
}
.fv-drop-icon svg {
  width: 18px;
  height: 18px;
}
.fv-drop-text {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--mute-2);
  z-index: 1;
}
.fv-mini-timeline {
  display: flex;
  gap: 2px;
  padding: 6px;
  background: #050507;
}
.fv-mini-clip {
  flex: 1;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2c4d68, #1a3146);
  opacity: 0;
  animation: fv-clip-in 4s ease-in-out infinite;
}
.fv-mini-clip:nth-child(1) {
  animation-delay: 1.5s;
}
.fv-mini-clip:nth-child(2) {
  animation-delay: 1.8s;
}
.fv-mini-clip:nth-child(3) {
  animation-delay: 2.1s;
}
@keyframes fv-clip-in {
  0%,
  35% {
    opacity: 0;
    transform: scaleX(0.6);
  }
  50%,
  90% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

/* ============================================================
   COMPARISON BLOCK — Traditional NLE vs Lumiere
   ============================================================ */

.compare-section {
  position: relative;
  z-index: 10;
  padding: 60px 24px 100px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.compare-head {
  max-width: 1100px;
  margin: 0 auto 32px;
  text-align: center;
}
.compare-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: stretch;
  gap: 0;
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}
.compare-col {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.compare-col-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute-2);
  margin-bottom: 16px;
}
.compare-new .compare-col-label {
  color: var(--mono-accent);
}
.compare-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
}
.compare-steps li {
  padding: 9px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--mute);
  letter-spacing: -0.005em;
  position: relative;
  transition:
    opacity 0.25s,
    color 0.25s;
}
.compare-old .compare-steps li {
  text-decoration: line-through;
  text-decoration-color: rgba(245, 245, 247, 0.3);
  opacity: 0.55;
}
.compare-new .compare-steps li {
  background: rgba(127, 179, 255, 0.06);
  border-color: rgba(127, 179, 255, 0.18);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.cs-check {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mono-accent);
  flex-shrink: 0;
  position: relative;
}
.cs-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230A0A0B' stroke-width='2.5' stroke-linecap='round'><polyline points='3 8 7 12 13 4'/></svg>")
    center/8px no-repeat;
}
.compare-time {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute-2);
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.compare-time-fast {
  color: var(--mono-accent);
}
.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.compare-divider::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-strong) 30%,
    var(--line-strong) 70%,
    transparent
  );
}
.compare-vs {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
  padding: 6px 10px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  z-index: 1;
  font-weight: 600;
}

/* ============================================================
   FOUR MOVES — horizontal connector line with arrowheads
   ============================================================ */

.how-list {
  position: relative;
  padding-top: 22px;
}
.how-connector {
  position: absolute;
  top: 60px; /* aligns with center of the number badge */
  left: 12.5%;
  right: 12.5%;
  height: 14px;
  pointer-events: none;
  z-index: 1;
}
.how-connector-track,
.how-connector-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  transform: translateY(-50%);
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}
.how-connector-track {
  right: 0;
}
.how-connector-fill {
  border-top-style: solid;
  border-top-color: var(--mono-accent);
  border-top-width: 1.5px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(127, 179, 255, 0.4);
}
.how-connector.in .how-connector-fill {
  width: 100%;
}
.how-arrow {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  color: var(--mono-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.how-connector.in .ha-1 {
  opacity: 1;
  transition-delay: 0.5s;
}
.how-connector.in .ha-2 {
  opacity: 1;
  transition-delay: 0.85s;
}
.how-connector.in .ha-3 {
  opacity: 1;
  transition-delay: 1.2s;
}
.ha-1 {
  left: 16.67%;
}
.ha-2 {
  left: 50%;
}
.ha-3 {
  left: 83.33%;
}

.how-list li {
  position: relative;
  z-index: 2;
}
.how-num {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--mono-accent);
  font-weight: 500;
  transition:
    box-shadow 0.6s,
    color 0.3s;
}
.how-list li.glow .how-num {
  color: var(--mono-accent);
  box-shadow: 0 0 24px rgba(127, 179, 255, 0.4);
}

/* ============================================================
   PRICING — FREE / PRO / MAX
   ============================================================ */

.pricing-copy {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.price-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 16px 0;
}
.price-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.pc-most-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--mono-accent);
  color: #0a0a0b;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(127, 179, 255, 0.3);
}
.price-card {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  transition:
    opacity 0.25s,
    transform 0.25s,
    border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 560px;
}
.price-card.feat {
  transform: scale(1.04);
  border: 1px solid rgba(127, 179, 255, 0.3);
  box-shadow: 0 0 60px rgba(59, 111, 246, 0.15);
  background: linear-gradient(180deg, rgba(59, 111, 246, 0.04), transparent 30%), var(--card-bg);
}
.price-grid:hover .price-card:not(.feat) {
  opacity: 0.92;
}
.pc-head {
  margin-bottom: 18px;
}
.pc-name {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 2px;
}
.pc-sub {
  font-size: 9.5px;
  color: var(--mute-2);
  letter-spacing: 0.14em;
}
.price-card.feat .pc-name {
  color: var(--mono-accent);
}
.pc-num {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
.pc-num span {
  font-size: 13px;
  color: var(--mute);
  font-family: var(--font-mono);
}
.price-card p {
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 62px;
}

.pc-credit {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.pc-credit-k {
  display: block;
  margin-bottom: 8px;
  color: var(--mute-2);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}
.pc-credit strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pc-meter {
  overflow: hidden;
  height: 5px;
  border-radius: 100px;
  margin: 14px 0 10px;
  background: rgba(255, 255, 255, 0.08);
}
.pc-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mono-accent);
}
.pc-credit small {
  display: block;
  color: var(--mute);
  font-size: 11.5px;
  line-height: 1.45;
}
.pc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.pc-list li {
  position: relative;
  padding-left: 16px;
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.45;
}
.pc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--mono-accent);
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px;
  margin-top: auto;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s;
  cursor: pointer;
}
.pc-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink);
}
.pc-btn.primary {
  background: var(--btn-fill);
  color: var(--btn-ink);
  border-color: var(--btn-fill);
}
.pc-btn.primary:hover {
  opacity: 0.92;
}

/* ============================================================
   FAQ — accordion
   ============================================================ */

.faq-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px 80px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.faq-head {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}
.faq-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.faq-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  color: var(--mute);
  background: linear-gradient(90deg, var(--ink), var(--mute));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--line-strong);
}
.faq-item[open] {
  border-color: rgba(127, 179, 255, 0.2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-q {
  flex: 1;
}
.faq-chev {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--mute);
  transition:
    transform 0.25s ease,
    color 0.2s;
  flex-shrink: 0;
}
.faq-chev svg {
  width: 16px;
  height: 16px;
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--mono-accent);
}
.faq-a {
  padding: 0 22px 20px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
  max-width: 68ch;
}

/* ============================================================
   FINAL CTA — add metric subline
   ============================================================ */

.cta-metric {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-transform: uppercase;
  margin: -20px auto 28px;
  max-width: 60ch;
  line-height: 1.6;
}
.cta-metric b {
  color: var(--mono-accent);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .em-work {
    grid-template-columns: 40px 1fr 280px;
  }
  .em-media {
    display: none;
  }
  .features-inner {
    grid-template-columns: 1fr 1fr;
  }
  .feat:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .features-inner {
    grid-template-columns: 1fr;
  }
  .feat:last-child {
    grid-column: auto;
    max-width: none;
  }
  .how-list {
    grid-template-columns: 1fr 1fr;
  }
  .how-connector {
    display: none;
  }
  .compare-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .compare-divider {
    display: none;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .price-card.feat {
    transform: scale(1);
    order: -1;
  }
  .editor-mock {
    height: 540px;
  }
  .em-work {
    grid-template-columns: 40px 1fr;
  }
  .em-agent {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero {
    padding-top: 110px;
  }
  .how-list {
    grid-template-columns: 1fr;
  }
  .editor-mock {
    height: 460px;
  }
  .foot-inner {
    flex-direction: column;
    gap: 8px;
  }
  .hero-title {
    font-size: 48px;
  }
  .social-proof {
    font-size: 9.5px;
    gap: 6px;
    padding: 7px 12px;
  }
  .sp-item:not(:first-child) {
    display: none;
  } /* Keep AWS badge only */
  .faq-head h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CREATIVE UTILITIES — capability bento with live micro-demos
   ============================================================ */

.utils {
  position: relative;
  z-index: 10;
  padding: 40px 24px 40px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}
.utils-head {
  max-width: 1240px;
  margin: 0 auto 40px;
  text-align: center;
}
.utils-head h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}
.utils-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mute);
}
.utils-copy {
  max-width: 60ch;
  margin: 18px auto 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
}

.utils-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.util {
  position: relative;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.util:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 179, 255, 0.28);
  box-shadow: 0 22px 56px -28px rgba(127, 179, 255, 0.5);
}
[data-theme='gradient'] .util {
  background: rgba(255, 255, 255, 0.7);
}

.util-cap {
  grid-column: span 4;
}
.util-silence {
  grid-column: span 2;
}
.util-broll {
  grid-column: span 2;
}
.util-motion {
  grid-column: span 2;
}
.util-color {
  grid-column: span 2;
}
.util-export {
  grid-column: span 6;
}

.util-visual {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid var(--line);
}
.util-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% -8%, rgba(127, 179, 255, 0.1), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.util-body {
  padding: 22px 24px 26px;
}
.util-k {
  font-size: 10px;
  color: var(--mono-accent);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.util-body h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.util-body p {
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---- CAPTIONS (karaoke) ---- */
.uv-cap {
  display: grid;
  place-items: center;
  padding: 24px;
}
.uv-cap-stage {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.uv-cap-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32em;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.uv-cap-line span {
  color: var(--mute-2);
  animation: uv-word 5s ease-in-out infinite;
}
.uv-cap-line span:nth-child(1) {
  animation-delay: 0.3s;
}
.uv-cap-line span:nth-child(2) {
  animation-delay: 0.68s;
}
.uv-cap-line span:nth-child(3) {
  animation-delay: 1.06s;
}
.uv-cap-line span:nth-child(4) {
  animation-delay: 1.44s;
}
.uv-cap-line span:nth-child(5) {
  animation-delay: 1.82s;
}
.uv-cap-line span:nth-child(6) {
  animation-delay: 2.2s;
}
@keyframes uv-word {
  0%,
  4% {
    color: var(--mute-2);
    transform: translateY(0) scale(1);
  }
  9% {
    color: #fff;
    transform: translateY(-1px) scale(1.09);
    text-shadow: 0 0 20px rgba(127, 179, 255, 0.55);
  }
  17%,
  80% {
    color: var(--ink-2);
    transform: translateY(0) scale(1);
    text-shadow: none;
  }
  92%,
  100% {
    color: var(--mute-2);
    text-shadow: none;
  }
}
.uv-cap-bar {
  margin: 18px auto 0;
  width: 60%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.uv-cap-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--mono-accent));
  animation: uv-cap-fill 5s ease-in-out infinite;
}
@keyframes uv-cap-fill {
  0%,
  4% {
    width: 0;
  }
  60% {
    width: 100%;
  }
  82% {
    width: 100%;
    opacity: 1;
  }
  92%,
  100% {
    width: 0;
    opacity: 0;
  }
}

/* ---- SILENCE (waveform + collapsing dead-air) ---- */
.uv-silence {
  display: grid;
  place-items: center;
  padding: 20px 18px;
}
.uv-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 64px;
  width: 100%;
}
.uv-wave i {
  flex: 0 0 3px;
  width: 3px;
  border-radius: 2px;
  background: rgba(127, 179, 255, 0.55);
  height: var(--h, 30%);
}
.uv-wave i.q {
  background: rgba(255, 255, 255, 0.14);
}
.uv-wave .uv-gap {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  animation: uv-gap-collapse 4.4s ease-in-out infinite;
}
@keyframes uv-gap-collapse {
  0%,
  34% {
    max-width: 90px;
    opacity: 1;
  }
  52%,
  82% {
    max-width: 0;
    opacity: 0;
  }
  96%,
  100% {
    max-width: 90px;
    opacity: 1;
  }
}
.uv-cut {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  border: 1px dashed rgba(255, 90, 90, 0.6);
  border-radius: 6px;
  background: rgba(255, 90, 90, 0.08);
  display: grid;
  place-items: center;
  animation: uv-cut-flash 4.4s ease-in-out infinite;
}
.uv-cut span {
  font-size: 9.5px;
  color: #ff8a8a;
  letter-spacing: 0.06em;
}
@keyframes uv-cut-flash {
  0%,
  30% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  46% {
    opacity: 1;
    transform: translateX(-50%) scale(0.96);
  }
  54%,
  92% {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* ---- B-ROLL (prompt -> matched cutaways) ---- */
.uv-broll {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}
.uv-broll-prompt {
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  letter-spacing: -0.01em;
}
.uv-cursor {
  color: var(--mono-accent);
  animation: uv-blink 1s steps(2) infinite;
}
@keyframes uv-blink {
  50% {
    opacity: 0;
  }
}
.uv-broll-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.uv-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  animation: uv-thumb-in 4.5s ease-in-out infinite;
}
.uv-thumb.t1 {
  background: linear-gradient(135deg, #25406e, #4a7bd0);
  animation-delay: 0.5s;
}
.uv-thumb.t2 {
  background: linear-gradient(135deg, #3a2c5e, #8a5ad0);
  animation-delay: 0.85s;
}
.uv-thumb.t3 {
  background: linear-gradient(135deg, #1f5648, #3fae8c);
  animation-delay: 1.2s;
}
@keyframes uv-thumb-in {
  0%,
  6% {
    opacity: 0;
    transform: translateY(8px);
  }
  16%,
  82% {
    opacity: 1;
    transform: translateY(0);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
.uv-thumb-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00d485;
  opacity: 0;
  transform: scale(0.4);
  animation: uv-check-in 4.5s ease-in-out infinite;
}
.uv-thumb.t1 .uv-thumb-check {
  animation-delay: 0.95s;
}
.uv-thumb.t2 .uv-thumb-check {
  animation-delay: 1.3s;
}
.uv-thumb.t3 .uv-thumb-check {
  animation-delay: 1.65s;
}
.uv-thumb-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'><polyline points='3 8 7 12 13 4'/></svg>")
    center/8px no-repeat;
}
@keyframes uv-check-in {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.4);
  }
  20%,
  82% {
    opacity: 1;
    transform: scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* ---- MOTION GRAPHICS (prompt -> animated lower-third) ---- */
.uv-motion {
  display: grid;
  place-items: center;
  padding: 22px;
}
.uv-mg-prompt {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1;
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  letter-spacing: -0.01em;
}
.uv-mg-card {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  min-width: 172px;
  padding: 11px 15px 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(127, 179, 255, 0.18), rgba(127, 179, 255, 0.04));
  border: 1px solid rgba(127, 179, 255, 0.3);
  box-shadow: 0 14px 34px -16px rgba(127, 179, 255, 0.6);
  opacity: 0;
  transform: translateY(14px);
  animation: uv-mg-in 4.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.uv-mg-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.uv-mg-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--mute);
}
.uv-mg-rule {
  display: block;
  margin-top: 9px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--mono-accent));
  animation: uv-mg-rule 4.6s ease-in-out infinite;
}
@keyframes uv-mg-in {
  0%,
  8% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  22%,
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  92%,
  100% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}
@keyframes uv-mg-rule {
  0%,
  20% {
    width: 0;
  }
  40%,
  80% {
    width: 100%;
  }
  92%,
  100% {
    width: 0;
  }
}

/* ---- COLOR (flat frame graded to cinematic) ---- */
.uv-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px;
}
.uv-color-frame {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 232px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.uv-color-graded,
.uv-color-flat {
  position: absolute;
  inset: 0;
}
.uv-color-graded {
  background:
    radial-gradient(120% 90% at 74% 18%, rgba(255, 168, 105, 0.5), transparent 56%),
    linear-gradient(135deg, #10384a, #2f7f8c);
}
.uv-color-flat {
  background: linear-gradient(135deg, #4c4c54, #6b6b73);
  filter: saturate(0.5) contrast(0.92);
  animation: uv-color-flat 5s ease-in-out infinite;
}
@keyframes uv-color-flat {
  0%,
  16% {
    opacity: 1;
  }
  44%,
  86% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.uv-color-wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: uv-color-wipe 5s ease-in-out infinite;
}
@keyframes uv-color-wipe {
  0%,
  16% {
    left: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  44% {
    left: 100%;
    opacity: 1;
  }
  46%,
  100% {
    left: 100%;
    opacity: 0;
  }
}
.uv-color-pills {
  display: flex;
  gap: 6px;
}
.uv-color-pills span {
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute-2);
}
.uv-color-pills span.on {
  color: var(--btn-ink);
  background: var(--mono-accent);
  border-color: var(--mono-accent);
}

/* ---- EXPORT (full-width banner) ---- */
.util-export {
  flex-direction: row;
  align-items: stretch;
  min-height: 240px;
}
.util-export-left {
  flex: 1.3;
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
}
.util-export-left h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.util-export-left p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
  max-width: 52ch;
}
.uv-export-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mono-accent);
}
.uv-export-spec .dot {
  color: var(--mute-2);
}
.uv-export-bar {
  position: relative;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.uv-export-bar > span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.uv-export-bar > span::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--mono-accent));
  animation: uv-export-fill 3.6s ease-in-out infinite;
}
@keyframes uv-export-fill {
  0% {
    width: 0;
  }
  70%,
  86% {
    width: 100%;
  }
  100% {
    width: 100%;
    opacity: 0.4;
  }
}
.uv-export-bar em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--mute);
  white-space: nowrap;
}
.util-export-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-left: 1px solid var(--line);
}
.uv-fmt {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(127, 179, 255, 0.05);
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  animation: uv-fmt-rise 3.6s ease-in-out infinite;
}
.uv-fmt span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--mono-accent);
}
.uv-fmt.f-9x16 {
  width: 52px;
  height: 92px;
  animation-delay: 0s;
}
.uv-fmt.f-1x1 {
  width: 78px;
  height: 78px;
  animation-delay: 0.18s;
}
.uv-fmt.f-16x9 {
  width: 104px;
  height: 60px;
  animation-delay: 0.36s;
}
@keyframes uv-fmt-rise {
  0%,
  100% {
    transform: translateY(0);
    border-color: var(--line-strong);
  }
  50% {
    transform: translateY(-4px);
    border-color: rgba(127, 179, 255, 0.4);
  }
}

/* ---- UTILS RESPONSIVE ---- */
@media (max-width: 1000px) {
  .util-cap {
    grid-column: span 6;
  }
  .util-silence {
    grid-column: span 6;
  }
  .util-broll,
  .util-motion,
  .util-color {
    grid-column: span 3;
  }
  .util-color {
    grid-column: span 6;
  }
}
@media (max-width: 720px) {
  .utils-grid {
    grid-template-columns: 1fr;
  }
  .util-cap,
  .util-silence,
  .util-broll,
  .util-motion,
  .util-color,
  .util-export {
    grid-column: 1 / -1;
  }
  .util-export {
    flex-direction: column;
    min-height: 0;
  }
  .util-export-right {
    border-left: 0;
    border-top: 1px solid var(--line);
    gap: 12px;
    padding: 24px;
  }
  .uv-fmt.f-9x16 {
    width: 44px;
    height: 78px;
  }
  .uv-fmt.f-1x1 {
    width: 66px;
    height: 66px;
  }
  .uv-fmt.f-16x9 {
    width: 88px;
    height: 50px;
  }
}
