/* ══════════════════════════════════════════════
   P-008 OC1-Agents — Design System
   Based on DESIGN.md
   ══════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ── CSS Variables (Light) ── */
:root {
  /* Fonts */
  --font-display: "Inter", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-hero: clamp(48px, 8vw, 96px);
  --text-section: clamp(32px, 5vw, 64px);
  --text-subline: clamp(19px, 2.5vw, 28px);
  --text-body: 17px;
  --text-caption: 12px;
  --text-nav: 12px;

  /* Tracking */
  --tracking-tight: -0.03em;
  --tracking-tighter: -0.05em;

  /* Line Height */
  --lh-headline: 1.07;
  --lh-body: 1.53;

  /* Accent Colors */
  --color-accent-primary: #147d89;
  --color-accent-primary-light: #1a9eac;
  --color-accent-primary-dark: #0f5f68;
  --color-accent-primary-subtle: rgba(20, 125, 137, 0.06);
  --color-accent-primary-muted: rgba(20, 125, 137, 0.12);

  --color-accent-secondary: #f35a7b;
  --color-accent-secondary-light: #f87d98;
  --color-accent-secondary-dark: #d94466;
  --color-accent-secondary-subtle: rgba(243, 90, 123, 0.06);
  --color-accent-secondary-muted: rgba(243, 90, 123, 0.12);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #147d89 0%, #1a9eac 40%, #f35a7b 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(20, 125, 137, 0.10) 0%, rgba(243, 90, 123, 0.06) 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(20, 125, 137, 0.20) 0%, rgba(243, 90, 123, 0.08) 50%, transparent 80%);

  /* Surfaces (Light / Cool-Neutral) */
  --color-bg-primary: #f4f6f6;
  --color-bg-section-alt: #eaeeee;
  --color-bg-elevated: #fafbfb;
  --color-bg-dark: #0b1214;
  --color-surface: #ffffff;

  /* Text */
  --color-text-primary: #1a1d1e;
  --color-text-secondary: #5c6568;
  --color-text-tertiary: #8a9194;
  --color-text-on-accent: #ffffff;

  /* Links */
  --color-link: var(--color-accent-primary);
  --color-link-hover: var(--color-accent-primary-light);

  /* Dividers */
  --color-divider: #d4d9da;
  --color-divider-subtle: rgba(0, 0, 0, 0.06);

  /* Layout */
  --content-max: 980px;
  --content-wide: 1200px;
  --content-narrow: 692px;
  --content-padding: clamp(20px, 5vw, 60px);

  /* Spacing */
  --spacing-section: clamp(80px, 12vw, 160px);
  --spacing-block: clamp(40px, 6vw, 80px);
  --spacing-element: 16px;

  /* Radius */
  --radius-card: 28px;
  --radius-small: 12px;

  /* Nav */
  --nav-height: 48px;
}

/* ── Dark Section Overrides ── */
.section--dark {
  --color-bg-primary: #0b1214;
  --color-bg-section-alt: #151c1e;
  --color-bg-elevated: #1c2426;
  --color-surface: #1c2426;
  --color-text-primary: #e8ecec;
  --color-text-secondary: #99a3a6;
  --color-text-tertiary: #687275;
  --color-link: #3ec8d5;
  --color-link-hover: #5dd8e3;
  --color-divider: #2d3638;
  --color-accent-primary: #3ec8d5;
  --color-accent-secondary: #f87d98;
  --gradient-brand: linear-gradient(135deg, #3ec8d5 0%, #f87d98 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(62, 200, 213, 0.25) 0%, rgba(248, 125, 152, 0.10) 50%, transparent 80%);
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-primary: #0b1214;
    --color-bg-section-alt: #151c1e;
    --color-bg-elevated: #1c2426;
    --color-surface: #1c2426;
    --color-text-primary: #e8ecec;
    --color-text-secondary: #99a3a6;
    --color-text-tertiary: #687275;
    --color-link: #3ec8d5;
    --color-link-hover: #5dd8e3;
    --color-divider: #2d3638;
    --color-accent-primary: #3ec8d5;
    --color-accent-secondary: #f87d98;
  }
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-link-hover);
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 99999;
  padding: 8px 16px;
  background: var(--color-accent-primary);
  color: #fff;
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

/* ── Focus Styles (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-headline);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--text-section);
  font-weight: 600;
}

h3 {
  font-size: var(--text-subline);
  font-weight: 600;
}

p {
  max-width: 680px;
  color: var(--color-text-secondary);
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-inline: auto;
}

/* Bold Spotlight */
strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ── Section Label ── */
.section-label {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-primary);
  margin-bottom: 20px;
}

/* ── Layout ── */
.section {
  padding-block: var(--spacing-section);
  background: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: var(--color-bg-section-alt);
}

.section--elevated {
  background: var(--color-bg-elevated);
}

.section-content {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.section-content--wide {
  max-width: var(--content-wide);
}

.section-content--narrow {
  max-width: var(--content-narrow);
}

.section-header {
  margin-bottom: var(--spacing-block);
}

/* ── Section Dividers ── */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.section-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

.section-divider--hero {
  bottom: -1px;
}

/* ── Global Nav ── */
.global-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--nav-height);
  z-index: 9999;
  background: rgba(244, 246, 246, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--content-padding);
  transition: background 0.4s ease, border-color 0.3s ease;
}

.global-nav.nav--dark {
  background: rgba(11, 18, 20, 0.82);
}

.global-nav.nav--dark .nav-logo {
  color: #e8ecec;
}

.global-nav.nav--dark .nav-links a {
  color: #99a3a6;
}

.global-nav.nav--dark .nav-links a:hover,
.global-nav.nav--dark .nav-links a.is-active {
  color: #e8ecec;
}

.global-nav.nav--dark .nav-hamburger svg {
  stroke: #e8ecec;
}

@media (prefers-color-scheme: dark) {
  .global-nav {
    background: rgba(11, 18, 20, 0.82);
  }
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-nav);
  color: var(--color-text-secondary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.3s;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-text-primary);
}

.nav-links a.is-active {
  opacity: 1;
  color: var(--color-accent-primary);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-primary);
  border-radius: 1px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-primary);
  stroke-width: 1.5px;
  stroke-linecap: round;
  transition: stroke 0.3s;
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-size: var(--text-subline);
  color: var(--color-text-primary);
  text-decoration: none;
}

@media (max-width: 734px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-height) + var(--spacing-section));
  padding-bottom: calc(var(--spacing-section) + 40px);
  background: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero.section--dark {
  background: #0b1214;
}

.hero .section-content {
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 125, 137, 0.12) 0%, rgba(243, 90, 123, 0.06) 40%, transparent 70%);
  animation: glow-pulse 8s ease-in-out infinite;
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subline {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 400;
}

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

.hero-visual {
  margin-top: var(--spacing-block);
  display: flex;
  justify-content: center;
}

.hero-constellation {
  max-width: 560px;
  width: 100%;
  height: auto;
}

/* ── Link CTAs ── */
.link-cta {
  font-size: 17px;
  color: var(--color-link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}

.link-cta::after {
  content: "\203A";
  font-size: 1.2em;
  transition: transform 0.2s;
}

.link-cta:hover {
  text-decoration: underline;
}

.link-cta:hover::after {
  transform: translateX(3px);
}

/* ── Pill Button ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--color-accent-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
}

.btn-pill:hover {
  background: var(--color-accent-primary-light);
  color: #fff;
  box-shadow: 0 4px 20px rgba(20, 125, 137, 0.3);
  transform: translateY(-1px);
}

.btn-pill:active {
  transform: translateY(0);
}

.btn-pill--hero {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(20, 125, 137, 0.25);
}

.btn-pill--hero:hover {
  box-shadow: 0 6px 28px rgba(20, 125, 137, 0.4);
}

.btn-pill--cta {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  background: var(--color-accent-primary);
  box-shadow: 0 2px 16px rgba(20, 125, 137, 0.2);
}

.btn-pill--cta:hover {
  box-shadow: 0 6px 32px rgba(20, 125, 137, 0.45);
  transform: translateY(-2px);
}

/* ── Highlights Grid ── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.highlight-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 32px rgba(20, 125, 137, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.highlight-card .icon {
  width: 48px;
  height: 48px;
  stroke: var(--color-accent-primary);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.highlight-card h3 {
  font-size: 21px;
}

.highlight-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: var(--content-wide);
  margin-inline: auto;
}

.bento-cell {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-section-alt);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bento-cell--span-2 {
  grid-column: span 2;
}

@media (max-width: 734px) {
  .bento-cell--span-2 { grid-column: span 1; }
}

.bento-cell--dark {
  background: var(--color-bg-dark);
  color: #e8ecec;
}

.bento-cell--accent {
  background: var(--color-accent-primary-subtle);
}

.bento-cell--surface {
  background: var(--color-surface);
}

/* ── Agent Cards ── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.agent-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 32px rgba(20, 125, 137, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.agent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0.7;
  transition: opacity 0.3s, height 0.3s;
}

.agent-card:hover::before {
  opacity: 1;
  height: 4px;
}

.agent-card .agent-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.agent-card .agent-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-accent-primary);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.agent-card .agent-role {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-primary);
  margin-bottom: 8px;
}

.agent-card h3 {
  margin-bottom: 8px;
}

.agent-card .agent-quote {
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.agent-card .agent-skills {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-card .agent-skills li {
  font-size: 15px;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
}

.agent-card .agent-skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-primary-muted);
}

/* ── Feature Sections ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-block);
  align-items: center;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

@media (max-width: 734px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ── Security Layers ── */
.security-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-inline: auto;
}

.security-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-small);
  border-left: 3px solid var(--color-accent-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.security-layer:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 16px rgba(20, 125, 137, 0.08);
}

/* Stack build-up animation */
.stack-layer {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.stack-layer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger from bottom (layer 1) to top (layer 8) */
.security-stack .stack-layer:nth-child(8) { transition-delay: 0s; }
.security-stack .stack-layer:nth-child(7) { transition-delay: 0.08s; }
.security-stack .stack-layer:nth-child(6) { transition-delay: 0.16s; }
.security-stack .stack-layer:nth-child(5) { transition-delay: 0.24s; }
.security-stack .stack-layer:nth-child(4) { transition-delay: 0.32s; }
.security-stack .stack-layer:nth-child(3) { transition-delay: 0.4s; }
.security-stack .stack-layer:nth-child(2) { transition-delay: 0.48s; }
.security-stack .stack-layer:nth-child(1) { transition-delay: 0.56s; }

.security-layer .layer-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent-secondary);
  min-width: 36px;
}

.security-layer .layer-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.security-layer .layer-text p {
  font-size: 14px;
  color: var(--color-text-tertiary);
  max-width: none;
}

/* ── Stats / Counters ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font: 700 clamp(48px, 8vw, 72px) / 1 var(--font-display);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-accent-secondary);
}

.stat-item .stat-label {
  font-size: var(--text-subline);
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 680px;
  margin-inline: auto;
}

/* Background track */
.timeline-line-track {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

/* Animated progress line */
.timeline-line-progress {
  width: 100%;
  height: 0%;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  border: 3px solid var(--color-bg-primary);
  z-index: 1;
  transition: box-shadow 0.3s;
}

.timeline-item.is-visible::before {
  box-shadow: 0 0 0 4px rgba(20, 125, 137, 0.15);
}

.timeline-item .timeline-date {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-accent-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 15px;
}

/* ── Infra Table ── */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.infra-card {
  background: var(--color-surface);
  border-radius: var(--radius-small);
  padding: 28px 24px;
  border-top: 3px solid var(--color-accent-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infra-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.infra-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.infra-card .infra-location {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.infra-card p {
  font-size: 15px;
  max-width: none;
}

.infra-card--coral {
  border-top-color: var(--color-accent-secondary);
}

/* ── CTA Strip ── */
.cta-strip {
  text-align: center;
  background: var(--color-bg-primary);
  padding-block: var(--spacing-section);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(20, 125, 137, 0.08) 0%, rgba(243, 90, 123, 0.04) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.cta-strip .section-content {
  position: relative;
  z-index: 1;
}

.cta-strip h2 {
  margin-bottom: 16px;
}

.cta-strip p {
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-strip .cta-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--color-bg-section-alt);
  border-top: 1px solid var(--color-divider);
  padding: 60px var(--content-padding) 0;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.footer-content {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 734px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  max-width: none;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  max-width: none;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-links a {
  font-size: 14px;
  color: var(--color-text-tertiary);
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 20px 0;
  border-top: 1px solid var(--color-divider-subtle);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-tertiary);
  max-width: none;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-accent-primary);
  color: #fff;
  border-color: var(--color-accent-primary);
  box-shadow: 0 4px 20px rgba(20, 125, 137, 0.3);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 734px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ── Hero Immediate (no reveal animation) ── */
.hero-immediate {
  opacity: 1;
  transform: none;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Staggered reveals for grid items */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-group > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-group > *:nth-child(8) { transition-delay: 0.56s; }

/* ── SVG Line Draw ── */
.line-draw path,
.line-draw line,
.line-draw circle,
.line-draw rect {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s ease-out;
}

.line-draw.is-visible path,
.line-draw.is-visible line,
.line-draw.is-visible circle,
.line-draw.is-visible rect {
  stroke-dashoffset: 0;
}

/* ── Icon base ── */
.icon {
  stroke: var(--color-text-secondary);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--accent {
  stroke: var(--color-accent-primary);
}

/* ── Section Glow ── */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: var(--gradient-glow);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.section-glow > * {
  position: relative;
  z-index: 1;
}

/* ── ADR / Decision Table ── */
.decisions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.decision-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-small);
  transition: transform 0.2s, box-shadow 0.2s;
}

.decision-item:hover {
  transform: translateX(2px);
}

.decision-item .decision-id {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-primary);
}

.decision-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.decision-item p {
  font-size: 14px;
  color: var(--color-text-tertiary);
  max-width: none;
}

/* ── Roadmap ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.roadmap-card {
  background: var(--color-surface);
  border-radius: var(--radius-small);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.roadmap-card .roadmap-prio {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 980px;
  display: inline-block;
  width: fit-content;
}

.roadmap-prio--high {
  background: var(--color-accent-secondary-subtle);
  color: var(--color-accent-secondary-dark);
}

.roadmap-prio--medium {
  background: var(--color-accent-primary-subtle);
  color: var(--color-accent-primary-dark);
}

.roadmap-prio--low {
  background: rgba(0,0,0,0.04);
  color: var(--color-text-tertiary);
}

/* ── Network Diagram ── */
.network-svg {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  display: block;
}

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--spacing-block);
  flex-wrap: wrap;
}

.tab-item {
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 14px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border: 1px solid var(--color-divider);
}

.tab-item.active {
  background: var(--color-accent-primary);
  color: #ffffff;
  border-color: var(--color-accent-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Scenario Box ── */
.scenario-box {
  background: var(--color-surface);
  border-radius: var(--radius-small);
  padding: 28px 32px;
  margin-top: 24px;
  border-left: 3px solid var(--color-accent-secondary);
}

.scenario-box h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-accent-secondary);
}

.scenario-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-box li {
  font-size: 15px;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
}

.scenario-box li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
}

/* ── Utility ── */
.mt-block { margin-top: var(--spacing-block); }
.mb-block { margin-bottom: var(--spacing-block); }
.mx-auto { margin-inline: auto; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stack-layer {
    opacity: 1;
    transform: none;
  }

  .hero-glow {
    animation: none;
    opacity: 0.6;
  }

  .line-draw path,
  .line-draw line,
  .line-draw circle,
  .line-draw rect {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .timeline-line-progress {
    height: 100% !important;
  }
}
