/* =========================================================
   HELMDECK LANDING v2 — Style System
   Themes: dark (default) · warm · light
   ========================================================= */

@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ============ THEME TOKENS ============ */
:root,
[data-theme="dark"] {
  --bg-0:        #08080b;
  --bg-1:        #0c0c10;
  --bg-2:        #131318;
  --bg-3:        #1a1a1f;
  --surface:     rgba(18,18,23,0.92);
  --surface-2:   rgba(28,28,36,0.82);
  --line-soft:   rgba(255,255,255,0.07);
  --line-mid:    rgba(255,255,255,0.11);
  --line-strong: rgba(255,255,255,0.18);

  --text-strong: rgba(238,239,245,1);
  --text-body:   rgba(223,225,234,0.90);
  --text-muted:  rgba(226,228,240,0.52);
  --text-faint:  rgba(226,228,240,0.30);

  --halo-tint:   rgba(139,92,246,0.40);
  --mesh-1:      rgba(139,92,246,0.06);
  --mesh-2:      rgba(124,58,237,0.05);
  --mesh-3:      rgba(168,85,247,0.05);
  --grain-op:    0.04;
}

[data-theme="warm"] {
  --bg-0:        #f7f2e6;
  --bg-1:        #f2ecdc;
  --bg-2:        #ebe3cc;
  --bg-3:        #ddd2b6;
  --surface:     rgba(252,248,238,0.94);
  --surface-2:   rgba(246,240,226,0.85);
  --line-soft:   rgba(70,55,30,0.07);
  --line-mid:    rgba(70,55,30,0.13);
  --line-strong: rgba(70,55,30,0.20);

  --text-strong: #2b2419;
  --text-body:   rgba(40,33,22,0.84);
  --text-muted:  rgba(40,33,22,0.56);
  --text-faint:  rgba(40,33,22,0.34);

  --halo-tint:   rgba(217,119,87,0.40);
  --mesh-1:      rgba(217,119,87,0.05);
  --mesh-2:      rgba(245,179,71,0.05);
  --mesh-3:      rgba(167,139,250,0.03);
  --grain-op:    0.035;
}

[data-theme="light"] {
  --bg-0:        #fafaf7;
  --bg-1:        #f4f3ee;
  --bg-2:        #ecebe4;
  --bg-3:        #ddddd2;
  --surface:     rgba(255,255,253,0.94);
  --surface-2:   rgba(248,247,242,0.85);
  --line-soft:   rgba(20,18,14,0.07);
  --line-mid:    rgba(20,18,14,0.13);
  --line-strong: rgba(20,18,14,0.20);

  --text-strong: #14110d;
  --text-body:   rgba(20,18,14,0.84);
  --text-muted:  rgba(20,18,14,0.56);
  --text-faint:  rgba(20,18,14,0.34);

  --halo-tint:   rgba(91,141,239,0.5);
  --mesh-1:      rgba(91,141,239,0.07);
  --mesh-2:      rgba(217,119,87,0.05);
  --mesh-3:      rgba(167,139,250,0.05);
  --grain-op:    0.025;
}

:root {
  /* Universal accents — primary is the app violet */
  --c-orange:   #8b5cf6;   /* (name kept for compatibility; value is app violet) */
  --vio-1:      #7c3aed;
  --vio-2:      #a855f7;
  --grad-violet: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --c-amber:    #f5b347;
  --c-blue:     #5b8def;
  --c-action:   #3b82f6;
  --c-violet:   #a78bfa;
  --c-green:    #34d572;
  --c-mention:  #6dd99a;

  /* Tool colors */
  --t-claude:   #d97757;
  --t-gemini:   #5b8def;
  --t-codex:    #a78bfa;
  --t-qwen:     #6dd99a;

  /* Radii / shadow */
  --r-window:   14px;
  --r-card:     10px;
  --r-pill:     999px;
  --r-button:   8px;

  --shadow-window:
    0 30px 90px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-card:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 12px 36px rgba(0,0,0,0.35);
}

[data-theme="light"] {
  --shadow-window:
    0 30px 80px rgba(60,50,30,0.16),
    0 0 0 1px rgba(20,18,14,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  --shadow-card:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 14px 30px rgba(60,50,30,0.10);
}

[data-theme="warm"] {
  --shadow-window:
    0 30px 80px rgba(110,75,30,0.14),
    0 0 0 1px rgba(70,55,30,0.06),
    inset 0 1px 0 rgba(255,250,238,0.7);
  --shadow-card:
    0 1px 0 rgba(255,250,238,0.6) inset,
    0 14px 30px rgba(110,75,30,0.10);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-body);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 400ms ease, color 400ms ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; color: var(--text-strong); }
b { font-weight: 700; color: var(--text-strong); }

/* ============ BACKGROUNDS ============ */
.bg-mesh { display: none; }

.bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.section { padding: 130px 0; position: relative; z-index: 1; }

/* ============ NAV ============ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-0) 80%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 30px;
  display: flex; align-items: center; gap: 32px;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

/* Primary section links (left, next to the brand) */
.nav-sections { display: flex; gap: 26px; list-style: none; }
.nav-sections a {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav-sections a:hover { color: var(--text-strong); }

/* Utility cluster sits at the far right, apart from the sections */
.topnav .nav-right { margin-left: auto; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  color: var(--text-strong);
}
.brand .brand-icon {
  width: 24px; height: auto;
  display: block;
  flex-shrink: 0;
  color: var(--text-strong);
}

/* Right cluster: utility icons (lang/theme) + Docs + Download */
.nav-right { display: flex; align-items: center; gap: 9px; }

.nav-docs {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  padding: 8px 13px; border-radius: var(--r-button);
  transition: color 180ms ease, background 180ms ease;
}
.nav-docs:hover { color: var(--text-strong); background: var(--surface-2); }

/* Utility icon triggers with dropdown popovers */
.nav-util { position: relative; }
.util-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-1); border: 1px solid var(--line-soft);
  color: var(--text-muted);
  height: 34px; padding: 0 11px;
  border-radius: var(--r-button);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.util-btn.icon-only { padding: 0; width: 34px; justify-content: center; }
.util-btn:hover { color: var(--text-strong); border-color: var(--line-mid); }
.nav-util.open .util-btn {
  color: var(--text-strong);
  border-color: var(--vio-line);
  background: var(--surface-2);
}
.util-caret { opacity: 0.55; transition: transform 180ms ease; }
.nav-util.open .util-caret { transform: rotate(180deg); }

.util-pop {
  position: absolute; top: calc(100% + 10px); right: 0;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 152px; padding: 6px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--line-mid);
  border-radius: 12px;
  box-shadow: 0 22px 54px -22px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}
.nav-util.open .util-pop { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.util-pop button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  transition: color 160ms ease, background 160ms ease;
}
.util-pop button svg { flex-shrink: 0; opacity: 0.85; }
.util-pop button:hover { color: var(--text-strong); background: var(--surface-2); }
.util-pop button.active { color: #fff; background: var(--grad-violet); }
.util-pop button.active svg { opacity: 1; }

.nav-cta {
  background: var(--c-action);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-button);
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 180ms ease;
}
.nav-cta:hover {
  background: #4b8ff7;
  box-shadow: 0 6px 20px rgba(59,130,246,0.32);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .nav-sections { display: none; }
}
@media (max-width: 700px) {
  .topnav { gap: 12px; padding: 11px 16px; }
  .util-btn #langCurrent, .util-caret { display: none; }
  .util-btn { padding: 0; width: 34px; justify-content: center; }
  .nav-docs { padding: 8px 9px; }
  .nav-cta { display: none; }
}

/* ============ HERO (centered, Claude-Code style) ============ */
.hero {
  min-height: auto;
  padding: 152px 0 88px;
  position: relative;
  text-align: center;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
}

.hero-logo {
  width: clamp(64px, 7vw, 88px);
  height: auto;
  margin-bottom: 26px;
  color: var(--text-strong);
  filter: drop-shadow(0 8px 28px rgba(139, 92, 246, 0.35));
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 currentColor; }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

/* Hero rotating word — own line, stable layout */
.rotator {
  display: inline-block;
  transition: opacity 320ms cubic-bezier(0.4,0,0.2,1), transform 320ms cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
  white-space: nowrap;
}
.rotator.rotating-out {
  opacity: 0;
  transform: translateY(-14px);
}
.rotator.rotating-in {
  opacity: 0;
  transform: translateY(14px);
}

.gradient-text {
  background: linear-gradient(110deg, #a855f7 0%, #c4b5fd 45%, #8b5cf6 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
  /* background-clip:text only paints inside the box; tight line-height clips
     descenders (g, j, p) — pad the bottom so the gradient covers them. */
  padding-bottom: 0.12em;
}
.muted-h2 { color: var(--text-muted); }

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-title {
  font-size: clamp(31px, 6.1vw, 78px);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  /* Break ONLY at the explicit <br> so the rotating word never pushes a 3rd
     line — the headline is always exactly two lines, whatever word shows. */
  white-space: nowrap;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 600px;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-action); color: #fff;
  padding: 13px 22px;
  border-radius: var(--r-button);
  font-size: 14px; font-weight: 600;
  transition: all 180ms ease;
  border: none;
}
.btn-primary:hover {
  background: #4b8ff7;
  box-shadow: 0 8px 28px rgba(59,130,246,0.4);
  transform: translateY(-2px);
}
.btn-primary.big { padding: 16px 28px; font-size: 15px; border-radius: 10px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  color: var(--text-body);
  border: 1px solid var(--line-mid);
  padding: 13px 22px;
  border-radius: var(--r-button);
  font-size: 14px; font-weight: 600;
  transition: all 180ms ease;
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  color: var(--text-strong);
}
.btn-secondary.big { padding: 16px 28px; font-size: 15px; border-radius: 10px; }

.btn-prices {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--c-orange) 10%, transparent);
  color: var(--c-orange);
  border: 1px solid color-mix(in srgb, var(--c-orange) 45%, transparent);
  padding: 13px 22px;
  border-radius: var(--r-button);
  font-size: 14px; font-weight: 600;
  transition: all 180ms ease;
}
.btn-prices:hover {
  background: color-mix(in srgb, var(--c-orange) 18%, transparent);
  border-color: var(--c-orange);
  transform: translateY(-1px);
}
.btn-prices.big { padding: 16px 28px; font-size: 15px; border-radius: 10px; }

.hero-avail {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

/* Supported official CLIs — small chip strip under the hero */
.hero-clis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hc-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hc-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: var(--bg-1);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  transition: border-color 200ms ease, transform 200ms ease;
}
.hc-chip:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--line-mid));
  transform: translateY(-1px);
}
.hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--text-muted));
  box-shadow: 0 0 9px -1px var(--c, transparent);
  flex-shrink: 0;
}
/* "+ more" chip — quieter, signals the list isn't exhaustive */
.hc-more {
  color: var(--text-muted);
  border-style: dashed;
  border-color: var(--line-mid);
}
.hc-more:hover { color: var(--text-strong); border-color: var(--line-strong); }

/* Discrete section anchor links under the hero */
.hero-sections {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
  margin-top: 40px;
}
.hero-sections a {
  font-size: 13.5px; font-weight: 500;
  color: var(--text-muted);
  transition: color 180ms ease;
}
.hero-sections a:hover { color: var(--text-strong); }
.hs-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-faint); opacity: 0.7;
}

/* Hero visual — centered showpiece below the CTAs */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  max-width: 580px;
  margin: 56px auto 0;
}

.mac-window {
  background: var(--surface);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-window);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.mac-titlebar {
  display: flex; align-items: center;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, color-mix(in oklch, var(--surface) 96%, transparent), var(--surface));
  position: relative;
  z-index: 2;
}
.mac-dots { display: flex; gap: 7px; }
.mac-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-block;
}
.mac-dots span:nth-child(1) { background: #ff5f57; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #28c840; }
.mac-title {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: -0.005em;
  padding: 0 14px;
}
.mac-right { display: flex; align-items: center; gap: 8px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in oklch, var(--c-green) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--c-green) 30%, transparent);
  color: var(--c-green);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 4px;
}
.live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-green);
  animation: pulseRing 1.6s ease-out infinite;
}

.mac-body {
  background: var(--bg-0);
  position: relative;
}

/* iframe-scale container — scales an iframe to fit */
.iframe-scale {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.iframe-scale iframe {
  display: block;
  border: 0;
  transform-origin: top left;
  background: transparent;
}

/* ============ HERO PIXEL STAGE (ASCII halftone pirate) ============ */
.pixel-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  /* card chrome removed — animation flows directly on the page */
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  isolation: isolate;
}

/* Hide the source canvas (only sampled by JS) */
#pirateCanvas {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* The halftone canvas fills the stage */
#pirateDots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Scene caption — top-center, narrative beat (dynamic) */
.scene-caption {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  z-index: 5;
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.22,1,0.36,1);
}

/* Active-agent accent colour — shared by the HUD card and the glow */
.pixel-stage                      { --agent-c: var(--t-claude); }
.pixel-stage[data-agent="codex"]  { --agent-c: var(--t-codex); }
.pixel-stage[data-agent="gemini"] { --agent-c: var(--t-gemini); }

/* Subtle glow centered on the scene — tinted by the active agent */
.pixel-stage::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 52%, color-mix(in srgb, var(--agent-c) 9%, transparent), transparent 75%);
  opacity: 0.6;
  z-index: 0;
  transition: background 600ms ease;
}

/* HUD — agent card, styled like our category cards, tinted per active agent */
.pixel-hud {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  /* Opaque background (no backdrop-filter): a blur over the animated canvas
     forces the GPU to re-composite every frame and makes interactions lag. */
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--agent-c) 14%, transparent), transparent 60%),
    var(--bg-1);
  border: 1px solid color-mix(in srgb, var(--agent-c) 26%, var(--line-soft));
  border-radius: var(--r-window);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden;
  z-index: 4;
  box-shadow:
    0 18px 40px -26px rgba(0,0,0,0.85),
    0 0 0 1px color-mix(in srgb, var(--agent-c) 12%, transparent);
  transition: border-color 500ms ease, background 500ms ease, box-shadow 500ms ease;
}
/* Category accent bar across the top, in the active agent's colour */
.pixel-hud::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--agent-c);
  box-shadow: 0 0 14px -1px var(--agent-c);
  transition: background 500ms ease, box-shadow 500ms ease;
}
.pixel-hud > * { position: relative; }

.hud-row { display: flex; align-items: center; gap: 8px; }
.hud-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--t-claude);
  box-shadow: 0 0 10px currentColor;
  color: var(--t-claude);
  transition: background-color 500ms ease, color 500ms ease;
}
.pixel-stage[data-agent="codex"]  .hud-dot { background: var(--t-codex); color: var(--t-codex); }
.pixel-stage[data-agent="gemini"] .hud-dot { background: var(--t-gemini); color: var(--t-gemini); }

.hud-name {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-strong);
}
.hud-role {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'Inter', system-ui, sans-serif;
  margin-left: auto;
  font-style: italic;
  transition: color 300ms ease;
}
.pixel-stage[data-state="tired"] .hud-role { color: var(--c-amber); }
.pixel-stage[data-state="swap"]  .hud-role { color: var(--c-green); }

.hud-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.hud-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%;
  background: var(--t-claude);
  border-radius: 3px;
  transition: background-color 500ms ease, width 100ms linear;
  box-shadow: 0 0 8px currentColor;
  color: var(--t-claude);
}
.pixel-stage[data-agent="codex"]  .hud-bar-fill { background: var(--t-codex); color: var(--t-codex); }
.pixel-stage[data-agent="gemini"] .hud-bar-fill { background: var(--t-gemini); color: var(--t-gemini); }
.pixel-stage[data-state="tired"] .hud-bar-fill {
  background: var(--c-amber);
  color: var(--c-amber);
  animation: barFlicker 360ms ease-in-out infinite;
}
@keyframes barFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hud-foot {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'Inter', system-ui, sans-serif;
}
.hud-pin {
  color: var(--c-orange);
  font-weight: 700;
}
.hud-sep { opacity: 0.4; }
.hud-locked {
  margin-left: auto;
  font-style: italic;
  color: var(--c-green);
  font-weight: 600;
}
.hud-locked::before { content: '✓ '; }

/* Hide the previous hero-mock styles fallback */
.hero-window { display: none !important; }

@media (max-width: 700px) {
  .pixel-stage { aspect-ratio: 1 / 1.05; max-width: 100%; }
}
  width: 100%;
  max-width: 560px;
  transition: transform 500ms cubic-bezier(0.22,1,0.36,1);
}
.hero-window:hover { transform: translateY(-4px); }

.hero-mock {
  padding: 22px 22px 26px;
  display: flex; flex-direction: column;
  gap: 10px;
  background: var(--bg-1);
  position: relative;
}

/* Input prompt card */
.hm-prompt {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.hm-prompt-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--c-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hm-spark { width: 12px; height: 12px; animation: heroSparkle 2.4s ease-in-out infinite; }
@keyframes heroSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.18) rotate(20deg); opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
}
.hm-prompt-body {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
}
.hm-mention {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--c-mention) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--c-mention) 32%, transparent);
  color: var(--c-mention);
  font-size: 12px;
  margin-left: 2px;
}

/* Connector with traveling label */
.hm-connector {
  height: 30px;
  position: relative;
  margin-left: 22px;
  border-left: 2px dashed var(--line-mid);
  display: flex; align-items: center;
}
.hm-conn-label {
  font-size: 10.5px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 14px;
  background: var(--bg-1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Pipeline list */
.hm-pipeline {
  display: flex; flex-direction: column;
  gap: 6px;
}
.hm-step {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  position: relative;
  transition: all 280ms ease;
}
.hm-step.done {
  border-color: color-mix(in oklch, var(--c-green) 24%, transparent);
  background: color-mix(in oklch, var(--c-green) 3%, var(--surface));
}
.hm-step.running {
  border-color: color-mix(in oklch, var(--c-amber) 40%, transparent);
  background: color-mix(in oklch, var(--c-amber) 5%, var(--surface));
  box-shadow: 0 6px 22px color-mix(in oklch, var(--c-amber) 14%, transparent);
}
.hm-step.pending { opacity: 0.55; }

.hm-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.hm-step.done .hm-step-num { background: var(--c-green); color: #fff; }
.hm-step.running .hm-step-num {
  background: var(--c-amber);
  color: #1a1612;
  position: relative;
}
.hm-spin {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: heroSpin 0.9s linear infinite;
}
@keyframes heroSpin { to { transform: rotate(360deg); } }

.hm-step-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-step-name {
  font-size: 13.5px; font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.hm-step.pending .hm-step-name { color: var(--text-muted); font-weight: 500; }

.hm-step-tool {
  font-size: 9.5px; font-weight: 700;
  padding: 1px 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}
.hm-step-tool.t-claude { color: var(--t-claude); }
.hm-step-tool.t-gemini { color: var(--t-gemini); }
.hm-step-tool.t-codex  { color: var(--t-codex); }
.hm-step-tool.t-qwen   { color: var(--t-qwen); }

.hm-check {
  width: 16px; height: 16px;
  color: var(--c-green);
  flex-shrink: 0;
}

.hm-step-progress {
  width: 60px; height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.hm-step-progress > div {
  height: 100%;
  width: 64%;
  background: var(--c-amber);
  border-radius: 2px;
  animation: heroProg 2.4s ease-in-out infinite;
}
@keyframes heroProg {
  0%, 100% { width: 30%; }
  50% { width: 78%; }
}

/* Try overlay banner */
.try-overlay {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  background: color-mix(in oklch, var(--c-orange) 22%, var(--bg-0));
  color: #fff;
  font-size: 11.5px; font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in oklch, var(--c-orange) 50%, transparent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  pointer-events: none;
  display: flex; align-items: center; gap: 6px;
  z-index: 3;
  letter-spacing: 0.01em;
  animation: tryFloat 3s ease-in-out infinite;
}
.try-icon { display: inline-block; animation: tryArrow 1.4s ease-in-out infinite; }
@keyframes tryArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes tryFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }

/* Floating tool chips */
.floating-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  animation: chipFloat 6s ease-in-out infinite;
  z-index: 4;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-claude { top: 4%; right: -2%; }
.chip-claude .chip-dot { background: var(--t-claude); box-shadow: 0 0 12px var(--t-claude); }
.chip-gemini { top: 30%; left: -8%; animation-delay: 1.2s; }
.chip-gemini .chip-dot { background: var(--t-gemini); box-shadow: 0 0 12px var(--t-gemini); }
.chip-codex  { bottom: 18%; right: -6%; animation-delay: 2.4s; }
.chip-codex .chip-dot { background: var(--t-codex); box-shadow: 0 0 12px var(--t-codex); }
.chip-qwen   { bottom: 4%; left: -2%; animation-delay: 3.6s; }
.chip-qwen .chip-dot { background: var(--t-qwen); box-shadow: 0 0 12px var(--t-qwen); }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Marquee */
.marquee-wrap {
  margin-top: 80px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }
.marquee { display: flex; }
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.m-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  letter-spacing: -0.005em;
}
.m-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.c-orange { background: var(--c-orange); }
.c-blue   { background: var(--c-blue); }
.c-violet { background: var(--c-violet); }
.c-green  { background: var(--c-green); }

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-orange);
  margin-bottom: 18px;
}
.label-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ============ HOW IT WORKS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 30px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: all 280ms ease;
}
.step-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.step-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--c-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.step-visual {
  margin-top: auto;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  min-height: 130px;
  display: flex; flex-direction: column; gap: 10px;
}

/* mini-input visual */
.mini-input {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-body);
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
}
.mini-cursor { color: var(--c-orange); animation: caret 1s steps(2) infinite; font-weight: 700; }
@keyframes caret { 50% { opacity: 0; } }
.mini-tag {
  padding: 1px 6px; border-radius: 4px;
  font-size: 11px;
  background: color-mix(in oklch, var(--c-mention) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--c-mention) 32%, transparent);
  color: var(--c-mention);
}
.mini-chips { display: flex; gap: 6px; }
.mini-chip {
  font-size: 10.5px; padding: 2px 8px;
  background: var(--bg-3);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* mini-pipeline visual */
.mini-pipeline { display: flex; flex-direction: column; gap: 4px; }
.mini-node {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  font-size: 12px;
  position: relative;
}
.mini-node span:first-child {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-3); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.mini-node.done span:first-child { background: var(--c-green); color: #fff; }
.mini-node.run  span:first-child { background: var(--c-amber); color: #1a1612; animation: pulseRing 1.6s ease-out infinite; }
.mini-node b { font-size: 12px; font-weight: 600; color: var(--text-strong); flex: 1; }
.mini-tool {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.mini-tool.t-claude { background: color-mix(in oklch, var(--t-claude) 16%, transparent); color: var(--t-claude); }
.mini-tool.t-gemini { background: color-mix(in oklch, var(--t-gemini) 16%, transparent); color: var(--t-gemini); }
.mini-tool.t-codex  { background: color-mix(in oklch, var(--t-codex)  16%, transparent); color: var(--t-codex); }
.mini-tool.t-qwen   { background: color-mix(in oklch, var(--t-qwen)   16%, transparent); color: var(--t-qwen); }
.mini-connector { width: 2px; height: 6px; margin-left: 18px; background: var(--line-mid); border-radius: 1px; }

/* mini-terminal */
.mini-terminal {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.term-line { color: var(--text-body); }
.term-line.muted { color: var(--text-muted); }
.term-line.ok { color: var(--c-green); font-weight: 600; }
.term-prompt { color: var(--c-orange); }

/* ============ EMBED SECTIONS ============ */
.embed-section { padding: 80px 0; }
.embed-section + .embed-section { padding-top: 40px; }

.embed-section .full-window {
  width: 100%;
  margin: 0 auto;
  max-width: 1180px;
}
.embed-section .wide-window { max-width: 1240px; }

.embed-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-0);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.embed-tall   { height: 1200px; }   /* fallback; JS auto-resizes Generator iframe */
.embed-board  { height: 505px; }
.embed-canvas { height: 720px; }

/* Bare embed (no macOS chrome) — used by Generator since it has its own dialog.
   Height is driven by the iframe itself; wrapper just hugs it. */
.bare-embed {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: -8px auto 0;
  overflow: hidden;   /* clip the fixed-width iframe when it's scaled to fit */
}
.bare-embed iframe {
  display: block;
  width: 100%;
  height: 720px;  /* fallback close to real dialog height; JS auto-resizes precisely */
  border: 0;
  background: transparent;
  color-scheme: normal;
  transition: height 280ms ease;
}

.inline-tag {
  display: inline-flex; align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  vertical-align: 1px;
}
.inline-tag.generate {
  background: color-mix(in oklch, var(--c-orange) 14%, transparent);
  color: var(--c-orange);
  border: 1px solid color-mix(in oklch, var(--c-orange) 30%, transparent);
}

/* Column callouts under board */
.column-callouts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 28px;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: all 220ms ease;
}
.callout:hover { border-color: var(--line-mid); transform: translateY(-2px); }
.callout-feature {
  border-color: color-mix(in oklch, var(--c-orange) 35%, transparent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--c-orange) 6%, var(--surface)), var(--surface));
  position: relative;
}
.callout-dot { width: 10px; height: 10px; border-radius: 50%; }
.callout-name {
  font-size: 13px; font-weight: 700; color: var(--text-strong);
  display: flex; align-items: center; gap: 6px;
}
.callout-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.new-pill {
  font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px;
  background: var(--c-orange); color: #fff;
  letter-spacing: 0.06em;
}

@media (max-width: 1000px) {
  .column-callouts { grid-template-columns: repeat(2, 1fr); }
}

/* ============ COMPARISON ============ */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  min-height: 480px;
}
.compare-without {
  border-color: rgba(255,107,107,0.18);
}
.compare-with {
  border-color: color-mix(in oklch, var(--c-green) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--c-green) 4%, var(--surface)), var(--surface));
}

.compare-head { margin-bottom: 22px; }
.compare-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.compare-pill.bad { background: rgba(255,107,107,0.12); color: #ff8c8c; }
.compare-pill.good { background: color-mix(in oklch, var(--c-green) 14%, transparent); color: var(--c-green); }

.compare-card h3 {
  font-size: 26px; font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.compare-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.5;
}
.cross, .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  margin-top: 1px;
}
.cross { background: rgba(255,107,107,0.15); color: #ff8c8c; }
.check { background: color-mix(in oklch, var(--c-green) 18%, transparent); color: var(--c-green); }

.compare-visual {
  margin-top: auto;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px;
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
}

.messy-terminals {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  width: 100%;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
}
.mt {
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  position: relative;
}
.mt::before {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-amber);
  animation: pulseRing 1.6s ease-out infinite;
}
.mt-1 { transform: rotate(-2deg); }
.mt-2 { transform: rotate(1.5deg); margin-top: 6px; }
.mt-3 { transform: rotate(2deg); margin-top: -4px; }
.mt-4 { transform: rotate(-1.5deg); margin-top: 8px; }

.neat-pipe {
  display: flex; align-items: center; gap: 0;
}
.np-node {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.np-node.t-claude { background: var(--t-claude); }
.np-node.t-gemini { background: var(--t-gemini); }
.np-node.t-codex  { background: var(--t-codex); }
.np-node.t-qwen   { background: var(--t-qwen); color: #1a1612; }
.np-node.t-more   {
  background: linear-gradient(135deg, var(--c-orange), var(--c-violet));
  color: #fff;
}
.np-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--c-orange), var(--c-amber), var(--c-violet), var(--c-green));
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
  border-radius: 1px;
  position: relative;
  min-width: 18px;
}

@media (max-width: 800px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ============ USE CASES ============ */
.usecase-tabs {
  display: flex; justify-content: center; gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.uc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  transition: all 200ms ease;
}
.uc-tab:hover { color: var(--text-strong); border-color: var(--line-mid); }
.uc-tab.active {
  background: color-mix(in oklch, var(--c-orange) 14%, var(--surface));
  border-color: color-mix(in oklch, var(--c-orange) 40%, transparent);
  color: var(--c-orange);
}

.usecase-panels {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  min-height: 380px;
}
.uc-panel {
  display: none;
  padding: 38px 40px;
  animation: fadeUp 400ms ease;
}
.uc-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.uc-tag {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-orange);
  margin-bottom: 12px;
}
.uc-text h3 {
  font-size: 26px; font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.uc-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.uc-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.uc-bullets li {
  font-size: 13.5px;
  color: var(--text-body);
  padding-left: 22px;
  position: relative;
}
.uc-bullets li::before {
  content: '';
  position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-orange);
}

/* uc-pipeline visual */
.uc-pipeline {
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.uc-step {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  transition: all 240ms ease;
}
.uc-step.done { border-color: color-mix(in oklch, var(--c-green) 22%, transparent); background: color-mix(in oklch, var(--c-green) 3%, var(--bg-2)); }
.uc-step.run  { border-color: color-mix(in oklch, var(--c-amber) 35%, transparent); background: color-mix(in oklch, var(--c-amber) 5%, var(--bg-2)); }
.uc-step.pending { opacity: 0.55; }

.uc-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--bg-3); color: var(--text-muted);
  flex-shrink: 0;
}
.uc-step.done .uc-num { background: var(--c-green); color: #fff; }
.uc-step.run .uc-num {
  background: var(--c-amber); color: #1a1612;
  animation: pulseRing 1.6s ease-out infinite;
}
.uc-name {
  flex: 1;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-strong);
}
.uc-step.pending .uc-name { color: var(--text-muted); font-weight: 500; }
.uc-tool {
  font-size: 9.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.uc-tool.t-claude { background: color-mix(in oklch, var(--t-claude) 16%, transparent); color: var(--t-claude); }
.uc-tool.t-gemini { background: color-mix(in oklch, var(--t-gemini) 16%, transparent); color: var(--t-gemini); }
.uc-tool.t-codex  { background: color-mix(in oklch, var(--t-codex)  16%, transparent); color: var(--t-codex); }
.uc-tool.t-qwen   { background: color-mix(in oklch, var(--t-qwen)   16%, transparent); color: var(--t-qwen); }

@media (max-width: 800px) {
  .uc-grid { grid-template-columns: 1fr; gap: 24px; }
  .uc-panel { padding: 26px; }
}

/* ============ PILLARS (trust band, sits right under hero) ============ */
.pillars-section {
  padding: 88px 0 64px;
}
.pillars-section .section-header.compact {
  margin-bottom: 40px;
}
.pillars-section .section-header h2 {
  font-size: clamp(26px, 3.0vw, 36px);
  letter-spacing: -0.02em;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar-card {
  --pillar-c: var(--c-orange);
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-window);
  padding: 26px 24px 28px;
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  position: relative;
  overflow: hidden;
}
/* Category accent bar across the top — echoes the docs sections / Kanban columns */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--pillar-c);
  box-shadow: 0 0 16px -2px var(--pillar-c);
  z-index: 2;
}
/* Faint category wash from the top */
.pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pillar-c) 9%, transparent), transparent 50%);
  z-index: 0;
}
.pillar-card > * { position: relative; z-index: 1; }
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pillar-c) 35%, var(--line-mid));
  box-shadow:
    0 20px 44px -26px rgba(0,0,0,0.85),
    0 0 0 1px color-mix(in srgb, var(--pillar-c) 22%, transparent);
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--pillar-c), inset 0 1px 0 rgba(255,255,255,0.22);
}
.pillar-icon.violet { background: linear-gradient(150deg, #7c3aed, #a855f7); }
.pillar-card:has(.pillar-icon.violet) { --pillar-c: #8b5cf6; }
.pillar-icon.cyan   { background: linear-gradient(150deg, #0891b2, #22d3ee); }
.pillar-card:has(.pillar-icon.cyan)   { --pillar-c: #22d3ee; }
.pillar-icon.green  { background: linear-gradient(150deg, #059669, #34d399); }
.pillar-card:has(.pillar-icon.green)  { --pillar-c: #34d399; }
.pillar-icon.magenta{ background: linear-gradient(150deg, #a21caf, #e879f9); }
.pillar-card:has(.pillar-icon.magenta){ --pillar-c: #e879f9; }
.pillar-icon.blue   { background: linear-gradient(150deg, #2563eb, #60a5fa); }
.pillar-card:has(.pillar-icon.blue)   { --pillar-c: #60a5fa; }

.pillar-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 9px;
  line-height: 1.25;
}
.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 1000px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .pillars-grid { grid-template-columns: 1fr; } }

/* ============ FEATURES STRIP ============ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fstrip-card {
  --feat-c: var(--c-orange);
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-window);
  padding: 26px 22px;
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}
.fstrip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--feat-c);
  box-shadow: 0 0 14px -2px var(--feat-c);
}
.fstrip-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--feat-c) 35%, var(--line-mid));
  box-shadow:
    0 18px 40px -26px rgba(0,0,0,0.85),
    0 0 0 1px color-mix(in srgb, var(--feat-c) 20%, transparent);
}
.fstrip-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: 0 7px 16px -7px var(--feat-c), inset 0 1px 0 rgba(255,255,255,0.2);
}
.fstrip-icon.violet { background: linear-gradient(150deg, #7c3aed, #a855f7); }
.fstrip-card:has(.fstrip-icon.violet) { --feat-c: #8b5cf6; }
.fstrip-icon.cyan   { background: linear-gradient(150deg, #0891b2, #22d3ee); }
.fstrip-card:has(.fstrip-icon.cyan)   { --feat-c: #22d3ee; }
.fstrip-icon.magenta{ background: linear-gradient(150deg, #a21caf, #e879f9); }
.fstrip-card:has(.fstrip-icon.magenta){ --feat-c: #e879f9; }
.fstrip-icon.green  { background: linear-gradient(150deg, #059669, #34d399); }
.fstrip-card:has(.fstrip-icon.green)  { --feat-c: #34d399; }
.fstrip-icon.blue   { background: linear-gradient(150deg, #2563eb, #60a5fa); }
.fstrip-card:has(.fstrip-icon.blue)   { --feat-c: #60a5fa; }

.fstrip-card h4 {
  font-size: 15px; font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.fstrip-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1000px) { .features-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features-strip { grid-template-columns: 1fr; } }

/* ============ RESUME band (out-of-tokens highlight) ============ */
/* Pull the band up right under the feature cards — no wasted vertical gap */
.features-section { padding-bottom: 30px; }
.resume-section { padding: 0 0 96px; }
.resume-band {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  border-radius: var(--r-window);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--vio-2) 11%, transparent), transparent 56%),
    var(--bg-1);
  border: 1px solid color-mix(in srgb, var(--vio-2) 24%, var(--line-soft));
}
/* Top accent bar — matches the feature/pillar cards (full width) */
.resume-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-violet);
  box-shadow: 0 0 16px -1px var(--vio-2);
}
.resume-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-violet);
  color: #fff;
  box-shadow: 0 8px 22px -8px var(--vio-2), inset 0 1px 0 rgba(255,255,255,0.22);
}
.resume-text h3 {
  font-size: 19px; font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.resume-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 780px;
  text-wrap: pretty;
}
@media (max-width: 600px) {
  .resume-band { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
}

/* ============ CTA ============ */
.cta-section { padding: 100px 0 80px; }
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: 24px;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in oklch, var(--c-orange) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, color-mix(in oklch, var(--vio-2) 16%, transparent), transparent 60%);
  z-index: -1;
}
.cta-card.halo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--ang), transparent 0%, transparent 40%, var(--halo-tint) 50%, transparent 60%, transparent 100%);
  animation: spinHalo 6s linear infinite;
  opacity: 0.25;
  z-index: -1;
  filter: blur(40px);
}
@keyframes spinHalo { to { --ang: 360deg; } }

.cta-card h2 { margin-bottom: 14px; }
.cta-card .section-desc { margin-bottom: 30px; }
.cta-buttons {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cta-meta {
  display: flex; justify-content: center; gap: 22px;
  font-size: 12.5px; color: var(--text-faint);
  margin-top: 12px;
  flex-wrap: wrap;
}
.cta-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cta-meta svg { color: var(--c-green); }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 36px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-faint);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-muted); font-weight: 700;
}
.footer-brand .brand-icon {
  width: 20px; height: auto;
  display: block;
  flex-shrink: 0;
  color: var(--text-body);
}
.footer-copy { flex: 1; text-align: center; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-faint); transition: color 180ms; }
.footer-links a:hover { color: var(--text-body); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-visual { min-height: 480px; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .embed-tall, .embed-canvas { height: 600px; }
  .embed-board { height: 530px; }
}

@media (max-width: 700px) {
  h1 { font-size: 38px; }
  .section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .cta-card { padding: 50px 24px; }
  .hero-window { max-width: 100%; transform: none; }
  .floating-chip { display: none; }
  .embed-tall, .embed-canvas { height: 500px; }
  .embed-board { height: 530px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ PRICING MODAL ============ */
.pricing-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pricing-modal[hidden] { display: none; }
.pricing-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg-0) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pricing-dialog {
  position: relative; width: min(920px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-mid);
  border-radius: var(--r-window); box-shadow: var(--shadow-window);
  padding: 40px 36px 28px;
}
.pricing-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--r-button); color: var(--text-muted); }
.pricing-close:hover { color: var(--text-strong); border-color: var(--line-mid); }
.pricing-head h2 { color: var(--text-strong); font-size: clamp(22px, 3vw, 30px); }
.pricing-head p  { color: var(--text-muted); margin-top: 6px; }
.pricing-table-wrap { overflow-x: auto; margin-top: 26px; }
.pricing-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.pricing-table th, .pricing-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.pricing-table td:first-child, .pricing-table th:first-child { text-align: left; color: var(--text-body); }
.pricing-table thead th { vertical-align: top; border-bottom: 1px solid var(--line-mid); padding-bottom: 18px; }
.pt-featured { background: color-mix(in srgb, var(--c-orange) 7%, transparent); border-radius: var(--r-card) var(--r-card) 0 0; }
.pricing-table tbody td:last-child, .pricing-table tfoot td:last-child { background: color-mix(in srgb, var(--c-orange) 7%, transparent); }
.pricing-table tfoot td { border-bottom: 0; }
.pricing-table tfoot td:last-child { border-radius: 0 0 var(--r-card) var(--r-card); padding: 14px; }
.pricing-table tfoot .pt-cta { margin-top: 0; }
.pt-badge { display: inline-block; background: var(--grad-violet); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 6px; }
.pt-plan  { font-weight: 700; color: var(--text-strong); font-size: 15px; }
.pt-price { font-size: 24px; font-weight: 800; color: var(--text-strong); margin-top: 4px; }
.pt-per   { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.pt-type  { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.pt-cta   { display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: var(--r-button); font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-mid); color: var(--text-strong); transition: all 180ms ease; }
.pt-cta:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pt-cta-primary { background: var(--grad-violet); border-color: transparent; color: #fff; }
.pt-yes { color: var(--c-green); font-weight: 700; }
.pt-no  { color: var(--text-faint); }
.pricing-notes { margin-top: 18px; font-size: 12px; color: var(--text-faint); display: grid; gap: 4px; }
.pricing-notes a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.pricing-notes a:hover { color: var(--text-strong); }
@media (max-width: 700px) { .pricing-dialog { padding: 30px 18px 20px; } .pricing-modal { padding: 12px; } }
