/* ═══════════════════════════════════════════════════
   ErateSync – Enterprise Design System
   Sharp. Precise. Infrastructure-grade.
   ═══════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@100;300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap");

/* ─── TOKENS ─── */
:root {
  --bg-void:       #030508;
  --bg-primary:    #070A0F;
  --bg-elevated:   #0C1018;
  --bg-card:       #111720;
  --bg-card-hover: #161D28;
  --bg-subtle:     #1A2232;
  --bg-muted:      #1E2636;

  --border-primary: rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(255, 255, 255, 0.12);
  --border-accent:  rgba(59, 130, 246, 0.25);

  --text-primary:   #F0F2F5;
  --text-secondary: #8B919A;
  --text-tertiary:  #4A5160;
  --text-muted:     #2D3542;

  --accent:              #3B82F6;
  --accent-light:        #60A5FA;
  --accent-dark:         #2563EB;
  --accent-glow:         rgba(59, 130, 246, 0.12);
  --accent-glow-strong:  rgba(59, 130, 246, 0.25);

  --success: #10B981;
  --warning: #F59E0B;

  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── LIGHT MODE ─── */
html.light-mode {
  --bg-void:       #F8F9FB;
  --bg-primary:    #FFFFFF;
  --bg-elevated:   #F3F4F6;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F9FAFB;
  --bg-subtle:     #E5E7EB;
  --bg-muted:      #D1D5DB;

  --border-primary: rgba(0, 0, 0, 0.08);
  --border-hover:   rgba(0, 0, 0, 0.15);
  --border-accent:  rgba(59, 130, 246, 0.3);

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-tertiary:  #94A3B8;
  --text-muted:     #CBD5E1;

  --accent:              #2563EB;
  --accent-light:        #3B82F6;
  --accent-dark:         #1D4ED8;
  --accent-glow:         rgba(59, 130, 246, 0.08);
  --accent-glow-strong:  rgba(59, 130, 246, 0.15);
}

/* Light mode overrides for elements that use hardcoded colors */
html.light-mode body {
  background: var(--bg-primary);
}

html.light-mode ::selection {
  background: rgba(37, 99, 235, 0.2);
}

html.light-mode .hero-grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

html.light-mode .site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .hero::after {
  background: radial-gradient(
    ellipse 60% 70% at 65% 50%,
    rgba(59, 130, 246, 0.10) 0%,
    rgba(96, 165, 250, 0.06) 35%,
    rgba(147, 197, 253, 0.03) 55%,
    transparent 70%
  );
  width: 1000px;
  height: 700px;
}

html.light-mode .os-section::before {
  background: radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}

/* Light mode cards get subtle shadows instead of glows */
html.light-mode .journey-block::before {
  background: linear-gradient(90deg, var(--accent), transparent);
}

html.light-mode .timeline-step.active .timeline-marker {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.08);
}

html.light-mode .os-pillar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html.light-mode .os-pillar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

html.light-mode .os-pillar::after {
  color: rgba(59, 130, 246, 0.06);
}

html.light-mode .os-pillar:hover::after {
  color: rgba(59, 130, 246, 0.1);
}

html.light-mode .agent-terminal {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

html.light-mode .terminal-status {
  background: rgba(59, 130, 246, 0.04);
}

html.light-mode .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

html.light-mode .manifesto-section::after {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 65%);
}

html.light-mode .cta-glow {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 40%, transparent 70%);
}

html.light-mode .btn-scale-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent-dark);
  color: #fff;
}

html.light-mode .btn-scale-primary:hover {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
}

html.light-mode .selector-option {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
  color: var(--text-secondary);
}

html.light-mode .selector-option:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}

html.light-mode .nav-dropdown-menu {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

html.light-mode .demo-panel {
  background: #fff;
}

html.light-mode .demo-field input,
html.light-mode .demo-field select,
html.light-mode .demo-field textarea {
  background: var(--bg-elevated);
}

/* Logo swap in light mode */
html.light-mode .logo-header,
html.light-mode .logo-footer {
  content: url('eratesync-logo-color.png');
}

/* Credibility number in light mode */
html.light-mode .credibility-number {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Text gradient shimmer in light mode */
html.light-mode .text-gradient-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--text-primary) 35%,
    var(--accent) 50%,
    var(--text-primary) 65%,
    var(--text-primary) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Footer trust in light mode */
html.light-mode .footer-trust {
  background: rgba(59, 130, 246, 0.04);
}

/* Tangled lines */
html.light-mode .tangled-lines .line-tangled {
  stroke: rgba(59, 130, 246, 0.2);
}

/* Timeline line */
html.light-mode .timeline-line {
  background: var(--bg-subtle);
}

/* Light mode: scrolled header */
html.light-mode .site-header {
  background: transparent;
}

/* Light mode: hero subtitle + credibility */
html.light-mode .hero-subtitle {
  color: var(--text-secondary);
}

html.light-mode .credibility-text {
  color: var(--text-secondary);
}

/* Light mode: primary button (white bg in dark, blue in light) */
html.light-mode .btn-primary {
  background: var(--accent);
  color: #fff;
}

html.light-mode .btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

/* Light mode: outline button */
html.light-mode .btn-outline {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-secondary);
}

html.light-mode .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
}

/* Light mode: ghost button */
html.light-mode .btn-ghost {
  color: var(--text-secondary);
}

html.light-mode .btn-ghost:hover {
  color: var(--accent);
}

/* Light mode: nav link action */
html.light-mode .nav-link-action {
  color: var(--text-secondary);
}

/* Light mode: hero grid bg */
html.light-mode .hero-grid-bg {
  mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 10%, transparent 60%);
}

/* Light mode: section desc */
html.light-mode .section-desc {
  color: var(--text-secondary);
}

/* Light mode: pillar cards */
html.light-mode .os-pillar {
  border-color: rgba(0, 0, 0, 0.08);
  background: #fff;
}

html.light-mode .os-pillar:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: #fff;
}

/* Light mode: journey steps */
html.light-mode .journey-block {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .journey-block::before {
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Light mode: timeline */
html.light-mode .timeline-step.active .timeline-marker {
  background: #fff;
}

html.light-mode .timeline-marker {
  background: var(--bg-primary);
  border-color: var(--bg-subtle);
}

/* Light mode: terminal */
html.light-mode .agent-terminal {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

html.light-mode .agent-terminal::before {
  background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0.05) 30%, rgba(59,130,246,0.02) 50%, rgba(59,130,246,0.05) 70%, rgba(59,130,246,0.15) 100%);
  background-size: 400% 400%;
}

html.light-mode .terminal-query {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .terminal-status {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .terminal-indicators {
  border-top-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .terminal-processing {
  background: #fff;
}

html.light-mode .terminal-response {
  background: var(--bg-elevated);
}

html.light-mode .slide-btn {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light mode: testimonial cards */
html.light-mode .testimonial-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light-mode .testimonial-card blockquote {
  border-left-color: rgba(59, 130, 246, 0.3);
}

html.light-mode .testimonial-card blockquote::before {
  color: rgba(59, 130, 246, 0.15);
}

/* Light mode: author avatar */
html.light-mode .author-avatar {
  background: var(--accent-glow);
  color: var(--accent);
}

/* Light mode: footer */
html.light-mode .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: var(--bg-elevated);
}

html.light-mode .footer-col a {
  color: var(--text-secondary);
}

html.light-mode .footer-col a:hover {
  color: var(--text-primary);
}

html.light-mode .footer-social a {
  color: var(--text-tertiary);
}

html.light-mode .footer-social a:hover {
  color: var(--text-primary);
}

/* Light mode: demo modal */
html.light-mode .demo-backdrop {
  background: rgba(0, 0, 0, 0.4);
}

html.light-mode .demo-close {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light mode: mantra (hidden but just in case) */
html.light-mode .mantra-step {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.05);
}

/* Light mode: persona labels */
html.light-mode .persona-label {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .persona-who {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light mode: manifesto accent line */
html.light-mode .manifesto-section::before {
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

/* Light mode: testimonials accent line */
html.light-mode .testimonials-section::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Light mode: screen blur overlays */
html.light-mode .screen-blur {
  background: rgba(255, 255, 255, 0.6);
}

/* Light mode: processing bars */
html.light-mode .processing-bars span {
  background: var(--accent);
}

/* ─── Mode Toggle Button ─── */
.mode-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-tertiary);
  padding: 0;
  flex-shrink: 0;
}

.mode-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.mode-toggle .icon-sun,
.mode-toggle .icon-moon {
  width: 16px;
  height: 16px;
}

/* Light mode (default): show moon icon (click → dark) */
/* Dark mode: show sun icon (click → light) */
.mode-toggle .icon-moon { display: none; }
.mode-toggle .icon-sun { display: block; }
html.light-mode .mode-toggle .icon-moon { display: block; }
html.light-mode .mode-toggle .icon-sun { display: none; }

/* ─── ANNOUNCEMENT BANNER ─── */
.announcement-bar {
  position: relative;
  z-index: 1001;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
  background-size: 200% 100%;
  animation: bannerShimmer 4s ease infinite;
  padding: 10px 16px;
  text-align: center;
  overflow: hidden;
}

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

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: announcePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes announcePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.announcement-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  background: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.announcement-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.announcement-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.announcement-link:hover {
  opacity: 0.8;
}

/* Light mode: banner stays the same (blue gradient looks good on both) */

/* Offset the header for the banner height */
.site-header {
  top: 0;
}

body:has(.announcement-bar) .site-header {
  top: 38px;
}

body:has(.announcement-bar) .hero {
  padding-top: 38px;
}

@media (max-width: 768px) {
  .announcement-text {
    font-size: 12px;
  }

  .announcement-link {
    font-size: 11px;
  }

  .announcement-inner {
    gap: 6px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Display font for brand elements */
.logo span,
.pricing-tier,
.price-amount,
.dash-title {
  font-family: var(--font-display);
}

/* Mono font for system labels, data, metrics */
.section-tag,
.hero-announcement,
.announcement-badge,
.pricing-badge,
.metric-value,
.step-number,
.dash-card-value,
.dash-card-label,
.credibility-number,
.nav-links a {
  font-family: var(--font-mono);
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 60px; }
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered hero reveal */
.anim-reveal {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s + 0.2s);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes shapeFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(5px, -10px, 0) rotate(1deg); }
  50% { transform: translate3d(0, -6px, 0) rotate(0deg); }
  75% { transform: translate3d(-5px, -10px, 0) rotate(-1deg); }
}

@keyframes shapeGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s var(--ease-out);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-primary);
  padding: 12px 0;
}


.nav-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-container { padding: 0 40px; }
}

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

.logo-img {
  width: auto;
  object-fit: contain;
}

.logo-header {
  height: 120px;
}

.logo-footer {
  height: 140px;
  margin-bottom: 12px;
}

.logo:hover { opacity: 0.9; }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-chevron {
  font-size: 8px;
  transition: transform 0.3s var(--ease-out);
  opacity: 0.5;
}

.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 6px;
  transition: background 0.2s;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.nav-dropdown-item:hover {
  background: var(--accent-glow);
}

.nav-dropdown-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-dropdown-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.nav-dropdown-item:hover .nav-dropdown-label {
  color: var(--accent-light);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-actions { display: flex; }
}

.nav-link-action {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.nav-link-action:hover { color: var(--text-primary); }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile: dropdown menus inline */
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    background: transparent;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-item {
    padding: 8px 12px;
  }

  .login-dropdown .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Lock body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}
html:has(body.nav-open) {
  overflow: hidden;
}

/* Mobile full-screen nav overlay */
.nav-links.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 70px 40px 140px;
  z-index: 999;
  gap: 16px;
  text-align: center;
  overflow-y: auto;
}

html.light-mode .nav-links.open {
  background: #FFFFFF;
}

.nav-links.open > a,
.nav-links.open > .nav-dropdown > .nav-dropdown-trigger {
  font-size: 18px;
  color: var(--text-primary);
  padding: 8px 0;
}

.nav-links.open .nav-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-links.open .nav-dropdown-menu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0 0;
  min-width: auto;
  text-align: center;
}

.nav-links.open .nav-dropdown-menu::before {
  display: none;
}

.nav-links.open .nav-dropdown-item {
  padding: 6px 0;
  align-items: center;
}

/* Nav actions: fixed bar at bottom */
.nav-actions.open {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1000;
  padding: 16px 24px 32px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-primary);
}

html.light-mode .nav-actions.open {
  background: #FFFFFF;
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Hide login dropdown on mobile — simplify to just the buttons */
.nav-actions.open .login-dropdown {
  display: none;
}

.nav-actions.open .btn {
  flex: 1;
  justify-content: center;
  max-width: 200px;
}

/* Mobile close button always on top */
.mobile-menu-btn.active {
  z-index: 1001;
  position: fixed;
  top: 28px;
  right: 24px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 550;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  border: none;
  line-height: 1;
}

.btn:hover { text-decoration: none; }

.btn-sm {
  font-size: 13px;
  padding: 9px 18px;
}

.btn-lg {
  font-size: 15px;
  padding: 14px 28px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  width: 100%;
  justify-content: center;
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Scale-style hero buttons */
.btn-scale-primary {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  padding: 14px 32px;
  transition: all 0.4s var(--ease-out);
}

.btn-scale-primary:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.1) 100%);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.btn-scale-ghost {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 240, 255, 0.8);
  background: transparent;
  border: none;
  padding: 14px 8px;
  transition: all 0.3s var(--ease-out);
}

.btn-scale-ghost:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   HERO – Scale AI style
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: var(--bg-void);
}

/* Hero glow bleed */
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 10%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .hero-inner { padding: 0 40px; }
}

.hero-content {
  flex: 0 1 auto;
  max-width: 620px;
  padding: 96px 0 80px;
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Element 1: Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 720px;
}

/* Gradient shimmer on "E-rate" */
.text-gradient-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--text-primary) 35%,
    var(--accent-light) 50%,
    var(--text-primary) 65%,
    var(--text-primary) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
  animation-delay: 1s;
}

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

/* Element 2: Subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 32px;
}

/* Element 3: Credibility Statement */
.hero-credibility {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.credibility-number {
  font-family: var(--font-mono);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

.credibility-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--accent-light), transparent);
  flex-shrink: 0;
  opacity: 0.5;
}

.credibility-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-tertiary);
  line-height: 1.5;
  max-width: 200px;
}

/* Element 4: Audience Selector */
.hero-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 40px;
  gap: 4px;
}

@media (max-width: 480px) {
  .hero-selector {
    flex-direction: column;
    width: 100%;
  }
}

.selector-option {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 16px 32px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.selector-option::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: left;
}

.selector-option:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.selector-option:hover::before {
  transform: scaleX(1);
}

.selector-option:active {
  background: rgba(59, 130, 246, 0.15);
  transform: scale(0.98);
}

/* Element 5: Primary CTA */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ── Audience Landing Page Elements ── */
.hero-selector-back {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text-primary);
}

.selector-active-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  padding: 4px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audience-pain-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  transition: all 0.3s var(--ease-out);
}

.pain-point:hover {
  border-color: var(--border-accent);
  background: rgba(108, 92, 231, 0.04);
}

.pain-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.pain-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pain-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ── Applicant Landing Page: Pillars Section ── */
.pillars-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
}

.pillars-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .pillars-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Orbital diagram */
.orbital-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), 0 0 120px rgba(59, 130, 246, 0.12);
  z-index: 2;
}

.orbital-center svg {
  color: #fff;
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(108, 92, 231, 0.12);
}

.orbital-ring-1 {
  width: 55%;
  height: 55%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 30s linear infinite;
}

.orbital-ring-2 {
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 45s linear infinite reverse;
}

.orbital-ring-3 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 60s linear infinite;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbital-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.orbital-node-label {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pillar cards stack */
.pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pillar-card:first-child {
  border-radius: 16px 16px 0 0;
}

.pillar-card:last-child {
  border-radius: 0 0 16px 16px;
}

.pillar-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.pillar-card:hover,
.pillar-card.active {
  background: rgba(108, 92, 231, 0.04);
  border-color: var(--border-accent);
}

.pillar-card:hover::before,
.pillar-card.active::before {
  opacity: 1;
}

.pillar-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  transition: margin-bottom 0.3s var(--ease-out);
}

.pillar-card.active .pillar-card-header,
.pillar-card:hover .pillar-card-header {
  margin-bottom: 14px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pillar-body {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  padding-left: 50px;
}

.pillar-card.active .pillar-body,
.pillar-card:hover .pillar-body {
  max-height: 200px;
  opacity: 1;
}

/* Landing page hero subtitle animation */
.hero-subtitle-animated {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 32px;
  overflow: hidden;
}

.subtitle-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) rotateX(-20deg);
  animation: wordFadeUp 0.5s var(--ease-out) forwards;
}

@keyframes wordFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Animated school/library icons for applicant hero */
.hero-icons-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-icon-float {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  color: var(--accent-light);
  animation: float 4s ease-in-out infinite;
}

.hero-icon-float:nth-child(2) {
  animation-delay: -1.5s;
}

/* Landing page CTA section */
.landing-cta-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
}

.landing-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.landing-cta-content {
  position: relative;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.landing-cta-content p {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Dashboard Preview (blurred product screenshot) ── */
.dashboard-preview-wrapper {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%) perspective(1200px) rotateY(-8deg) rotateX(2deg);
  width: 55%;
  z-index: 1;
  pointer-events: none;
  animation: dashboardFloat 6s ease-in-out infinite, dashboardReveal 1.2s var(--ease-out) forwards;
  animation-delay: 0.6s, 0s;
  opacity: 0;
}

@keyframes dashboardReveal {
  0% {
    opacity: 0;
    transform: translateY(-45%) perspective(1200px) rotateY(-12deg) rotateX(4deg) translateX(60px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) perspective(1200px) rotateY(-8deg) rotateX(2deg) translateX(0) scale(1);
  }
}

@keyframes dashboardFloat {
  0%, 100% {
    transform: translateY(-50%) perspective(1200px) rotateY(-8deg) rotateX(2deg);
  }
  50% {
    transform: translateY(-51.5%) perspective(1200px) rotateY(-7deg) rotateX(1.5deg);
  }
}

.dashboard-preview-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 25px 80px -15px rgba(0, 0, 0, 0.7),
    0 0 100px -30px rgba(108, 92, 231, 0.2);
}

.dashboard-preview-inner img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(6px) brightness(0.5) saturate(0.7);
  transition: filter 1.2s var(--ease-out);
}

.dashboard-preview-wrapper:hover .dashboard-preview-inner img {
  filter: blur(4px) brightness(0.6) saturate(0.8);
}

/* Gradient overlay fading edges */
.dashboard-preview-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, transparent 20%, transparent 70%, rgba(5, 5, 5, 0.8) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.5) 0%, transparent 30%, transparent 80%, rgba(5, 5, 5, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Scan line animation across the blurred dashboard */
.dashboard-preview-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(108, 92, 231, 0.03) 40%,
    rgba(108, 92, 231, 0.08) 50%,
    rgba(108, 92, 231, 0.03) 60%,
    transparent 100%
  );
  animation: scanDown 4s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanDown {
  0% { top: -60%; }
  100% { top: 120%; }
}

/* Glowing accent border pulse */
.dashboard-preview-inner::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent 40%, transparent 60%, rgba(56, 189, 248, 0.2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@media (max-width: 1023px) {
  .dashboard-preview-wrapper {
    position: relative;
    top: auto;
    right: auto;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    width: 100%;
    margin-top: 48px;
    opacity: 1;
    animation: dashboardFloatMobile 6s ease-in-out infinite;
  }
  @keyframes dashboardFloatMobile {
    0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
    50% { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-8px); }
  }
}

/* ── Dashboard Showcase Section (full-width blurred screenshot) ── */
.dashboard-showcase-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
}

.dashboard-cta-row {
  text-align: center;
  margin-bottom: 48px;
}

.dashboard-showcase {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-showcase-window {
  border-radius: 16px;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 25px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 120px -40px rgba(108, 92, 231, 0.12);
  animation: showcaseFloat 6s ease-in-out infinite;
}

@keyframes showcaseFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.dashboard-showcase-img {
  position: relative;
  overflow: hidden;
}

.dashboard-showcase-img img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(4px) brightness(0.6) saturate(0.8);
  transition: filter 0.8s var(--ease-out);
}

.dashboard-showcase-window:hover .dashboard-showcase-img img {
  filter: blur(2px) brightness(0.7) saturate(0.85);
}

.dashboard-showcase-blur-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.15) 0%, transparent 15%, transparent 85%, rgba(5, 5, 5, 0.4) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.2) 0%, transparent 10%, transparent 90%, rgba(5, 5, 5, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

.dashboard-showcase-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(108, 92, 231, 0.02) 40%,
    rgba(108, 92, 231, 0.06) 50%,
    rgba(108, 92, 231, 0.02) 60%,
    transparent 100%
  );
  animation: scanDown 5s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
  z-index: 2;
}

/* Glowing border on the showcase window */
.dashboard-showcase-window::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), transparent 30%, transparent 70%, rgba(56, 189, 248, 0.15)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* ─── Operating System Diagram ─── */
.os-diagram-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
}

.os-diagram {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 60px auto 0;
}

/* Orbit rings */
.os-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(108, 92, 231, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.os-orbit-ring--1 {
  width: 180px;
  height: 180px;
  border-color: rgba(108, 92, 231, 0.12);
  animation: osPulseRing 4s ease-in-out infinite;
}

.os-orbit-ring--2 {
  width: 300px;
  height: 300px;
  border-color: rgba(108, 92, 231, 0.07);
  animation: osPulseRing 4s ease-in-out infinite 0.5s;
}

.os-orbit-ring--3 {
  width: 420px;
  height: 420px;
  border-color: rgba(108, 92, 231, 0.04);
  animation: osPulseRing 4s ease-in-out infinite 1s;
}

@keyframes osPulseRing {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Center hub */
.os-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.os-center-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: osGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes osGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.5; }
}

.os-center-icon {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
  position: relative;
  z-index: 2;
}

.os-center-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Satellite nodes — positioned via CSS custom properties */
.os-node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)));
  animation: osNodeIn 0.6s var(--ease-out) both;
  animation-delay: var(--delay);
  z-index: 3;
}

@keyframes osNodeIn {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) rotate(calc(-1 * var(--angle))) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle))) scale(1); }
}

.os-node-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.os-node-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.os-node:hover .os-node-icon {
  background: rgba(108, 92, 231, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 24px -4px rgba(59, 130, 246, 0.3);
  transform: scale(1.1);
}

.os-node:hover .os-node-icon::after {
  opacity: 1;
}

.os-node-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 450;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease-out);
}

.os-node:hover .os-node-label {
  color: var(--text-primary);
}

/* Connecting lines from node to center */
.os-node-line {
  display: none; /* handled by orbit rings visually */
}

/* Floating animation for the whole diagram */
.os-diagram {
  animation: osFloat 6s ease-in-out infinite;
}

@keyframes osFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive */
@media (max-width: 640px) {
  .os-diagram {
    width: 320px;
    height: 320px;
  }
  .os-node {
    --radius: 135px !important;
  }
  .os-orbit-ring--1 { width: 130px; height: 130px; }
  .os-orbit-ring--2 { width: 225px; height: 225px; }
  .os-orbit-ring--3 { width: 320px; height: 320px; }
  .os-node-icon { width: 42px; height: 42px; border-radius: 10px; }
  .os-node-label { font-size: 11px; }
  .os-diagram-section { padding: 80px 0; }
}

/* ─── Four Pillar Cards ─── */
.pillars-section {
  padding: 100px 0 120px;
  border-top: 1px solid var(--border-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at top left, rgba(108, 92, 231, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.pillar-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.12), 0 20px 40px -20px rgba(0, 0, 0, 0.3);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 24px;
  transition: all 0.4s var(--ease-out);
}

.pillar-card:hover .pillar-icon {
  background: rgba(108, 92, 231, 0.18);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: 0 0 20px -4px rgba(59, 130, 246, 0.3);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-tertiary);
  font-weight: 350;
}

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

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillars-section {
    padding: 80px 0;
  }
}

/* Hero 3D background — particle school fills right side */
.hero-3d-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-3d-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Light mode: soft blue glow halo behind the 3D particles */
html.light-mode .hero-3d-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.14) 0%,
    rgba(59, 130, 246, 0.08) 30%,
    rgba(147, 197, 253, 0.04) 55%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* ═══════════════════════════════════════════════════
   LOGOS
   ═══════════════════════════════════════════════════ */
.logos-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.logos-label {
  text-align: center;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.logo-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s;
}

.logo-item:hover {
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════
   METRICS
   ═══════════════════════════════════════════════════ */
.metrics-section {
  padding: 80px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 450;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  border: 1px solid var(--border-accent);
}

.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════
   PLATFORM SHOWCASE
   ═══════════════════════════════════════════════════ */
.platform-section {
  padding: 120px 0;
}

.platform-showcase {
  position: relative;
}

.platform-window {
  border-radius: 16px;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 120px -40px rgba(108, 92, 231, 0.1);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-primary);
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.window-dots span:first-child { background: #FF5F57; }
.window-dots span:nth-child(2) { background: #FFBD2E; }
.window-dots span:last-child { background: #28CA42; }

.window-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.window-content {
  display: flex;
  min-height: 400px;
}

.dash-sidebar {
  width: 200px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-primary);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .dash-sidebar { display: block; }
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-radius: 8px;
  cursor: default;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.dash-nav-item.active {
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent-light);
}

.dash-main {
  flex: 1;
  padding: 24px;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 2px;
}

.dash-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
}

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

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dash-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
}

.dash-card-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.dash-card-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dash-card-change {
  font-size: 12px;
  font-weight: 500;
}

.dash-card-change.positive { color: var(--success); }

.dash-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 24px;
  height: 160px;
  display: flex;
  align-items: flex-end;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 20px;
  transition: background 0.3s;
}

.chart-bar.accent {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.chart-bar span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════ */
.features-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-primary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

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

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

.feature-card {
  padding: 40px 32px;
  background: var(--bg-card);
  transition: background 0.4s var(--ease-out);
}

.feature-card:hover {
  background: var(--bg-card-hover);
}

.feature-card-large {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .feature-card-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════ */
.how-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
}

.step-card {
  flex: 1;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}

.step-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.12);
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(108, 92, 231, 0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.step-connector {
  display: none;
  align-items: center;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .step-connector { display: flex; }
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════ */
.testimonials-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.testimonials-section {
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.testimonial-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: normal;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(59, 130, 246, 0.3);
}

.testimonial-card blockquote::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: -4px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(59, 130, 246, 0.2);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════ */
.pricing-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.pricing-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 80px -20px rgba(59, 130, 246, 0.2);
}

.pricing-card-featured:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 80px -10px rgba(59, 130, 246, 0.25), 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-price {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%236C5CE7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ═══════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════ */
.cta-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-primary);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(59, 130, 246, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-primary);
  padding: 64px 0 40px;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
  }
}

.footer-brand {
  max-width: 260px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-col a:hover {
  color: var(--text-primary);
}

/* Footer trust disclaimer */
.footer-trust {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.03);
}

.footer-trust svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

.footer-trust p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-primary);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--text-primary);
}

/* ─── OPERATING SYSTEM SECTION ─── */
.os-section {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.os-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.os-icon-animation {
  display: flex;
  justify-content: center;
  margin: 48px 0 36px;
  position: relative;
}

.os-icon-animation::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.os-icon-animation svg {
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.tangled-lines .line-tangled {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
  animation: tangleFloat 6s ease-in-out infinite alternate;
}

.tangled-lines .line-tangled:nth-child(2) {
  animation-delay: -3s;
}

.tangled-lines .line-resolved {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: lineResolve 2.5s var(--ease-out) forwards;
  animation-delay: 0.8s;
}

.tangled-lines .resolve-dot {
  animation: dotAppear 0.5s var(--ease-out) forwards;
  animation-delay: 3s;
}

@keyframes tangleFloat {
  0% { opacity: 0.8; transform: translateY(0); }
  50% { opacity: 0.15; transform: translateY(2px); }
  100% { opacity: 0.8; transform: translateY(0); }
}

@keyframes lineResolve {
  to { stroke-dashoffset: 0; }
}

@keyframes dotAppear {
  from { opacity: 0; r: 0; }
  to { opacity: 1; r: 4; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; r: 4; }
  50% { opacity: 0.5; r: 7; }
}

/* ─── AGENT SHOWCASE ─── */
.agent-showcase {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.agent-showcase::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.agent-showcase-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ─── The Terminal ─── */
.agent-terminal {
  max-width: 920px;
  margin: 0 auto 56px;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--bg-void);
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.06);
  position: relative;
}

/* Animated border glow */
.agent-terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(59, 130, 246, 0.05) 30%,
    rgba(59, 130, 246, 0.02) 50%,
    rgba(59, 130, 246, 0.05) 70%,
    rgba(59, 130, 246, 0.2) 100%
  );
  background-size: 400% 400%;
  animation: terminalBorderGlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

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

/* Status bar */
.terminal-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-primary);
  background: rgba(59, 130, 246, 0.03);
}

.terminal-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-dot--live {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.terminal-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-status-text {
  color: #22c55e;
}

/* Query area — the typing line */
.terminal-query {
  padding: 28px 28px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-primary);
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.terminal-typed {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  min-height: 28px;
}

.terminal-cursor {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Response area */
.terminal-response {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.terminal-response-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.terminal-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.terminal-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.terminal-screen img {
  width: 100%;
  display: block;
}

/* Blur over district names */
.screen-blur {
  position: absolute;
  backdrop-filter: blur(20px) saturate(0.5);
  -webkit-backdrop-filter: blur(20px) saturate(0.5);
  background: rgba(180, 200, 220, 0.25);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

/* Blur positions set via inline styles per screenshot */

/* Processing overlay */
.terminal-processing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-void);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 3;
}

.terminal-processing.active {
  opacity: 1;
}

.processing-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 28px;
}

.processing-bars span {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: processingBar 0.8s ease-in-out infinite;
}

.processing-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.processing-bars span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.processing-bars span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.processing-bars span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.processing-bars span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes processingBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

.processing-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Query indicators (dots) */
.terminal-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border-primary);
}

.terminal-ind {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.terminal-ind.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.terminal-ind:hover {
  border-color: var(--accent-light);
}

/* Footnote */
.agent-footnote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  margin-top: 32px;
}

/* CTA */
.agent-cta {
  text-align: center;
}

@media (max-width: 768px) {
  .terminal-query {
    padding: 20px;
  }

  .terminal-typed {
    font-size: 16px;
  }

  .terminal-response {
    min-height: 240px;
  }
}

/* ─── OS Pillars (3-column) ─── */
.os-pillars {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.os-pillar {
  flex: 1;
  text-align: center;
  padding: 48px 32px 44px;
  position: relative;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  /* Start hidden for animation */
  opacity: 0;
  transform: translateY(30px);
}

/* Stagger entrance */
.os-pillars.in-view .os-pillar:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.os-pillars.in-view .os-pillar:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.os-pillars.in-view .os-pillar:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }

/* Top glow line — sweeps in */
.os-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
  transition: width 0.8s var(--ease-out);
}

.os-pillars.in-view .os-pillar:nth-child(1)::before { width: 100%; transition-delay: 0.3s; }
.os-pillars.in-view .os-pillar:nth-child(3)::before { width: 100%; transition-delay: 0.5s; }
.os-pillars.in-view .os-pillar:nth-child(5)::before { width: 100%; transition-delay: 0.7s; }

/* Background number — big, faded */
.os-pillar::after {
  content: attr(data-num);
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 300;
  color: rgba(59, 130, 246, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.5s;
}

.os-pillar:hover::after {
  color: rgba(59, 130, 246, 0.08);
}

/* Hover glow */
.os-pillar:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.os-pillar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.os-pillar-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 28px;
  opacity: 0;
  transition: opacity 0.5s 0.6s;
}

.os-pillars.in-view .os-pillar-line {
  opacity: 1;
}

.os-pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.os-pillar p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.7;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}

.os-pillar:hover p {
  color: var(--text-secondary);
}

.os-pillar-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 4px;
  /* Animate connector */
  opacity: 0;
  transition: opacity 0.4s;
}

.os-pillars.in-view .os-pillar-connector:nth-child(2) { opacity: 1; transition-delay: 0.5s; }
.os-pillars.in-view .os-pillar-connector:nth-child(4) { opacity: 1; transition-delay: 0.7s; }

/* ─── Persona Labels ─── */
.persona-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-primary);
}

.persona-tag {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.persona-who {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border-primary);
  border-radius: 2px;
}

.os-mantra {
  display: none; /* replaced by os-pillars */
}

.mantra-step {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  background: var(--accent-glow);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.mantra-step::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.mantra-step:hover {
  background: var(--accent-glow-strong);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.mantra-step:hover::before {
  opacity: 1;
}

.mantra-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
}

/* ─── AUDIENCE JOURNEYS ─── */
.journeys-section {
  padding: 100px 0;
}

.journey-block {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-primary);
  position: relative;
}

.journey-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.journey-block:last-child {
  border-bottom: none;
}

.journey-block .section-tag {
  margin-bottom: 16px;
}

.journey-block h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.journey-arc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 56px;
}

/* ─── Vertical Timeline ─── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 20px 80px;
}

/* The vertical line */
.timeline-line {
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bg-subtle);
}

.timeline-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 1px;
  transition: height 0.6s var(--ease-out);
  position: relative;
}

/* Glow on the fill line */
.timeline-fill::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent), 0 0 40px rgba(59, 130, 246, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline.active .timeline-fill::after {
  opacity: 1;
}

/* Each step */
.timeline-step {
  position: relative;
  padding: 0 0 72px 48px;
  opacity: 0.3;
  transform: translateX(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step.active {
  opacity: 1;
  transform: translateX(0);
}

/* The marker circle on the line */
.timeline-marker {
  position: absolute;
  left: -48px;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-subtle);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--ease-out);
  z-index: 2;
}

.timeline-marker span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.5s;
}

.timeline-step.active .timeline-marker {
  border-color: var(--accent);
  background: var(--bg-void);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25), 0 0 60px rgba(59, 130, 246, 0.1);
}

.timeline-step.active .timeline-marker span {
  color: var(--accent-light);
}

/* Passed steps — filled marker */
.timeline-step.passed .timeline-marker {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
}

.timeline-step.passed .timeline-marker span {
  color: var(--accent);
}

.timeline-step.passed {
  opacity: 0.5;
  transform: translateX(0);
}

/* Content */
.timeline-content {
  position: relative;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.5s;
}

.timeline-step:not(.active) .timeline-content h3 {
  color: var(--text-secondary);
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  transition: opacity 0.5s;
}

.timeline-step:not(.active) .timeline-content p {
  opacity: 0.5;
}

/* Large background step number */
.timeline-step.active .timeline-content::before {
  content: attr(data-step-label);
  position: absolute;
  right: -40px;
  top: -20px;
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 300;
  color: rgba(59, 130, 246, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .timeline {
    padding: 20px 0 20px 52px;
  }

  .timeline-line {
    left: 19px;
  }

  .timeline-marker {
    left: -36px;
    width: 32px;
    height: 32px;
  }

  .timeline-marker span {
    font-size: 10px;
  }

  .timeline-step {
    padding: 0 0 48px 28px;
  }

  .timeline-step.active .timeline-content::before {
    display: none;
  }
}

.journey-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.journey-cta p {
  font-size: 15px;
  color: var(--text-tertiary);
  font-style: italic;
}

.journey-cta .btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--accent-light);
}

.journey-cta .btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* ─── MANIFESTO ─── */
.manifesto-section {
  padding: 180px 0;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.manifesto-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

/* Centered glow behind manifesto */
.manifesto-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.manifesto-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.manifesto-opening {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.manifesto-tension {
  font-size: 17px;
  line-height: 2;
  color: var(--text-tertiary);
  margin-bottom: 64px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-declaration {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  line-height: 1.1;
}

.manifesto-payoff {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── RESPONSIVE: NEW SECTIONS ─── */
@media (max-width: 768px) {
  .os-mantra {
    gap: 10px;
  }

  .mantra-step {
    font-size: 14px;
    padding: 8px 16px;
  }

  .mantra-arrow {
    font-size: 16px;
  }

  .os-pillars {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .os-pillar-connector {
    transform: rotate(90deg);
    align-self: center;
  }

  .os-pillar::after {
    font-size: 80px;
  }

  .persona-label {
    flex-direction: column;
    gap: 8px;
  }

  .persona-tag {
    font-size: 20px;
  }

  .journey-block {
    padding: 64px 0;
  }

  .journey-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .os-icon-animation svg {
    width: 280px;
  }

  .manifesto-section {
    padding: 80px 0;
  }
}

/* ─── SECTION BACKGROUNDS (Scene Rhythm) ─── */
.scene-void     { background: var(--bg-void); }
.scene-primary  { background: var(--bg-primary); }
.scene-elevated { background: var(--bg-elevated); }

/* ─── CORNER BRACKET FRAMES ─── */
.bracket-frame {
  position: relative;
}

.bracket-frame::before,
.bracket-frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--text-tertiary);
  border-style: solid;
  transition: border-color 0.3s;
}

.bracket-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.bracket-frame::after {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}

.bracket-frame .bracket-bottom::before,
.bracket-frame .bracket-bottom::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--text-tertiary);
  border-style: solid;
  transition: border-color 0.3s;
}

.bracket-frame .bracket-bottom::before {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}

.bracket-frame .bracket-bottom::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.bracket-frame:hover::before,
.bracket-frame:hover::after,
.bracket-frame:hover .bracket-bottom::before,
.bracket-frame:hover .bracket-bottom::after {
  border-color: var(--accent);
}

/* ─── METRICS COUNT-UP ─── */
.metric-value[data-target] {
  font-variant-numeric: tabular-nums;
}

/* ─── SCROLL-DRIVEN SCENE ANIMATIONS ─── */
.scene-enter {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.scene-enter.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.in-view > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* Manifesto line-by-line */
.manifesto-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.manifesto-line.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Mantra steps power-on sequence */
.mantra-step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mantra-arrow {
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.os-mantra.in-view .mantra-step:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.os-mantra.in-view .mantra-arrow:nth-child(2) { transition-delay: 200ms; opacity: 1; }
.os-mantra.in-view .mantra-step:nth-child(3) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.os-mantra.in-view .mantra-arrow:nth-child(4) { transition-delay: 600ms; opacity: 1; }
.os-mantra.in-view .mantra-step:nth-child(5) { transition-delay: 800ms; opacity: 1; transform: translateY(0); }

/* How-it-works connector draw */
.step-connector svg line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.8s var(--ease-out);
}

.step-connector.in-view svg line {
  stroke-dashoffset: 0;
}

/* ═══════════════════════════════════════════════════
   INTERIOR PAGES (Case Studies, Blog, Privacy)
   ═══════════════════════════════════════════════════ */

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.page-hero-content {
  max-width: 720px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-light);
}

.page-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.page-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.6;
}

/* ─── CASE STUDIES GRID ─── */
.case-studies-grid-section {
  padding: 60px 0 100px;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.case-study-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}

.case-study-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.case-study-card-inner {
  padding: 36px 32px;
}

.case-study-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.case-study-type,
.case-study-location {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.case-study-type {
  color: var(--accent-light);
}

.case-study-card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

.case-study-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-study-stats {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-primary);
  margin-bottom: 16px;
}

.case-study-stat .stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.case-study-stat .stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-study-read-more,
.blog-read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── ARTICLE LAYOUT ─── */
.article-section {
  padding: 40px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}

.article-layout--full {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-primary);
}

.sidebar-block:last-child {
  border-bottom: none;
}

.sidebar-block h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.sidebar-block p {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 20px;
}

.article-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--accent);
}

/* ─── IMPACT CARDS ─── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.impact-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 24px;
}

.impact-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 8px;
  margin-top: 0;
}

.impact-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ─── FEATURED QUOTE ─── */
.featured-quote-section {
  padding: 0 0 40px;
}

.featured-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 12px 12px 0;
}

.featured-quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.featured-quote cite {
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: normal;
}

.article-conclusion-quote {
  margin-top: 40px;
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 8px 8px 0;
}

.article-conclusion-quote blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.article-conclusion-quote cite {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: normal;
}

/* ─── RELATED SECTION ─── */
.related-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-primary);
}

.related-section h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.related-section .case-study-card {
  max-width: 600px;
}

/* ─── BLOG GRID ─── */
.blog-grid-section {
  padding: 60px 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out);
}

.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.blog-card-inner {
  padding: 32px 28px;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.blog-date,
.blog-author {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-author {
  color: var(--accent-light);
}

.blog-card h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ─── BLOG POST META ─── */
.article-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.article-meta .meta-author {
  color: var(--accent-light);
}

/* ─── RESPONSIVE: INTERIOR PAGES ─── */
@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 60px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .sidebar-block {
    flex: 1 1 auto;
    min-width: 120px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-radius: 8px;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .case-study-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════
   AUDIENCE PAGE: ENHANCED OS DIAGRAM
   ═══════════════════════════════════════════════════ */
.os-diagram-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.os-diagram-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.os-diagram-wrap {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 56px auto 0;
}

/* Orbit rings */
.os-orbit-ring {
  position: absolute;
  border: 1px dashed rgba(59, 130, 246, 0.12);
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.os-orbit-ring--1 {
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  animation: orbitSpin 60s linear infinite;
}

.os-orbit-ring--2 {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  animation: orbitSpin 45s linear infinite reverse;
  border-color: rgba(59, 130, 246, 0.08);
}

.os-orbit-ring--3 {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  animation: orbitSpin 30s linear infinite;
  border-color: rgba(59, 130, 246, 0.05);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* Center logo */
.os-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.os-center-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  animation: centerPulse 3s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes centerPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

.os-center-icon {
  position: relative;
  z-index: 2;
}

.os-center-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nodes */
.os-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  transform: translate(-50%, -50%)
    translate(
      calc(cos(var(--angle)) * var(--radius)),
      calc(sin(var(--angle)) * var(--radius))
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  /* Stagger entrance */
  opacity: 0;
  animation: nodeAppear 0.6s var(--ease-out) forwards;
  animation-delay: var(--delay);
}

@keyframes nodeAppear {
  from { opacity: 0; transform: translate(-50%, -50%) translate(calc(cos(var(--angle)) * var(--radius)), calc(sin(var(--angle)) * var(--radius))) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) translate(calc(cos(var(--angle)) * var(--radius)), calc(sin(var(--angle)) * var(--radius))) scale(1); }
}

.os-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  transition: all 0.4s var(--ease-out);
}

.os-node:hover .os-node-icon {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
  transform: scale(1.15);
}

.os-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
}

.os-node:hover .os-node-label {
  color: var(--text-primary);
}

/* Node tooltip on hover */
.os-node-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: normal;
  width: 180px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.os-node:hover .os-node-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .os-diagram-wrap {
    width: 320px;
    height: 320px;
  }

  .os-orbit-ring--1 { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
  .os-orbit-ring--2 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .os-orbit-ring--3 { width: 160px; height: 160px; margin: -80px 0 0 -80px; }

  .os-node-tooltip { display: none; }
}

/* ═══════════════════════════════════════════════════
   AUDIENCE PAGE: CAPABILITY SHOWCASE
   ═══════════════════════════════════════════════════ */
.cmd-section {
  padding: 120px 0;
  position: relative;
}

.cmd-panel {
  max-width: 960px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  position: relative;
}

/* Left: Tab navigation with vertical progress line */
.cmd-nav {
  position: relative;
  padding: 0 0 0 0;
}

/* The vertical progress line */
.cmd-nav-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bg-subtle);
}

.cmd-nav-fill {
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 1px;
  transition: height 0.5s var(--ease-out);
  position: relative;
}

.cmd-nav-fill::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 32px rgba(59, 130, 246, 0.3);
}

/* Tab buttons */
.cmd-tabs {
  display: flex;
  flex-direction: column;
  padding-left: 28px;
}

.cmd-tab {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 24px 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  border: none;
  background: transparent;
  text-align: left;
  position: relative;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border-primary);
}

.cmd-tab:last-child {
  border-bottom: none;
}

.cmd-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  transition: color 0.4s;
}

.cmd-tab:hover {
  color: var(--text-secondary);
}

.cmd-tab:hover .cmd-tab-num {
  color: var(--text-tertiary);
}

.cmd-tab.active {
  color: var(--text-primary);
}

.cmd-tab.active .cmd-tab-num {
  color: var(--accent);
}

/* Passed tabs */
.cmd-tab.passed {
  color: var(--text-tertiary);
}

.cmd-tab.passed .cmd-tab-num {
  color: var(--accent);
  opacity: 0.5;
}

/* Right: Content area */
.cmd-content {
  position: relative;
  min-height: 400px;
  padding-left: 64px;
}

.cmd-pane {
  position: absolute;
  inset: 0;
  padding: 24px 0 24px 64px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cmd-pane.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

/* Big background number */
.cmd-pane::before {
  content: attr(data-big-num);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 300;
  color: rgba(59, 130, 246, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.5s;
}

.cmd-pane.active::before {
  animation: numFadeIn 0.8s var(--ease-out);
}

@keyframes numFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.cmd-pane h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
}

/* Animated accent line under title */
.cmd-pane h3::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 16px;
  transition: width 0.6s var(--ease-out);
}

.cmd-pane.active h3::after {
  width: 80px;
}

.cmd-pane p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 480px;
  position: relative;
}

/* Counter */
.cmd-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 32px;
}

.cmd-counter span {
  color: var(--accent);
}

/* Progress bar at bottom */
.cmd-progress {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--bg-subtle);
  margin-top: 48px;
}

.cmd-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
  border-radius: 1px;
}

/* Light mode */
html.light-mode .cmd-pane::before {
  color: rgba(59, 130, 246, 0.06);
}

html.light-mode .os-node-icon {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.light-mode .os-node-tooltip {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .cmd-panel {
    grid-template-columns: 1fr;
  }

  .cmd-nav {
    display: none;
  }

  .cmd-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-left: 0;
    gap: 0;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 24px;
  }

  .cmd-tab {
    white-space: nowrap;
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: none;
  }

  .cmd-tab-num {
    display: none;
  }

  .cmd-tab.active {
    border-bottom: 2px solid var(--accent);
  }

  .cmd-content {
    padding-left: 0;
    min-height: 280px;
  }

  .cmd-pane {
    padding: 0;
  }

  .cmd-pane::before {
    font-size: 100px;
  }

  .cmd-section {
    padding: 80px 0;
  }
}

/* ═══════════════════════════════════════════════════
   DEMO MODAL
   ═══════════════════════════════════════════════════ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.demo-modal.open {
  opacity: 1;
  visibility: visible;
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.demo-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-primary);
  padding: 40px 36px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.demo-modal.open .demo-panel {
  transform: translateX(0);
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.demo-panel-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 8px;
}

.demo-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.demo-close:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Form */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-optional {
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: var(--text-muted);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.demo-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A5160' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.demo-field select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.demo-field textarea {
  resize: vertical;
  min-height: 72px;
}

.demo-form .btn-full {
  margin-top: 8px;
}

/* ─── HubSpot Embedded Form Styling ─── */
.demo-hubspot-form {
  margin-top: 8px;
}

/* Override HubSpot form styles to match our dark theme */
.demo-hubspot-form .hs-form-frame,
.demo-hubspot-form iframe {
  width: 100% !important;
  min-height: 500px;
}

/* Light mode: HubSpot form already renders light by default */
html.light-mode .demo-hubspot-form {
  /* no overrides needed — HubSpot default is light */
}

@media (max-width: 768px) {
  .demo-panel {
    max-width: 100%;
    padding: 32px 24px;
  }

  .demo-row {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   RECOGNITION (Awards) + MASTER CONTRACTS
───────────────────────────────────────────── */
.recognition-section {
  padding: 80px 0;
}
.recognition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 32px auto 0;
}
.recognition-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-elevated, rgba(255,255,255,0.02));
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.recognition-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #3B82F6);
  background: rgba(59,130,246,0.04);
}
.recognition-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--accent, #3B82F6);
  background: radial-gradient(circle at center, rgba(59,130,246,0.18), rgba(59,130,246,0.04) 70%);
  border: 1px solid rgba(59,130,246,0.45);
  line-height: 1.15;
  flex-shrink: 0;
}
.recognition-badge strong {
  font-size: 18px;
  display: block;
}
.recognition-meta .recognition-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.recognition-meta .recognition-sub {
  font-size: 14px;
  color: var(--text-muted, rgba(255,255,255,0.6));
  margin: 0;
}
.recognition-arrow {
  color: var(--accent, #3B82F6);
  font-size: 20px;
  transition: transform .25s ease;
}
.recognition-card:hover .recognition-arrow {
  transform: translateX(4px);
}

/* Master Contracts */
.contracts-section {
  padding: 80px 0;
}
.contracts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 32px auto 0;
}
.contract-card {
  display: block;
  padding: 28px 28px 24px;
  background: var(--bg-elevated, rgba(255,255,255,0.02));
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
}
.contract-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #3B82F6);
  background: rgba(59,130,246,0.04);
}
.contract-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent, #3B82F6);
  padding: 4px 8px;
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.contract-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.contract-card .contract-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted, rgba(255,255,255,0.55));
  margin-bottom: 14px;
}
.contract-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted, rgba(255,255,255,0.7));
  margin: 0 0 18px;
}
.contract-card .contract-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent, #3B82F6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contract-card .contract-link::after {
  content: '→';
  transition: transform .25s ease;
}
.contract-card:hover .contract-link::after {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .recognition-card {
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 20px;
  }
  .recognition-badge { width: 64px; height: 64px; font-size: 9px; }
  .recognition-badge strong { font-size: 14px; }
  .recognition-arrow { display: none; }
  .contracts-grid { grid-template-columns: 1fr; }
}
