/* CoAgent Marketing — 天蓝科技 · 可读性优先 */

:root {
  color-scheme: light;

  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-300: #7dd3fc;
  --brand-400: #38bdf8;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --brand-800: #075985;

  --brand: var(--brand-600);
  --brand-dark: var(--brand-700);
  --brand-light: var(--brand-100);
  --brand-muted: var(--brand-400);
  --brand-glow: rgba(2, 132, 199, 0.08);
  --brand-ring: rgba(14, 165, 233, 0.22);

  --purple: var(--brand);
  --purple-dark: var(--brand-dark);
  --purple-light: var(--brand-light);
  --purple-muted: var(--brand-muted);

  --bg: #f4f9fc;
  --bg-grid: #e3edf5;
  --bg-radial: rgba(14, 165, 233, 0.07);
  --surface: #fcfeff;
  --border: #d8e6f0;
  --border-strong: #b8cddc;
  --text: #0c1929;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --header-bg: rgba(252, 254, 255, 0.94);

  --green: #059669;
  --green-bg: #ecfdf5;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --shadow-sm: 0 1px 2px rgba(7, 89, 133, 0.05);
  --shadow-md: 0 4px 20px rgba(7, 89, 133, 0.07);
  --shadow-lg: 0 12px 40px rgba(2, 132, 199, 0.1);
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --text-base: 1rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
  --leading: 1.65;
  --header-h: 64px;
  --section-gap: clamp(5rem, 10vw, 8rem);
  --content-max: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b141c;
  --bg-grid: #1a2834;
  --bg-radial: rgba(14, 165, 233, 0.06);
  --surface: #121c26;
  --border: #263645;
  --border-strong: #3a5064;
  --text: #e8f4fc;
  --text-secondary: #b8cfe0;
  --text-muted: #8aa8be;
  --header-bg: rgba(18, 28, 38, 0.94);
  --brand-glow: rgba(14, 165, 233, 0.14);
  --brand-ring: rgba(56, 189, 248, 0.28);
  --brand-light: rgba(14, 165, 233, 0.16);
  --green-bg: rgba(5, 150, 105, 0.18);
  --amber-bg: rgba(217, 119, 6, 0.18);
  --red-bg: rgba(220, 38, 38, 0.18);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, var(--bg-radial), transparent 55%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 100% 520px, 40px 40px, 40px 40px;
  background-repeat: no-repeat, repeat, repeat;
  color: var(--text);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, var(--brand-500) 0%, var(--brand-700) 100%);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--brand-muted);
  color: var(--brand);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: 0.625rem 0;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-mobile .btn { margin-top: 0.5rem; text-align: center; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-primary:hover { background: var(--purple-dark); }

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--purple-muted); color: var(--purple); }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

/* ── Typography helpers ── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.7;
}

.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 85% 15%, rgba(14, 165, 233, 0.09), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-accent {
  color: var(--brand);
  font-weight: 800;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 32rem;
  line-height: var(--leading);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-unit, .metric-suffix {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.125rem;
}

/* Pipeline card */
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-50) 60%, var(--surface)) 0%, var(--surface) 100%);
}

.pipeline-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.pipeline-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.pipeline-steps {
  list-style: none;
  padding: 1rem 1.25rem;
}

.step {
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem 0;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 2.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: var(--border);
}

.step.done, .step.active { opacity: 1; }

.step-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  z-index: 1;
}

.step.done .step-icon {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
}

.step.active .step-icon {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14);
}

.step strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.step span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.score-green { color: var(--green); font-weight: 600; }

.pipeline-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand-50) 40%, var(--surface));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pipeline-footer code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--purple);
}

/* ── Trust strip ── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.trust-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.trust-logos li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* ── Sections ── */
.section {
  padding: var(--section-gap) clamp(1.25rem, 4vw, 2rem);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

/* Platform cards */
.platform-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .platform-grid { grid-template-columns: 1fr 1fr; }
}

.platform-card {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--purple-muted);
  margin-bottom: 1rem;
  display: block;
}

.platform-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}

.platform-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.platform-card ul {
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.platform-card li {
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.platform-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--purple-muted);
}

/* Metrics — 深空蓝数据带 */
.metrics {
  background: linear-gradient(160deg, var(--brand-800) 0%, #0f172a 100%);
  color: #e0f2fe;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}

.metrics-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .metrics-inner { grid-template-columns: repeat(4, 1fr); }
}

.metric {
  text-align: left;
}

.metric-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-desc {
  font-size: 0.8125rem;
  color: #7eb8d4;
}

/* Scenarios · 图表背景 */
.scenario-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.scenario {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.scenario-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.38;
  pointer-events: none;
}

.scenario.s1 .scenario-bg { background-image: url('images/scenario-s1.svg'); }
.scenario.s2 .scenario-bg { background-image: url('images/scenario-s2.svg'); }
.scenario.s3 .scenario-bg { background-image: url('images/scenario-s3.svg'); }

.scenario::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--surface) 45%, color-mix(in srgb, var(--surface) 68%, transparent));
  pointer-events: none;
}

[data-theme="dark"] .scenario::after {
  background: linear-gradient(100deg, var(--surface) 40%, color-mix(in srgb, var(--surface) 52%, transparent));
}

.scenario-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 800px) {
  .scenario-inner { grid-template-columns: auto 1fr 280px; }
  .scenario-reverse .scenario-inner { direction: rtl; }
  .scenario-reverse .scenario-inner > * { direction: ltr; }
}

.scenario-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: start;
  backdrop-filter: blur(6px);
}

.scenario-badge.green { background: var(--green-bg); color: var(--green); }
.scenario-badge.amber { background: var(--amber-bg); color: var(--amber); }
.scenario-badge.red { background: var(--red-bg); color: var(--red); }

.scenario h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.scenario-agent {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.scenario-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.scenario-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.scenario-facts dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.scenario-facts dd {
  font-size: 0.9375rem;
  font-weight: 600;
}

.scenario-visual {
  backdrop-filter: blur(4px);
}

.mini-timeline {
  background: color-mix(in srgb, var(--brand-50) 35%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.tl-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-item span:first-child { color: var(--text-muted); font-weight: 500; }
.tl-item span:last-child { font-weight: 600; }

.tl-item.highlight span:last-child { color: var(--green); }
.tl-item.warn span:last-child { color: var(--amber); }
.tl-item.danger span:last-child { color: var(--red); }

/* Confidence */
.confidence-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .confidence-grid { grid-template-columns: 1fr 1fr; }
}

.confidence-copy h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.confidence-copy > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.formula-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.formula-block code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--purple-dark);
  word-break: break-all;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.score-table th,
.score-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.score-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--brand-50) 50%, var(--surface));
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }

.confidence-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

.factor-group {
  margin-bottom: 1.75rem;
}
.factor-group:last-child { margin-bottom: 0; }

.factor-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.bar-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.bar .fill {
  height: 100%;
  width: var(--w);
  background: var(--green);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.bar .fill.amber { background: var(--amber); }
.bar .fill.red { background: var(--red); }

.bar .fill.animated { transform: scaleX(1); }

/* Innovation */
.innovation-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .innovation-grid { grid-template-columns: repeat(3, 1fr); }
}

.innovation-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.innovation-icon {
  width: 40px;
  height: 40px;
  color: var(--purple);
  margin-bottom: 1rem;
}

.innovation-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.innovation-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--brand-50) 50%, var(--surface));
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--text-secondary);
}

.compare-table td:last-child {
  background: rgba(2, 132, 199, 0.04);
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .roadmap-grid { grid-template-columns: repeat(3, 1fr); }
}

.roadmap-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0.75;
}

.roadmap-card.active {
  opacity: 1;
  border-color: var(--purple-muted);
  box-shadow: var(--shadow-lg);
}

.tier-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--purple-light);
  color: var(--purple);
  margin-bottom: 1rem;
}

.tier-badge.muted {
  background: var(--bg);
  color: var(--text-muted);
}

.roadmap-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.roadmap-card > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.roadmap-card ul {
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.roadmap-card li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}

.roadmap-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--purple-muted);
  font-weight: 700;
}

/* CTA */
.cta-section {
  padding: var(--section-gap) clamp(1.25rem, 4vw, 2rem);
}

.cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--text-secondary);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem) 1.5rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.2fr 2fr; }
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 24rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-nav a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--purple); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bar .fill { transform: scaleX(1); transition: none; }
  .pulse { animation: none; }
}
