/* Hyperlinks Space Strategy — HSP-aligned design system */
:root {
  --brand-green: #1AAA11;
  --brand-blue: #2a2aff;
  --brand-violet: #7a2cff;
  --brand-magenta: #ff2ad4;
  --accent-cyan: #4a6cf7;
  --accent-violet: var(--brand-violet);
  --accent-amber: #fbbf24;
  --accent-green: var(--brand-green);
  --accent-rose: var(--brand-magenta);
  --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --strip-h: 52px;
  --bar-float-gap: 14px;
  --bar-float-max: min(1080px, calc(100vw - 28px));
  --bar-radius: 999px;
  --header-stack: calc(var(--header-h) + var(--bar-float-gap) * 2);
  --strip-stack: calc(var(--strip-h) + var(--bar-float-gap) * 2);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* Strict / clear surfaces — no frosted mush */
  --glass-blur: 0px;
  --glass-saturate: 1.45;
  --surface-solid: rgba(12, 12, 18, 0.94);
  --surface-solid-light: rgba(255, 255, 255, 0.96);
  --edge-hairline: 1px solid var(--border-strong);
  --overlay-shadow: 0 12px 40px rgba(0, 0, 0, 0.36);
  --hover-accent-glow: 0 0 28px rgba(74, 108, 247, 0.14);
  --deco-glow-opacity: 0.55;
  --lg-shimmer-global: 0;
  --lg-hero-proximity: 0;
  /* WCAG 2.2 — text on filled brand surfaces */
  --text-on-brand: #FFFFFF;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #000000;
  --bg-secondary: #0C0C0C;
  --bg-card: #121212;
  --bg-card-hover: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #C2C2C2;
  --text-muted: #949494;
  --border: rgba(140, 140, 140, 0.38);
  --border-strong: rgba(170, 170, 170, 0.52);
  --border-subtle: #3A3A3A;
  --undercover: #1E1E1E;
  --border-glow: rgba(47, 212, 24, 0.55);
  --glass-bg: rgba(14, 14, 14, 0.96);
  --glass-border: rgba(160, 160, 160, 0.55);
  --glass-highlight: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.38);
  --header-bg: rgba(0, 0, 0, 0.9);
  --grid-opacity: 0.04;
  --brand-green-display: #2FD418;
  --brand-green-solid: #128A0E;
  --accent-link: #7B9AFF;
  --accent-cyan-display: #7B9AFF;
  --accent-violet-display: #B794FF;
  --accent-amber-display: #FBBF24;
  --accent-rose-display: #FF6AD4;
  --surface-elevated: #121212;
  --surface-muted: #181818;
  --chip-bg: rgba(255, 255, 255, 0.07);
  --chip-border: rgba(255, 255, 255, 0.14);
  --active-bg: rgba(47, 212, 24, 0.14);
  --active-border: rgba(47, 212, 24, 0.55);
  --focus-ring: rgba(47, 212, 24, 0.45);
  --north-gradient: linear-gradient(135deg, rgba(74, 108, 247, 0.12), rgba(122, 44, 255, 0.1));
  --promo-btn-bg: linear-gradient(135deg, rgba(0, 200, 255, 0.22), rgba(120, 80, 255, 0.18));
  --promo-btn-border: rgba(0, 220, 255, 0.45);
  /* Header chrome — cosmic spectrum aligned with hero orb */
  --header-chrome-bg:
    linear-gradient(
      132deg,
      rgba(8, 10, 24, 0.98) 0%,
      rgba(14, 10, 32, 0.96) 28%,
      rgba(10, 18, 30, 0.97) 58%,
      rgba(8, 14, 22, 0.98) 100%
    );
  --header-chrome-border: rgba(74, 108, 247, 0.42);
  --header-chrome-glow:
    0 0 0 1px rgba(122, 44, 255, 0.18),
    0 10px 40px rgba(0, 0, 0, 0.52),
    0 0 72px rgba(74, 108, 247, 0.14),
    0 0 120px rgba(122, 44, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(122, 44, 255, 0.12);
  --lg-caustic-a: rgba(74, 108, 247, 0.22);
  --lg-caustic-b: rgba(122, 44, 255, 0.16);
  --lg-caustic-c: rgba(26, 170, 17, 0.1);
  --lg-specular: rgba(255, 255, 255, 0.42);
  --lg-iris-opacity: 0.72;
  --header-nav-text: #D2DAFF;
  --header-nav-hover-bg: rgba(74, 108, 247, 0.14);
  --header-nav-hover-border: rgba(74, 108, 247, 0.32);
  --header-nav-active-gradient: linear-gradient(90deg, #4a6cf7, #7a2cff, #128A0E);
  --header-promo-gradient: linear-gradient(135deg, #4a6cf7 0%, #7a2cff 50%, #128A0E 100%);
  --header-promo-glow: 0 0 28px rgba(74, 108, 247, 0.38), 0 0 14px rgba(26, 170, 17, 0.22);
  --header-switch-bg: rgba(255, 255, 255, 0.08);
  --header-switch-border: rgba(255, 255, 255, 0.16);
  --header-switch-fg: #CBD5E1;
  --header-switch-fg-hover: #F8FAFC;
  --header-switch-active-bg: #3D5CE8;
  --header-switch-active-fg: #FFFFFF;
  --header-switch-active: #3D5CE8;
  --overlay-shadow: 0 12px 40px rgba(0, 0, 0, 0.36);
  --hover-accent-glow: 0 0 28px rgba(74, 108, 247, 0.14);
  --deco-glow-opacity: 0.55;
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    color-scheme: light;
    --surface-solid: #FFFFFF;
    --bg-primary: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --border-subtle: rgba(15, 23, 42, 0.05);
    --undercover: rgba(15, 23, 42, 0.03);
    --border-glow: rgba(22, 101, 52, 0.28);
    --glass-bg: rgba(255, 255, 255, 0.96);
    --glass-border: rgba(15, 23, 42, 0.10);
    --glass-highlight: rgba(255, 255, 255, 1);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
    --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --header-bg: rgba(255, 255, 255, 0.94);
    --grid-opacity: 0.22;
    --brand-green-display: #15803D;
    --brand-green-solid: #166534;
    --accent-link: #2563EB;
    --accent-cyan-display: #2563EB;
    --accent-violet-display: #6D28D9;
    --accent-amber-display: #92400E;
    --accent-rose-display: #A21CAF;
    --surface-elevated: #FFFFFF;
    --surface-muted: #F1F5F9;
    --chip-bg: rgba(15, 23, 42, 0.04);
    --chip-border: rgba(15, 23, 42, 0.08);
    --active-bg: rgba(22, 101, 52, 0.08);
    --active-border: rgba(22, 101, 52, 0.32);
    --focus-ring: rgba(37, 99, 235, 0.42);
    --north-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(109, 40, 217, 0.04));
    --promo-btn-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(109, 40, 217, 0.04));
    --promo-btn-border: rgba(37, 99, 235, 0.18);
    --light-card-surface: #FFFFFF;
    --light-section-wash: #F1F5F9;
    --light-body-aurora:
      radial-gradient(ellipse 90% 55% at 88% -4%, rgba(37, 99, 235, 0.05), transparent 52%),
      radial-gradient(ellipse 70% 45% at 6% 16%, rgba(109, 40, 217, 0.03), transparent 48%);
    --orb-viewport-bg:
      radial-gradient(ellipse 85% 65% at 50% 38%, rgba(37, 99, 235, 0.10), transparent 62%),
      linear-gradient(165deg, #F8FAFC 0%, #F1F5F9 100%);
    --orb-grid-line: rgba(15, 23, 42, 0.07);
    --orb-grid-opacity: 0.32;
    --header-chrome-bg: rgba(255, 255, 255, 0.94);
    --header-chrome-border: rgba(15, 23, 42, 0.10);
    --header-chrome-glow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 8px 24px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 1);
    --lg-caustic-a: rgba(37, 99, 235, 0.07);
    --lg-caustic-b: rgba(109, 40, 217, 0.05);
    --lg-caustic-c: rgba(22, 101, 52, 0.04);
    --lg-specular: rgba(255, 255, 255, 0.92);
    --lg-iris-opacity: 0.42;
    --header-nav-text: #1E293B;
    --header-nav-hover-bg: rgba(15, 23, 42, 0.04);
    --header-nav-hover-border: rgba(15, 23, 42, 0.12);
    --header-nav-active-gradient: linear-gradient(90deg, #2563EB, #7C3AED, #166534);
    --header-promo-gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #166534 100%);
    --header-promo-glow: 0 4px 20px rgba(37, 99, 235, 0.18), 0 0 10px rgba(22, 101, 52, 0.10);
    --header-switch-bg: rgba(255, 255, 255, 0.92);
    --header-switch-border: rgba(15, 23, 42, 0.12);
    --header-switch-fg: #475569;
    --header-switch-fg-hover: #0F172A;
    --header-switch-active-bg: #2563EB;
    --header-switch-active-fg: #FFFFFF;
    --header-switch-active: #2563EB;
    --overlay-shadow: 0 12px 40px rgba(15, 23, 42, 0.10);
    --hover-accent-glow: 0 4px 18px rgba(37, 99, 235, 0.08);
    --deco-glow-opacity: 0.32;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --surface-solid: #FFFFFF;
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --border-subtle: rgba(15, 23, 42, 0.05);
  --undercover: rgba(15, 23, 42, 0.03);
  --border-glow: rgba(22, 101, 52, 0.28);
  --glass-bg: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(15, 23, 42, 0.10);
  --glass-highlight: rgba(255, 255, 255, 1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --header-bg: rgba(255, 255, 255, 0.94);
  --grid-opacity: 0.22;
  --brand-green-display: #15803D;
  --brand-green-solid: #166534;
  --accent-link: #2563EB;
  --accent-cyan-display: #2563EB;
  --accent-violet-display: #6D28D9;
  --accent-amber-display: #92400E;
  --accent-rose-display: #A21CAF;
  --surface-elevated: #FFFFFF;
  --surface-muted: #F1F5F9;
  --chip-bg: rgba(15, 23, 42, 0.04);
  --chip-border: rgba(15, 23, 42, 0.08);
  --active-bg: rgba(22, 101, 52, 0.08);
  --active-border: rgba(22, 101, 52, 0.32);
  --focus-ring: rgba(37, 99, 235, 0.42);
  --north-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(109, 40, 217, 0.04));
  --promo-btn-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(109, 40, 217, 0.04));
  --promo-btn-border: rgba(37, 99, 235, 0.18);
  --light-card-surface: #FFFFFF;
  --light-section-wash: #F1F5F9;
  --light-body-aurora:
    radial-gradient(ellipse 90% 55% at 88% -4%, rgba(37, 99, 235, 0.05), transparent 52%),
    radial-gradient(ellipse 70% 45% at 6% 16%, rgba(109, 40, 217, 0.03), transparent 48%);
  --orb-viewport-bg:
    radial-gradient(ellipse 85% 65% at 50% 38%, rgba(37, 99, 235, 0.10), transparent 62%),
    linear-gradient(165deg, #F8FAFC 0%, #F1F5F9 100%);
  --orb-grid-line: rgba(15, 23, 42, 0.07);
  --orb-grid-opacity: 0.32;
  --header-chrome-bg: rgba(255, 255, 255, 0.94);
  --header-chrome-border: rgba(15, 23, 42, 0.10);
  --header-chrome-glow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  --lg-caustic-a: rgba(37, 99, 235, 0.07);
  --lg-caustic-b: rgba(109, 40, 217, 0.05);
  --lg-caustic-c: rgba(22, 101, 52, 0.04);
  --lg-specular: rgba(255, 255, 255, 0.92);
  --lg-iris-opacity: 0.42;
  --header-nav-text: #1E293B;
  --header-nav-hover-bg: rgba(15, 23, 42, 0.04);
  --header-nav-hover-border: rgba(15, 23, 42, 0.12);
  --header-nav-active-gradient: linear-gradient(90deg, #2563EB, #7C3AED, #166534);
  --header-promo-gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #166534 100%);
  --header-promo-glow: 0 4px 20px rgba(37, 99, 235, 0.18), 0 0 10px rgba(22, 101, 52, 0.10);
  --header-switch-bg: rgba(255, 255, 255, 0.92);
  --header-switch-border: rgba(15, 23, 42, 0.12);
  --header-switch-fg: #475569;
  --header-switch-fg-hover: #0F172A;
  --header-switch-active-bg: #2563EB;
  --header-switch-active-fg: #FFFFFF;
  --header-switch-active: #2563EB;
  --overlay-shadow: 0 12px 40px rgba(15, 23, 42, 0.10);
  --hover-accent-glow: 0 4px 18px rgba(37, 99, 235, 0.08);
  --deco-glow-opacity: 0.32;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-stack) + 8px);
  scroll-padding-bottom: calc(var(--strip-stack) + 8px);
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* WCAG 2.2 AA — placeholders must not rely on browser fade */
.ai-core-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.ai-core-voice svg,
.ai-core-mic svg {
  stroke: currentColor;
}

.ai-core-mic-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 1.65rem;
  height: 1.15rem;
}

.ai-core-mic-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-core-mic-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 1.05rem;
}

.ai-core-mic.is-listening .ai-core-mic-eq,
.ai-core-mic.is-enabled .ai-core-mic-eq {
  display: inline-flex;
}

.ai-core-mic-eq-bar {
  width: 2.5px;
  height: var(--eq-level, 12%);
  min-height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: bottom center;
  transition: height 0.05s ease-out;
  opacity: 0.95;
  box-shadow: 0 0 6px currentColor;
}

.ai-core-mic.is-listening .ai-core-mic-eq-bar {
  box-shadow: 0 0 8px color-mix(in srgb, currentColor 55%, transparent);
  animation: none;
  height: var(--eq-level, 12%);
}

.ai-core-mic.is-enabled:not(.is-listening) .ai-core-mic-eq-bar {
  animation: ai-mic-eq-idle 1.1s ease-in-out infinite;
  box-shadow: none;
}

.ai-core-mic.is-enabled:not(.is-listening) .ai-core-mic-eq--left .ai-core-mic-eq-bar:nth-child(1) { animation-delay: 0s; }
.ai-core-mic.is-enabled:not(.is-listening) .ai-core-mic-eq--left .ai-core-mic-eq-bar:nth-child(2) { animation-delay: 0.18s; }
.ai-core-mic.is-enabled:not(.is-listening) .ai-core-mic-eq--right .ai-core-mic-eq-bar:nth-child(1) { animation-delay: 0.09s; }
.ai-core-mic.is-enabled:not(.is-listening) .ai-core-mic-eq--right .ai-core-mic-eq-bar:nth-child(2) { animation-delay: 0.27s; }

@keyframes ai-mic-eq-idle {
  0%, 100% { height: 22%; }
  50% { height: 58%; }
}

.ai-core-mic-icon--off {
  display: none;
}

.ai-core-mic.is-off .ai-core-mic-icon--on,
.ai-core-mic.is-denied .ai-core-mic-icon--on {
  display: none;
}

.ai-core-mic.is-off .ai-core-mic-icon--off,
.ai-core-mic.is-denied .ai-core-mic-icon--off {
  display: block;
}

@media (prefers-contrast: more) {
  [data-theme="dark"] {
    --text-muted: #B0B0B0;
    --header-nav-text: #EEF1FF;
    --header-switch-fg: #E2E8F0;
    --header-switch-fg-hover: #FFFFFF;
    --brand-green-display: #3AE820;
    --accent-violet-display: #D4BCFF;
    --accent-amber-display: #FFD666;
  }

  [data-theme="light"] {
    --text-muted: #2E3654;
    --text-secondary: #1E2640;
    --header-nav-text: #121830;
    --header-switch-fg: #334155;
    --header-switch-fg-hover: #0F172A;
    --brand-green-display: #066605;
    --brand-green-solid: #066605;
    --accent-violet-display: #5B21B6;
    --accent-amber-display: #7C2D12;
    --accent-rose-display: #86198F;
  }
}

/* WebGL background */
.scene-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scene-bg.scene-bg--static {
  display: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: var(--grid-opacity);
  mask-image: radial-gradient(ellipse at 70% 30%, black 38%, transparent 62%);
}

/* Liquid glass — CSS fallback + host for WebGL lens */
.glass,
.glass-bar {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--shadow-sm);
}

/* Light theme — luminous surfaces with brand spectrum (not flat gray) */
[data-theme="light"] .glass:not(.liquid-glass-host):not(.glass-pillow),
[data-theme="light"] .glass-bar:not(.liquid-glass-host):not(.glass-pillow),
[data-theme="light"] .site-header:not(.liquid-glass-host):not(.glass-pillow),
[data-theme="light"] .header-panel,
[data-theme="light"] .stat,
[data-theme="light"] .card,
[data-theme="light"] .promo-block:not(.liquid-glass-host),
[data-theme="light"] .hero-stage:not(.liquid-glass-host) {
  background: var(--light-card-surface, var(--glass-bg));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .section-alt {
  background: var(--light-section-wash, var(--bg-secondary));
  border-color: var(--border);
}

[data-theme="light"] .header-promo-link:hover {
  box-shadow: var(--header-promo-glow);
  transform: translateY(-1px);
}

[data-theme="light"] .promo-features li {
  border-color: var(--chip-border);
  background: var(--chip-bg);
}

[data-theme="light"] .ai-core-chip {
  border-color: var(--chip-border);
  background: var(--chip-bg);
}

[data-theme="light"] .ai-core-chip:hover {
  border-color: var(--active-border);
  box-shadow: var(--hover-accent-glow);
}

[data-theme="light"] .ai-core-header {
  border-bottom-color: var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent);
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .card:hover,
[data-theme="light"] .card-glow:hover {
  box-shadow: var(--shadow-md), var(--hover-accent-glow);
}

[data-theme="light"] .btn-promo {
  background: var(--promo-btn-bg);
  border-color: var(--promo-btn-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-promo:hover {
  border-color: var(--active-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .section-chip.is-active {
  box-shadow: none;
}

[data-theme="light"] .section-strip-undercover {
  background: var(--header-nav-hover-bg);
  border-color: var(--active-border);
  box-shadow: var(--shadow-sm), var(--hover-accent-glow);
}

[data-theme="light"] .ai-core-panel {
  background: var(--surface-solid, var(--light-card-surface));
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .ai-core-msg--user {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-primary);
}

[data-theme="light"] .hero-stage {
  background: transparent;
  border-color: var(--border);
}

[data-theme="light"] .ai-core-pulse {
  box-shadow: 0 0 12px var(--border-glow);
}

[data-theme="light"] .glass::before,
[data-theme="light"] .glass-bar::before {
  display: block;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    transparent 48%,
    transparent 100%
  );
}

[data-theme="light"] .btn-primary {
  background: var(--brand-green-solid);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 101, 52, 0.28);
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] .glass:not(.liquid-glass-host):not(.glass-pillow),
  [data-theme="system"] .glass-bar:not(.liquid-glass-host):not(.glass-pillow),
  [data-theme="system"] .site-header:not(.liquid-glass-host):not(.glass-pillow),
  [data-theme="system"] .header-panel,
  [data-theme="system"] .stat,
  [data-theme="system"] .card,
  [data-theme="system"] .promo-block:not(.liquid-glass-host),
  [data-theme="system"] .hero-stage:not(.liquid-glass-host) {
    background: var(--light-card-surface, var(--glass-bg));
    border-color: var(--glass-border);
    box-shadow: var(--shadow-sm);
  }

  [data-theme="system"] .section-alt {
    background: var(--light-section-wash, var(--bg-secondary));
    border-color: var(--border);
  }

  [data-theme="system"] .ai-core-panel {
    background: var(--surface-solid, var(--light-card-surface));
    border-color: var(--border);
    box-shadow: var(--shadow-md);
  }

  [data-theme="system"] .ai-core-header {
    border-bottom-color: var(--border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent);
  }

  [data-theme="system"] .ai-core-chip {
    border-color: var(--chip-border);
    background: var(--chip-bg);
  }

  [data-theme="system"] .ai-core-chip:hover {
    border-color: var(--active-border);
    box-shadow: var(--hover-accent-glow);
  }

  [data-theme="system"] .ai-core-msg--user {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-primary);
  }

  [data-theme="system"] .ai-core-pulse {
    box-shadow: 0 0 12px var(--border-glow);
  }

  [data-theme="system"] .glass::before,
  [data-theme="system"] .glass-bar::before {
    display: block;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.85) 0%,
      transparent 48%,
      transparent 100%
    );
  }

  [data-theme="system"] .btn-primary {
    background: var(--brand-green-solid);
    color: var(--text-on-brand);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(22, 101, 52, 0.28);
  }

  [data-theme="system"] .ai-orb-zone {
    border-color: var(--border);
    background: var(--orb-viewport-bg);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.72),
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      var(--shadow-sm);
  }

  [data-theme="system"] .orb-nebula {
    opacity: 0.72;
    filter: blur(18px);
    background:
      radial-gradient(circle at 38% 42%, rgba(109, 40, 217, 0.14) 0%, transparent 42%),
      radial-gradient(circle at 62% 38%, rgba(37, 99, 235, 0.12) 0%, transparent 44%),
      radial-gradient(circle at 50% 58%, rgba(22, 101, 52, 0.08) 0%, transparent 48%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0%, transparent 58%);
  }

  [data-theme="system"] .orb-grid-perspective {
    background-image:
      linear-gradient(var(--orb-grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--orb-grid-line) 1px, transparent 1px);
    opacity: var(--orb-grid-opacity);
  }

  [data-theme="system"] .orb-ring--1 {
    border-color: rgba(37, 99, 235, 0.28);
    border-width: 1.5px;
    box-shadow: none;
  }

  [data-theme="system"] .orb-ring--2 {
    border-color: rgba(109, 40, 217, 0.22);
    border-width: 1.5px;
  }

  [data-theme="system"] .orb-ring--3 {
    border-color: rgba(22, 101, 52, 0.24);
    border-width: 1.5px;
  }

  [data-theme="system"] .ai-orb-halo {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
      0 0 0 1px rgba(109, 40, 217, 0.08),
      inset 0 0 24px rgba(37, 99, 235, 0.06);
  }

  [data-theme="system"] .orb-core-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(109, 40, 217, 0.08) 35%, transparent 72%);
    opacity: 0.85;
  }

  [data-theme="system"] .hero-lightning-canvas {
    mix-blend-mode: multiply;
    opacity: 0.82;
  }
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .btn-promo {
    background: var(--promo-btn-bg);
    border-color: var(--promo-btn-border);
    color: var(--text-primary);
  }
}

.glass::before,
.glass-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 42%,
    transparent 58%,
    rgba(26, 170, 17, 0.06) 100%
  );
}

/* RPine-style floating glass pillows — header + bottom bar */
.glass-pillow {
  border-radius: var(--bar-radius);
  overflow: hidden;
  isolation: isolate;
}

.site-header.glass-pillow,
.section-strip.glass-pillow {
  background: var(--header-chrome-bg);
  backdrop-filter: saturate(1.65) contrast(1.04);
  -webkit-backdrop-filter: saturate(1.65) contrast(1.04);
  border: 1px solid var(--header-chrome-border);
  box-shadow: var(--header-chrome-glow);
  contain: layout style;
  transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
}

.site-header.glass-pillow::before,
.section-strip.glass-pillow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: calc(0.82 + var(--lg-intensity, 0.38) * 0.18);
  background:
    radial-gradient(ellipse 58% 48% at calc(var(--lg-x, 12%) * 0.35 + 6%) calc(var(--lg-y, 50%) * 0.42 + 18%), rgba(74, 108, 247, 0.2), transparent 64%),
    radial-gradient(ellipse 46% 52% at calc(100% - var(--lg-x, 88%) * 0.28) calc(var(--lg-y, 42%) * 0.55 + 8%), rgba(122, 44, 255, 0.15), transparent 58%),
    radial-gradient(ellipse 62% 38% at calc(50% + var(--lg-x, 50%) * 0.08 - 25%) 112%, rgba(26, 170, 17, 0.1), transparent 54%),
    radial-gradient(ellipse 28% 22% at calc(var(--lg-x, 50%) * 0.9) calc(var(--lg-y, 28%) * 0.6), rgba(42, 200, 255, 0.08), transparent 70%);
  animation: glass-pillow-breathe 27s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}

.site-header.glass-pillow::after,
.section-strip.glass-pillow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.042;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

@keyframes glass-pillow-breathe {
  0% { opacity: calc(0.78 + var(--lg-intensity, 0.38) * 0.16); transform: scale(1); }
  41% { opacity: calc(0.92 + var(--lg-intensity, 0.38) * 0.08); transform: scale(1.012); }
  73% { opacity: calc(0.84 + var(--lg-intensity, 0.38) * 0.12); transform: scale(1.006); }
  100% { opacity: calc(0.88 + var(--lg-intensity, 0.38) * 0.14); transform: scale(1.018); }
}

/* Header over hero: iridescent glass over orb colors */
.site-header.glass-pillow.liquid-glass-host.header-over-hero {
  background:
    linear-gradient(
      135deg,
      rgba(6, 8, 22, 0.78) 0%,
      rgba(10, 8, 28, 0.72) 40%,
      rgba(8, 14, 24, 0.75) 100%
    ) !important;
  backdrop-filter: saturate(1.9) contrast(1.08);
  -webkit-backdrop-filter: saturate(1.9) contrast(1.08);
  border-color: rgba(140, 170, 255, 0.42);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(74, 108, 247, 0.32),
    0 0 72px rgba(74, 108, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(122, 44, 255, 0.16);
}

[data-theme="light"] .site-header.glass-pillow.liquid-glass-host.header-over-hero {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  border-color: var(--header-chrome-border);
  box-shadow: var(--header-chrome-glow);
}

.site-header.glass-pillow.is-scrolled {
  border-color: rgba(140, 170, 255, 0.38);
  backdrop-filter: saturate(1.82) contrast(1.06);
  -webkit-backdrop-filter: saturate(1.82) contrast(1.06);
  box-shadow:
    var(--header-chrome-glow),
    0 16px 52px rgba(0, 0, 0, 0.38),
    0 0 88px rgba(74, 108, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .site-header.glass-pillow.is-scrolled {
  border-color: var(--header-chrome-border);
  box-shadow: var(--header-chrome-glow);
}

.section-strip.glass-pillow {
  box-shadow:
    var(--header-chrome-glow),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 48px rgba(74, 108, 247, 0.06);
}

.section-strip.liquid-glass-strip .liquid-glass-iridescent {
  opacity: calc(var(--lg-iris-opacity, 0.72) * (0.42 + var(--lg-intensity) * 0.28));
}

.section-strip.liquid-glass-strip .liquid-glass-specular {
  opacity: calc(0.14 + var(--lg-intensity) * 0.24);
  animation-duration: 21s;
}

.section-strip.liquid-glass-strip .liquid-glass-sheen {
  animation-duration: 37s;
  opacity: calc(0.28 + var(--lg-intensity) * 0.22);
}

[data-theme="light"] .site-header.glass-pillow,
[data-theme="light"] .section-strip.glass-pillow {
  background: var(--header-chrome-bg);
  border-color: var(--header-chrome-border);
  backdrop-filter: saturate(1.12) blur(10px);
  -webkit-backdrop-filter: saturate(1.12) blur(10px);
  box-shadow: var(--header-chrome-glow);
}

[data-theme="light"] .site-header.glass-pillow::before,
[data-theme="light"] .section-strip.glass-pillow::before {
  opacity: calc(0.35 + var(--lg-intensity, 0.38) * 0.08);
  background:
    radial-gradient(ellipse 52% 44% at calc(var(--lg-x, 12%) * 0.32 + 8%) calc(var(--lg-y, 50%) * 0.4 + 22%), rgba(37, 99, 235, 0.08), transparent 62%),
    radial-gradient(ellipse 44% 48% at calc(100% - var(--lg-x, 88%) * 0.25) calc(var(--lg-y, 42%) * 0.5 + 10%), rgba(109, 40, 217, 0.05), transparent 58%);
}

[data-theme="light"] .site-header.glass-pillow::after,
[data-theme="light"] .section-strip.glass-pillow::after {
  opacity: 0.028;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] .site-header.glass-pillow,
  [data-theme="system"] .section-strip.glass-pillow {
    background: var(--header-chrome-bg);
    border-color: var(--header-chrome-border);
    box-shadow: var(--header-chrome-glow);
  }

  [data-theme="system"] .liquid-glass-host {
    background: var(--header-chrome-bg) !important;
  }

  [data-theme="system"] .liquid-glass-pill {
    background: var(--header-chrome-bg) !important;
    border-color: var(--header-chrome-border);
  }
}

/* Liquid glass — interactive lens + sheen (dropdowns only) */
.liquid-glass-host,
.liquid-glass-pill,
.liquid-glass-pillow {
  --lg-x: 50%;
  --lg-y: 28%;
  --lg-intensity: 0.38;
  --lg-shimmer: var(--lg-shimmer-global, 0);
  --lg-phase: 0;
  position: relative;
  overflow: hidden;
}

.liquid-glass-host {
  background: var(--header-chrome-bg) !important;
  backdrop-filter: saturate(calc(1.65 + var(--lg-hero-proximity, 0) * 0.35)) contrast(calc(1.04 + var(--lg-hero-proximity, 0) * 0.06));
  -webkit-backdrop-filter: saturate(calc(1.65 + var(--lg-hero-proximity, 0) * 0.35)) contrast(calc(1.04 + var(--lg-hero-proximity, 0) * 0.06));
}

/* Caustic light pool — irregular drift */
.liquid-glass-caustics {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: calc(0.42 + var(--lg-intensity) * 0.28);
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 42% 38% at calc(var(--lg-x) + 8%) calc(var(--lg-y) - 6%), var(--lg-caustic-a, rgba(74, 108, 247, 0.22)), transparent 72%),
    radial-gradient(ellipse 36% 32% at calc(100% - var(--lg-x)) calc(var(--lg-y) + 12%), var(--lg-caustic-b, rgba(122, 44, 255, 0.16)), transparent 68%),
    radial-gradient(ellipse 28% 24% at calc(var(--lg-x) * 0.6) calc(var(--lg-y) * 1.2), var(--lg-caustic-c, rgba(26, 170, 17, 0.1)), transparent 70%);
  filter: blur(12px);
  animation: lg-caustics-drift 23s ease-in-out infinite alternate;
}

.liquid-glass-strip .liquid-glass-caustics {
  opacity: calc(0.28 + var(--lg-intensity) * 0.22);
  filter: blur(10px);
}

/* Iridescent rim — conic spectrum border */
.liquid-glass-iridescent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: calc(var(--lg-iris-opacity, 0.72) * (0.55 + var(--lg-intensity) * 0.35));
  padding: 1px;
  background: conic-gradient(
    from calc(var(--lg-shimmer, 0) * 360deg + var(--lg-phase, 0) * 57deg),
    rgba(74, 108, 247, 0.85),
    rgba(122, 44, 255, 0.75),
    rgba(255, 42, 212, 0.55),
    rgba(42, 200, 255, 0.65),
    rgba(26, 170, 17, 0.7),
    rgba(74, 108, 247, 0.85)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Specular streak — diagonal luxury highlight */
.liquid-glass-specular {
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: calc(0.18 + var(--lg-intensity) * 0.32);
  mix-blend-mode: overlay;
  background: linear-gradient(
    calc(118deg + var(--lg-phase, 0) * 18deg),
    transparent 38%,
    var(--lg-specular, rgba(255, 255, 255, 0.42)) 49%,
    transparent 58%
  );
  transform: translateX(calc((var(--lg-x) - 50%) * 0.35)) translateY(calc((var(--lg-y) - 28%) * 0.25));
  animation: lg-specular-sweep 17s ease-in-out infinite alternate;
}

.liquid-glass-lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: calc(0.45 + var(--lg-intensity) * 0.45);
  background:
    radial-gradient(
      circle at var(--lg-x) var(--lg-y),
      rgba(255, 255, 255, 0.52) 0%,
      rgba(200, 220, 255, 0.16) 11%,
      transparent 38%
    );
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.liquid-glass-sheen {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: calc(0.34 + var(--lg-intensity) * 0.28);
  background: conic-gradient(
    from calc(var(--lg-shimmer) * 360deg + var(--lg-phase, 0) * 40deg),
    transparent 0deg,
    rgba(26, 170, 17, 0.11) 42deg,
    rgba(74, 108, 247, 0.14) 118deg,
    rgba(255, 42, 212, 0.09) 196deg,
    rgba(42, 200, 255, 0.1) 264deg,
    transparent 330deg
  );
  animation: lg-orbit 31s linear infinite;
}

.liquid-glass-rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, calc(0.18 + var(--lg-intensity) * 0.18)),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 1px 0 0 rgba(74, 108, 247, calc(0.08 + var(--lg-intensity) * 0.1)),
    inset -1px 0 0 rgba(122, 44, 255, calc(0.06 + var(--lg-intensity) * 0.08));
}

/* Live hero chroma — sharp sample + dispersion under header glass */
.liquid-glass-chroma {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

.site-header.header-over-hero .liquid-glass-chroma {
  opacity: 0;
  display: none;
}

.liquid-glass-chroma canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.liquid-glass-dispersion {
  position: absolute;
  inset: -3px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: calc(0.35 + var(--lg-hero-proximity, 0) * 0.45 + var(--lg-intensity) * 0.12);
  mix-blend-mode: screen;
  background:
    linear-gradient(
      calc(102deg + var(--lg-phase, 0) * 24deg),
      rgba(74, 108, 247, 0.72) 0%,
      rgba(122, 44, 255, 0.62) 22%,
      rgba(255, 42, 212, 0.55) 44%,
      rgba(42, 170, 255, 0.5) 66%,
      rgba(26, 170, 17, 0.46) 84%,
      rgba(74, 108, 247, 0.68) 100%
    );
  background-size: 240% 100%;
  animation: header-chroma-flow 19s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.site-header.header-over-hero .liquid-glass-dispersion {
  opacity: calc(0.58 + var(--lg-intensity) * 0.22);
}

[data-theme="light"] .liquid-glass-dispersion,
[data-theme="light"] .site-header.header-over-hero .liquid-glass-dispersion {
  mix-blend-mode: multiply;
  opacity: calc(0.18 + var(--lg-hero-proximity, 0) * 0.16 + var(--lg-intensity) * 0.06);
}

.site-header.liquid-glass-host .liquid-glass-sheen {
  opacity: calc(0.38 + var(--lg-intensity) * 0.32);
  mix-blend-mode: screen;
}

.site-header.liquid-glass-host .liquid-glass-lens {
  opacity: calc(0.42 + var(--lg-intensity) * 0.42);
  mix-blend-mode: overlay;
}

.site-header.liquid-glass-host .liquid-glass-caustics {
  filter: blur(calc(10px + var(--lg-hero-proximity, 0) * 6px));
}

@keyframes header-chroma-flow {
  0% { background-position: 0% 42%; }
  38% { background-position: 88% 58%; }
  62% { background-position: 140% 46%; }
  100% { background-position: 240% 54%; }
}

@keyframes lg-caustics-drift {
  0% { transform: scale(1) rotate(-1.5deg) translate(-2%, -1%); filter: blur(12px); }
  33% { transform: scale(1.06) rotate(0.8deg) translate(3%, 2%); filter: blur(14px); }
  66% { transform: scale(1.03) rotate(-0.5deg) translate(1%, -2%); filter: blur(11px); }
  100% { transform: scale(1.08) rotate(1.2deg) translate(-3%, 1%); filter: blur(15px); }
}

@keyframes lg-specular-sweep {
  0% { transform: translateX(-8%) translateY(-4%) rotate(-2deg); opacity: calc(0.12 + var(--lg-intensity) * 0.2); }
  50% { transform: translateX(6%) translateY(3%) rotate(1deg); opacity: calc(0.22 + var(--lg-intensity) * 0.35); }
  100% { transform: translateX(-5%) translateY(5%) rotate(-1deg); opacity: calc(0.15 + var(--lg-intensity) * 0.25); }
}

@keyframes lg-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.liquid-glass-host > *:not(.liquid-glass-lens):not(.liquid-glass-sheen):not(.liquid-glass-rim):not(.liquid-glass-chroma):not(.liquid-glass-dispersion):not(.liquid-glass-caustics):not(.liquid-glass-specular):not(.liquid-glass-iridescent),
.liquid-glass-pill > *:not(.liquid-glass-lens):not(.liquid-glass-sheen):not(.liquid-glass-rim):not(.liquid-glass-chroma):not(.liquid-glass-dispersion):not(.liquid-glass-caustics):not(.liquid-glass-specular):not(.liquid-glass-iridescent),
.liquid-glass-pillow > *:not(.liquid-glass-lens):not(.liquid-glass-sheen):not(.liquid-glass-rim):not(.liquid-glass-chroma):not(.liquid-glass-dispersion):not(.liquid-glass-caustics):not(.liquid-glass-specular):not(.liquid-glass-iridescent) {
  position: relative;
  z-index: 1;
}

.liquid-glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--header-chrome-bg) !important;
  backdrop-filter: saturate(1.65) contrast(1.04);
  -webkit-backdrop-filter: saturate(1.65) contrast(1.04);
  border: 1px solid var(--header-chrome-border);
  box-shadow:
    var(--header-chrome-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-host::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 42%,
    transparent 58%,
    rgba(26, 170, 17, 0.05) 100%
  );
  z-index: 0;
}

.liquid-glass-pill::after {
  display: none;
}

[data-theme="light"] .liquid-glass-host {
  background: var(--header-chrome-bg) !important;
  backdrop-filter: saturate(1.12) blur(10px);
  -webkit-backdrop-filter: saturate(1.12) blur(10px);
}

[data-theme="light"] .liquid-glass-pill {
  background: var(--header-chrome-bg) !important;
  border-color: var(--header-chrome-border);
  box-shadow: var(--header-chrome-glow);
}

[data-theme="light"] .liquid-glass-lens {
  background: radial-gradient(
    circle at var(--lg-x) var(--lg-y),
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 18%,
    transparent 55%
  );
}

[data-theme="light"] .liquid-glass-host::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    transparent 55%
  );
}

@media (prefers-reduced-motion: reduce) {
  .liquid-glass-sheen,
  .liquid-glass-caustics,
  .liquid-glass-specular,
  .site-header.glass-pillow::before,
  .section-strip.glass-pillow::before,
  .header-promo-link,
  .header-promo-link::before {
    animation: none !important;
  }

  .liquid-glass-sheen { opacity: 0.2; }
  .liquid-glass-caustics { opacity: 0.25; filter: blur(8px); }
  .liquid-glass-specular { opacity: 0.12; }
}

.site-header .logo { grid-column: 1; justify-self: start; }
.site-header .header-nav { grid-column: 2; justify-self: center; }
.site-header .header-actions { grid-column: 3; justify-self: end; }

/* Header */
.site-header {
  position: fixed;
  top: var(--bar-float-gap);
  left: 50%;
  transform: translateX(-50%);
  width: var(--bar-float-max);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  z-index: 1000;
}

.site-header .header-panel {
  grid-column: 1 / -1;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-full-light { display: none; }

.logo-full-dark,
.logo-full-light {
  display: block;
  height: clamp(32px, 4vw, 40px);
  width: auto;
}

[data-theme="light"] .logo-full.logo-full-dark { display: none !important; }
[data-theme="light"] .logo-full.logo-full-light { display: block !important; }

[data-theme="dark"] .logo-full.logo-full-light { display: none !important; }
[data-theme="dark"] .logo-full.logo-full-dark { display: block !important; }

@media (prefers-color-scheme: light) {
  [data-theme="system"] .logo-full.logo-full-dark { display: none !important; }
  [data-theme="system"] .logo-full.logo-full-light { display: block !important; }
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .logo-full.logo-full-light { display: none !important; }
  [data-theme="system"] .logo-full.logo-full-dark { display: block !important; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(74, 108, 247, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .header-nav {
  background: rgba(74, 108, 247, 0.06);
  border-color: rgba(74, 108, 247, 0.16);
}

.header-nav-link {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: var(--header-nav-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  font-family: inherit;
  text-align: center;
  width: auto;
  white-space: nowrap;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.header-nav-link::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(
    from calc(var(--lg-shimmer-global, 0) * 360deg + 120deg),
    rgba(74, 108, 247, 0.75),
    rgba(122, 44, 255, 0.65),
    rgba(255, 42, 212, 0.45),
    rgba(26, 170, 17, 0.55),
    rgba(74, 108, 247, 0.75)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-panel-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  font-family: inherit;
  text-align: center;
  width: auto;
  white-space: nowrap;
}

.header-nav-link.is-open,
.header-nav-link[aria-expanded="true"] {
  color: var(--text-primary);
  background: var(--header-nav-hover-bg);
  border-color: var(--header-nav-hover-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(74, 108, 247, 0.12);
}

.header-nav-link.is-open::after,
.header-nav-link[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  transform: translateX(-50%);
  width: 58%;
  height: 2px;
  border-radius: 2px;
  background: var(--header-nav-active-gradient);
  box-shadow: 0 0 10px rgba(74, 108, 247, 0.55);
}

[data-theme="light"] .header-nav-link.is-open,
[data-theme="light"] .header-nav-link[aria-expanded="true"] {
  background: var(--header-nav-hover-bg);
  border-color: var(--header-nav-hover-border);
}

[data-theme="light"] .header-nav-link.is-open::after,
[data-theme="light"] .header-nav-link[aria-expanded="true"]::after {
  box-shadow: none;
}

.nav-panel {
  display: flex;
  flex-direction: column;
}

.nav-panel-link {
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-trigger {
  border-bottom: none !important;
}

.mobile-nav-chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: -0.12rem;
  opacity: 0.55;
}

.mobile-nav-trigger[aria-expanded="true"] {
  color: var(--text-primary);
  background: var(--active-bg);
}

.mobile-nav-trigger[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(-135deg);
  margin-top: 0.12rem;
  opacity: 0.85;
}

.mobile-nav-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    visibility 0.35s ease;
}

.mobile-nav-item.is-expanded .mobile-nav-body {
  max-height: min(36vh, 280px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-body-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav-intro {
  padding: 0 1.25rem 0.65rem;
}

.mobile-nav-intro p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.mobile-nav-scroll {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.65rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.header-menu-open {
  overflow: hidden;
  touch-action: none;
}

body.header-menu-open main {
  pointer-events: none;
}

body.header-menu-open .site-header {
  z-index: 1100;
}

body.header-menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(3, 6, 14, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
}

[data-theme="light"] body.header-menu-open::before {
  background: rgba(15, 23, 42, 0.28);
}

.header-nav-link:hover {
  color: var(--text-primary);
  background: var(--header-nav-hover-bg);
  border-color: var(--header-nav-hover-border);
  transform: translateY(-1px);
  box-shadow:
    var(--hover-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-nav-link:hover::before {
  opacity: 0.72;
}

.nav-panel-link:hover {
  color: var(--text-primary);
  background: var(--header-nav-hover-bg);
  border-color: var(--header-nav-hover-border);
  transform: translateY(-1px);
}

[data-theme="light"] .header-nav-link:hover {
  background: var(--header-nav-hover-bg);
  border-color: var(--header-nav-hover-border);
}

[data-theme="light"] .nav-panel-link:hover {
  background: var(--header-nav-hover-bg);
  border-color: var(--header-nav-hover-border);
}

/* Header dropdown menus — floating glass pillows */
.nav-dropdowns {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}

.nav-dropdown {
  position: fixed;
  pointer-events: auto;
  width: min(440px, calc(100vw - 24px));
  animation: nav-dd-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-dropdown-panel,
.nav-dropdown-panel.liquid-glass-pillow {
  border-radius: 22px;
  border: 1px solid var(--header-chrome-border);
  box-shadow:
    var(--header-chrome-glow),
    var(--overlay-shadow);
  overflow: hidden;
  background: var(--header-chrome-bg) !important;
  backdrop-filter: saturate(1.65) contrast(1.04);
  -webkit-backdrop-filter: saturate(1.65) contrast(1.04);
}

.liquid-glass-pillow {
  border-radius: 22px;
}

[data-theme="light"] .nav-dropdown-panel {
  background: var(--header-chrome-bg) !important;
  border-color: var(--header-chrome-border);
  box-shadow: var(--header-chrome-glow), var(--shadow-md);
}

@keyframes nav-dd-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-dropdown-head {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--header-chrome-border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent 70%);
}

.nav-dropdown-head h2 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  background: var(--header-nav-active-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-dropdown-head p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 62ch;
}

.nav-dropdown-scroll {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 0.85rem 1.25rem 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.nav-dd-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--undercover);
}

.nav-dd-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.nav-dd-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.55rem;
}

.nav-dd-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.nav-dd-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--active-bg);
  border: 1px solid var(--active-border);
  color: var(--brand-green-display);
}

.nav-dd-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-amber);
}

.nav-dd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-dd-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-link);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.nav-dd-link:hover {
  color: var(--brand-green-display);
  border-color: var(--active-border);
}

.nav-dd-no-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.nav-dd-section {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.35rem 0 0.15rem;
}

.nav-dd-section--planned { color: var(--accent-amber-display); margin-top: 0.75rem; }

.nav-dd-card--planned { border-style: dashed; opacity: 0.95; }

body.nav-dropdown-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-dropdowns,
  .nav-dropdown,
  .nav-dropdown-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-dropdown-panel {
    border-radius: 18px;
    max-height: calc(100vh - var(--header-stack) - var(--strip-stack) - 24px);
  }

  .nav-dropdown-scroll {
    max-height: calc(100vh - var(--header-stack) - var(--strip-stack) - 120px);
  }

  .mobile-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

.header-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-brand);
  background: var(--header-promo-gradient);
  background-size: 180% 180%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--header-promo-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-position 0.45s ease;
  flex-shrink: 0;
  white-space: nowrap;
  animation: promo-gradient-shift 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  position: relative;
  overflow: hidden;
}

.header-promo-link::before {
  content: '';
  position: absolute;
  inset: -40% -60%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 58%
  );
  transform: translateX(-120%);
  animation: promo-specular-pass 11s ease-in-out infinite;
}

@keyframes promo-gradient-shift {
  0% { background-position: 0% 38%; }
  47% { background-position: 72% 62%; }
  100% { background-position: 100% 44%; }
}

@keyframes promo-specular-pass {
  0%, 62% { transform: translateX(-120%); opacity: 0; }
  68% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.header-promo-link::after {
  content: '↗';
  font-size: 0.85em;
  opacity: 0.92;
}

.header-promo-link:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  animation: none;
  box-shadow:
    0 0 36px rgba(74, 108, 247, 0.45),
    0 0 18px rgba(26, 170, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.header-promo-link:hover::before {
  animation: none;
  transform: translateX(0);
  opacity: 0.55;
}

.lang-switch,
.theme-switch {
  display: flex;
  background: var(--header-switch-bg);
  border: 1px solid var(--header-switch-border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --switch-fg: var(--header-switch-fg);
  --switch-fg-hover: var(--header-switch-fg-hover);
  --switch-active-fg: var(--header-switch-active-fg);
  --switch-active-bg: var(--header-switch-active-bg);
  --switch-hover-bg: var(--header-nav-hover-bg);
}

.lang-btn,
.theme-btn {
  background: none;
  border: none;
  padding: 0.42rem 0.58rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.lang-btn {
  color: var(--header-nav-text);
}

.theme-btn {
  color: var(--switch-fg, var(--header-switch-fg));
}

.theme-btn svg {
  display: block;
  flex-shrink: 0;
  color: inherit;
}

.theme-btn svg .theme-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-btn svg .theme-icon-fill {
  fill: currentColor;
  stroke: none;
}

.lang-btn:hover,
.theme-btn:hover:not(.active) {
  color: var(--switch-fg-hover, var(--header-switch-fg-hover));
  background: var(--switch-hover-bg, var(--header-nav-hover-bg));
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active,
.theme-btn.active {
  color: var(--switch-active-fg, var(--header-switch-active-fg));
  background: var(--switch-active-bg, var(--header-switch-active-bg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.theme-btn.active svg .theme-icon-stroke {
  stroke: currentColor;
}

.theme-btn.active svg .theme-icon-fill {
  fill: currentColor;
}

.theme-btn-label { display: none; }

.panel-prefs { display: none; }

.panel-promo-link {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-brand);
  background: var(--header-promo-gradient);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--header-promo-glow);
}

.panel-promo-link::after {
  content: '↗';
}

.header-panel {
  display: none;
  position: fixed;
  z-index: 1001;
  overflow: hidden;
}

.header-panel[hidden] {
  display: none !important;
}

.header-panel.open {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.nav-panel {
  display: flex;
  flex-direction: column;
}

.nav-panel a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.nav-panel a:last-child { border-bottom: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.menu-toggle:not([hidden]) { display: flex; }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Section navigation — bottom bar */
.section-strip {
  position: fixed;
  bottom: var(--bar-float-gap);
  left: 50%;
  transform: translateX(-50%);
  width: var(--bar-float-max);
  top: auto;
  height: var(--strip-h);
  display: block;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  z-index: 900;
}

.section-strip-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min-content;
  height: 100%;
  padding: 0 1rem;
  position: relative;
  vertical-align: top;
}

.section-strip.is-overflow .section-strip-inner {
  display: flex;
  min-width: max-content;
}

.section-strip:not(.is-overflow) {
  overflow-x: hidden;
}

.section-strip:not(.is-overflow) .section-strip-inner {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.section-strip-undercover {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  background: var(--header-nav-hover-bg);
  border: 1px solid var(--active-border);
  box-shadow:
    var(--header-chrome-glow),
    var(--hover-accent-glow);
  opacity: 0;
  transform: translate3d(0, -50%, 0);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width;
}

.section-strip-undercover.is-visible {
  opacity: 1;
}

.section-strip.is-centered {
  overflow-x: hidden;
  text-align: center;
}

.section-strip::-webkit-scrollbar { display: none; }

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}

.section-chip span:first-child {
  color: transparent;
  background: var(--header-nav-active-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 0.65rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 800;
}

.section-chip:hover,
.section-chip.is-active {
  color: var(--text-primary);
  border-color: transparent;
  background: transparent;
}

.section-chip:hover {
  transform: translateY(-1px);
}

.section-chip::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(
    from calc(var(--lg-shimmer-global, 0) * 360deg + 200deg),
    rgba(74, 108, 247, 0.7),
    rgba(122, 44, 255, 0.55),
    rgba(26, 170, 17, 0.5),
    rgba(74, 108, 247, 0.7)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-chip:hover::before {
  opacity: 0.58;
}

.section-chip.is-active::before {
  opacity: 0;
}

.section-chip.is-active {
  font-weight: 700;
  box-shadow: none;
  border-color: transparent;
}

.pref-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pref-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Main layout */
main { position: relative; z-index: 1; padding-top: var(--header-stack); padding-bottom: var(--strip-stack); }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.section[data-cv="hidden"] * {
  animation-play-state: paused !important;
}

.section[data-cv="hidden"] .stratviz-stage *,
.section[data-cv="hidden"] .ai-orb-zone * {
  transition-duration: 0s !important;
}

.section-alt {
  background: var(--surface-muted);
  max-width: none;
  padding-left: max(2rem, calc((100vw - 1200px) / 2));
  padding-right: max(2rem, calc((100vw - 1200px) / 2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-green-display);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc { color: var(--text-secondary); font-size: 1.05rem; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.hero--fullscreen {
  margin-top: calc(-1 * var(--header-stack));
  min-height: calc(100vh - var(--strip-stack));
  max-width: none;
  padding: 0;
  gap: 0;
}

.hero--fullscreen .hero-stage {
  flex: 1;
  min-height: calc(100vh - var(--strip-stack));
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.hero--fullscreen .hero-stage-layout {
  --hero-chat-col: clamp(280px, 34vw, 420px);
  padding:
    calc(var(--header-stack) + clamp(0.75rem, 2vh, 1.25rem))
    clamp(1rem, 3vw, 2.5rem)
    clamp(0.75rem, 2vh, 1.25rem);
  max-width: 1440px;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

.hero--fullscreen .hero-intro {
  padding: 2rem 1.5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green-display);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition), color var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-green-solid);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  opacity: 0.94;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--undercover);
}

.btn-ghost:hover {
  border-color: var(--brand-green-display);
  color: var(--brand-green-display);
  background: var(--active-bg);
}

.btn-promo {
  background: var(--promo-btn-bg);
  border: 1px solid var(--promo-btn-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-promo:hover {
  border-color: var(--active-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.promo-block {
  position: relative;
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
}

.action-dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition), color var(--transition), transform var(--transition);
  border: 1px solid transparent;
  line-height: 1.25;
}

.action-dock-btn--primary {
  background: var(--brand-green-solid);
  color: var(--text-on-brand);
  box-shadow: 0 4px 20px rgba(18, 138, 14, 0.32);
}

.action-dock-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(26, 170, 17, 0.4);
}

.action-dock-btn--promo {
  background: var(--promo-btn-bg);
  border-color: var(--promo-btn-border);
  color: var(--text-primary);
}

.action-dock-btn--promo:hover {
  border-color: var(--active-border);
  transform: translateY(-1px);
}

.action-dock-btn--ghost {
  background: var(--undercover);
  border-color: var(--border);
  color: var(--text-primary);
}

.action-dock-btn--ghost:hover {
  border-color: var(--brand-green-display);
  color: var(--brand-green-display);
}

@media (max-width: 720px) {
  .action-dock {
    grid-template-columns: 1fr;
  }
}

.promo-block-shimmer {
  display: none;
}

.promo-block-inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.5rem;
}

.promo-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green-display);
  background: var(--active-bg);
  border: 1px solid var(--active-border);
}

.promo-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green-display);
}

.promo-url {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.promo-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.promo-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 52ch;
}

.promo-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.promo-features li {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text-primary);
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-on-brand);
  background: var(--brand-green-solid);
  border: 1px solid rgba(18, 138, 14, 0.55);
  transition: opacity var(--transition);
}

.promo-cta:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .promo-block-inner { padding: 1.1rem 1.15rem; }
  .btn-promo { width: 100%; justify-content: center; }
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: min(68vh, 620px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border);
}

.hero--fullscreen .hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.28) calc(var(--hero-chat-col, 34vw) + 1rem),
      rgba(0, 0, 0, 0.06) calc(var(--hero-chat-col, 34vw) + 3rem),
      transparent calc(var(--hero-chat-col, 34vw) + 5rem)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 34%, rgba(0, 0, 0, 0.1) 100%);
}

[data-theme="light"] .hero--fullscreen .hero-stage::before {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.35) calc(var(--hero-chat-col, 34vw) + 1rem),
      rgba(255, 255, 255, 0.08) calc(var(--hero-chat-col, 34vw) + 3rem),
      transparent calc(var(--hero-chat-col, 34vw) + 5rem)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 34%, rgba(255, 255, 255, 0.18) 100%);
}

.hero-stage-layout {
  --hero-chat-col: clamp(280px, 34vw, 420px);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--hero-chat-col) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.65rem, 1.8vw, 1.35rem);
  padding: calc(var(--header-stack) + 1rem) clamp(1rem, 3vw, 2rem) 1rem;
  align-items: stretch;
  pointer-events: none;
}

.hero-stage-layout > * { pointer-events: auto; min-width: 0; min-height: 0; }
.hero-stage-layout > .ai-orb-zone.stratviz-stage { pointer-events: none; }

.ai-orb-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(140, 140, 140, 0.22);
  --orb-reactive-intensity: 0.14;
  --orb-reactive-hue: 220;
  --orb-reactive-pulse: 0.32;
  --orb-reactive-speed: 1;
  --orb-speaking-phase: 0;
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, hsla(var(--orb-reactive-hue), 72%, 58%, calc(0.08 + var(--orb-reactive-intensity) * 0.12)), transparent 68%),
    radial-gradient(ellipse 60% 50% at 72% 68%, rgba(122, 44, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 28% 78%, rgba(26, 170, 17, 0.06), transparent 72%),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -24px 48px hsla(var(--orb-reactive-hue), 70%, 50%, calc(var(--orb-reactive-intensity) * 0.08)),
    0 0 calc(24px + var(--orb-reactive-intensity) * 48px) hsla(var(--orb-reactive-hue), 80%, 55%, calc(var(--orb-reactive-intensity) * 0.18));
}

/* Strategy Cartography viewport — disable legacy hyperlinks.space orb styling */
.ai-orb-zone.stratviz-stage {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  animation: none;
}

.ai-orb-zone.stratviz-stage.orb-reactive--listening,
.ai-orb-zone.stratviz-stage.orb-reactive--thinking,
.ai-orb-zone.stratviz-stage.orb-reactive--typing,
.ai-orb-zone.stratviz-stage.orb-reactive--speaking,
.ai-orb-zone.stratviz-stage.orb-reactive--navigate,
.ai-orb-zone.stratviz-stage.orb-reactive--user {
  animation: none;
  box-shadow: none;
}

.ai-orb-zone:not(.stratviz-stage).orb-reactive--listening {
  border-color: rgba(26, 170, 17, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(26, 170, 17, 0.12),
    0 0 calc(32px + var(--orb-reactive-intensity) * 56px) rgba(26, 170, 17, 0.22);
}

.ai-orb-zone:not(.stratviz-stage).orb-reactive--thinking {
  border-color: rgba(74, 108, 247, 0.38);
}

.ai-orb-zone:not(.stratviz-stage).orb-reactive--typing {
  border-color: rgba(122, 44, 255, 0.35);
}

.ai-orb-zone:not(.stratviz-stage).orb-reactive--speaking {
  border-color: hsla(var(--orb-reactive-hue), 70%, 62%, 0.45);
  animation: orb-speak-border 1.1s ease-in-out infinite;
}

.ai-orb-zone:not(.stratviz-stage).orb-reactive--navigate {
  border-color: rgba(74, 108, 247, 0.5);
}

.ai-orb-zone:not(.stratviz-stage).orb-reactive--user {
  animation: orb-user-flash 0.55s ease-out;
}

.orb-reactive--speaking .orb-core-glow,
.orb-reactive--navigate .orb-core-glow {
  animation: orb-core-breathe calc(2.8s / var(--orb-reactive-speed)) ease-in-out infinite;
}

.orb-reactive--listening .orb-ring--3 {
  border-color: rgba(26, 170, 17, 0.45);
  animation-duration: 3.5s;
}

.orb-reactive--thinking .orb-nebula {
  opacity: 1;
  filter: blur(14px);
}

.orb-reactive--navigate .orb-orbit-rings .orb-ring {
  animation-duration: calc(18s / var(--orb-reactive-speed));
}

@keyframes orb-speak-border {
  0%, 100% { box-shadow: inset 0 0 0 1px hsla(var(--orb-reactive-hue), 70%, 62%, 0.2), 0 0 28px hsla(var(--orb-reactive-hue), 80%, 55%, 0.22); }
  50% { box-shadow: inset 0 0 0 1px hsla(var(--orb-reactive-hue), 70%, 62%, 0.35), 0 0 52px hsla(var(--orb-reactive-hue), 80%, 55%, 0.38); }
}

@keyframes orb-user-flash {
  0% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}

.orb-stage-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.orb-nebula {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 38% 42%, rgba(122, 44, 255, 0.34) 0%, transparent 42%),
    radial-gradient(circle at 62% 38%, rgba(74, 108, 247, 0.28) 0%, transparent 44%),
    radial-gradient(circle at 50% 58%, rgba(26, 170, 17, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  filter: blur(16px);
  opacity: 0.92;
  animation: orb-nebula-drift 14s ease-in-out infinite alternate;
}

.orb-grid-perspective {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 108, 247, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 108, 247, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 48%, #000 15%, transparent 72%);
  transform: perspective(420px) rotateX(58deg) scale(1.35);
  transform-origin: 50% 72%;
  opacity: 0.42;
  animation: orb-grid-float 10s ease-in-out infinite alternate;
}

.orb-orbit-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  width: min(68%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
}

.orb-ring--1 {
  border-color: rgba(74, 108, 247, 0.35);
  box-shadow: 0 0 18px rgba(74, 108, 247, 0.15);
  animation: orb-ring-spin 18s linear infinite;
}

.orb-ring--2 {
  width: min(82%, 460px);
  border-color: rgba(122, 44, 255, 0.22);
  transform: rotateX(68deg);
  animation: orb-ring-spin-rev 24s linear infinite;
}

.orb-ring--3 {
  width: min(54%, 300px);
  border-color: rgba(26, 170, 17, 0.28);
  transform: rotateY(72deg);
  animation: orb-ring-pulse 5s ease-in-out infinite;
}

.orb-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.orb-satellites {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orb-satellite {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: 0 0 10px currentColor, 0 0 18px currentColor;
}

.orb-satellite--1 {
  color: #4a6cf7;
  animation: orb-sat-orbit-a 7.5s linear infinite;
}

.orb-satellite--2 {
  color: #7a2cff;
  animation: orb-sat-orbit-b 11s linear infinite reverse;
}

.orb-satellite--3 {
  color: #1aaa11;
  animation: orb-sat-orbit-c 9s linear infinite;
}

.orb-scan-beam {
  position: absolute;
  inset: -60% -25%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 49%,
    rgba(180, 220, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.07) 51%,
    transparent 60%
  );
  animation: orb-scan-sweep 7s ease-in-out infinite;
  mix-blend-mode: screen;
}

.orb-css-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(40%, 210px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 38%),
    radial-gradient(circle at 50% 52%, rgba(74, 108, 247, 0.62) 0%, rgba(122, 44, 255, 0.42) 38%, rgba(26, 170, 17, 0.18) 62%, transparent 76%);
  box-shadow:
    0 0 28px rgba(74, 108, 247, 0.42),
    0 0 56px rgba(122, 44, 255, 0.24),
    inset 0 -8px 24px rgba(74, 108, 247, 0.22);
  animation: orb-css-core-pulse 3.4s ease-in-out infinite;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.orb-css-core-inner {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.35) 0%, transparent 52%);
  animation: orb-css-core-spin 18s linear infinite, orb-css-core-inner-pulse 3.4s ease-in-out infinite;
}

.orb-css-core-shine {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.14) 36deg,
    transparent 72deg,
    rgba(74, 108, 247, 0.12) 120deg,
    transparent 180deg
  );
  animation: orb-css-core-spin 24s linear infinite reverse;
}

.ai-orb-zone:has(.hero-orb-canvas[data-live="1"]) .orb-css-core {
  opacity: 0.42;
  transform: translate(-50%, -50%) scale(0.92);
}

.orb-core-glow {
  position: absolute;
  width: min(46%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(180, 220, 255, 0.22) 0%, rgba(74, 108, 247, 0.12) 35%, transparent 72%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
  animation: orb-core-breathe 3.6s ease-in-out infinite;
}

@keyframes orb-nebula-drift {
  0% { transform: scale(1) translate(-2%, -1%); }
  100% { transform: scale(1.08) translate(2%, 1%); }
}

@keyframes orb-grid-float {
  0% { opacity: 0.28; transform: perspective(420px) rotateX(58deg) scale(1.32); }
  100% { opacity: 0.42; transform: perspective(420px) rotateX(58deg) scale(1.38) translateY(-6px); }
}

@keyframes orb-ring-spin {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(360deg); }
}

@keyframes orb-ring-spin-rev {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(-360deg); }
}

@keyframes orb-ring-pulse {
  0%, 100% { opacity: 0.55; transform: rotateY(72deg) scale(1); }
  50% { opacity: 1; transform: rotateY(72deg) scale(1.06); }
}

@keyframes orb-core-breathe {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes orb-sat-orbit-a {
  from { transform: rotate(0deg) translateX(min(34%, 130px)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(min(34%, 130px)) rotate(-360deg); }
}

@keyframes orb-sat-orbit-b {
  from { transform: rotate(120deg) translateX(min(42%, 160px)) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(min(42%, 160px)) rotate(-480deg); }
}

@keyframes orb-sat-orbit-c {
  from { transform: rotate(240deg) translateX(min(26%, 100px)) rotate(-240deg); }
  to { transform: rotate(600deg) translateX(min(26%, 100px)) rotate(-600deg); }
}

@keyframes orb-scan-sweep {
  0%, 100% { transform: translateX(-18%) rotate(0deg); opacity: 0.35; }
  50% { transform: translateX(18%) rotate(0deg); opacity: 0.85; }
}

@keyframes orb-css-core-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes orb-css-core-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orb-css-core-inner-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

[data-theme="light"] .ai-orb-zone {
  border-color: var(--border);
  background: var(--orb-viewport-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--shadow-sm);
}

[data-theme="light"] .orb-grid-perspective {
  background-image:
    linear-gradient(var(--orb-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--orb-grid-line) 1px, transparent 1px);
  opacity: var(--orb-grid-opacity);
}

[data-theme="light"] .orb-nebula {
  opacity: 0.72;
  filter: blur(18px);
  background:
    radial-gradient(circle at 38% 42%, rgba(109, 40, 217, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 62% 38%, rgba(37, 99, 235, 0.12) 0%, transparent 44%),
    radial-gradient(circle at 50% 58%, rgba(22, 101, 52, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0%, transparent 58%);
}

[data-theme="light"] .orb-css-core {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.85) 0%, transparent 38%),
    radial-gradient(circle at 50% 52%, rgba(37, 99, 235, 0.38) 0%, rgba(109, 40, 217, 0.28) 38%, rgba(22, 101, 52, 0.12) 62%, transparent 76%);
  box-shadow:
    0 0 24px rgba(37, 99, 235, 0.28),
    0 0 48px rgba(109, 40, 217, 0.16),
    inset 0 -6px 18px rgba(37, 99, 235, 0.14);
}

[data-theme="light"] .orb-scan-beam {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

[data-theme="light"] .orb-satellite {
  opacity: 0.92;
  box-shadow: 0 0 8px currentColor;
}

[data-theme="light"] .orb-ring--1 {
  border-color: rgba(37, 99, 235, 0.28);
  border-width: 1.5px;
  box-shadow: none;
}

[data-theme="light"] .orb-ring--2 {
  border-color: rgba(109, 40, 217, 0.22);
  border-width: 1.5px;
}

[data-theme="light"] .orb-ring--3 {
  border-color: rgba(22, 101, 52, 0.24);
  border-width: 1.5px;
}

[data-theme="light"] .ai-orb-halo {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    0 0 0 1px rgba(109, 40, 217, 0.08),
    inset 0 0 24px rgba(37, 99, 235, 0.06);
}

[data-theme="light"] .ai-orb-halo::before,
[data-theme="light"] .ai-orb-halo::after {
  border-color: rgba(22, 101, 52, 0.12);
}

[data-theme="light"] .orb-core-glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(109, 40, 217, 0.08) 35%, transparent 72%);
  opacity: 0.85;
}

[data-theme="light"] .hero-lightning-canvas {
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.ai-orb-halo {
  position: absolute;
  width: min(72%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(74, 108, 247, 0.28);
  box-shadow:
    0 0 0 1px rgba(122, 44, 255, 0.14),
    0 0 40px rgba(74, 108, 247, 0.12),
    inset 0 0 32px rgba(74, 108, 247, 0.1);
  background: transparent;
  pointer-events: none;
  z-index: 3;
  animation: orb-pulse 4s ease-in-out infinite;
}

.ai-orb-halo::before,
.ai-orb-halo::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(26, 170, 17, 0.12);
  animation: orb-pulse 6s ease-in-out infinite reverse;
}

.ai-orb-halo::after {
  inset: 12%;
  border-color: rgba(122, 44, 255, 0.18);
  animation-duration: 5s;
}

.ai-orb-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-orb-canvas,
.hero-lightning-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  contain: strict;
  border-radius: inherit;
}

.hero-lightning-canvas {
  z-index: 4;
  mix-blend-mode: screen;
}

/* Tablet — keep chat left, orb right */
@media (max-width: 1024px) {
  .hero--fullscreen .hero-stage-layout,
  .hero-stage-layout {
    --hero-chat-col: clamp(240px, 36vw, 360px);
    gap: clamp(0.5rem, 1.2vw, 1rem);
  }

  .ai-orb-zone {
    min-height: 240px;
  }
}

/* Mobile — chat ~80% of stage height, orb ~20% */
@media (max-width: 768px) {
  :root {
    --strip-stack: calc(var(--strip-h) + var(--bar-float-gap) * 2 + 12px);
  }

  .hero--fullscreen {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero--fullscreen .hero-stage {
    flex: 0 0 auto;
    height: calc(100dvh - var(--strip-stack));
    min-height: calc(100dvh - var(--strip-stack));
    overflow: hidden;
  }

  .hero--fullscreen .hero-intro {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding: 1.75rem 1rem 2.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
  }

  .section {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .hero--fullscreen .hero-stage-layout,
  .hero-stage-layout {
    --hero-mobile-chat-share: 8fr;
    --hero-mobile-orb-share: 2fr;
    top: var(--header-stack);
    bottom: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows:
      minmax(0, var(--hero-mobile-chat-share))
      minmax(0, var(--hero-mobile-orb-share));
    min-height: 0;
    gap: 0.5rem;
    overflow: hidden;
    padding:
      0.5rem
      clamp(0.55rem, 2.5vw, 0.85rem)
      calc(0.65rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .hero--fullscreen .hero-stage::before {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.14) 42%,
        transparent 58%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 36%, rgba(0, 0, 0, 0.08) 100%);
  }

  [data-theme="light"] .hero--fullscreen .hero-stage::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(255, 255, 255, 0.18) 42%,
        transparent 58%
      ),
      linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 36%, rgba(255, 255, 255, 0.14) 100%);
  }

  .ai-core-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  .ai-core-messages {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
  }

  .ai-orb-zone {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    contain: layout paint;
    border-radius: 14px;
    margin-bottom: 0.15rem;
    background:
      radial-gradient(ellipse 120% 180% at 50% 50%, hsla(var(--orb-reactive-hue), 72%, 58%, calc(0.14 + var(--orb-reactive-intensity) * 0.16)), transparent 72%),
      radial-gradient(ellipse 80% 120% at 72% 68%, rgba(122, 44, 255, 0.12), transparent 70%),
      radial-gradient(ellipse 70% 100% at 28% 78%, rgba(26, 170, 17, 0.08), transparent 72%),
      rgba(0, 0, 0, 0.22);
  }

  .orb-stage-fx {
    transform: scale(1.18);
    transform-origin: 50% 46%;
  }

  .orb-css-core {
    width: min(58%, 132px);
  }

  .ai-orb-zone:has(.hero-orb-canvas[data-live="1"]) .orb-css-core {
    opacity: 0.55;
  }

  .orb-core-glow {
    width: min(62%, 140px);
    opacity: 0.95;
  }

  .ai-orb-halo {
    width: min(78%, 220px);
    opacity: 0.92;
  }

  .orb-satellite--1 { animation-name: orb-sat-orbit-a-mobile; }
  .orb-satellite--2 { animation-name: orb-sat-orbit-b-mobile; }
  .orb-satellite--3 { animation-name: orb-sat-orbit-c-mobile; }

  .orb-grid-perspective {
    opacity: 0.48;
    background-size: 22px 22px;
  }

  .orb-nebula {
    opacity: 0.95;
    filter: blur(12px);
  }
}

@keyframes orb-sat-orbit-a-mobile {
  from { transform: rotate(0deg) translateX(min(38vw, 92px)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(min(38vw, 92px)) rotate(-360deg); }
}

@keyframes orb-sat-orbit-b-mobile {
  from { transform: rotate(120deg) translateX(min(44vw, 108px)) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(min(44vw, 108px)) rotate(-480deg); }
}

@keyframes orb-sat-orbit-c-mobile {
  from { transform: rotate(240deg) translateX(min(30vw, 72px)) rotate(-240deg); }
  to { transform: rotate(600deg) translateX(min(30vw, 72px)) rotate(-600deg); }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
    --strip-h: 44px;
    --strip-stack: calc(var(--strip-h) + var(--bar-float-gap) * 2 + 14px);
    --hero-mobile-chat-share: 8fr;
    --hero-mobile-orb-share: 2fr;
  }

  .site-header,
  .site-header.glass-pillow {
    padding: 0 0.65rem;
    gap: 0.35rem;
  }

  .site-header .header-actions {
    gap: 0.25rem;
  }

  .menu-toggle {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
  }

  .header-panel.open {
    left: max(8px, var(--bar-float-gap));
    right: max(8px, var(--bar-float-gap));
    border-radius: 16px;
  }

  .nav-panel-link {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  .panel-prefs {
    padding: 0.65rem 0.85rem 0.85rem;
    gap: 0.65rem;
  }

  .panel-promo-link {
    padding: 0.52rem 0.75rem;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .theme-switch--panel .theme-btn {
    min-height: 2.25rem;
    padding: 0.38rem 0.25rem;
  }

  .mobile-nav-scroll {
    max-height: min(28vh, 200px);
  }

  .mobile-nav-item.is-expanded .mobile-nav-body {
    max-height: min(28vh, 200px);
  }

  .hero--fullscreen .hero-stage-layout,
  .hero-stage-layout {
    gap: 0.4rem;
    padding:
      0.35rem
      clamp(0.5rem, 2.5vw, 0.75rem)
      calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .ai-orb-halo {
    width: min(68%, 280px);
  }
}

.ai-core-aurora {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 12% 28%, hsla(265, 55%, 42%, 0.14), transparent 52%),
    radial-gradient(ellipse at 88% 72%, hsla(198, 50%, 38%, 0.1), transparent 48%),
    radial-gradient(ellipse at 55% 50%, hsla(278, 45%, 35%, 0.08), transparent 58%);
}

[data-theme="light"] .ai-core-aurora {
  display: block;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(74, 108, 247, 0.32), transparent 54%),
    radial-gradient(ellipse at 82% 74%, rgba(124, 58, 237, 0.24), transparent 50%),
    radial-gradient(ellipse at 52% 48%, rgba(14, 154, 8, 0.16), transparent 58%);
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] .ai-core-aurora {
    display: block;
    opacity: 0.72;
    background:
      radial-gradient(ellipse at 18% 22%, rgba(74, 108, 247, 0.32), transparent 54%),
      radial-gradient(ellipse at 82% 74%, rgba(124, 58, 237, 0.24), transparent 50%),
      radial-gradient(ellipse at 52% 48%, rgba(14, 154, 8, 0.16), transparent 58%);
  }
}

.ai-core-panel {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 16px;
  border: var(--edge-hairline);
  background: var(--surface-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-md);
  align-self: stretch;
  overflow: hidden;
}

.ai-core-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.ai-core-voice {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.ai-core-voice:hover {
  color: var(--brand-green-display);
  border-color: var(--active-border);
}

.ai-core-voice[aria-pressed="true"] {
  color: var(--brand-green-display);
  border-color: var(--active-border);
  background: var(--active-bg);
}

.ai-core-voice-icon--off { display: none; }

.ai-core-voice[aria-pressed="false"] .ai-core-voice-icon--on { display: none; }
.ai-core-voice[aria-pressed="false"] .ai-core-voice-icon--off { display: block; }

.ai-core-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 12px rgba(26, 170, 17, 0.9), 0 0 24px rgba(0, 220, 255, 0.5);
  animation: ai-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.ai-core-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ai-core-name {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--brand-green-display);
}

.ai-core-status {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-core-messages {
  flex: 1;
  min-height: 120px;
  max-height: min(320px, 42vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  margin-bottom: 0;
  scrollbar-width: thin;
}

.ai-core-msg {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ai-core-msg--bot {
  align-self: flex-start;
  background: var(--undercover);
  border: none;
  color: var(--text-primary);
}

.ai-core-msg--user {
  align-self: flex-end;
  background: var(--brand-green-solid);
  border: none;
  color: var(--text-on-brand);
}

.ai-core-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 0;
  padding: 0 0.85rem 0.65rem;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex-shrink: 0;
}

.ai-core-chips::-webkit-scrollbar { display: none; }

.ai-core-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.ai-core-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--undercover);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.875rem;
}

.ai-core-send {
  flex-shrink: 0;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  background: var(--brand-green-solid);
  color: var(--text-on-brand);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.ai-core-send:hover { opacity: 0.92; }

.ai-core-stop {
  flex-shrink: 0;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: none;
}

.ai-core-stop:hover { opacity: 0.92; }

.ai-core-form.is-generating .ai-core-send { display: none; }

.ai-core-form.is-generating .ai-core-stop { display: inline-flex; align-items: center; justify-content: center; }

[data-theme="light"] .ai-core-stop {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(254, 226, 226, 0.92);
  color: #B91C1C;
}

.ai-core-mic {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--undercover);
  color: var(--text-secondary);
  padding: 0;
}

.ai-core-mic.is-listening,
.ai-core-mic.is-enabled {
  width: auto;
  min-width: 2.65rem;
  padding: 0 0.42rem;
  border-radius: 999px;
}

[data-theme="light"] .ai-core-msg--bot {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.ai-core-msg--bot.ai-core-msg--thinking {
  color: var(--text-muted);
  font-style: italic;
}

.ai-core-msg--bot.ai-core-msg--typing::after {
  content: '▋';
  animation: ai-blink 0.8s step-end infinite;
  margin-left: 2px;
  color: var(--brand-green-display);
}

@keyframes ai-blink {
  50% { opacity: 0; }
}

.ai-core-chip {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ai-core-chip:hover {
  border-color: var(--active-border);
  color: var(--brand-green-display);
  background: var(--active-bg);
}

.ai-core-input:focus {
  outline: none;
  border-color: var(--brand-green-display);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.ai-core-mic {
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-core-mic:hover {
  border-color: var(--active-border);
  color: var(--brand-green-display);
  background: var(--active-bg);
}

.ai-core-mic.is-enabled,
.ai-core-mic[aria-pressed="true"] {
  border-color: var(--active-border);
  color: var(--brand-green-display);
  background: var(--active-bg);
}

.ai-core-mic.is-listening {
  border-color: var(--brand-green-display);
  color: var(--brand-green-display);
  background: var(--active-bg);
  box-shadow: 0 0 0 2px var(--focus-ring);
  animation: ai-mic-pulse 1.6s ease-in-out infinite;
}

.ai-core-mic.is-off:not(.is-denied) {
  color: var(--text-muted);
  background: var(--undercover);
  border-color: var(--border);
}

.ai-core-mic.is-denied {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  opacity: 1;
}

.ai-core-mic.is-disabled {
  opacity: 1;
}

.ai-core-mic.is-disabled:not(.is-denied) {
  color: var(--text-muted);
}

@keyframes ai-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--focus-ring); }
  50% { box-shadow: 0 0 0 4px rgba(26, 170, 17, 0.28); }
}

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

@media (prefers-reduced-motion: reduce) {
  .ai-core-pulse { animation: none; box-shadow: none; }
  .ai-core-mic.is-listening { animation: none; }
  .ai-core-mic.is-enabled:not(.is-listening) .ai-core-mic-eq-bar { animation: none; height: 36%; }
  html { scroll-behavior: auto; }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--active-border);
  box-shadow: var(--shadow-md), var(--hover-accent-glow);
}

.card-glow:hover { box-shadow: var(--shadow-md), var(--hover-accent-glow); }

.card-icon { font-size: 2rem; margin-bottom: 1rem; }

.product-card,
.moat-card,
.milestone {
  position: relative;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Gap analysis table */
.gap-analysis { margin-top: 4rem; }

.gap-analysis h3 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 1.5rem;
}

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

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

.comparison-table td {
  color: var(--text-secondary);
}

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

.comparison-table th {
  background: var(--bg-card);
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comparison-table tr:last-child td { border-bottom: none; }

.status-warn { color: var(--accent-amber-display); }
.status-ok { color: var(--brand-green-display); font-weight: 600; }

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  padding: 1.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent-cyan-display);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pillar-card[data-pillar="opcua"] { border-left-color: var(--accent-violet); }
.pillar-card[data-pillar="dtn"] { border-left-color: var(--accent-amber); }
.pillar-card[data-pillar="crdt"] { border-left-color: var(--accent-green); }
.pillar-card[data-pillar="edgeai"] { border-left-color: var(--accent-rose); }

.pillar-card:hover { border-color: var(--active-border); }

.pillar-wide { grid-column: 1 / -1; }

.pillar-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }

.pillar-abbr {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  background: var(--chip-bg);
  color: var(--accent-cyan-display);
  border: 1px solid var(--chip-border);
  border-radius: 4px;
}

.pillar-card h3 { font-size: 1rem; }

.pillar-card p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1rem; }

.pillar-use {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pillar-use li {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Earth-Space matrix */
.matrix-visual {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--undercover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.earth-space-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.es-node {
  position: relative;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  overflow: hidden;
}

.es-node-glow {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.es-node--earth .es-node-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(74, 108, 247, 0.35), transparent 65%);
}

.es-node--space .es-node-glow {
  background: radial-gradient(ellipse at 70% 80%, rgba(122, 44, 255, 0.35), transparent 65%);
}

.es-node-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}

.es-node--earth .es-node-label { color: var(--accent-cyan-display); }
.es-node--space .es-node-label { color: var(--accent-violet-display); }

.es-node-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.es-node-items li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.55rem;
  background: var(--undercover);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.es-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 3.5rem;
  position: relative;
}

.es-bridge-line {
  width: 2px;
  height: 100%;
  min-height: 4rem;
  background: linear-gradient(to bottom, var(--accent-cyan-display), var(--accent-violet));
  opacity: 0.5;
}

.es-bridge-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green-display);
  box-shadow: 0 0 16px var(--brand-green-display);
  animation: es-pulse 2s ease-in-out infinite;
}

@keyframes es-pulse {
  0%, 100% { transform: translateX(-12px); opacity: 0.4; }
  50% { transform: translateX(12px); opacity: 1; }
}

.es-bridge-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.matrix-col h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.matrix-col.earth h3 { color: var(--accent-cyan-display); }
.matrix-col.space h3 { color: var(--accent-violet-display); }

.matrix-col ul { list-style: none; }

.matrix-col li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.matrix-col li::before {
  content: '→';
  margin-right: 0.5rem;
  color: var(--accent-cyan-display);
}

.matrix-col.space li::before { color: var(--accent-violet-display); }

.matrix-bridge {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 0;
  border-left: 2px dashed var(--border);
  border-right: 2px dashed var(--border);
}

/* Timeline */
.timeline { position: relative; padding-left: 3rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet), var(--accent-amber), var(--accent-green));
}

.phase {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.phase-marker {
  position: absolute;
  left: -2.35rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-cyan-display);
}

.phase[data-phase="2"] .phase-marker { border-color: var(--accent-violet); color: var(--accent-violet-display); }
.phase[data-phase="3"] .phase-marker { border-color: var(--accent-amber); color: var(--accent-amber-display); }
.phase[data-phase="4"] .phase-marker { border-color: var(--accent-green); color: var(--accent-green); }

.phase-content {
  padding: 2rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.phase-meta { display: flex; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }

.phase-time {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-cyan-display);
}

.phase-focus {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.phase h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.phase p { color: var(--text-secondary); margin-bottom: 1rem; }

.phase-actions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phase-actions li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.phase-actions li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan-display);
}

/* Architecture */
.arch-diagram {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--undercover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 900px;
  margin: 0 auto;
}

.stack-tier {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}

.stack-tier--ui {
  border-color: rgba(122, 44, 255, 0.45);
  background: linear-gradient(135deg, rgba(122, 44, 255, 0.12), var(--bg-card));
}

.stack-tier--core {
  border-color: rgba(74, 108, 247, 0.45);
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.1), var(--bg-card));
  padding-bottom: 1.35rem;
}

.stack-tier--hw {
  padding: 0.75rem 1rem;
  text-align: center;
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), var(--bg-card));
}

.stack-tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.stack-tier-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-tier-badge--violet { color: var(--accent-violet-display); }
.stack-tier-badge--cyan { color: var(--accent-cyan-display); }

.stack-tier-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stack-tier-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.stack-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.stack-module {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--undercover);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.stack-connector {
  display: flex;
  justify-content: center;
  height: 1.25rem;
}

.stack-connector span {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

.stack-connector--short { height: 0.75rem; }

.stack-hw-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

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

.product-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-card h4 {
  font-family: var(--font-display);
  color: var(--accent-cyan-display);
  margin-bottom: 0.5rem;
}

.product-card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: var(--chip-bg);
  color: var(--accent-cyan-display);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
}

/* Revenue */
.revenue-cycle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
  background: var(--undercover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cycle-diagram {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.cycle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  inset: 8%;
}

.cycle-ring--inner {
  inset: 22%;
  border-style: dashed;
  opacity: 0.7;
}

.cycle-orbit {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--brand-green-display);
  border-right-color: var(--accent-violet);
  animation: cycle-spin 12s linear infinite;
  opacity: 0.6;
}

@keyframes cycle-spin {
  to { transform: rotate(360deg); }
}

.cycle-core {
  position: absolute;
  inset: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.cycle-core-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.cycle-core-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.cycle-node {
  position: absolute;
  transform: translate(-50%, -50%);
}

.cycle-node span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.cycle-node[data-phase="extraction"] { top: 6%; left: 50%; }
.cycle-node[data-phase="extraction"] span { color: var(--accent-cyan-display); border-color: rgba(74, 108, 247, 0.5); }
.cycle-node[data-phase="transport"] { top: 22%; left: 88%; }
.cycle-node[data-phase="transport"] span { color: var(--accent-violet-display); border-color: rgba(122, 44, 255, 0.5); }
.cycle-node[data-phase="processing"] { top: 72%; left: 88%; }
.cycle-node[data-phase="processing"] span { color: var(--accent-amber-display); border-color: var(--accent-amber); }
.cycle-node[data-phase="inhabitation"] { top: 94%; left: 50%; }
.cycle-node[data-phase="inhabitation"] span { color: var(--brand-green-display); border-color: var(--active-border); }
.cycle-node[data-phase="supply"] { top: 72%; left: 12%; }
.cycle-node[data-phase="supply"] span { color: var(--accent-rose-display); border-color: var(--accent-rose); }
.cycle-node[data-phase="comms"] { top: 22%; left: 12%; }
.cycle-node[data-phase="comms"] span { color: var(--accent-cyan-display); border-color: rgba(74, 108, 247, 0.5); }

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

.revenue-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.revenue-item strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-cyan-display);
}

.revenue-item span { font-size: 0.8rem; color: var(--text-secondary); }

/* Moats */
.moat-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.moat-card:hover { border-color: var(--accent-violet); }

.moat-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.moat-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* North Star */
.section-north-star {
  max-width: none;
  background: var(--north-gradient);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.north-star-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

.north-star-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.north-star-content blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-violet);
  padding-left: 1.5rem;
  text-align: left;
  margin: 2rem 0;
  line-height: 1.8;
}

.north-milestones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2.5rem 0;
  text-align: left;
}

.milestone {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.milestone .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-cyan-display);
  min-width: 4rem;
}

.milestone.highlight {
  border-color: var(--accent-violet);
  background: rgba(167, 139, 250, 0.08);
}

.milestone.highlight .year { color: var(--accent-violet-display); }

.north-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 2rem calc(3rem + var(--strip-stack));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--accent-link);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--brand-green-display);
  text-decoration: underline;
}

/* Hub overlay — removed; use .nav-dropdown* */

.footer-links { margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero--fullscreen .hero-stage { min-height: calc(100dvh - var(--strip-stack)); }
  .ai-core-panel { max-height: calc(100% - 1rem); }
  .ai-core-messages { max-height: min(360px, 48vh); flex: 1; }
  .ai-core-chips { max-height: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three, .card-grid.four, .product-pillars, .revenue-grid { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 1fr; }
  .matrix-bridge { writing-mode: horizontal-tb; text-align: center; border: none; border-top: 2px dashed var(--border); border-bottom: 2px dashed var(--border); padding: 1rem; }
  .earth-space-diagram { grid-template-columns: 1fr; }
  .es-bridge { flex-direction: row; min-height: auto; padding: 0.5rem 0; }
  .es-bridge-line { width: 100%; height: 2px; min-height: 0; }
}

@media (max-width: 768px) {
  :root {
    --bar-float-gap: 10px;
    --bar-float-max: calc(100vw - 20px);
    --strip-h: 46px;
    --strip-stack: calc(var(--strip-h) + var(--bar-float-gap) * 2 + 12px);
  }

  .section-strip {
    z-index: 920;
  }

  .section-strip-inner {
    padding: 0 0.65rem;
    gap: 0.35rem;
  }

  .section-chip {
    padding: 0.38rem 0.65rem;
    font-size: 0.68rem;
  }

  .hero--fullscreen {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero--fullscreen .hero-stage {
    flex: 0 0 auto;
    height: calc(100dvh - var(--strip-stack));
    min-height: calc(100dvh - var(--strip-stack));
    overflow: hidden;
  }

  .hero--fullscreen .hero-intro {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding: 1.75rem 1rem 2.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
  }

  .section {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .site-header,
  .site-header.glass-pillow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0 0.85rem;
    overflow: visible;
    left: var(--bar-float-gap);
    right: var(--bar-float-gap);
    width: auto;
    max-width: none;
    transform: none;
    contain: style;
  }

  .site-header:has(.header-panel.open) {
    z-index: 1100;
  }

  body.header-menu-open .site-header {
    z-index: 1100;
  }

  .site-header .logo {
    grid-column: 1;
    min-width: 0;
  }

  .site-header .header-nav {
    display: none;
  }

  .site-header .header-actions {
    grid-column: 2;
    min-width: 0;
    gap: 0.35rem;
    justify-self: end;
  }

  .header-actions > .header-promo-link,
  .header-actions > .lang-switch,
  .header-actions > .theme-switch--toolbar {
    display: none !important;
  }

  .site-header.glass-pillow {
    contain: style;
  }

  .theme-switch--toolbar { display: none !important; }

  .header-panel.open {
    left: var(--bar-float-gap);
    right: var(--bar-float-gap);
    width: auto;
    min-width: 0;
    max-width: none;
    border-radius: var(--radius-lg);
    background: var(--header-chrome-bg);
    border: 1px solid var(--header-chrome-border);
    box-shadow: var(--header-chrome-glow), 0 16px 40px rgba(0, 0, 0, 0.42);
    z-index: 1002;
    max-height: none;
  }

  .header-panel:not(.open) {
    display: none !important;
  }

  .nav-panel {
    border-bottom: 1px solid var(--border);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .panel-prefs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem 0.85rem;
    border-top: 1px solid var(--border);
    flex: 0 0 auto;
    margin-top: auto;
  }

  .panel-promo-link {
    display: inline-flex;
    padding: 0.52rem 0.75rem;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .lang-switch--panel { display: flex; }

  .theme-switch--panel { width: 100%; }

  .theme-switch--panel .theme-btn {
    flex: 1;
    flex-direction: row;
    gap: 0;
    padding: 0.42rem 0.3rem;
    min-height: 2.25rem;
  }

  .theme-switch--panel .theme-btn-label { display: none; }

  .theme-switch--panel .theme-btn:not(.active) {
    color: var(--switch-fg-hover, var(--switch-fg));
  }

  .theme-switch--panel .theme-btn:not(.active) svg .theme-icon-stroke {
    stroke: currentColor;
  }

  .theme-switch--panel .theme-btn:not(.active) svg .theme-icon-fill {
    fill: currentColor;
  }

  .mobile-nav-scroll {
    max-height: min(28vh, 220px);
  }

  .mobile-nav-item.is-expanded .mobile-nav-body {
    max-height: min(28vh, 220px);
  }

  .nav-dd-card {
    padding: 0.65rem 0.75rem;
  }

  .nav-dd-card p {
    font-size: 0.76rem;
    margin-bottom: 0.4rem;
  }

  .pref-group {
    gap: 0.4rem;
  }

  .pref-label {
    font-size: 0.62rem;
  }

  .pillars-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1rem; }

  .hero--fullscreen {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero--fullscreen .hero-stage {
    flex: 0 0 auto;
    height: calc(100dvh - var(--strip-stack));
    min-height: calc(100dvh - var(--strip-stack));
    overflow: hidden;
  }

  .hero--fullscreen .hero-intro {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding: 1.75rem 1rem 2.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
  }

  .section {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .ai-core-panel {
    border-radius: 14px;
    max-height: none;
  }

  .ai-core-status { display: none; }

  .ai-core-header {
    padding: 0.5rem 0.65rem;
  }

  .ai-core-messages {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
  }

  .ai-core-msg {
    max-width: 96%;
    padding: 0.38rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.38;
  }

  .ai-core-msg--bot {
    background: transparent;
    border: none;
    border-left: 2px solid var(--border-strong);
    border-radius: 0 6px 6px 0;
    padding-left: 0.45rem;
  }

  .ai-core-msg--user {
    background: transparent;
    border: 1px solid var(--active-border);
    color: var(--text-primary);
  }

  .ai-core-chips {
    padding: 0 0.45rem 0.35rem;
    gap: 0.3rem;
  }

  .ai-core-chip {
    padding: 0.32rem 0.55rem;
    font-size: 0.68rem;
  }

  .ai-core-form {
    padding: 0.4rem 0.5rem 0.5rem;
    gap: 0.4rem;
  }

  .ai-core-input {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
  }

  .ai-core-send,
  .ai-core-stop {
    width: 2.75rem;
    padding: 0;
  }

  .ai-core-send-label,
  .ai-core-stop-label { display: none; }

  .ai-core-stop::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: currentColor;
  }

  .ai-core-send::before {
    content: '';
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Language & cross-theme diagram polish */
html[lang="zh"] body { line-height: 1.72; }

html[lang="ru"] .section-chip {
  font-family: var(--font-body);
}

.comparison-table-wrap,
.arch-diagram,
.matrix-visual,
.revenue-cycle {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
}

/* Strict clear surfaces — solid panels, zero frosted blur */
.glass:not(.liquid-glass-host),
.glass-bar:not(.liquid-glass-host):not(.glass-pillow),
.stat.glass,
.action-dock.glass,
.promo-block.glass:not(.liquid-glass-host) {
  background: var(--surface-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: var(--edge-hairline);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .glass:not(.liquid-glass-host),
[data-theme="light"] .glass-bar:not(.liquid-glass-host):not(.glass-pillow),
[data-theme="light"] .stat.glass,
[data-theme="light"] .action-dock.glass,
[data-theme="light"] .promo-block.glass:not(.liquid-glass-host) {
  background: var(--surface-solid, var(--light-card-surface));
}

/* Light theme — full visual parity with dark */
[data-theme="light"] body {
  background-color: var(--bg-primary);
  background-image: var(--light-body-aurora);
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  opacity: var(--grid-opacity);
  mask-image: radial-gradient(ellipse at 70% 30%, black 52%, transparent 82%);
}

[data-theme="light"] .section-tag,
[data-theme="light"] .eyebrow {
  background: var(--header-nav-active-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

[data-theme="light"] .card,
[data-theme="light"] .pillar-card,
[data-theme="light"] .moat-card,
[data-theme="light"] .product-card,
[data-theme="light"] .revenue-item,
[data-theme="light"] .phase-content,
[data-theme="light"] .milestone,
[data-theme="light"] .stat,
[data-theme="light"] .comparison-table-wrap,
[data-theme="light"] .matrix-visual,
[data-theme="light"] .arch-diagram,
[data-theme="light"] .revenue-cycle {
  background: var(--light-card-surface, var(--surface-elevated));
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .pillar-card:hover,
[data-theme="light"] .moat-card:hover,
[data-theme="light"] .product-card:hover {
  border-color: var(--active-border);
  box-shadow: var(--shadow-md), var(--hover-accent-glow);
}

[data-theme="light"] .comparison-table th {
  background: var(--chip-bg);
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

[data-theme="light"] .milestone.highlight {
  border-color: rgba(109, 40, 217, 0.22);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), var(--bg-card));
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .phase-marker {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .section-north-star {
  background:
    var(--north-gradient),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent);
  border-color: var(--border);
}

[data-theme="light"] .nav-dd-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .nav-dd-card:hover {
  border-color: var(--active-border);
  box-shadow: var(--shadow-md), var(--hover-accent-glow);
}

[data-theme="light"] .nav-dropdown-head {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent 70%);
}

[data-theme="light"] .header-panel {
  background: var(--surface-solid, var(--light-card-surface));
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .es-node,
[data-theme="light"] .stack-tier {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .es-node-items li,
[data-theme="light"] .pillar-use li,
[data-theme="light"] .stack-module,
[data-theme="light"] .promo-features li {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
}

[data-theme="light"] .es-node-glow {
  opacity: var(--deco-glow-opacity);
}

[data-theme="light"] .es-node--earth .es-node-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(37, 99, 235, 0.18), transparent 62%);
}

[data-theme="light"] .es-node--space .es-node-glow {
  background: radial-gradient(ellipse at 70% 80%, rgba(109, 40, 217, 0.16), transparent 62%);
}

[data-theme="light"] .action-dock-btn--primary {
  background: var(--header-promo-gradient);
  box-shadow: var(--header-promo-glow);
}

[data-theme="light"] .hero-orb-canvas {
  opacity: 1;
}

[data-theme="light"] .es-bridge-line {
  width: 3px;
  opacity: 0.92;
}

[data-theme="light"] .es-bridge-pulse {
  box-shadow: 0 0 22px var(--brand-green-display);
}

[data-theme="light"] .stack-tier--ui {
  border-color: rgba(109, 40, 217, 0.18);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), var(--bg-card));
}

[data-theme="light"] .stack-tier--core {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), var(--bg-card));
}

[data-theme="light"] .stack-tier--hw {
  border-color: rgba(180, 83, 9, 0.18);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), var(--bg-card));
}

[data-theme="light"] .stack-connector span {
  width: 3px;
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.28), rgba(109, 40, 217, 0.18));
}

[data-theme="light"] .cycle-ring {
  border-color: rgba(15, 23, 42, 0.10);
}

[data-theme="light"] .cycle-ring--inner {
  border-color: rgba(15, 23, 42, 0.08);
  opacity: 0.92;
}

[data-theme="light"] .cycle-orbit {
  opacity: 0.88;
  border-width: 2.5px;
}

[data-theme="light"] .ai-core-msg--bot {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

[data-theme="light"] .ai-core-input,
[data-theme="light"] .ai-core-mic {
  border-color: var(--chip-border);
  background: var(--chip-bg);
}

[data-theme="light"] .stat-value {
  text-shadow: none;
}

[data-theme="light"] .promo-badge {
  box-shadow: none;
}

[data-theme="light"] .promo-cta:hover {
  box-shadow: var(--header-promo-glow);
}

[data-theme="light"] .site-footer {
  border-top-color: var(--border);
}

[data-theme="light"] .timeline::before {
  opacity: 1;
}

[data-theme="light"] .liquid-glass-sheen {
  opacity: 0.62;
  mix-blend-mode: multiply;
}

[data-theme="light"] .liquid-glass-caustics {
  mix-blend-mode: multiply;
  opacity: calc(0.3 + var(--lg-intensity) * 0.18);
}

[data-theme="light"] .liquid-glass-specular {
  mix-blend-mode: soft-light;
  opacity: calc(0.22 + var(--lg-intensity) * 0.28);
}

[data-theme="light"] .liquid-glass-iridescent {
  opacity: calc(var(--lg-iris-opacity, 0.42) * (0.32 + var(--lg-intensity) * 0.18));
}

[data-theme="light"] .site-header.header-over-hero .liquid-glass-dispersion {
  opacity: calc(0.18 + var(--lg-intensity) * 0.08);
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] body {
    background-color: var(--bg-primary);
    background-image: var(--light-body-aurora);
  }

  [data-theme="system"] .glass:not(.liquid-glass-host),
  [data-theme="system"] .glass-bar:not(.liquid-glass-host):not(.glass-pillow),
  [data-theme="system"] .stat.glass,
  [data-theme="system"] .action-dock.glass,
  [data-theme="system"] .promo-block.glass:not(.liquid-glass-host) {
    background: var(--surface-solid, var(--light-card-surface));
  }

  [data-theme="system"] .grid-overlay {
    background-image:
      linear-gradient(var(--border-subtle) 1px, transparent 1px),
      linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    opacity: var(--grid-opacity);
    mask-image: radial-gradient(ellipse at 70% 30%, black 52%, transparent 82%);
  }

  [data-theme="system"] .section-tag,
  [data-theme="system"] .eyebrow {
    background: var(--header-nav-active-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
  }

  [data-theme="system"] .card,
  [data-theme="system"] .pillar-card,
  [data-theme="system"] .moat-card,
  [data-theme="system"] .product-card,
  [data-theme="system"] .revenue-item,
  [data-theme="system"] .phase-content,
  [data-theme="system"] .milestone,
  [data-theme="system"] .stat,
  [data-theme="system"] .comparison-table-wrap,
  [data-theme="system"] .matrix-visual,
  [data-theme="system"] .arch-diagram,
  [data-theme="system"] .revenue-cycle {
    background: var(--light-card-surface, var(--surface-elevated));
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
  }

  [data-theme="system"] .card:hover,
  [data-theme="system"] .pillar-card:hover,
  [data-theme="system"] .moat-card:hover,
  [data-theme="system"] .product-card:hover {
    border-color: var(--active-border);
    box-shadow: var(--shadow-md), var(--hover-accent-glow);
  }

  [data-theme="system"] .action-dock-btn--primary {
    background: var(--header-promo-gradient);
    box-shadow: var(--header-promo-glow);
  }

  [data-theme="system"] .section-north-star {
    background:
      var(--north-gradient),
      linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent);
    border-color: var(--border);
  }

  [data-theme="system"] .ai-core-panel {
    background: var(--surface-solid, var(--light-card-surface));
    border-color: var(--border);
    box-shadow: var(--shadow-md);
  }

  [data-theme="system"] .ai-core-msg--bot {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
  }

  [data-theme="system"] .site-footer {
    border-top-color: var(--border);
  }
}

/* Runtime performance tiers (set by js/perf.js) */
.hls-lite .site-header.glass-pillow,
.hls-lite .section-strip.glass-pillow,
.hls-lite .nav-dropdown-panel {
  backdrop-filter: saturate(1.2);
  -webkit-backdrop-filter: saturate(1.2);
}

.hls-lite .site-header.glass-pillow.liquid-glass-host.header-over-hero {
  backdrop-filter: saturate(1.5);
  -webkit-backdrop-filter: saturate(1.5);
}

.hls-lite .site-header.header-over-hero .liquid-glass-chroma {
  opacity: 0;
}

.hls-lite .site-header.header-over-hero .liquid-glass-dispersion {
  opacity: 0.45;
  animation: none;
  background-position: 40% 50%;
}

.hls-lite .liquid-glass-caustics,
.hls-lite .liquid-glass-specular,
.hls-lite .site-header.glass-pillow::before,
.hls-lite .section-strip.glass-pillow::before {
  animation: none;
}

.hls-lite .liquid-glass-iridescent {
  opacity: 0.35;
}

.hls-reduced .liquid-glass-dispersion {
  animation: none !important;
}

.hls-reduced .liquid-glass-caustics,
.hls-reduced .liquid-glass-specular,
.hls-reduced .liquid-glass-sheen {
  animation: none !important;
}

.hls-scrolling .liquid-glass-dispersion {
  animation-play-state: paused;
}

.hls-scrolling .liquid-glass-sheen,
.hls-scrolling .liquid-glass-caustics,
.hls-scrolling .liquid-glass-specular,
.hls-scrolling .site-header.glass-pillow::before,
.hls-scrolling .section-strip.glass-pillow::before,
.hls-scrolling .orb-glow,
.hls-scrolling .es-pulse,
.hls-scrolling .cycle-orbit,
.hls-scrolling .ai-core-pulse {
  animation-play-state: paused;
}

.hls-reduced *,
.hls-reduced *::before,
.hls-reduced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .scene-bg { display: none; }
  .hero-orb-canvas { opacity: 0.85; }
  .orb-nebula,
  .orb-grid-perspective,
  .orb-ring,
  .orb-satellite,
  .orb-scan-beam,
  .orb-css-core,
  .orb-css-core-inner,
  .orb-css-core-shine,
  .orb-core-glow,
  .ai-orb-halo,
  .ai-orb-halo::before,
  .ai-orb-halo::after {
    animation: none !important;
  }
  .orb-stars-canvas { opacity: 0.45; }
}

/* Links Space diagrams — genesis & $1T scale */
.links-visual {
  margin-bottom: 2.5rem;
  padding: clamp(0.85rem, 2.5vw, 1.5rem);
  background: var(--undercover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.links-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 48vw, 440px);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(74, 108, 247, 0.08), transparent 70%),
    var(--bg-card);
  overflow: hidden;
}

.links-diagram--scale {
  background:
    radial-gradient(ellipse 70% 55% at 30% 35%, rgba(26, 170, 17, 0.07), transparent 65%),
    radial-gradient(ellipse 60% 50% at 72% 55%, rgba(122, 44, 255, 0.08), transparent 60%),
    var(--bg-card);
}

.links-edges {
  position: absolute;
  inset: clamp(0.5rem, 2vw, 1rem) clamp(0.35rem, 1.5vw, 0.75rem);
  width: calc(100% - clamp(0.7rem, 3vw, 1.5rem));
  height: calc(100% - clamp(1rem, 3vw, 2rem));
  margin: auto;
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
}

.links-edge {
  stroke-width: 1.5;
  fill: none;
  opacity: 0.55;
}

.links-edge--sync { stroke: var(--accent-cyan-display); }
.links-edge--bidir { stroke: var(--brand-green-display); stroke-width: 2; opacity: 0.65; }
.links-edge--bridge { stroke: var(--accent-amber); stroke-dasharray: 5 4; }
.links-edge--observe { stroke: var(--accent-violet-display); stroke-dasharray: 3 5; opacity: 0.45; }
.links-edge--private { stroke: var(--text-muted); opacity: 0.5; }
.links-edge--region { stroke: var(--accent-cyan-display); stroke-width: 2; opacity: 0.55; }

.links-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-items: center;
}

.links-grid--genesis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  gap: clamp(0.55rem, 1.8vw, 0.85rem) clamp(0.35rem, 1.2vw, 0.55rem);
  grid-template-areas:
    ". . observe . offline"
    ". . genesis . ."
    "runtime . crdt . hsp"
    "rnd team . tiny bridge";
}

.links-g-observe { grid-area: observe; }
.links-g-genesis { grid-area: genesis; }
.links-g-runtime { grid-area: runtime; }
.links-g-crdt { grid-area: crdt; }
.links-g-hsp { grid-area: hsp; }
.links-g-rnd { grid-area: rnd; }
.links-g-team { grid-area: team; }
.links-g-tiny { grid-area: tiny; }
.links-g-bridge { grid-area: bridge; }
.links-g-offline { grid-area: offline; }

.links-grid--scale {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  gap: clamp(0.55rem, 1.8vw, 0.85rem) clamp(0.35rem, 1.2vw, 0.55rem);
  grid-template-areas:
    "earth . leo . lunar"
    ". . . . ."
    "custody . compute . semantic"
    "genesis . observe . sovereign";
}

.links-s-earth { grid-area: earth; }
.links-s-leo { grid-area: leo; }
.links-s-lunar { grid-area: lunar; }
.links-s-custody { grid-area: custody; }
.links-s-compute { grid-area: compute; }
.links-s-semantic { grid-area: semantic; }
.links-s-genesis { grid-area: genesis; }
.links-s-observe { grid-area: observe; }
.links-s-sovereign { grid-area: sovereign; }

.links-diagram--neural {
  min-height: clamp(360px, 52vw, 460px);
  background:
    radial-gradient(ellipse 65% 50% at 50% 38%, rgba(122, 44, 255, 0.1), transparent 68%),
    var(--bg-card);
}

.links-grid--neural {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  gap: clamp(0.55rem, 1.8vw, 0.85rem);
  grid-template-areas:
    "minds partner"
    "synapse synapse"
    "myelin myelin"
    "motor motor"
    "observe observe";
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.links-n-minds { grid-area: minds; }
.links-n-partner { grid-area: partner; }
.links-n-synapse { grid-area: synapse; }
.links-n-myelin { grid-area: myelin; }
.links-n-motor { grid-area: motor; }
.links-n-observe { grid-area: observe; }

.intellectual-products {
  margin: 2.5rem 0;
}

.intellectual-products h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.product-card--compact h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.product-card--compact p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.links-grid .links-node {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  min-width: 0;
  max-width: 152px;
  padding: clamp(0.45rem, 1.4vw, 0.65rem) clamp(0.4rem, 1.2vw, 0.7rem);
}

.links-node {
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  text-align: center;
  z-index: 1;
  box-sizing: border-box;
}

.links-node-tag {
  display: block;
  font-size: clamp(0.52rem, 1.6vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 0.28rem;
  word-break: break-word;
  hyphens: auto;
}

.links-node-label {
  display: block;
  font-size: clamp(0.58rem, 1.7vw, 0.68rem);
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
}

.links-node--genesis {
  border-color: rgba(122, 44, 255, 0.55);
  box-shadow: 0 0 24px rgba(122, 44, 255, 0.18);
  background: linear-gradient(145deg, var(--bg-card), rgba(122, 44, 255, 0.08));
}

.links-node--genesis .links-node-tag { color: var(--accent-violet-display); }

.links-node--genesis-sm {
  border-color: var(--border);
  box-shadow: none;
}

.links-node--genesis-sm .links-node-tag { color: var(--text-secondary); font-size: 0.58rem; }

.links-node--peer .links-node-tag { color: var(--accent-cyan-display); }
.links-node--team .links-node-tag { color: var(--brand-green-display); }
.links-node--rnd .links-node-tag { color: var(--accent-amber); }
.links-node--bridge .links-node-tag { color: var(--accent-amber); }
.links-node--private {
  border-style: dashed;
  opacity: 0.88;
}

.links-node--private .links-node-tag { color: var(--text-muted); }
.links-node--observe {
  border-color: rgba(122, 44, 255, 0.35);
  background: rgba(122, 44, 255, 0.06);
}

.links-node--observe .links-node-tag { color: var(--accent-violet-display); }
.links-node--region .links-node-tag { color: var(--accent-cyan-display); }
.links-node--shard .links-node-tag { color: var(--brand-green-display); }

.links-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.links-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.links-legend-line {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}

.links-legend-line--sync { background: var(--accent-cyan-display); }
.links-legend-line--bridge {
  background: repeating-linear-gradient(90deg, var(--accent-amber) 0 5px, transparent 5px 9px);
}
.links-legend-line--private {
  background: repeating-linear-gradient(90deg, var(--text-muted) 0 4px, transparent 4px 8px);
}
.links-legend-line--region { background: var(--accent-cyan-display); height: 3px; }
.links-legend-line--intellectual {
  background: repeating-linear-gradient(90deg, var(--accent-violet-display) 0 3px, transparent 3px 6px);
  opacity: 0.85;
}

.links-edge--intellectual { stroke: var(--accent-violet-display); stroke-dasharray: 2 4; opacity: 0.55; }

.links-cards { margin-bottom: 2rem; }

.links-mechanics {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  background: var(--undercover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.links-mechanics h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.links-mechanics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.links-mechanics-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}

.links-mechanics-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green-display);
  box-shadow: 0 0 8px var(--brand-green-display);
}

.links-mechanics-list strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .links-diagram {
    min-height: 0;
    padding: 0.65rem 0.5rem 0.75rem;
  }

  .links-edges {
    display: none;
  }

  .links-grid--genesis,
  .links-grid--scale {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 0.5rem;
    max-width: 280px;
  }

  .links-grid--genesis .links-g-observe { order: 1; }
  .links-grid--genesis .links-g-genesis { order: 2; }
  .links-grid--genesis .links-g-crdt { order: 3; }
  .links-grid--genesis .links-g-runtime { order: 4; }
  .links-grid--genesis .links-g-hsp { order: 5; }
  .links-grid--genesis .links-g-team { order: 6; }
  .links-grid--genesis .links-g-tiny { order: 7; }
  .links-grid--genesis .links-g-rnd { order: 8; }
  .links-grid--genesis .links-g-bridge { order: 9; }
  .links-grid--genesis .links-g-offline { order: 10; }

  .links-grid--scale .links-s-earth { order: 1; }
  .links-grid--scale .links-s-leo { order: 2; }
  .links-grid--scale .links-s-lunar { order: 3; }
  .links-grid--scale .links-s-compute { order: 4; }
  .links-grid--scale .links-s-custody { order: 5; }
  .links-grid--scale .links-s-semantic { order: 6; }
  .links-grid--scale .links-s-observe { order: 7; }
  .links-grid--scale .links-s-genesis { order: 8; }
  .links-grid--scale .links-s-sovereign { order: 9; }

  .links-grid--neural {
    grid-template-columns: 1fr;
    grid-template-areas:
      "minds"
      "partner"
      "synapse"
      "myelin"
      "motor"
      "observe";
    max-width: none;
  }

  .links-grid--neural .links-n-minds { order: 1; }
  .links-grid--neural .links-n-partner { order: 2; }
  .links-grid--neural .links-n-synapse { order: 3; }
  .links-grid--neural .links-n-myelin { order: 4; }
  .links-grid--neural .links-n-motor { order: 5; }
  .links-grid--neural .links-n-observe { order: 6; }

  .links-grid .links-node {
    max-width: none;
    width: 100%;
  }

  .links-grid--genesis .links-g-genesis,
  .links-grid--scale .links-s-compute {
    margin: 0.15rem 0;
  }

  .links-legend {
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .links-grid {
    width: min(100%, 480px);
  }

  .links-grid .links-node {
    max-width: 128px;
  }

  .links-grid--genesis {
    grid-template-areas:
      ". . observe . offline"
      ". . genesis . ."
      "runtime . crdt . hsp"
      "rnd team . tiny bridge";
  }
}
