/* ══════════════════════════════════════════════════════════════
   DESIGNOS · BLUEBIRD v1.5 · AUTONOMOUS CINEMATIC ENGINE
   Obsidian Mode (Default) + Editorial Cream (Light Mode)
══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:           #020202;
  --bg2:          #0A0A0A;
  --bg3:          #111116;
  --surface:      #0C0C12;
  --border:       rgba(255,255,255,0.07);
  --border-hi:    rgba(255,255,255,0.13);
  --fg:           #FFFFFF;
  --fg-dim:       rgba(255,255,255,0.52);
  --fg-muted:     rgba(255,255,255,0.28);
  --rose:         #F09090;
  --rose-glow:    rgba(240,144,144,0.18);
  --rose-dim:     rgba(240,144,144,0.1);
  --rose-border:  rgba(240,144,144,0.28);
  --kling:        #F09090;
  --genspark:     #90C8F0;
  --genspark-dim: rgba(144,200,240,0.1);
  --genspark-bdr: rgba(144,200,240,0.28);
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', sans-serif;
  --r:            14px;
  --r-sm:         8px;
  --r-lg:         20px;
}

[data-theme="light"] {
  --bg:           #FDF8F5;
  --bg2:          #F5EFE9;
  --bg3:          #EDE5DD;
  --surface:      #FFFFFF;
  --border:       rgba(0,0,0,0.07);
  --border-hi:    rgba(0,0,0,0.14);
  --fg:           #000000;
  --fg-dim:       rgba(0,0,0,0.54);
  --fg-muted:     rgba(0,0,0,0.32);
  --rose:         #C07070;
  --rose-glow:    rgba(192,112,112,0.12);
  --rose-dim:     rgba(192,112,112,0.08);
  --rose-border:  rgba(192,112,112,0.25);
  --kling:        #C07070;
  --genspark:     #6090C0;
  --genspark-dim: rgba(96,144,192,0.08);
  --genspark-bdr: rgba(96,144,192,0.25);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 15px; line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

em { font-style: italic; color: var(--rose); }
strong { color: var(--fg); font-weight: 600; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose);
  border: 1px solid var(--rose-border); background: var(--rose-dim);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.sec-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose); animation: blink-dot 2s infinite;
}
.centered { text-align: center; }
.cta-tag { display: flex; justify-content: center; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 16px; color: var(--fg);
}
.sec-desc {
  font-size: 15.5px; color: var(--fg-dim); max-width: 520px; line-height: 1.78;
  margin-bottom: 48px;
}
.centered-p { max-width: 580px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-rose {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rose); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 12px 26px; border-radius: 100px; text-decoration: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px var(--rose-glow);
}
.btn-rose:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 0 44px rgba(240,144,144,0.35); }
.btn-rose.large { font-size: 15px; padding: 14px 30px; }
.arr { transition: transform .2s; }
.btn-rose:hover .arr { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg-dim);
  font-weight: 500; font-size: 14px;
  padding: 12px 20px; border-radius: 100px; text-decoration: none;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--fg); }
.btn-ghost.large { font-size: 15px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); color: var(--fg);
  font-weight: 500; font-size: 14px;
  padding: 12px 26px; border-radius: 100px; text-decoration: none;
  border: 1px solid var(--border-hi);
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn-outline.large { font-size: 15px; padding: 14px 30px; }
[data-theme="light"] .btn-outline { background: rgba(0,0,0,0.04); }
[data-theme="light"] .btn-outline:hover { background: rgba(0,0,0,0.07); }

/* Reveal */
.reveal, .reveal-left {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-left { transform: translateX(-22px); }
.reveal.visible  { opacity: 1; transform: translateY(0); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
#navbar.scrolled {
  background: rgba(2,2,2,0.88);
  backdrop-filter: blur(24px); border-color: var(--border);
}
[data-theme="light"] #navbar.scrolled { background: rgba(253,248,245,0.9); }

.nav-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1160px; margin: 0 auto; padding: 17px 28px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--fg); text-decoration: none;
}
.logo-glyph { width: 24px; height: 24px; color: var(--rose); }
.logo-glyph.small { width: 20px; height: 20px; }
.logo-glyph svg { width: 100%; height: 100%; }

.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--fg-muted); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-hi);
  cursor: pointer; color: var(--fg-dim); transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--rose); }
.theme-toggle svg { width: 13px; height: 13px; }
[data-theme="dark"] .icon-sun   { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--fg-muted); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero { min-height: 100vh; position: relative; display: flex; flex-direction: column; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(240,144,144,0.04), transparent);
}

.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 56px;
  max-width: 1160px; margin: 0 auto;
  padding: 128px 28px 80px; width: 100%;
}

/* Left */
.hero-version-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--fg-muted); border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 26px;
}
.vp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); animation: blink-dot 1.8s infinite; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(54px, 6.8vw, 92px);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 22px; color: var(--fg);
}

.hero-desc {
  font-size: 16px; color: var(--fg-dim); max-width: 455px; line-height: 1.78; margin-bottom: 34px;
}

.hero-cta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.h-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--fg-dim); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  padding: 5px 12px; border-radius: 100px;
}
.h-badge svg { width: 12px; height: 12px; }
.h-badge.genspark { color: var(--genspark); background: var(--genspark-dim); border-color: var(--genspark-bdr); }
.h-badge.neutral { color: var(--fg-dim); }

/* Right — Generation window */
.hero-visual { position: relative; }

.gen-window {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(240,144,144,0.05), 0 0 60px rgba(240,144,144,0.04);
  animation: float-slow 7s ease-in-out infinite;
}
.gw-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.gw-dots { display: flex; gap: 6px; }
.d { width: 10px; height: 10px; border-radius: 50%; }
.d.r { background: #ff5f57; } .d.y { background: #ffbd2e; } .d.g { background: #28ca41; }
.gw-title { flex: 1; margin-left: 6px; font-size: 11px; color: var(--fg-muted); }
.gw-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: var(--rose); letter-spacing: 0.08em;
}
.gw-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); animation: blink-dot 1.3s infinite; }

.gw-prompt-area {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.gw-prompt-label { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted); margin-bottom: 6px; }
.gw-prompt-text {
  font-size: 13px; color: var(--fg-dim); font-style: italic;
  min-height: 18px; line-height: 1.4;
}
.gw-cursor { color: var(--rose); font-weight: 300; animation: blink-cursor 1s step-end infinite; }

.gw-stages { padding: 12px 16px; display: flex; flex-direction: column; gap: 7px; }
.gw-stage {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; padding: 7px 10px; border-radius: var(--r-sm);
  transition: background .3s;
}
.gw-stage.done    { background: rgba(255,255,255,0.03); }
.gw-stage.active  { background: rgba(240,144,144,0.08); border: 1px solid rgba(240,144,144,0.15); }
.gw-stage.idle    { opacity: 0.4; }

.gs-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }
.gw-stage.done .gs-icon  { color: #4fc3f7; }
.gw-stage.active .gs-icon { color: var(--rose); }
.gs-label { flex: 1; color: var(--fg-dim); font-weight: 500; }
.gw-stage.active .gs-label { color: var(--fg); }
.gs-model { font-size: 10px; color: var(--fg-muted); font-weight: 600; white-space: nowrap; }
.gs-kling { color: var(--rose) !important; }
.gs-genspark { color: var(--genspark) !important; }
.spin { display: inline-block; animation: spin 1.2s linear infinite; }

.gw-footer { padding: 10px 16px 14px; border-top: 1px solid var(--border); }
.gw-progress-bar { height: 2px; background: rgba(255,255,255,0.06); border-radius: 1px; overflow: hidden; margin-bottom: 8px; }
.gw-fill { height: 100%; background: var(--rose); border-radius: 1px; animation: fill-loop 6s ease-in-out infinite; }
.gw-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--fg-muted); }
.gw-mode { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--rose); }
.mode-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }

/* Float cards */
.fc {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(2,2,2,0.92); border: 1px solid var(--border-hi);
  padding: 10px 14px; border-radius: var(--r-sm);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.fc-tl { top: 56px; left: -36px; animation: float-slow 5.5s ease-in-out infinite; }
.fc-br { bottom: 44px; right: -28px; animation: float-slow 5s ease-in-out infinite 1.5s; }
.fc-icon-wrap {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  display: flex; align-items: center; justify-content: center; color: var(--rose); flex-shrink: 0;
}
.fc-icon-wrap svg { width: 13px; height: 13px; }
.fc-label { font-size: 9.5px; color: var(--fg-muted); font-weight: 500; }
.fc-val { font-size: 12px; color: var(--fg); font-weight: 600; white-space: nowrap; }
[data-theme="light"] .fc { background: rgba(253,248,245,0.95); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
  font-size: 9.5px; color: var(--fg-muted); letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 36px; background: linear-gradient(to bottom, var(--fg-muted), transparent);
  animation: scroll-fade 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════════════════ */
.ticker-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); overflow: hidden; padding: 13px 0; }
.ticker-inner { display: flex; white-space: nowrap; animation: ticker 36s linear infinite; }
.ticker-inner span { font-size: 12px; font-weight: 500; color: var(--fg-muted); padding: 0 20px; }
.ticker-inner b { color: var(--rose); opacity: 0.5; font-weight: 400; padding: 0 4px; }

/* ══════════════════════════════════════════════════════════════
   SECTIONS (shared)
══════════════════════════════════════════════════════════════ */
.section { padding: 110px 0; }

/* ══ POSITIONING ══ */
.positioning { background: var(--bg2); }

.pos-grid {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.pos-old, .pos-new {
  flex: 1; max-width: 420px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px; background: var(--bg3);
}
.pos-new { border-color: var(--rose-border); background: rgba(240,144,144,0.04); }

.pos-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.old-tag { color: var(--fg-muted); background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
.new-tag { color: var(--rose); background: var(--rose-dim); border: 1px solid var(--rose-border); }

.pos-old h3, .pos-new h3 {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: var(--fg); margin-bottom: 18px; line-height: 1.2;
}
.pos-old h3 { color: var(--fg-muted); }

.pos-old ul, .pos-new ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pos-old li, .pos-new li { font-size: 14px; color: var(--fg-dim); padding-left: 18px; position: relative; }
.pos-old li::before { content: '✗'; position: absolute; left: 0; color: var(--fg-muted); font-size: 11px; }
.pos-new li::before { content: '✓'; position: absolute; left: 0; color: var(--rose); font-size: 11px; }

.pos-arrow {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 32px; gap: 6px; flex-shrink: 0;
}
.pa-line { width: 1px; flex: 1; min-height: 80px; background: linear-gradient(to bottom, transparent, var(--rose-border), transparent); }
.pa-head { font-size: 24px; color: var(--rose); line-height: 1; }

/* ══ MODEL STACK ══ */
.stack-sec { background: var(--bg); }

.stack-table {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 28px;
}
.st-head {
  display: grid; grid-template-columns: 1.4fr 1.4fr 2fr 1fr;
  gap: 0; padding: 12px 20px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.st-row {
  display: grid; grid-template-columns: 1.4fr 1.4fr 2fr 1fr;
  gap: 0; padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center; transition: background .2s;
}
.st-row:last-child { border-bottom: none; }
.st-row:hover { background: rgba(255,255,255,0.02); }
.st-row-highlight { background: rgba(240,144,144,0.05); border-left: 2px solid var(--rose); }
.st-row-highlight:hover { background: rgba(240,144,144,0.08); }
.st-row-genspark { background: rgba(144,200,240,0.04); border-left: 2px solid var(--genspark); }
.st-row-genspark:hover { background: rgba(144,200,240,0.07); }

.st-stage {
  font-size: 13px; font-weight: 500; color: var(--fg);
  display: flex; flex-direction: column; gap: 4px;
}
.st-primary-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rose); background: var(--rose-dim); border: 1px solid var(--rose-border);
  padding: 2px 8px; border-radius: 100px; display: inline-block; margin-bottom: 2px;
}
.st-primary-badge.genspark-badge { color: var(--genspark); background: var(--genspark-dim); border-color: var(--genspark-bdr); }

.st-model {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--fg);
}
.st-kling { color: var(--rose) !important; }
.st-genspark { color: var(--genspark) !important; }
.st-model svg { width: 12px; height: 12px; flex-shrink: 0; }

.st-desc { font-size: 12.5px; color: var(--fg-dim); line-height: 1.55; padding-right: 16px; }
.st-mode {
  font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  white-space: nowrap; display: inline-block;
}
.st-mode.all     { color: var(--fg-dim); background: rgba(255,255,255,0.06); }
.st-mode.cinema  { color: var(--rose); background: var(--rose-dim); }
.st-mode.explore { color: var(--genspark); background: var(--genspark-dim); }

/* Router card */
.router-card {
  background: var(--bg3); border: 1px solid var(--border-hi);
  border-radius: var(--r-lg); padding: 28px 32px;
}
.rc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.rc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  display: flex; align-items: center; justify-content: center; color: var(--rose); flex-shrink: 0;
}
.rc-icon svg { width: 20px; height: 20px; }
.rc-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rose); margin-bottom: 3px; }
.rc-header h3 { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--fg); }

.rc-modes { display: flex; align-items: center; gap: 12px; }
.rc-mode { flex: 1; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg2); }
.rc-mode.cinema { border-color: var(--rose-border); background: rgba(240,144,144,0.05); }
.rc-mode.explore { border-color: var(--genspark-bdr); background: var(--genspark-dim); }
.rcm-header { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.rcm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted); }
.rc-mode.cinema .rcm-dot  { background: var(--rose); }
.rc-mode.explore .rcm-dot { background: var(--genspark); }
.rcm-name { font-size: 12px; font-weight: 700; color: var(--fg-dim); }
.rc-mode.cinema .rcm-name  { color: var(--rose); }
.rc-mode.explore .rcm-name { color: var(--genspark); }
.rcm-model { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.rcm-desc { font-size: 12px; color: var(--fg-muted); line-height: 1.55; }
.rc-arrow { font-size: 18px; color: var(--fg-muted); opacity: 0.4; flex-shrink: 0; }

/* ══ PIPELINE ══ */
.pipeline-sec { background: var(--bg2); }

.pipeline-flow { display: flex; flex-direction: column; gap: 0; }

.pf-item { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--border); align-items: start; }
.pf-item:last-child { border-bottom: none; }

.pf-connector { height: 0; }

.pf-num {
  font-family: var(--font-head); font-size: 44px; font-weight: 900;
  color: rgba(240,144,144,0.1); line-height: 1; padding-top: 8px;
  transition: color .3s;
}
.pf-item:hover .pf-num { color: rgba(240,144,144,0.25); }
.kling-num   { color: rgba(240,144,144,0.2) !important; }
.genspark-num { color: rgba(144,200,240,0.2) !important; }

.pf-card { display: flex; flex-direction: column; gap: 12px; }
.pf-card-kling   { background: rgba(240,144,144,0.04); border: 1px solid rgba(240,144,144,0.15); border-radius: var(--r); padding: 20px; margin: -8px 0; }
.pf-card-genspark { background: rgba(144,200,240,0.04); border: 1px solid rgba(144,200,240,0.15); border-radius: var(--r); padding: 20px; margin: -8px 0; }

.pf-kling-badge, .pf-genspark-badge {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 10px; border-radius: 100px;
}
.pf-kling-badge   { color: var(--rose); background: var(--rose-dim); border: 1px solid var(--rose-border); }
.pf-genspark-badge { color: var(--genspark); background: var(--genspark-dim); border: 1px solid var(--genspark-bdr); }

.pf-top { display: flex; align-items: flex-start; gap: 14px; }
.pf-icon-box {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--rose);
}
.kling-icon   { background: var(--rose-dim) !important; border-color: var(--rose-border) !important; }
.genspark-icon { background: var(--genspark-dim) !important; border-color: var(--genspark-bdr) !important; color: var(--genspark) !important; }
.pf-icon-box svg { width: 18px; height: 18px; }

.pf-stage-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.11em; color: var(--fg-muted); margin-bottom: 4px; }
.kling-label    { color: var(--rose) !important; }
.genspark-label  { color: var(--genspark) !important; }

.pf-card h3 { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--fg); }
.pf-card p  { font-size: 13.5px; color: var(--fg-dim); line-height: 1.73; max-width: 680px; }

.pf-inputs { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-inputs span {
  font-size: 10.5px; font-weight: 600; color: var(--rose);
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  padding: 3px 10px; border-radius: 100px;
}
.kling-inputs span   { color: var(--rose) !important; background: var(--rose-dim) !important; border-color: var(--rose-border) !important; }
.genspark-inputs span { color: var(--genspark) !important; background: var(--genspark-dim) !important; border-color: var(--genspark-bdr) !important; }

/* Code block */
.pf-code-block {
  background: #050508; border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden;
}
.pcb-header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-bottom: 1px solid var(--border);
  font-size: 10px; color: var(--fg-muted); font-weight: 600;
}
.pcb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.pf-code-block pre {
  padding: 14px 16px; font-size: 12px; line-height: 1.6;
  color: var(--fg-dim); font-family: 'Courier New', monospace; overflow-x: auto;
}
[data-theme="light"] .pf-code-block { background: #F0EAE4; }

/* ══ AGENTS ══ */
.agents-sec { background: var(--bg); }

.agents-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
/* Last two: shift to center if 5 items */
.agents-grid .agent-card:nth-child(4) { grid-column: 1; }
.agents-grid .agent-card:nth-child(5) { grid-column: 2; }

.agent-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; position: relative;
  transition: border-color .3s, transform .3s;
}
.agent-card:hover { border-color: var(--rose-border); transform: translateY(-3px); }
.agent-card.agent-genspark { border-color: var(--genspark-bdr); background: rgba(144,200,240,0.03); }
.agent-card.agent-genspark:hover { border-color: var(--genspark); }

.agent-number {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  color: var(--fg-muted); margin-bottom: 12px;
}
.agent-badge-new {
  position: absolute; top: 16px; right: 16px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--genspark); background: var(--genspark-dim); border: 1px solid var(--genspark-bdr);
  padding: 3px 9px; border-radius: 100px;
}

.agent-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  color: var(--rose); margin-bottom: 14px;
}
.agent-avatar svg { width: 20px; height: 20px; }
.av-genspark { background: var(--genspark-dim) !important; border-color: var(--genspark-bdr) !important; color: var(--genspark) !important; }

.agent-role { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rose); margin-bottom: 4px; }
.genspark-role { color: var(--genspark) !important; }
.agent-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--fg); margin-bottom: 10px; }
.agent-card > p { font-size: 13px; color: var(--fg-dim); line-height: 1.68; margin-bottom: 14px; }

.agent-io {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11px; flex-wrap: wrap;
}
.aio-in, .aio-out { display: flex; align-items: center; gap: 5px; color: var(--fg-dim); }
.aio-in span, .aio-out span {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-muted); background: rgba(255,255,255,0.06);
  padding: 2px 6px; border-radius: 4px;
}
.aio-out { color: var(--rose); }
.genspark-out { color: var(--genspark) !important; }
.aio-arrow { color: var(--fg-muted); }

/* ══ QA ══ */
.qa-sec { background: var(--bg2); }

.qa-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.qa-checks { display: flex; flex-direction: column; gap: 22px; }
.qa-check { display: flex; align-items: flex-start; gap: 16px; }
.qac-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--rose);
}
.qa-check h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 5px; }
.qa-check p { font-size: 13px; color: var(--fg-dim); line-height: 1.65; }

.qa-score-card {
  background: var(--bg3); border: 1px solid var(--border-hi);
  border-radius: var(--r-lg); padding: 24px;
}
.qsc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.qsc-title { font-size: 12px; font-weight: 600; color: var(--fg-dim); }
.qsc-pass {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #4fc3f7; background: rgba(79,195,247,0.1); border: 1px solid rgba(79,195,247,0.25);
  padding: 3px 10px; border-radius: 100px;
}
.qsc-metrics { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.qsc-metric { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 10px; }
.qscm-label { font-size: 11px; color: var(--fg-muted); font-weight: 500; }
.qscm-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.qscm-fill { height: 100%; background: var(--rose); border-radius: 2px; }
.qscm-val { font-size: 11px; font-weight: 600; color: var(--rose); text-align: right; }
.qsc-hitl { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.qsc-flag { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-muted); }
.qsc-flag-icon { color: #f0c090; }
.qsc-regen {
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  color: var(--rose); font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer;
  transition: background .2s, border-color .2s; text-align: left;
}
.qsc-regen:hover { background: rgba(240,144,144,0.15); border-color: var(--rose); }

/* ══ INDUSTRIES ══ */
.industries-sec { background: var(--bg); }

.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  transition: border-color .3s, transform .3s;
}
.ind-card:hover { border-color: var(--rose-border); transform: translateY(-3px); }
.ind-num {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  color: var(--fg-muted); margin-bottom: 10px;
}
.ind-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.ind-badge.cre     { color: var(--rose); background: var(--rose-dim); border: 1px solid var(--rose-border); }
.ind-badge.maritime { color: #4fc3f7; background: rgba(79,195,247,0.1); border: 1px solid rgba(79,195,247,0.25); }
.ind-badge.luxury  { color: #f0c090; background: rgba(240,192,144,0.1); border: 1px solid rgba(240,192,144,0.25); }
.ind-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--fg); margin-bottom: 12px; line-height: 1.2; }
.ind-card > p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.73; margin-bottom: 18px; }
.ind-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ind-list li { font-size: 13px; color: var(--fg-dim); padding-left: 16px; position: relative; }
.ind-list li::before { content: '→'; position: absolute; left: 0; color: var(--rose); font-size: 11px; }

/* ══ PLATFORM ══ */
.platform-sec { background: var(--bg2); }

.platform-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pw-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.pwf { display: flex; align-items: flex-start; gap: 14px; }
.pwf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); flex-shrink: 0; margin-top: 7px; }
.pwf h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.pwf p  { font-size: 13px; color: var(--fg-dim); line-height: 1.65; }
.pw-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pwt-item span {
  font-size: 11px; font-weight: 600; color: var(--fg-muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px; display: inline-block;
}

/* Workstation UI */
.workstation-ui {
  background: var(--bg3); border: 1px solid var(--border-hi);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.wui-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.wui-dots { display: flex; gap: 6px; }
.wui-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-hi); }
.wui-title { flex: 1; text-align: center; font-size: 11px; color: var(--fg-muted); }
.wui-version { font-size: 10px; font-weight: 600; color: var(--rose); }
.wui-body { display: flex; min-height: 380px; }
.wui-sidebar {
  width: 126px; border-right: 1px solid var(--border);
  padding: 10px 0; display: flex; flex-direction: column; gap: 2px;
}
.wsi {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer;
  font-size: 11.5px; color: var(--fg-muted);
  transition: background .2s, color .2s;
}
.wsi svg { width: 11px; height: 11px; flex-shrink: 0; }
.wsi:hover { background: rgba(255,255,255,0.04); color: var(--fg); }
.wsi.active { background: var(--rose-dim); color: var(--rose); }
.wsi.highlight { color: var(--genspark); }
.wsi-sep { height: 1px; background: var(--border); margin: 5px 10px; }
.wui-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.wui-prompt-input { display: flex; flex-direction: column; gap: 7px; }
.wpi-label { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); }
.wpi-box {
  font-size: 12px; color: var(--fg-dim); font-style: italic; line-height: 1.45;
  padding: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.wpi-actions { display: flex; gap: 6px; align-items: center; }
.wpi-mode {
  flex: 1; font-size: 11px; padding: 6px 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--fg-dim); cursor: pointer;
}
.wpi-generate {
  background: var(--rose); color: #fff; font-size: 11px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-sm); border: none; cursor: pointer;
  transition: opacity .2s;
}
.wpi-generate:hover { opacity: 0.85; }
.wui-active { flex: 1; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wua-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rose); }
.wua-stages { display: flex; flex-direction: column; gap: 4px; }
.wua-s { font-size: 11px; color: var(--fg-muted); }
.wua-s.done { color: #4fc3f7; }
.wua-s.active { color: var(--rose); font-weight: 600; }
.wua-bar { height: 2px; background: rgba(255,255,255,0.06); border-radius: 1px; overflow: hidden; }
.wua-fill { height: 100%; width: 58%; background: var(--rose); border-radius: 1px; }
.wua-credit { font-size: 10.5px; color: var(--fg-muted); }
.credit-val { color: var(--rose); font-weight: 600; }

/* ══ FINAL CTA ══ */
.cta-section {
  padding: 140px 0; background: var(--bg);
  position: relative; overflow: hidden; text-align: center;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.cta-orb.o1 { width: 600px; height: 600px; background: rgba(240,144,144,0.07); top: -200px; left: 50%; transform: translateX(-50%); }
.cta-orb.o2 { width: 300px; height: 300px; background: rgba(144,200,240,0.05); bottom: -100px; left: 30%; }
.cta-orb.o3 { width: 280px; height: 280px; background: rgba(240,144,144,0.04); bottom: -80px; right: 25%; }

.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 20px; color: var(--fg);
}
.cta-desc { font-size: 16px; color: var(--fg-dim); max-width: 480px; margin: 0 auto 40px; line-height: 1.75; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-powered { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--fg-muted); margin-bottom: 16px; }
.cp-kling { color: var(--rose); font-weight: 600; }
.cp-genspark { color: var(--genspark); font-weight: 600; }
.cp-sep { color: var(--fg-muted); }
.cta-brand { font-size: 12px; color: var(--fg-muted); font-style: italic; letter-spacing: 0.04em; }

/* ══ FOOTER ══ */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); background: var(--bg2); }
.foot-top { display: flex; gap: 80px; margin-bottom: 44px; }
.foot-brand { max-width: 240px; }
.foot-brand .logo { margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 8px; }
.foot-ver { font-size: 11px; color: var(--rose); font-weight: 600; }
.foot-nav { display: flex; gap: 44px; flex: 1; justify-content: flex-end; }
.fn-col { display: flex; flex-direction: column; gap: 10px; }
.fn-col h5 { font-size: 12px; font-weight: 600; color: var(--fg); margin-bottom: 4px; letter-spacing: 0.04em; }
.fn-col a { font-size: 13px; color: var(--fg-muted); text-decoration: none; transition: color .2s; }
.fn-col a:hover { color: var(--rose); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--fg-muted); font-style: italic;
}
.foot-legal { display: flex; gap: 20px; font-style: normal; }
.foot-legal a { color: var(--fg-muted); text-decoration: none; transition: color .2s; }
.foot-legal a:hover { color: var(--fg); }

/* ══════════════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════════════ */
@keyframes blink-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fill-loop {
  0%   { width: 0%; }
  80%  { width: 82%; }
  100% { width: 82%; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

/* ══════════════════════════════════════════════════════════════
   BENCHMARK SECTION
══════════════════════════════════════════════════════════════ */
.benchmark-sec { background: var(--bg); }
.sec-desc-center { max-width: 580px; margin: 0 auto 56px; text-align: center; color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* Frame strip */
.bm-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; margin-bottom: 64px; }
.bm-frame-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 12px; }
.bm-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bm-frame { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1.5px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.bm-frame img { width: 100%; height: 110px; object-fit: cover; display: block; }
.bm-frame:hover { border-color: var(--rose-border); transform: scale(1.02); }
.bm-frame.active { border-color: var(--rose); }
.bm-frame-badge { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 600; color: var(--rose); line-height: 1.5; }
.bm-frame-badge span { color: var(--text-subtle); font-weight: 400; margin-left: 3px; }
.bm-frame-badge.top { color: #FFD700; }

/* Analysis panel */
.bm-analysis { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; position: sticky; top: 100px; }
.bma-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.bma-shot-label { font-size: 13px; font-weight: 600; color: var(--text); }
.bma-score { display: flex; align-items: baseline; gap: 2px; }
.bmas-num { font-size: 42px; font-weight: 800; font-family: 'Playfair Display', serif; color: var(--rose); line-height: 1; }
.bmas-label { font-size: 16px; color: var(--text-muted); }

.bma-lut-row { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--bg); border-radius: 8px; margin-bottom: 20px; }
.bma-lut-swatch { width: 48px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.bma-lut-name { font-size: 12px; font-weight: 600; color: var(--text); font-family: 'Courier New', monospace; }
.bma-lut-temp { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.bma-sig-title { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 10px; }
.bma-sig-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.bma-sig { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.bma-sig.active { color: var(--text); }
.sig-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.bma-sig.active .sig-dot { background: var(--rose); }
.sig-w { margin-left: auto; font-size: 11px; color: var(--text-subtle); font-family: monospace; }

.bma-tech { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bma-tech-row { display: flex; justify-content: space-between; font-size: 12px; }
.bma-tech-row span { color: var(--text-muted); }
.bma-tech-row strong { color: var(--text); font-weight: 500; }

/* Industry application cards */
.bm-industry-apply { margin-top: 0; }
.bm-ia-title { font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 24px; text-align: center; }
.bm-ia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bm-ia-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; overflow: hidden; }
.bm-ia-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.bm-ia-card.cre::before { background: linear-gradient(90deg, var(--rose), var(--rose-muted)); }
.bm-ia-card.maritime::before { background: linear-gradient(90deg, #4A90D9, #7AB8F0); }
.bm-ia-card.luxury::before { background: linear-gradient(90deg, #C8A870, #E8C890); }
.bm-ia-num { font-size: 11px; font-family: monospace; color: var(--text-subtle); margin-bottom: 4px; }
.bm-ia-score { font-size: 22px; font-weight: 700; color: var(--rose); font-family: 'Playfair Display', serif; margin-bottom: 8px; }
.bm-ia-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.bm-ia-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.bm-ia-tag { display: inline-block; padding: 3px 10px; background: var(--bg); border-radius: 4px; font-size: 10px; font-family: monospace; color: var(--text-subtle); }

/* ══════════════════════════════════════════════════════════════
   PROMPT COMPOSER SECTION
══════════════════════════════════════════════════════════════ */
.composer-sec { background: var(--surface); border-top: 1px solid var(--border); }

.comp-industries { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center; }
.comp-ind-btn { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.comp-ind-btn svg { width: 16px; height: 16px; }
.comp-ind-btn:hover { border-color: var(--rose-border); color: var(--text); }
.comp-ind-btn.active { border-color: var(--rose); color: var(--rose); background: rgba(240,144,144,0.06); }

.comp-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.comp-preset-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 16px; cursor: pointer; transition: all 0.2s; }
.comp-preset-card:hover { border-color: var(--rose-border); }
.comp-preset-card.active { border-color: var(--rose); background: rgba(240,144,144,0.04); }
.cpc-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cpc-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.cpc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cpc-tag { padding: 2px 6px; background: var(--surface); border-radius: 3px; font-size: 9px; color: var(--text-subtle); font-family: monospace; }

.comp-output { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.comp-out-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.comp-out-label { font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-subtle); }
.comp-out-meta { font-size: 12px; color: var(--rose); font-family: monospace; }

.comp-prompt-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.cpb-shot-label { font-size: 10px; font-family: monospace; color: var(--rose); margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.cpb-prompt { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.cpb-params { display: flex; flex-wrap: wrap; gap: 6px; }
.cpm-tag { padding: 3px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; font-size: 10px; font-family: monospace; color: var(--text-muted); }

.comp-quality { display: flex; align-items: center; gap: 24px; padding: 16px; background: var(--surface); border-radius: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.cq-signals { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cq-sig { padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 600; font-family: monospace; cursor: help; }
.cq-sig.on { background: rgba(240,144,144,0.12); color: var(--rose); border: 1px solid rgba(240,144,144,0.3); }
.cq-sig.off { background: var(--bg); color: var(--text-subtle); border: 1px solid var(--border); }

.cq-score { text-align: center; min-width: 80px; }
.cqs-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-subtle); margin-bottom: 4px; }
.cqs-val { font-size: 28px; font-weight: 800; color: var(--rose); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 4px; }
.cqs-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.cqs-fill { height: 100%; background: var(--rose-gradient); border-radius: 2px; transition: width 0.4s ease; }

.comp-actions { display: flex; gap: 12px; align-items: center; }
.comp-copy { padding: 10px 20px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.comp-copy:hover { border-color: var(--rose-border); color: var(--rose); }
.comp-copy.copied { border-color: var(--rose); color: var(--rose); }

/* ══════════════════════════════════════════════════════════════
   STORYBOARD SECTION
══════════════════════════════════════════════════════════════ */
.storyboard-sec { background: var(--surface); border-top: 1px solid var(--border); }

/* Timeline strip */
.sb-timeline { position: relative; margin-bottom: 48px; }
.sb-tl-line { position: absolute; top: 22px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent); }
.sbt-scenes { display: flex; justify-content: space-between; padding: 0 10%; position: relative; }
.sbt-scene { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.sbt-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); transition: all 0.25s; z-index: 1; }
.sbt-scene.active .sbt-dot { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 4px rgba(240,144,144,0.18); }
.sbt-scene:hover .sbt-dot { border-color: var(--rose-border); }
.sbt-time { font-size: 10px; color: var(--text-subtle); font-family: monospace; }
.sbt-num { font-size: 18px; font-weight: 700; color: var(--border); font-family: 'Playfair Display', serif; }
.sbt-scene.active .sbt-num { color: var(--rose); }

/* Scene detail */
.sb-detail { margin-bottom: 48px; }
.sb-scene-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-bottom: 24px; }

/* Visual canvas */
.sb-card-vis { position: relative; background: #0C0806; min-height: 320px; overflow: hidden; }
.sb-vis-canvas { position: relative; width: 100%; height: 100%; }
.sb-vis-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.sb-vis-frame.active { opacity: 1; }

/* Scene 0: ECU portrait */
.sb-vis-frame.s0 .sbf-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 50%, #2A1208 0%, #0C0806 70%); }
.sb-vis-frame.s0 .sbf-char.ecu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sbf-face { width: 120px; height: 140px; background: radial-gradient(ellipse at 45% 45%, #E8C4A0 0%, #C8905A 60%, #8B5A20 100%); border-radius: 50% 50% 45% 45%; position: relative; box-shadow: 8px 0 30px rgba(255,180,80,0.3), -8px 0 20px rgba(80,120,200,0.15); }
.sbf-eye { position: absolute; width: 18px; height: 12px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #A0C8F0 0%, #4878A8 50%, #1A1A2A 100%); top: 42%; box-shadow: 0 0 8px rgba(160,200,240,0.6); }
.sbf-eye.l { left: 20%; }
.sbf-eye.r { right: 20%; }
.sbf-glow-rim { position: absolute; right: -6px; top: -10px; bottom: -10px; width: 6px; background: radial-gradient(ellipse at center, rgba(255,200,80,0.8) 0%, transparent 80%); border-radius: 50%; }

/* Scene 1: Drawing strokes */
.sb-vis-frame.s1 .sbf-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, #1E0E06 0%, #0C0806 80%); }
.sbf-char.ms { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sbf-arm { position: relative; width: 180px; height: 120px; }
.sbf-stroke-trail { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,220,0.9), rgba(255,220,120,0.5)); border-radius: 2px; animation: stroke-glow 2s ease-in-out infinite; }
.sbf-stroke-trail { width: 100px; top: 30%; left: 40%; transform: rotate(-20deg); }
.sbf-stroke-trail.d2 { width: 70px; top: 50%; left: 50%; transform: rotate(10deg); animation-delay: 0.4s; }
.sbf-stroke-trail.d3 { width: 55px; top: 40%; left: 60%; transform: rotate(-5deg); animation-delay: 0.8s; }
@keyframes stroke-glow { 0%,100%{opacity:0.4; filter:blur(1px)} 50%{opacity:1; filter:blur(0)} }

/* Scene 2: Sketch refine */
.sb-vis-frame.s2 .sbf-bg { position: absolute; inset: 0; background: #0C0806; }
.sbf-sketch-grid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.sbf-sketch-line { height: 2px; border-radius: 2px; }
.sbf-sketch-line.rough { background: rgba(200,176,144,0.5); filter: blur(0.5px); }
.sbf-sketch-line.sharp { background: rgba(255,255,255,0.9); box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.sbf-sketch-line.l1 { width: 140px; }
.sbf-sketch-line.l2 { width: 100px; transform: rotate(2deg); }
.sbf-sketch-line.l3 { width: 160px; }
.sbf-sketch-line.l4 { width: 80px; transform: rotate(-1deg); }
.sbf-line-glow { position: absolute; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Scene 3: Triptych */
.sb-vis-frame.s3 .sbf-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, #2A1808 0%, #0C0806 70%); }
.sbf-triptych { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px 24px; }
.sbf-panel { flex: 1; max-width: 100px; height: 130px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px; position: relative; overflow: hidden; transition: transform 0.3s; }
.sbf-panel.p1 { background: linear-gradient(180deg, rgba(200,176,144,0.1) 0%, rgba(100,60,20,0.3) 100%); }
.sbf-panel.p2.hero { background: linear-gradient(180deg, rgba(232,208,176,0.15) 0%, rgba(180,120,50,0.4) 100%); transform: scale(1.05); border-color: rgba(255,200,120,0.4); }
.sbf-panel.p3 { background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(200,160,80,0.3) 100%); }
.sbfp-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(255,220,150,0.3) 0%, transparent 60%); }
.sbf-panel span { font-size: 9px; color: rgba(255,255,255,0.5); font-family: monospace; text-transform: uppercase; letter-spacing: 0.06em; position: relative; z-index: 1; }
.sbf-godray { position: absolute; width: 40px; background: linear-gradient(180deg, rgba(255,210,120,0.25) 0%, transparent 100%); transform-origin: top center; }
.sbf-godray.gr1 { top: 0; left: 25%; height: 200px; transform: rotate(15deg); }
.sbf-godray.gr2 { top: 0; left: 55%; height: 160px; transform: rotate(8deg); opacity: 0.6; }

/* Scene 4: Hero pull-back */
.sb-vis-frame.s4 .sbf-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, #1E0E06 0%, #08060A 80%); }
.sbf-hero-layout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px; }
.sbf-char-sm { width: 40px; height: 80px; background: radial-gradient(ellipse at 45% 30%, #C89060 0%, #7A4A18 100%); border-radius: 40% 40% 35% 35%; opacity: 0.7; }
.sbf-art-panel.float { width: 80px; height: 110px; border-radius: 8px; border: 1px solid rgba(255,220,150,0.3); position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(200,150,60,0.2) 100%); animation: float-slow 3s ease-in-out infinite; }
.sbfp-glow.bright { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255,230,160,0.5) 0%, transparent 70%); border-radius: 8px; }
.sbf-ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,160,60,0.8); animation: ember-fall 2.5s ease-in infinite; }
.sbf-ember.e1 { left: 55%; animation-delay: 0s; }
.sbf-ember.e2 { left: 65%; animation-delay: 0.8s; }
.sbf-ember.e3 { left: 48%; animation-delay: 1.4s; }
.sbf-godray.dim { opacity: 0.4; }
@keyframes ember-fall { 0%{top:30%; opacity:1} 100%{top:85%; opacity:0} }

/* Common frame label */
.sbf-label { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 9px; font-family: monospace; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; white-space: nowrap; }

/* Camera badge */
.sb-camera-badge { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 5px 10px; font-size: 10px; color: rgba(255,255,255,0.7); }
.sb-camera-badge svg { width: 12px; height: 12px; opacity: 0.6; }

/* Card info panel */
.sb-card-info { padding: 32px 32px 32px 8px; display: flex; flex-direction: column; gap: 20px; }
.sb-scene-badge { font-size: 10px; font-family: monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }
.sb-scene-title { font-size: 22px; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--text); line-height: 1.2; }
.sb-scene-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.sb-meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-meta-item { background: var(--surface); border-radius: 8px; padding: 12px; }
.smi-label { font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 4px; }
.smi-val { font-size: 12px; font-weight: 600; color: var(--text); font-family: monospace; }
.smi-val.score { color: var(--rose); }
.sb-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-sig { padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 600; font-family: monospace; }
.sb-sig.on { background: rgba(240,144,144,0.12); color: var(--rose); border: 1px solid rgba(240,144,144,0.3); }
.sb-sig.off { background: var(--bg); color: var(--text-subtle); border: 1px solid var(--border); }
.sb-prompt-block { background: var(--surface); border-radius: 8px; padding: 14px; }
.sb-prompt-label { font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 8px; }
.sb-prompt-text { font-size: 11px; font-style: italic; color: var(--text-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Navigation */
.sb-nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.sb-nav-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.sb-nav-btn svg { width: 14px; height: 14px; }
.sb-nav-btn:hover:not(:disabled) { border-color: var(--rose-border); color: var(--text); }
.sb-nav-btn:disabled { opacity: 0.35; cursor: default; }
.sb-progress-dots { display: flex; gap: 6px; }
.sb-pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: all 0.2s; }
.sb-pdot.active { background: var(--rose); transform: scale(1.3); }

/* Summary bar */
.sb-summary { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px 32px; flex-wrap: wrap; }
.sb-sum-item { text-align: center; padding: 0 28px; }
.sbsi-num { font-size: 28px; font-weight: 800; color: var(--rose); font-family: 'Playfair Display', serif; line-height: 1; }
.sbsi-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.sb-sum-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   SCALABILITY SECTION
══════════════════════════════════════════════════════════════ */
.scale-sec { background: var(--bg); border-top: 1px solid var(--border); }

/* Architecture diagram */
.sc-arch { display: flex; flex-direction: column; gap: 0; margin-bottom: 64px; }
.sc-layer { padding: 0 0 0; }
.sc-layer-label { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-subtle); text-align: center; margin-bottom: 12px; }
.sc-nodes { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.sc-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); min-width: 140px; max-width: 200px; text-align: center; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.sc-node:hover { border-color: var(--rose-border); transform: translateY(-2px); }
.sc-node.hero { border-color: var(--rose-border); }
.sc-node.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rose-gradient); }
.scn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.scn-icon svg { width: 20px; height: 20px; }
.sc-node.gateway .scn-icon, .sc-node.orchestrator .scn-icon { color: var(--rose); }
.sc-node.cdn .scn-icon { color: #4A90D9; }
.sc-node.kafka .scn-icon { color: #F0A020; }
.sc-node.redis .scn-icon { color: #E04040; }
.sc-node.storage .scn-icon { color: #60A860; }
.sc-node.ai .scn-icon { color: #A080F0; }
.scn-label { font-size: 13px; font-weight: 600; color: var(--text); }
.scn-sub { font-size: 10px; color: var(--text-muted); line-height: 1.4; }
.scn-badge { font-size: 9px; font-family: monospace; padding: 3px 8px; background: var(--bg); border-radius: 4px; color: var(--text-subtle); margin-top: 2px; }

.sc-arrow-row { display: flex; justify-content: center; padding: 6px 0; }
.sc-arr { width: 1px; height: 24px; background: linear-gradient(180deg, var(--border), var(--rose-border)); position: relative; }
.sc-arr::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--rose-border); border-bottom: none; }

/* Metrics row */
.sc-metrics { display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 40px; margin-bottom: 48px; flex-wrap: wrap; gap: 0; }
.sc-met { text-align: center; padding: 0 32px; }
.sc-met-val { font-size: 36px; font-weight: 800; color: var(--rose); font-family: 'Playfair Display', serif; line-height: 1; }
.sc-met-val span { font-size: 18px; }
.sc-met-label { font-size: 13px; font-weight: 600; color: var(--text); margin: 6px 0 2px; }
.sc-met-sub { font-size: 10px; color: var(--text-muted); }
.sc-met-sep { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* Feature cards */
.sc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sc-feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.sc-feat-card:hover { border-color: var(--rose-border); transform: translateY(-2px); }
.scfc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.scfc-icon svg { width: 20px; height: 20px; }
.scfc-icon.blue { background: rgba(74,144,217,0.12); color: #4A90D9; }
.scfc-icon.amber { background: rgba(240,160,32,0.12); color: #F0A020; }
.scfc-icon.rose { background: rgba(240,144,144,0.12); color: var(--rose); }
.scfc-icon.green { background: rgba(96,168,96,0.12); color: #60A860; }
.scfc-icon.purple { background: rgba(160,128,240,0.12); color: #A080F0; }
.scfc-icon.teal { background: rgba(80,192,192,0.12); color: #50C0C0; }
.sc-feat-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.sc-feat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.scfc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.scfc-tags span { padding: 2px 8px; background: var(--bg); border-radius: 4px; font-size: 9px; font-family: monospace; color: var(--text-subtle); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 120px 28px 80px; text-align: center; }
  .hero-desc { margin: 0 auto 34px; }
  .hero-cta-row { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { max-width: 540px; margin: 0 auto; }
  .fc-tl { left: -10px; } .fc-br { right: -10px; }
  .pos-grid { flex-direction: column; gap: 16px; align-items: stretch; }
  .pos-arrow { flex-direction: row; padding: 0; justify-content: center; }
  .pa-line { width: 60px; height: 1px; min-height: 0; background: linear-gradient(to right, transparent, var(--rose-border), transparent); }
  .pa-head { transform: rotate(0); }
  .st-head, .st-row { grid-template-columns: 1.2fr 1.2fr 2fr; }
  .st-head span:last-child, .st-row .st-mode { display: none; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .agents-grid .agent-card:nth-child(4), .agents-grid .agent-card:nth-child(5) { grid-column: auto; }
  .qa-inner { grid-template-columns: 1fr; gap: 48px; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .platform-wrap { grid-template-columns: 1fr; gap: 48px; }
  .rc-modes { flex-direction: column; }
  .rc-arrow { transform: rotate(90deg); padding: 4px 0; }
  .foot-top { flex-direction: column; gap: 36px; }
  .foot-nav { justify-content: flex-start; flex-wrap: wrap; gap: 32px; }
  .bm-layout { grid-template-columns: 1fr; }
  .bm-analysis { position: static; }
  .bm-ia-grid { grid-template-columns: 1fr 1fr; }
  .comp-presets { grid-template-columns: 1fr 1fr; }
  .sb-scene-card { grid-template-columns: 1fr; }
  .sb-card-vis { min-height: 260px; }
  .sb-card-info { padding: 24px; }
  .sc-features { grid-template-columns: 1fr 1fr; }
  .sc-metrics { gap: 16px; }
  .sc-met { padding: 0 16px; }
  .sc-met-val { font-size: 28px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 52px; }
  .stack-table { overflow-x: auto; }
  .st-head, .st-row { grid-template-columns: 1fr 1fr; min-width: 500px; }
  .st-head span:nth-child(3), .st-row .st-desc { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .agents-grid .agent-card:nth-child(4), .agents-grid .agent-card:nth-child(5) { grid-column: 1; }
  .ind-grid { grid-template-columns: 1fr; }
  .pf-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .bm-strip { grid-template-columns: repeat(3, 1fr); }
  .bm-frame img { height: 80px; }
  .bm-ia-grid { grid-template-columns: 1fr; }
  .comp-presets { grid-template-columns: 1fr; }
  .comp-quality { flex-direction: column; align-items: flex-start; }
  .comp-actions { flex-direction: column; }
  .sb-meta-row { grid-template-columns: 1fr; }
  .sbt-scenes { padding: 0 5%; }
  .sb-tl-line { left: 5%; right: 5%; }
  .sc-features { grid-template-columns: 1fr; }
  .sc-nodes { flex-direction: column; align-items: center; }
  .sc-node { min-width: 200px; }
  .sc-met-sep { width: 80%; height: 1px; }
  .sc-metrics { flex-direction: column; }
  .sb-summary { flex-direction: row; gap: 16px; }
  .sb-sum-sep { display: none; }
}


/* ════════════════════════════════════════════════════════════
   AGENTIC AI SECTION — v1.3.0
   ════════════════════════════════════════════════════════════ */

.agentic-sec { background: var(--bg); padding: 100px 0 120px; position: relative; overflow: hidden; }
.agentic-sec::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(var(--rose-rgb, 196,58,74), 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Autonomy Level Bar */
.ag-level-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 36px;
  margin: 48px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ag-level-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; }
.ag-levels { display: flex; gap: 8px; }
.ag-lvl {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.25s;
}
.ag-lvl-active {
  background: var(--rose-gradient);
  border-color: var(--rose-border);
  box-shadow: 0 0 24px rgba(196,58,74, 0.25);
}
.ag-lvl-num { display: block; font-size: 20px; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--text); }
.ag-lvl-name { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.ag-lvl-active .ag-lvl-num, .ag-lvl-active .ag-lvl-name { color: #fff; }
.ag-level-note { font-size: 13px; color: var(--text-muted); }

/* Perceive → Reason → Act → Learn Loop Diagram */
.ag-loop-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 64px;
  position: relative;
}
.ag-loop-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ag-loop-card:hover {
  border-color: var(--rose-border);
  box-shadow: 0 8px 40px rgba(196,58,74, 0.12);
}
.ag-loop-card[data-phase="perceive"] { border-top: 3px solid #4a9eff; }
.ag-loop-card[data-phase="reason"]   { border-top: 3px solid #f5a623; }
.ag-loop-card[data-phase="act"]      { border-top: 3px solid #c43a4a; }
.ag-loop-card[data-phase="learn"]    { border-top: 3px solid #7b4fff; }

.ag-loop-icon { width: 48px; height: 48px; color: var(--text-muted); }
.ag-loop-card[data-phase="perceive"] .ag-loop-icon { color: #4a9eff; }
.ag-loop-card[data-phase="reason"]   .ag-loop-icon { color: #f5a623; }
.ag-loop-card[data-phase="act"]      .ag-loop-icon { color: #c43a4a; }
.ag-loop-card[data-phase="learn"]    .ag-loop-icon { color: #7b4fff; }

.ag-loop-phase { font-size: 16px; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--text); }
.ag-loop-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.ag-loop-signals { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; }
.ag-loop-signals li { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.ag-sig-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ag-sig-dot.green  { background: #4caf7d; }
.ag-sig-dot.amber  { background: #f5a623; }
.ag-sig-dot.blue   { background: #4a9eff; }
.ag-sig-dot.rose   { background: #c43a4a; }
.ag-sig-dot.purple { background: #7b4fff; }

.ag-loop-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 24px;
  padding: 0 12px;
  flex-shrink: 0;
}

/* Live Adaptation Feed */
.ag-live-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}
.ag-live-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-wrap: wrap;
}
.ag-live-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.ag-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4caf7d;
  box-shadow: 0 0 8px rgba(76,175,125,0.6);
  animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.ag-live-meta { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.ag-live-health { font-size: 13px; color: var(--text-muted); }
.ag-health-score { font-weight: 700; color: #4caf7d; }

.ag-live-feed {
  display: flex;
  flex-direction: column;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ag-feed-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12.5px;
  transition: background 0.2s;
}
.ag-feed-item:hover { background: rgba(255,255,255,0.02); }
.ag-feed-time { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 46px; }
.ag-feed-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ag-feed-badge.success { background: rgba(76,175,125,0.15); color: #4caf7d; }
.ag-feed-badge.info    { background: rgba(74,158,255,0.15); color: #4a9eff; }
.ag-feed-badge.nominal { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.ag-feed-badge.warn    { background: rgba(245,166,35,0.15);  color: #f5a623; }
.ag-feed-badge.act     { background: rgba(196,58,74,0.15);   color: #c43a4a; }
.ag-feed-badge.learn   { background: rgba(123,79,255,0.15);  color: #7b4fff; }
.ag-feed-text { color: var(--text-muted); line-height: 1.5; }

.ag-feed-success { border-left: 2px solid #4caf7d; }
.ag-feed-info    { border-left: 2px solid #4a9eff; }
.ag-feed-nominal { border-left: 2px solid transparent; }
.ag-feed-warn    { border-left: 2px solid #f5a623; }
.ag-feed-act     { border-left: 2px solid #c43a4a; }

/* Adaptation Strategy Cards */
.ag-strategies-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.ag-strategies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.ag-strategy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, transform 0.25s;
}
.ag-strategy-card:hover { border-color: var(--rose-border); transform: translateY(-3px); }
.ag-str-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ag-str-icon svg { width: 18px; height: 18px; }
.ag-str-icon.qa      { background: rgba(76,175,125,0.12); color: #4caf7d; }
.ag-str-icon.scale   { background: rgba(74,158,255,0.12); color: #4a9eff; }
.ag-str-icon.cdn     { background: rgba(245,166,35,0.12); color: #f5a623; }
.ag-str-icon.api     { background: rgba(196,58,74,0.12);  color: #c43a4a; }
.ag-str-icon.cost    { background: rgba(123,79,255,0.12); color: #7b4fff; }
.ag-str-icon.flicker { background: rgba(255,200,80,0.12); color: #ffcc50; }
.ag-str-label   { font-size: 14px; font-weight: 600; color: var(--text); }
.ag-str-trigger { font-size: 11px; color: var(--rose); background: rgba(196,58,74,0.1); border-radius: 4px; padding: 3px 8px; width: fit-content; }
.ag-str-action  { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.ag-str-improvement { font-size: 12px; font-weight: 600; color: #4caf7d; }

/* Comparison Grid */
.ag-compare {
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.ag-compare-title { font-size: 16px; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--text); margin-bottom: 28px; text-align: center; }
.ag-compare-grid { display: flex; align-items: stretch; gap: 0; }
.ag-compare-col {
  flex: 1;
  padding: 28px;
  border-radius: 12px;
}
.ag-compare-col.old { background: rgba(255,255,255,0.02); border: 1px solid var(--border); }
.ag-compare-col.new { background: var(--rose-gradient); border: 1px solid var(--rose-border); }
.ag-compare-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.ag-compare-col.old .ag-compare-label { color: var(--text-muted); }
.ag-compare-col.new .ag-compare-label { color: rgba(255,255,255,0.7); }
.ag-compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-compare-col.old li { font-size: 13px; color: var(--text-muted); padding-left: 18px; position: relative; }
.ag-compare-col.old li::before { content: '✗'; position: absolute; left: 0; color: rgba(196,58,74,0.5); }
.ag-compare-col.new li { font-size: 13px; color: rgba(255,255,255,0.85); padding-left: 18px; position: relative; }
.ag-compare-col.new li::before { content: '✓'; position: absolute; left: 0; color: #4caf7d; }
.ag-compare-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text-muted); padding: 0 24px; flex-shrink: 0;
}

/* Protocol Bar */
.ag-protocol-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ag-proto-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); flex-shrink: 0; }
.ag-proto-items { display: flex; gap: 16px; flex-wrap: wrap; }
.ag-proto-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.ag-proto-item.active { color: var(--text); }
.ag-proto-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.ag-proto-item.active .ag-proto-dot { background: #4caf7d; box-shadow: 0 0 6px rgba(76,175,125,0.5); }
.ag-proto-item.planned .ag-proto-dot { background: #f5a623; opacity: 0.6; }

/* Responsive overrides for agentic section */
@media (max-width: 1024px) {
  .ag-strategies-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-loop-diagram { flex-direction: column; }
  .ag-loop-arrow { transform: rotate(90deg); padding: 4px 0; }
}
@media (max-width: 768px) {
  .ag-strategies-grid { grid-template-columns: 1fr; }
  .ag-compare-grid { flex-direction: column; }
  .ag-compare-arrow { transform: rotate(90deg); padding: 8px 0; align-self: center; }
  .ag-levels { flex-wrap: wrap; }
  .ag-lvl { min-width: 60px; }
  .ag-protocol-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}
