/* ═══════════════════════════════════════════════════════════════════════════
   WorkflowBench v2 - Premium Landing Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg: #fafbfe;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --text: #0a0f1e;
  --text-secondary: #4b5672;
  --text-muted: #7c869b;
  --accent: #3b5bff;
  --accent-2: #6c5ce7;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --container: 1200px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(20px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ═══════════════════ AURORA BACKGROUND ═══════════════════ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  will-change: transform;
}

.aurora__blob--1 {
  width: 600px; height: 600px;
  top: -10%; left: -5%;
  background: linear-gradient(135deg, #3b5bff, #6c5ce7);
  animation: aurora1 14s ease-in-out infinite alternate;
}

.aurora__blob--2 {
  width: 500px; height: 500px;
  top: 20%; right: -10%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  animation: aurora2 18s ease-in-out infinite alternate;
}

.aurora__blob--3 {
  width: 400px; height: 400px;
  bottom: -5%; left: 30%;
  background: linear-gradient(135deg, #6c5ce7, #ec4899);
  animation: aurora3 16s ease-in-out infinite alternate;
}

@keyframes aurora1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes aurora2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 30px) scale(1.1); }
}
@keyframes aurora3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* ── Dot grid ── */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ═══════════════════ NAVIGATION ═══════════════════ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}

.nav-bar--scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img { height: 32px; width: auto; }
.brand .logo-light { display: block; }
.brand .logo-dark  { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle svg { display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* GitHub button */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-github:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 91, 255, 0.25);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Hero Logo */
.hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.hero-logo__img {
  width: 88px;
  height: 88px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 24px rgba(59, 91, 255, 0.18));
  transition: transform 0.5s var(--ease);
}
.hero-logo:hover .hero-logo__img {
  transform: scale(1.08) rotate(-3deg);
}
.hero-logo__img--dark { display: none; }
.hero-logo__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 91, 255, 0.18) 0%, transparent 70%);
  animation: logo-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.2); opacity: 1; }
}

html.dark .hero-logo__img--light { display: none; }
html.dark .hero-logo__img--dark  { display: block; }
html.dark .hero-logo__glow {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.20) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 91, 255, 0.15);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 91, 255, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(59, 91, 255, 0.05); }
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 16ch;
  color: var(--text);
}

.hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.05em;
}

.hero-title .word {
  display: inline-block;
}

.hero-sub {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #3b5bff, #6c5ce7);
  color: #fff;
  box-shadow: 0 8px 32px rgba(59, 91, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(59, 91, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-primary--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  padding: 20px 32px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

/* ── Hero terminal ── */
.hero-terminal {
  width: min(640px, 100%);
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: left;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.9;
}

.term-line {
  color: rgba(255, 255, 255, 0.7);
}

.term-prompt { color: #10b981; font-weight: 700; }
.term-cmd { color: rgba(255, 255, 255, 0.9); }
.term-success { color: #10b981; }
.term-pass { color: #10b981; font-weight: 600; }
.term-warn { color: #f59e0b; }
.term-escalate { color: #f59e0b; font-weight: 600; }
.term-muted { color: rgba(255, 255, 255, 0.25); }
.term-summary { margin-top: 6px; color: rgba(255, 255, 255, 0.9); }
.term-summary strong { color: #10b981; }

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.scroll-hint:hover { opacity: 0.8; }

.scroll-hint__wheel {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-secondary);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0.3; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section {
  padding: 100px 0;
  position: relative;
}

.section--cta {
  padding-bottom: 60px;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-title--sm {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 54ch;
  line-height: 1.7;
}

/* ═══════════════════ GLASS CARDS ═══════════════════ */
.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--5 { grid-template-columns: repeat(5, 1fr); }

.glass-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.glass-card--hover {
  cursor: default;
  transform-style: preserve-3d;
}

.glass-card--lg {
  padding: 32px;
}

.glass-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 91, 255, 0.1), rgba(108, 92, 231, 0.1));
  color: var(--accent);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.card-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
}

/* ═══════════════════ PIPELINE / HOW IT WORKS ═══════════════════ */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

/* Connecting line */
.pipeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  opacity: 0.2;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  align-items: start;
}

.step-marker {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(59, 91, 255, 0.3);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.step-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(59, 91, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(59, 91, 255, 0.12);
}

.pill--active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* Code windows */
.code-window {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.code-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--mono);
}

.code-chrome--dark {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}

.code-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}

pre.code-body {
  margin: 0;
}

.code-body--dark {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.8);
}

.code-window--dark {
  background: #0d1117;
  border-color: rgba(255, 255, 255, 0.08);
}

.tok-key { color: #3b5bff; font-weight: 600; }
.tok-str { color: #10b981; }
.tok-bool { color: #f59e0b; }

/* Runner lines */
.run-line {
  line-height: 2;
}

.run-prompt { color: #10b981; font-weight: 700; }
.run-ok { color: #10b981; }
.run-warning { color: #f59e0b; }
.run-pass { color: #10b981; font-weight: 600; }
.run-esc { color: #f59e0b; font-weight: 600; }

/* ── Score gauges ── */
.score-gauges {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 0;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.gauge-ring {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.gauge-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-fill--blue { stroke: var(--accent); }
.gauge-fill--amber { stroke: var(--amber); }
.gauge-fill--gray { stroke: var(--text-muted); }

.gauge-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
}

.gauge-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.gauge-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Report preview ── */
.report-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.report-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
}

.report-card--wide {
  grid-column: 1 / -1;
}

.report-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.report-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.report-big strong {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.report-of {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.report-bars, .report-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.rbar, .rc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rc-row strong {
  font-size: 0.9rem;
  min-width: 28px;
  text-align: right;
}

.rbar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.rbar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rbar-fill.animate { width: var(--w); }
.rbar-fill--amber { background: var(--amber); }
.rbar-fill--green { background: var(--green); }
.rbar-fill--muted { background: var(--text-muted); }

/* ═══════════════════ SPLIT SECTION (SCORING) ═══════════════════ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split-left, .split-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-left .section-title,
.split-right .section-title {
  text-align: left;
}

.split-left .section-desc,
.split-right .section-desc {
  text-align: left;
}

/* Score bars */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.sbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sbar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.sbar-head strong {
  font-weight: 700;
}

.sbar-head span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.sbar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.sbar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sbar-fill.animate { width: var(--w); }
.sbar-fill--blue { background: var(--accent); }
.sbar-fill--amber { background: var(--amber); }
.sbar-fill--gray { background: var(--text-muted); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.feature-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 91, 255, 0.1), rgba(108, 92, 231, 0.1));
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════ CTA ═══════════════════ */
.cta-card {
  text-align: center;
  padding: 80px 40px;
  border-radius: 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 91, 255, 0.08), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(108, 92, 231, 0.06), transparent 50%);
  pointer-events: none;
}

.cta-card .section-title,
.cta-card .section-desc {
  position: relative;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-left a {
  color: var(--accent);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ═══════════════════ DARK MODE ═══════════════════ */
html.dark {
  --bg: #08090f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #111318;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #e8ecf4;
  --text-secondary: #8b95a9;
  --text-muted: #576274;
  --accent: #6c8aff;
  --accent-2: #a78bfa;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html.dark .aurora__blob { opacity: 0.25; }

html.dark .dot-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html.dark .brand .logo-dark  { display: block; }
html.dark .brand .logo-light { display: none; }

html.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
html.dark .theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
html.dark .theme-toggle .icon-sun  { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

html.dark .btn-github {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
html.dark .btn-github:hover {
  background: var(--accent);
  color: #fff;
}

html.dark .hero-title {
  background: linear-gradient(135deg, #e8ecf4 0%, #8b95a9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html.dark .hero-terminal {
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
html.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

html.dark .glass-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

html.dark .code-chrome {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .code-body {
  background: rgba(0, 0, 0, 0.3);
}

html.dark .tok-key { color: #6c8aff; }
html.dark .tok-str { color: #4ade80; }
html.dark .tok-bool { color: #fbbf24; }

html.dark .code-window {
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .pill {
  background: rgba(108, 138, 255, 0.1);
  border-color: rgba(108, 138, 255, 0.15);
}

html.dark .pill--active {
  background: var(--accent);
  color: #fff;
}

html.dark .report-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .cta-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .sbar-track,
html.dark .rbar-track {
  background: rgba(255, 255, 255, 0.08);
}

html.dark .gauge-track {
  stroke: rgba(255, 255, 255, 0.08);
}

html.dark .footer-inner {
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark .card-badge {
  background: linear-gradient(135deg, #6c8aff, #a78bfa);
}

html.dark .scroll-hint {
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .scroll-hint__wheel {
  background: rgba(255, 255, 255, 0.4);
}

html.dark .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1100px) {
  .cards-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 60px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .cards-grid--3 { grid-template-columns: 1fr; }
  .cards-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .pipeline-step { grid-template-columns: 1fr; }
  .pipeline::before { display: none; }
  .step-marker { width: 44px; height: 44px; font-size: 1rem; }
  .section { padding: 60px 0; }
  .report-row { grid-template-columns: 1fr; }
  .score-gauges { gap: 16px; }
  .gauge-ring { width: 80px; height: 80px; }
  .gauge-center { width: 80px; height: 80px; }
  .gauge-num { font-size: 1.3rem; }
  .hero-stats { flex-direction: column; gap: 16px; border-radius: var(--radius); }
  .stat-divider { width: 60px; height: 1px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .cards-grid--5 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-card { padding: 48px 24px; }
  .glass-card { padding: 24px 20px; }
  .glass-card--lg { padding: 24px; }
  .step-header { flex-direction: column; }
}
