/* ==========================================================================
   ClapJack — marketing site
   ========================================================================== */

:root {
  --bg: #08090a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.05);
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --text-3: #8a8f98;
  --text-4: #62666d;
  --accent: #5e6ad2;
  --yellow: #f2c94c;
  --green: #4cb782;
  --red: #eb5757;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
code { font-family: var(--mono); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 1000px; }

.ic { width: 16px; height: 16px; flex: none; }
.ic-xs { width: 12px; height: 12px; flex: none; }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 13.5px; }
.btn-light { background: #e6e6e6; color: #08090a; }
.btn-light:hover { background: #fff; }
.btn-dark { background: #141516; color: var(--text); border: 1px solid var(--line); }
.btn-dark:hover { background: #1c1d1f; }

/* -------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.nav.scrolled {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; color: var(--text-3); }
.nav-links a, .nav-login { transition: color 0.15s; }
.nav-links a:hover, .nav-login:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 20px; font-size: 13.5px; color: var(--text-3); }
.nav-divider { width: 1px; height: 16px; background: var(--line); }
.nav-burger { display: none; width: 32px; height: 32px; position: relative; }
.nav-burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--text); transition: transform 0.2s; }
.nav-burger span:first-child { top: 12px; }
.nav-burger span:last-child { top: 19px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* -------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(4px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.static .reveal, .static .agent .step { opacity: 1; transform: none; filter: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: 150px; position: relative; }
.hero-title {
  font-size: clamp(40px, 6.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 540;
  max-width: 920px;
}
.hero-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 30px; transition-delay: 0.08s; }
.hero-sub p { color: var(--text-3); font-size: 16.5px; letter-spacing: -0.01em; }
.hero-new { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-3); white-space: nowrap; }
.hero-new span { color: var(--text); font-weight: 500; }
.hero-new svg { width: 14px; height: 14px; transition: transform 0.2s; }
.hero-new:hover svg { transform: translateX(2px); }

.hero-stage {
  position: relative;
  margin: 64px auto 0;
  padding: 0 24px;
  transition-delay: 0.16s;
}
.hero-stage::before { /* grey studio-light backdrop */
  content: ""; position: absolute; z-index: -1;
  left: 50%; transform: translateX(-50%);
  width: min(100%, 1560px); top: 160px; bottom: -40px;
  border-radius: 0 0 14px 14px;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(150, 154, 162, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(8, 9, 10, 0) 0%, rgba(38, 40, 44, 0.6) 55%, rgba(92, 95, 101, 0.85) 100%);
}

/* ------------------------------------------------- app window */
.app {
  position: relative;
  display: flex;
  max-width: 1200px;
  height: 780px;
  margin: 0 auto;
  background: #0e0f10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}

.app-side { width: 236px; flex: none; padding: 12px 10px; border-right: 1px solid var(--line-2); background: #0b0c0d; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; }
.ws { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 13.5px; }
.ws .ic-xs { color: var(--text-4); }
.side-head-icons { display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.compose { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1b1c1e; border: 1px solid var(--line); color: var(--text-2); }
.side-nav { list-style: none; margin: 0 0 14px; padding: 0; }
.side-nav li { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 6px; color: var(--text-2); font-weight: 450; }
.side-nav li .ic { color: var(--text-3); }
.side-nav li.active { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.side-nav li.sub { padding-left: 26px; }
.side-group { display: flex; align-items: center; gap: 4px; padding: 4px 8px 6px; font-size: 12px; color: var(--text-4); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line-2); }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--text); }
.crumb-id { color: var(--text-2); }
.crumb .star { color: var(--yellow); margin-left: 6px; }
.crumb .dim { color: var(--text-4); margin-left: 4px; }
.pager { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.crumb-sep { color: var(--text-4); }
.crumb-ver { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.avs { display: flex; margin-right: 6px; }
.avs .av { margin-left: -5px; box-shadow: 0 0 0 2px #0e0f10; }
.topbtn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); font-size: 12px; }
.topbtn.primary { background: var(--accent); border-color: transparent; color: #fff; }

.app-body { position: relative; flex: 1; display: flex; overflow: hidden; }
.doc { flex: none; width: calc(100% - 392px); min-width: 0; padding: 30px 28px 40px 48px; }
.doc-tools { display: flex; gap: 6px; position: absolute; top: 14px; right: 16px; z-index: 2; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 28px; justify-content: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); }
.tool.split i { width: 1px; height: 12px; background: var(--line); }
.doc-title { font-size: 21px; font-weight: 560; color: var(--text); letter-spacing: -0.015em; }
.doc-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
.doc-desc code { font-size: 12.5px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: #17181a; color: var(--text-2); }

/* viewer */
.viewer { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.viewer-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.viewer-frame img { width: 100%; height: 100%; object-fit: cover; }
.viewer-caption {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.viewer-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,0.5); color: #e6e6e6; font-size: 11px; backdrop-filter: blur(6px); }
.viewer-badge .rec { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 3px rgba(255,95,87,0.2); }
.viewer-tc { position: absolute; top: 10px; right: 10px; padding: 3px 7px; border-radius: 5px; background: rgba(0,0,0,0.5); font-family: var(--mono); font-size: 11px; color: #e6e6e6; }
.viewer-controls { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 12px; background: #111213; border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 12px; }
.viewer-controls .play { color: var(--text); }
.vc-time { font-family: var(--mono); font-size: 11.5px; }
.vc-time b { color: var(--text-2); font-weight: 500; }
.vc-spacer { flex: 1; }
.vc-chip { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 10.5px; color: var(--text-3); }

/* timeline */
.tl { position: relative; margin-top: 12px; padding: 22px 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #0c0d0e; }
.tl-ruler { position: absolute; top: 0; left: 34px; right: 8px; height: 18px; border-bottom: 1px solid var(--line-2);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 10%),
              repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 2%);
  background-size: 100% 7px, 100% 4px; background-position: bottom, bottom; background-repeat: no-repeat; }
.tl-track { display: flex; align-items: center; height: 30px; padding: 0 8px 0 0; }
.tl-label { width: 34px; flex: none; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--text-4); }
.tl-lane { position: relative; flex: 1; height: 24px; }
.clip { position: absolute; top: 0; bottom: 0; border-radius: 4px; overflow: hidden; font-size: 10px; line-height: 1; color: rgba(255,255,255,0.9); }
.clip > span { position: absolute; left: 4px; top: 3px; z-index: 2; padding: 1px 3px; border-radius: 2px; background: rgba(0,0,0,0.45); white-space: nowrap; }
.clip-title { display: flex; align-items: center; padding-left: 6px; background: linear-gradient(180deg, #5e4bb8, #4a3a99); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.clip-video { background-size: auto 100%; background-repeat: repeat-x; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); transition: box-shadow 0.4s; }
.clip-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 60%); }
.clip-video.cut-new { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.clip-audio { background: #12352a; box-shadow: inset 0 0 0 1px rgba(76,183,130,0.35); }
.clip-vo { background: #1b2a44; box-shadow: inset 0 0 0 1px rgba(78,167,252,0.35); }
.wave { position: absolute; inset: 6px 3px 2px; }
.wave svg { width: 100%; height: 100%; display: block; }
.clip-audio .wave { color: rgba(110, 220, 165, 0.75); }
.clip-vo .wave { color: rgba(130, 190, 255, 0.75); }
.tl-playhead { position: absolute; top: 4px; bottom: 4px; left: 34px; width: 0; z-index: 5; pointer-events: none; }
.tl-playhead::before { content: ""; position: absolute; top: 14px; bottom: 0; left: -0.5px; width: 1px; background: #ff5f57; }
.tl-playhead i { position: absolute; top: 3px; left: -5px; width: 10px; height: 12px; background: #ff5f57; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

.doc-h { margin-top: 30px; font-size: 15px; font-weight: 560; color: var(--text); }
.activity { list-style: none; margin: 14px 0 0; padding: 0; color: var(--text-3); font-size: 12.5px; }
.activity li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.activity b { color: var(--text-2); font-weight: 500; }
.comment { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #111214; }
.comment p { margin: 6px 0 14px 30px; color: var(--text-2); font-size: 13.5px; }
.comment p:last-child { margin-bottom: 0; }
.comment-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-row b { color: var(--text); font-weight: 500; }
.muted { color: var(--text-4); }

/* avatars (generated initials) */
.av { --h: 210; display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 55% 62%), hsl(calc(var(--h) + 40) 50% 38%));
  color: rgba(255,255,255,0.95); font-weight: 600; }
.av-xs { width: 18px; height: 18px; font-size: 9px; }
.av-sm { width: 20px; height: 20px; font-size: 10px; }
.av-lg { width: 36px; height: 36px; border-radius: 8px; font-size: 15px; }
.av-cj { background: #1b1c1e; border: 1px solid var(--line); }
.av-cj img { width: 11px; height: 11px; }

.props { position: absolute; top: 66px; right: 216px; width: 160px; font-size: 13px; }
.props-label { color: var(--text-3); font-size: 12px; margin-bottom: 10px; }
.props-item { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.props-item .ic { color: var(--text-3); }

/* agent panel */
.agent {
  position: absolute; right: 16px; top: 132px; width: 368px; bottom: 0;
  display: flex; flex-direction: column;
  background: #121314; border: 1px solid rgba(255,255,255,0.09); border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 24px 60px -10px rgba(0,0,0,0.7);
}
.agent-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px 0 16px; }
.agent-head > div:first-child { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 13.5px; }
.model { padding: 1px 6px; border-radius: 4px; background: #1d1e20; border: 1px solid var(--line); color: var(--text-3); font-size: 11px; font-weight: 450; }
.agent-head-icons { display: flex; gap: 14px; color: var(--text-3); }
.agent-body { flex: 1; padding: 6px 12px 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.bubble { margin-left: auto; width: fit-content; max-width: 88%; padding: 10px 12px; border-radius: 10px; background: #1c1d1f; border: 1px solid var(--line-2); color: var(--text); }
.ctx { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.ctx .ic { width: 13px; height: 13px; }
.ctx span { color: var(--text-4); }
.worked { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--text-4); }
.worked .ic-xs { width: 8px; height: 8px; }
.agent-body p { margin-top: 8px; }
.change { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #18191b; border: 1px solid var(--line-2); }
.change-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.change-top b { color: var(--text); font-weight: 500; }
.change-top em { font-style: normal; font-family: var(--mono); font-size: 11.5px; }
.add { color: var(--green); }
.del { color: var(--red); }
.preview { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.change-pr { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.change-pr b { color: var(--text); font-weight: 500; }
.change-pr .ic { color: var(--text-3); width: 14px; }
.change-branch { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-4); }
.agent-input { margin: 14px 10px 0; height: 70px; padding: 12px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #151618; color: var(--text-4); }

.agent .step { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.agent .step.show { opacity: 1; transform: none; }
.shimmer { background: linear-gradient(90deg, var(--text-4) 0%, var(--text-4) 40%, #d0d6e0 50%, var(--text-4) 60%, var(--text-4) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
.shimmer.done { animation: none; color: var(--text-4); background: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ==========================================================================
   LOGOS
   ========================================================================== */
.logos { padding: 110px 0 0; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #f2f2f2; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 22px; white-space: nowrap; opacity: 0.95; }
.lg-northlight { font-family: "Space Grotesk", var(--font); font-weight: 700; letter-spacing: -0.03em; }
.lg-parallax { font-weight: 650; letter-spacing: -0.04em; font-size: 23px; }
.lg-kino i { font-style: normal; display: grid; place-items: center; width: 64px; height: 40px; border-radius: 50%; background: #f2f2f2; color: #08090a; font-family: "Instrument Serif", serif; font-size: 22px; }
.lg-halcyon { font-family: "Instrument Serif", serif; font-size: 30px; letter-spacing: -0.01em; }
.lg-meridian { font-family: "Space Grotesk", var(--font); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; }
.lg-lumen { font-weight: 700; font-size: 26px; letter-spacing: -0.06em; }
.lg-drift { font-weight: 500; font-size: 24px; letter-spacing: -0.03em; }
.logos .mono-label { margin-top: 44px; }

/* ==========================================================================
   STATEMENT + FIGS
   ========================================================================== */
.statement { padding: 120px 0 80px; }
.statement h2 { font-size: clamp(30px, 4.1vw, 46px); line-height: 1.12; letter-spacing: -0.028em; font-weight: 540; max-width: 960px; }
.statement h2 span { color: var(--text-3); }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 110px; }
.fig { padding: 0 32px; border-left: 1px solid var(--line-2); }
.fig:first-child { padding-left: 0; border-left: 0; }
.fig:nth-child(2) { transition-delay: 0.08s; }
.fig:nth-child(3) { transition-delay: 0.16s; }
.fig-art { position: relative; height: 330px; }
.fig-art img { position: absolute; inset: 30px 4%; width: 92%; height: calc(100% - 60px); object-fit: contain; transition: transform 0.8s var(--ease-out); }
.fig:hover .fig-art img { transform: translateY(-6px); }
.fig h3 { margin-top: 36px; font-size: 15px; font-weight: 500; color: var(--text); }
.fig p { margin-top: 6px; color: var(--text-3); font-size: 15px; line-height: 1.55; max-width: 290px; }

/* ==========================================================================
   FEATURE SECTIONS (shared)
   ========================================================================== */
.feature { position: relative; padding: 150px 0 110px; border-top: 1px solid var(--line-2); }
.feature-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature-head h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 540; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; letter-spacing: -0.012em; color: var(--text-2); }
.learn { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; color: var(--text-3); font-size: 15px; transition: color 0.15s; }
.learn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.learn:hover { color: var(--text); }
.learn:hover svg { transform: translateX(2px); }

.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 90px; }
.fl-label { color: var(--text-3); font-size: 15px; }
.fl-cols { display: grid; grid-template-columns: 1fr 1fr; }
.fl-cols > div { padding: 0 24px; border-left: 1px solid var(--line-2); }
.fl-cols > div:first-child { padding-left: 0; border-left: 0; }
.fl-item { display: flex; align-items: center; gap: 8px; height: 32px; color: var(--text-2); font-size: 15px; transition: color 0.15s; text-align: left; }
.fl-item svg { width: 13px; height: 13px; color: var(--text-4); transition: transform 0.25s var(--ease-out); }
.fl-item:hover, .fl-item[aria-expanded="true"] { color: var(--text); }
.fl-item[aria-expanded="true"] svg { transform: rotate(45deg); }
.fl-panel { max-height: 0; overflow: hidden; opacity: 0; max-width: 260px; color: var(--text-3); font-size: 13.5px; line-height: 1.55;
  transition: max-height 0.35s var(--ease-out), opacity 0.3s, margin 0.3s; }
.fl-panel.open { max-height: 140px; opacity: 1; margin: 2px 0 12px; }

/* ---------------------------------------------------------- ingest */
.ingest-visual { position: relative; height: 640px; margin-top: 90px; }
.library {
  position: absolute; left: 360px; top: 40px; width: 1000px; padding-bottom: 18px;
  border-radius: 14px; background: #0f1011; border: 1px solid var(--line-2);
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 94%), linear-gradient(180deg, #000 74%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
          mask-image: linear-gradient(90deg, #000 62%, transparent 94%), linear-gradient(180deg, #000 74%, transparent);
}
.lib-head { display: flex; align-items: center; gap: 24px; height: 54px; padding: 0 18px 0 160px; border-bottom: 1px solid var(--line-2); }
.lib-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.lib-title em { font-style: normal; color: var(--text-4); font-weight: 400; }
.lib-search { display: flex; align-items: center; gap: 8px; width: 330px; white-space: nowrap; overflow: hidden; height: 32px; padding: 0 12px; border-radius: 8px; background: #151618; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.lib-search .ic { color: var(--text-4); }
.lib-bins { display: flex; gap: 4px; padding: 12px 18px 14px 160px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.lib-bins span { padding: 4px 10px; border-radius: 6px; }
.lib-bins .on { background: rgba(255,255,255,0.06); color: var(--text); }
.lib-bins em { font-style: normal; color: var(--text-4); margin-left: 4px; }
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 18px; }
.mc { padding: 8px; border-radius: 10px; background: #131416; border: 1px solid var(--line-2); min-width: 0; }
.mc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; background-size: 180%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.mc-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,0.6); font-family: var(--mono); font-size: 10.5px; color: #e6e6e6; }
.mc-quote .mc-thumb::after { content: "“…it should feel effortless.”"; position: absolute; left: 6px; bottom: 6px; max-width: 62%; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-name { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tags { display: flex; gap: 4px; margin-top: 6px; overflow: hidden; }
.mc-match { border-color: rgba(155,138,251,0.55); box-shadow: 0 0 0 3px rgba(155,138,251,0.1); }
.mc-hook { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 4px; background: #7170ff; color: #fff; font-size: 10.5px; font-weight: 500; }
.mc-dim { opacity: 0.4; }
.mc-tags span { flex: none; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); font-size: 11px; }
.mc-gen .mc-tags span:first-child { color: #b4a7ff; border-color: rgba(155,138,251,0.4); }
.mc-tags .muted-tag { color: var(--text-4); border-style: dashed; }
.mc-ingest .mc-thumb { filter: saturate(0.4) brightness(0.7); }
.mc-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 11px; color: #fff; }
.mc-progress i { display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: rgba(255,255,255,0.2); overflow: hidden; }
.mc-progress i b { display: block; height: 100%; background: linear-gradient(90deg, #7170ff, #b4a7ff); }

.thread {
  position: absolute; left: -24px; top: 0; width: 520px; z-index: 2;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #161718, #121314);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.6);
}
.thread-head { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 20px 0 24px; border-bottom: 1px solid var(--line-2); color: var(--text-3); }
.thread-head > span { display: flex; align-items: center; gap: 10px; }
.thread-head b { color: var(--text); font-weight: 500; font-size: 17px; }
.thread-head em { font-style: normal; font-size: 14px; }
.thread-head .hash { width: 18px; height: 18px; }
.thread-body { padding: 28px 24px 8px; }
.msg { display: flex; gap: 16px; margin-bottom: 22px; }
.msg-meta { font-size: 12.5px; color: var(--text-4); }
.msg-meta b { color: var(--text); font-weight: 600; font-size: 15px; margin-right: 6px; }
.msg p { color: var(--text-2); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.msg .mention { padding: 0 4px; border-radius: 4px; background: rgba(94, 106, 210, 0.25); color: #a9b1ff; }
.msg-bot { margin-bottom: 8px; }
.av-bot { background: #1b1c1e; border: 1px solid var(--line); }
.av-bot img { width: 18px; height: 18px; }
.app-tag { margin-right: 6px; padding: 0 4px; border-radius: 3px; background: rgba(255,255,255,0.08); color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }
.hooks { display: flex; gap: 10px; margin-top: 12px; }
.hook { margin: 0; width: 92px; }
.hook > div { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; background-size: cover; border: 1px solid var(--line); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.8); }
.hook > div::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55)); }
.hook > div span { position: absolute; right: 6px; bottom: 6px; z-index: 1; font-family: var(--mono); font-size: 10px; color: #fff; }
.hook figcaption { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.bot-actions { display: flex; gap: 8px; margin-top: 14px; }
.bot-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--text-2); }
.bot-btn.primary { background: var(--accent); border-color: transparent; color: #fff; }

/* ---------------------------------------------------------- generate */
.gen-visual { margin-top: 90px; }
.gen-panel { position: relative; padding: 0 0 18px; border-radius: 14px; background: #0f1011; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9); overflow: hidden; }
.gen-panel::before { content: ""; position: absolute; inset: -40% -10% auto; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(155, 138, 251, 0.12), transparent 70%); pointer-events: none; }
.gen-head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--text); font-weight: 500; }
.gen-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.gen-head em { font-style: normal; color: var(--text-4); font-weight: 400; }
.gen-tabs { display: flex; gap: 4px; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.gen-tabs > * { padding: 4px 10px; border-radius: 6px; }
.gen-tabs b { font-weight: 500; color: var(--text); background: rgba(255,255,255,0.06); }
.gen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px 20px 0; }
.take { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; transition: transform 0.4s var(--ease-out), border-color 0.2s; }
.take:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); }
.take.selected { border-color: rgba(155,138,251,0.7); box-shadow: 0 0 0 3px rgba(155,138,251,0.15); }
.take img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.take figcaption { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; font-size: 12px; color: var(--text-2); background: #111213; border-top: 1px solid var(--line-2); }
.pill { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
.pill-green { color: var(--green); border-color: rgba(76,183,130,0.35); }
.pill-violet { color: #b4a7ff; border-color: rgba(155,138,251,0.4); }
.take.generating img { filter: blur(14px) saturate(1.2) brightness(0.8); transform: scale(1.12); transition: filter 0.6s, transform 0.6s; }
.take.generating.reveal-done img { filter: none; transform: none; }
.gen-overlay { position: absolute; left: 0; right: 0; top: 0; bottom: 38px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6)); transition: opacity 0.4s; }
.take.reveal-done .gen-overlay { opacity: 0; }
.gen-pct { font-size: 28px; font-weight: 540; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.gen-bar { height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7170ff, #b4a7ff); border-radius: 3px; }
.gen-note { margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,0.7); }
.prompt { display: flex; align-items: center; gap: 16px; margin: 18px 20px 0; padding: 12px 12px 12px 16px; border-radius: 12px; background: #151618; border: 1px solid var(--line); }
.prompt-text { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-chips { display: flex; align-items: center; gap: 6px; flex: none; }
.prompt-chips span { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.prompt-chips .prompt-go { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: #e6e6e6; color: #08090a; border: 0; }

/* ---------------------------------------------------------- script + storyboard */
.plan-visual { position: relative; height: 640px; margin-top: 90px; }
.script {
  position: absolute; left: -10px; top: 40px; width: 560px; height: 580px; overflow: hidden;
  border-radius: 14px; background: #0d0e0f; border: 1px solid var(--line-2);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 45%, transparent 90%);
          mask-image: radial-gradient(120% 100% at 30% 20%, #000 45%, transparent 90%);
}
.script-head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.script-head > span:first-child { display: flex; align-items: center; gap: 10px; }
.script-body { padding: 16px 16px 0; }
.scene { display: grid; grid-template-columns: 28px 1fr; gap: 10px; max-width: 440px; padding: 14px 14px 14px 8px; border-radius: 10px; border: 1px solid transparent; }
.scene + .scene { margin-top: 4px; }
.scene.active { background: rgba(155,138,251,0.06); border-color: rgba(155,138,251,0.25); }
.sc-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.05); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.scene.active .sc-n { background: rgba(155,138,251,0.2); color: #cfc6ff; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.sc-head b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
.shot-chip { flex: none; padding: 1px 7px; border-radius: 4px; background: rgba(255,255,255,0.05); font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.scene.active .shot-chip { background: rgba(155,138,251,0.15); color: #b4a7ff; }
.sc-action { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.sc-line { margin-top: 10px; padding-left: 12px; border-left: 2px solid rgba(255,255,255,0.12); font-size: 13.5px; font-style: italic; color: var(--text); }
.sc-line span { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10.5px; font-style: normal; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-4); }

.boards {
  position: absolute; right: -40px; top: 0; width: 600px; padding-bottom: 20px;
  border-radius: 14px; background: linear-gradient(180deg, #161718, #111213);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: -30px 30px 80px -20px rgba(0,0,0,0.9);
}
.boards-head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--text); }
.boards-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.boards-head em { font-style: normal; font-weight: 400; color: var(--text-4); }
.boards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; padding: 18px 20px 0; }
.bf { margin: 0; min-width: 0; }
.bf-img { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; background-size: 170%; border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.3) brightness(1.08); }
.bf.linked .bf-img { outline: 1.5px solid rgba(155,138,251,0.85); outline-offset: 2px; }
.bf-n { position: absolute; top: 5px; left: 5px; padding: 0 5px; border-radius: 3px; background: rgba(0,0,0,0.65); font-family: var(--mono); font-size: 10px; color: #eee; }
.bf figcaption { margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.bf figcaption b { margin-right: 4px; color: var(--text); font-weight: 500; }
.bf figcaption span { display: block; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-gen .bf-img { filter: grayscale(1) blur(2px) brightness(0.6); }
.bf-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: #d9d3ff; filter: none; }
.bf-busy .ic { width: 13px; height: 13px; color: #b4a7ff; }
.animatic { margin: 20px 20px 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.an-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }
.an-label > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.an-label .ic { width: 11px; height: 11px; }
.an-label .mono { font-family: var(--mono); font-size: 11px; }
.an-strip { position: relative; display: flex; gap: 2px; height: 40px; margin-top: 10px; border-radius: 6px; overflow: visible; }
.an-strip i { background-size: cover; background-position: center; filter: grayscale(0.5) brightness(0.85); border-radius: 3px; }
.an-head { position: absolute; top: -5px; bottom: -5px; left: 41%; width: 2px; border-radius: 1px; background: #ff5f57; box-shadow: 0 0 0 3px rgba(255,95,87,0.15); }

/* ---------------------------------------------------------- review */
.review-visual { position: relative; height: 720px; margin-top: 110px; }
.review {
  position: absolute; left: -36px; top: 40px; width: 500px; padding-bottom: 8px;
  border-radius: 14px; background: #0e0f10; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  z-index: 2;
}
.rv-head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 18px; font-size: 13.5px; color: var(--text-2); }
.rv-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.rv-head b { color: var(--text); font-weight: 500; }
.rv-head em { font-style: normal; color: var(--text-4); }
.rv-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.rv-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.rv-frame { position: relative; margin: 0 14px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.rv-frame img { width: 100%; height: 100%; object-fit: cover; }
.rv-box { position: absolute; border: 1.5px dashed rgba(242,201,76,0.9); border-radius: 4px; }
.pin { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50% 50% 50% 2px;
  background: var(--yellow); color: #111; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 3px rgba(242,201,76,0.25); }
.pin-open { background: #ff5f57; color: #fff; box-shadow: 0 0 0 3px rgba(255,95,87,0.25); }
.rv-tc { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.6); font-family: var(--mono); font-size: 10.5px; color: #eee; }
.rv-scrub { position: relative; height: 4px; margin: 16px 14px 6px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.rv-scrub .mk { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #ff5f57; }
.rv-scrub .mk.done { background: var(--green); }
.rv-scrub b { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; }
.rv-comments { list-style: none; margin: 8px 0 0; padding: 0 14px; }
.rv-comments li { display: flex; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line-2); }
.rv-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rv-meta b { color: var(--text); font-weight: 500; }
.rv-meta .tc { padding: 0 6px; border-radius: 4px; background: rgba(242,201,76,0.1); color: var(--yellow); font-family: var(--mono); font-size: 11px; }
.rv-comments li.open .tc { background: rgba(255,95,87,0.1); color: #ff8b8b; }
.rv-comments p { margin-top: 3px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.rv-agent { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.rv-agent .ic { width: 12px; height: 12px; color: #b4a7ff; }
.rv-agent b { color: var(--green); font-weight: 500; }

.tdiff {
  position: absolute; left: 430px; width: 860px; top: 0; height: 680px;
  border-radius: 14px; overflow: hidden;
  background: #0f1011; border: 1px solid rgba(255,255,255,0.07);
  box-shadow: -40px 40px 90px -20px rgba(0,0,0,0.95);
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 96%), linear-gradient(180deg, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
          mask-image: linear-gradient(90deg, #000 72%, transparent 96%), linear-gradient(180deg, #000 82%, transparent);
}
.diff-head { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 24px 0 110px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--text); font-weight: 500; }
.diff-head > span:first-child { display: flex; align-items: center; gap: 10px; }
.diff-head .ic { color: var(--text-3); }
.diff-who { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text-2); }
.mono-chip { padding: 1px 8px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--text-2); }
.td-body { width: 640px; padding: 22px 24px 0 110px; }
.td-ruler { position: relative; height: 18px; margin-left: 34px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 10px; color: var(--text-4); }
.td-ruler span { position: absolute; top: 0; }
.td-ver { margin: 14px 0 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.td-track { display: flex; align-items: center; height: 30px; }
.clip.td-rm { box-shadow: inset 0 0 0 1.5px #eb5757; opacity: 0.85; }
.clip.td-rm::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(135deg, rgba(235,87,87,0.45) 0 5px, transparent 5px 10px); }
.clip.td-ad { box-shadow: inset 0 0 0 1.5px var(--green); }
.clip.td-mv { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.clip.td-cap { background: #241d3d; }
.td-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.td-summary span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--text-3); }
.td-summary .ad { color: var(--green); border-color: rgba(76,183,130,0.35); }
.td-summary .rm { color: #ff8b8b; border-color: rgba(235,87,87,0.35); }
.td-summary .mv { color: var(--yellow); border-color: rgba(242,201,76,0.35); }
.td-changes { list-style: none; margin: 16px 0 0; padding: 0; font-family: var(--mono); font-size: 12.5px; }
.td-changes li { display: flex; gap: 10px; margin-bottom: 4px; padding: 6px 10px; border-radius: 6px; color: var(--text-2); }
.td-changes b { width: 10px; font-weight: 500; }
.td-changes em { margin-left: auto; font-style: normal; color: var(--text-4); }
.td-changes .rm { background: rgba(235,87,87,0.08); }
.td-changes .rm b { color: #ff8b8b; }
.td-changes .ad { background: rgba(76,183,130,0.08); }
.td-changes .ad b { color: var(--green); }
.td-changes .mv { background: rgba(242,201,76,0.06); }
.td-changes .mv b { color: var(--yellow); }

/* ==========================================================================
   CHANGELOG
   ========================================================================== */
.changelog { padding: 140px 0 120px; border-top: 1px solid var(--line-2); }
.changelog h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 540; line-height: 1.1; }
.cl-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-top: 70px; }
.cl-track::before { content: ""; position: absolute; top: 4px; left: 6px; right: 0; height: 1px; background: linear-gradient(90deg, var(--line), var(--line) 85%, transparent); }
.cl-item { position: relative; padding-top: 58px; }
.cl-dot { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #3a3d42; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.cl-dot.live { background: var(--red); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(235,87,87,0.25); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(235,87,87,0.4); }
  70% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 12px rgba(235,87,87,0); }
  100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(235,87,87,0); }
}
.cl-item h3 { font-size: 15px; font-weight: 500; color: var(--text); }
.cl-item p { margin-top: 8px; color: var(--text-3); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-item time { display: block; margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-4); }
.changelog .learn { margin-top: 70px; }

/* ==========================================================================
   QUOTES
   ========================================================================== */
.quotes { padding: 40px 0 0; }
.quote-grid { display: grid; grid-template-columns: 1.67fr 1fr; gap: 8px; padding: 8px; margin: 0 -8px; border-radius: 16px; border: 1px solid var(--line-2); }
.quote { position: relative; margin: 0; min-height: 460px; padding: 30px 24px 26px; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { position: relative; z-index: 1; margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 450; text-indent: -0.4em; padding-left: 0.4em; max-width: 520px; }
.quote figcaption { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.quote figcaption b { display: block; font-weight: 500; }
.q-logo { display: grid; place-items: center; padding-right: 22px; border-right: 1px solid rgba(0,0,0,0.12); height: 40px; }
.q-lavender { background: linear-gradient(180deg, #d6e4fd 0%, #e3e2fd 55%, #ece3fb 100%); color: #0b0c0f; }
.q-lavender figcaption span:last-child { color: #4b4f5c; }
.q-lavender figcaption b { color: #0b0c0f; }
.q-mark { position: absolute; right: -40px; top: 0; width: 420px; height: 420px; color: rgba(255,255,255,0.4); transform: rotate(-8deg); }
.q-lime { background: #e4f222; color: #0b0c0f; }
.q-lime figcaption span:last-child { color: #4a4f12; }
.q-lime figcaption b { color: #0b0c0f; }
.quote-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; color: var(--text-3); font-size: 15px; }
.quote-foot b { color: var(--text); font-weight: 500; }
.quote-foot .learn { margin-top: 0; }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */
.cta { padding: 220px 0; text-align: center; }
.cta h2 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 560; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 40px; transition-delay: 0.08s; }
.cta .btn { height: 44px; padding: 0 20px; font-size: 15.5px; }

.footer { padding: 56px 0 50px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1fr repeat(5, 1fr); gap: 24px; }
.footer h4 { margin-bottom: 26px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.footer a { display: block; margin-bottom: 11px; color: var(--text-3); transition: color 0.15s; }
.footer a:hover { color: var(--text); }
.footer-brand img { width: 20px; height: 20px; }
.footer-legal { display: grid; grid-template-columns: 1fr 5fr; gap: 24px; margin-top: 64px; }
.footer-legal > div { display: flex; gap: 20px; padding-left: 0; }
.footer-legal a { margin: 0; color: var(--text-4); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .app-side { width: 200px; }
  .agent { width: 340px; }
  .doc { width: calc(100% - 364px); padding-left: 32px; }
  .props { display: none; }
  .library { left: 340px; }
  .boards { right: -10px; width: 540px; }
  .tdiff { left: 420px; }
}

@media (max-width: 960px) {
  .nav-links, .nav-divider, .nav-login { display: none; }
  .nav-burger { display: block; }
  .mobile-menu { display: grid; max-height: 0; overflow: hidden; padding: 0 24px; background: rgba(8,9,10,0.96); transition: max-height 0.3s var(--ease-out), padding 0.3s; }
  .mobile-menu.open { max-height: 420px; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--text-2); }
  .nav-actions { margin-left: auto; }

  .hero { padding-top: 96px; }
  .hero-sub { flex-direction: column; gap: 14px; }
  .hero-stage { padding: 0 16px; }
  .app { height: 640px; }
  .app-side, .agent { display: none; }
  .doc { width: 100%; padding: 56px 20px 20px; }

  .logo-row { flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
  .logos .mono-label { text-align: center; }

  .figs { grid-template-columns: 1fr; gap: 60px; }
  .fig { padding: 0; border-left: 0; }
  .fig-art { height: 260px; }

  .feature { padding: 110px 0 80px; }
  .feature-head, .features-list { grid-template-columns: 1fr; gap: 24px; }
  .features-list { margin-top: 60px; }

  .ingest-visual { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .thread { position: relative; left: 0; width: 100%; order: -1; }
  .library { position: relative; left: 0; top: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .lib-head, .lib-bins { padding-left: 18px; }
  .lib-head { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .lib-search { width: 100%; }
  .lib-bins { overflow: hidden; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }

  .gen-grid { grid-template-columns: repeat(2, 1fr); }
  .prompt { flex-direction: column; align-items: stretch; }
  .prompt-text { white-space: normal; }

  .plan-visual { height: auto; display: flex; flex-direction: column; }
  .plan-visual { gap: 20px; }
  .script { position: relative; left: 0; top: 0; width: 100%; height: 340px; }
  .boards { position: relative; right: 0; width: 100%; order: -1; }

  .review-visual { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .review { position: relative; left: 0; top: 0; width: 100%; }
  .tdiff { position: relative; left: 0; width: 100%; height: auto; padding-bottom: 20px; -webkit-mask-image: none; mask-image: none; }
  .diff-head { padding-left: 20px; }
  .td-body { width: auto; padding: 20px; }

  .cl-track { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .cl-track::before { display: none; }
  .cl-item { padding-top: 30px; }

  .quote-grid { grid-template-columns: 1fr; margin: 0; }
  .quote { min-height: 340px; }
  .quote-foot { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-template-columns: 1fr; }
  .footer-legal > span { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero-stage { padding: 0 12px; margin-top: 44px; }
  .app { height: 600px; }
  .app-topbar .pager, .vc-chip, .gen-head .gen-tabs { display: none; }
  .gen-grid { gap: 10px; padding: 14px 14px 0; }
  .prompt { margin: 14px 14px 0; }
  .prompt-chips { flex-wrap: wrap; }
  .cl-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .thread-body { padding: 20px 16px 4px; }
  .msg p { font-size: 14px; }
  .boards-grid { grid-template-columns: repeat(2, 1fr); }
  .td-changes em { display: none; }
  .fl-cols { grid-template-columns: 1fr; }
  .fl-cols > div { padding: 0; border: 0; }
}
