/* ========================================
   INFRASTRUCTURE AI — PREMIUM ENHANCEMENTS
   Additive layer on top of style.css
   Dark-tech aesthetic inspired by Flock/Setrex
   ======================================== */


/* ========================================
   1. ENHANCED ANIMATION SYSTEM
   ======================================== */

/* Override default reveal with scale + snappy easing */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(.19, 1, .22, 1),
              transform 0.9s cubic-bezier(.19, 1, .22, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays at 100ms intervals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Horizontal reveal — left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Horizontal reveal — right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Parallax-ready transform hint (GPU layer promotion) */
.parallax-ready {
  will-change: transform;
  transform: translateZ(0);
}


/* ========================================
   2. GLASSMORPHIC CARD UPGRADE
   ======================================== */

/* Light section cards */
.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 26, 51, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 90, 163, 0.15);
  box-shadow: 0 8px 24px rgba(6, 26, 51, 0.06),
              0 24px 60px rgba(6, 26, 51, 0.1),
              0 0 0 1px rgba(0, 90, 163, 0.06);
}

/* Dark section cards — glass on dark */
.dark-section .card,
.ecosystem-band .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(156, 200, 227, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(156, 200, 227, 0.06);
}
.dark-section .card:hover,
.ecosystem-band .card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(156, 200, 227, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(0, 90, 163, 0.08),
              inset 0 1px 0 rgba(156, 200, 227, 0.1);
  transform: translateY(-4px);
}

/* Stat cards — subtle glass lift */
.stat-card {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(0, 90, 163, 0.12);
}

/* Pricing cards — glass refinement */
.pricing-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease;
}


/* ========================================
   3. DARK SECTION POLISH
   ======================================== */

/* Deeper gradient backgrounds — dark sections get galaxy texture */
.dark-section {
  background: var(--navy);
  position: relative;
}
.dark-section > .container {
  position: relative;
  z-index: 1;
}
/* Galaxy texture on all dark sections */
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/galaxy-bg.jpg') center center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.ecosystem-band {
  background: #041020;
}

/* CSS-only noise texture on dark sections */
.dark-section::after,
.ecosystem-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
}

/* Floating ambient glow spots */
.dark-section .container,
.ecosystem-band .container {
  position: relative;
  z-index: 1;
}

/* Top-left ambient glow */
.dark-section .section-header::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 90, 163, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Bottom-right ambient glow */
.dark-section .section-header::after {
  content: '';
  position: absolute;
  bottom: -300px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(156, 200, 227, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Text hierarchy on dark sections */
.dark-section h2,
.dark-section h3,
.dark-section h4,
.ecosystem-band h2,
.ecosystem-band h3,
.ecosystem-band h4 {
  color: #ffffff;
}
.dark-section p,
.dark-section .narrative,
.ecosystem-band > .container > p {
  color: rgba(255, 255, 255, 0.7);
}
.dark-section .card-stat {
  color: rgba(255, 255, 255, 0.4);
}
.dark-section .section-label {
  color: var(--sky);
}
.dark-section .section-label::before {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(0,90,163,0.4);
}


/* ========================================
   4. BUTTON UPGRADES
   ======================================== */

/* Primary — gradient with glow */
/* ---- Neon Button System ---- */
/* All buttons get neon glow lines on hover */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,90,163,0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,90,163,0.5), transparent);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
.btn:hover::before {
  opacity: 1;
}
.btn:hover::after {
  opacity: 0.6;
}

/* Primary — solid with neon accent */
.btn-primary {
  background: rgba(0,90,163,0.08);
  color: #fff;
  border: 1px solid rgba(0,90,163,0.25);
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
  background: rgba(0,90,163,0.04);
  border-color: rgba(0,90,163,0.4);
  box-shadow: 0 0 20px rgba(0,90,163,0.12);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Primary solid variant — for CTAs that need more weight */
.btn-primary-solid {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary-solid:hover {
  background: #0068be;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,90,163,0.35);
  transform: translateY(-2px);
}

/* Secondary — outline with neon */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(0,90,163,0.2);
  color: var(--sky);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover {
  background: rgba(0,90,163,0.06);
  border-color: rgba(0,90,163,0.4);
  transform: translateY(-2px);
}

/* Ghost — minimal with neon on hover */
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover {
  border-color: rgba(156,200,227,0.15);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* Light button — for dark backgrounds */
.btn-light {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Neon disabled on light sections */
.light-section .btn::before,
.light-section .btn::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .btn::after {
    transition: none;
  }
}


/* ========================================
   5. SECTION SPACING & TYPOGRAPHY POLISH
   ======================================== */

/* Tighter heading letter-spacing */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}
h1 {
  letter-spacing: -0.035em;
}

/* Section header refinement */
.section-header {
  margin-bottom: 64px;
}
.section-header p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--graphite);
}

/* Section label — line + dot accent */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  font-size: 11px;
  letter-spacing: 3.5px;
}
.section-label::before {
  position: static;
  transform: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  flex-shrink: 0;
  order: -1;
}

/* Centered section labels — reset pseudo layout */
.section-header .section-label::before {
  display: inline-block;
}
.section-header .section-label::after {
  display: none;
}


/* ========================================
   6. NAV ENHANCEMENT
   ======================================== */

/* Glassmorphic nav with scroll-triggered refinements */
.nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(6, 26, 51, 0.04);
  transition: background 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(6, 26, 51, 0.08);
  box-shadow: 0 1px 3px rgba(6, 26, 51, 0.04),
              0 4px 16px rgba(6, 26, 51, 0.06);
}

/* Nav link hover — smooth pill */
.nav-links a {
  transition: color 0.25s ease, background 0.25s ease;
}


/* ========================================
   7. HERO ENHANCEMENTS
   ======================================== */

/* Immersive hero — deeper overlays */
.page-hero-immersive {
  background: linear-gradient(180deg,
    rgba(4, 14, 28, 1) 0%,
    var(--navy) 30%,
    rgba(3, 10, 20, 1) 100%);
}

/* Deeper gradient overlays for readability */
.page-hero-immersive::before {
  background: radial-gradient(ellipse at 40% 30%,
    rgba(0, 90, 163, 0.2) 0%,
    transparent 60%);
}
.page-hero-immersive::after {
  background: radial-gradient(ellipse at 60% 80%,
    rgba(156, 200, 227, 0.08) 0%,
    transparent 50%);
}

/* Text shadow for hero readability */
.page-hero-immersive h1 {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}
.page-hero-immersive .page-hero-sub {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* Particle canvas — subtle glow underneath */
#hero-particles {
  opacity: 0.8;
}

/* Galaxy/floating image positioning helper */
.hero-galaxy-float {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
  animation: galaxyFloat 20s ease-in-out infinite;
}
@keyframes galaxyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(-0.5deg); }
  75% { transform: translateY(-20px) rotate(0.5deg); }
}

/* Hero glow spots */
.page-hero-immersive .container::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 90, 163, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}


/* ========================================
   8. SUPPORT BAND (SIX PILLARS) DARK GLASS
   ======================================== */

.support-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(156, 200, 227, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.support-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(156, 200, 227, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
              0 0 30px rgba(0, 90, 163, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
}

/* Icon circles — darker bg with glow */
.support-icon {
  background: rgba(6, 26, 51, 0.5);
  border: 1px solid rgba(156, 200, 227, 0.12);
  box-shadow: 0 0 20px rgba(0, 90, 163, 0.08);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.support-item:hover .support-icon {
  border-color: rgba(156, 200, 227, 0.25);
  box-shadow: 0 0 30px rgba(0, 90, 163, 0.15),
              0 0 60px rgba(156, 200, 227, 0.06);
}


/* ========================================
   9. FOOTER POLISH
   ======================================== */

.footer {
  background: linear-gradient(180deg, var(--navy) 0%, #061A33 100%);
}

/* Top border glow — brighter, with spread */
.footer::before {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(156, 200, 227, 0.25) 30%,
    rgba(0, 90, 163, 0.3) 50%,
    rgba(156, 200, 227, 0.25) 70%,
    transparent 95%);
  box-shadow: 0 0 20px rgba(0, 90, 163, 0.1);
}

/* Link hover — sky color transition */
.footer-col a {
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--sky);
}

/* Footer bottom border — subtle */
.footer-bottom {
  border-top-color: rgba(156, 200, 227, 0.06);
}


/* ========================================
   10. ECOSYSTEM ICONS — REFINED
   ======================================== */

.eco-icon-circle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.eco-icon:hover .eco-icon-circle {
  background: rgba(0, 90, 163, 0.15);
  border-color: rgba(156, 200, 227, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(0, 90, 163, 0.1);
  transform: translateY(-6px);
}


/* ========================================
   11. CASE STUDY CARDS — DARK GLASS UPGRADE
   ======================================== */

.case-study {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(156, 200, 227, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(156, 200, 227, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-study:hover {
  border-color: rgba(156, 200, 227, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(0, 90, 163, 0.06);
}


/* ========================================
   12. MISCELLANEOUS PREMIUM TOUCHES
   ======================================== */

/* Smooth page transitions on all interactive elements */
a, button, input, select, textarea {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Selection color */
::selection {
  background: rgba(0, 90, 163, 0.2);
  color: var(--navy);
}

/* Scrollbar polish */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 90, 163, 0.2) transparent;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 90, 163, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 90, 163, 0.35);
}

/* Outcomes panel glow refinement */
.outcomes-chart-panel {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4),
              0 0 60px rgba(0, 90, 163, 0.06),
              inset 0 1px 0 rgba(156, 200, 227, 0.08);
}

/* AOS viz panel — deeper */
.aos-viz-panel {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35),
              0 0 60px rgba(0, 90, 163, 0.05),
              inset 0 1px 0 rgba(156, 200, 227, 0.06);
}

/* Comparison dramatic divider — luminous */
.comparison-dramatic::before {
  background: linear-gradient(to bottom,
    transparent,
    rgba(156, 200, 227, 0.2),
    rgba(0, 90, 163, 0.15),
    transparent);
}

/* Step number badges — deeper shadow */
.step-number {
  box-shadow: 0 4px 16px rgba(0, 90, 163, 0.3),
              0 0 20px rgba(0, 90, 163, 0.1);
}

/* Feature bullet glow on hover */
.feature-list li:hover .feature-bullet {
  border-color: rgba(0, 90, 163, 0.25);
  box-shadow: 0 0 16px rgba(0, 90, 163, 0.1);
}
.feature-bullet {
  transition: all 0.3s ease;
}


/* ========================================
   13. RESPONSIVE — MOBILE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
  /* Reduce animation travel distance on tablets */
  .reveal {
    transform: translateY(24px) scale(0.98);
  }
  .reveal-left {
    transform: translateX(-30px) scale(0.98);
  }
  .reveal-right {
    transform: translateX(30px) scale(0.98);
  }
}

@media (max-width: 768px) {
  /* Further reduce animation on mobile */
  .reveal {
    transform: translateY(16px) scale(0.99);
  }
  .reveal-left {
    transform: translateX(-20px) scale(0.99);
  }
  .reveal-right {
    transform: translateX(20px) scale(0.99);
  }

  /* Disable backdrop-filter on mobile for performance */
  .card,
  .support-item,
  .case-study,
  .dark-section .card,
  .ecosystem-band .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Reduce hover effects on touch devices */
  .card:hover,
  .support-item:hover,
  .stat-card:hover {
    transform: translateY(-2px);
  }

  /* Simplify ambient glows */
  .dark-section .section-header::before,
  .dark-section .section-header::after {
    display: none;
  }
}


/* ========================================
   14. PREFERS-REDUCED-MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  /* Disable all custom animations */
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Remove hover transforms */
  .card:hover,
  .support-item:hover,
  .stat-card:hover,
  .pricing-card:hover,
  .step-card:hover,
  .eco-icon:hover .eco-icon-circle,
  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-light:hover {
    transform: none;
  }

  /* Disable floating animations */
  .hero-galaxy-float {
    animation: none;
  }

  /* Keep color/shadow transitions only (no motion) */
  .card,
  .support-item,
  .stat-card,
  .btn,
  .btn-primary,
  .btn-secondary {
    transition: background 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
  }
}

/* ========================================
   NAV — Premium dark glass
   ======================================== */
.nav {
  backdrop-filter: blur(20px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(120%) !important;
  background: rgba(8, 9, 14, 0.35) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  transition: all 0.4s ease !important;
}
.nav.scrolled {
  background: rgba(8, 9, 14, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}
.nav .container {
  height: 72px !important;
}
.nav-links {
  gap: 4px !important;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  letter-spacing: 0.005em !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  background: transparent !important;
}
.nav-links a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.nav-links a.active {
  color: #fff !important;
  font-weight: 500 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.nav-cta.btn.btn-primary {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 8px 20px !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}
.nav-cta.btn.btn-primary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: none;
  box-shadow: none !important;
}
.nav-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ========================================
   HERO GLOWS — Ambient atmosphere
   ======================================== */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-glow-1 {
  top: -15%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 90, 163, 0.07) 0%, transparent 60%);
  animation: glow-drift 12s ease-in-out infinite;
}
.hero-glow-2 {
  top: 10%;
  right: -5%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 140, 200, 0.08) 0%, rgba(0, 180, 200, 0.03) 35%, transparent 60%);
  animation: glow-drift 15s ease-in-out infinite reverse;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

/* Ghost light button */
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  cursor: pointer;
}
.btn-ghost-light:hover {
  color: #fff;
}

/* ========================================
   HERO SPLIT — Cinematic product hero
   ======================================== */

/* ---- Layout ---- */
.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 0;
  overflow: hidden;
  padding-bottom: 0;
}

/* Nebula skies — bottom border video strip, bleeds into next section */
.hero-nebula {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 240px;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 40%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 40%, transparent 100%);
}
.hero-nebula video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.5;
}
/* Let nebula bleed visually into next section */
.support-band {
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .hero-nebula video {
    display: none;
  }
}
/* Hero container */
.hero-split > .container {
  max-width: 1200px;
  padding-left: 48px;
  padding-right: 48px;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-height: calc(100vh - 120px);
}
.hero-split-text {
  max-width: 800px;
  padding-left: 0;
  position: relative;
  z-index: 10;
}

/* ---- Hero staggered entrance ---- */
.hero-stagger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(.19,1,.22,1),
              transform 0.9s cubic-bezier(.19,1,.22,1);
}
.hero-stagger.in {
  opacity: 1;
  transform: translateY(0);
}
.hero-stagger-1 { transition-delay: 0.1s; }
.hero-stagger-2 { transition-delay: 0.28s; }
.hero-stagger-3 { transition-delay: 0.46s; }
.hero-stagger-4 { transition-delay: 0.62s; }
.hero-stagger-5 { transition-delay: 0.78s; }

/* Visual entrance — slides in from right */
.hero-visual-stagger {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.2s cubic-bezier(.19,1,.22,1),
              transform 1.2s cubic-bezier(.19,1,.22,1);
  transition-delay: 0.4s;
}
.hero-visual-stagger.in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-stagger,
  .hero-visual-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Pill Label ---- */
.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(0, 90, 163, 0.12);
  border: 1px solid rgba(0, 90, 163, 0.25);
  color: #9CC8E3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ---- Headline — dominant, cinematic ---- */
.hero-split-text h1 {
  font-size: clamp(3.6rem, 7.5vw, 6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.h1-line-1 {
  display: block;
  white-space: nowrap;
}
.h1-line-2 {
  display: block;
  margin-top: 4px;
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, #9CC8E3, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0.1em 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Subtext ---- */
.hero-split-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  text-wrap: balance;
}

/* ---- CTA ---- */
.hero-split-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 48px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #005AA3 0%, #0070c0 35%, #00a0c8 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow:
    0 6px 28px rgba(0, 90, 163, 0.35),
    0 0 60px rgba(0, 140, 200, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  text-decoration: none;
  cursor: pointer;
}
.hero-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 44px rgba(0, 90, 163, 0.45),
    0 0 80px rgba(0, 140, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
.hero-btn-primary .btn-arrow {
  transition: transform 0.3s ease;
}
.hero-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---- Visual — massive, bleeds off-screen, cinematic ---- */
.hero-split-visual {
  position: relative;
  z-index: 1;
  margin-right: -28vw;
  margin-top: -80px;
  margin-bottom: -80px;
  min-height: 520px;
}
.hero-visual-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 140%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 50%, rgba(0, 120, 200, 0.14) 0%, rgba(0, 160, 200, 0.06) 30%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  animation: glow-breathe 10s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-product-frame {
  position: relative;
  z-index: 1;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}
.hero-img-base,
.hero-img-overlay {
  width: 100%;
  display: block;
  min-height: 480px;
  object-fit: cover;
  object-position: 35% center;
}
.hero-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: circle(0px at 50% 50%);
  transition: clip-path 0.15s ease-out;
}

/* Glow ring — follows cursor, visible around the reveal edge */
.hero-reveal-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 240, 0.15) 0%, rgba(0, 180, 220, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}
.hero-product-frame:hover .hero-reveal-glow {
  opacity: 1;
}

/* Auto sweep — ambient reveal that plays when idle */
.hero-auto-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Left gradient fade — wide, deep blend into background */
.hero-product-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(to right, #08090e 0%, rgba(8,9,14,0.85) 20%, rgba(8,9,14,0.4) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Bottom fade */
.hero-product-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, #08090e 0%, rgba(8,9,14,0.6) 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
/* Top fade — deep blend into hero bg */
.hero-split-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, #08090e 0%, rgba(8,9,14,0.7) 30%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}


/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .hero-split > .container {
    padding-left: 36px;
    padding-right: 36px;
  }
  .hero-split-text {
    max-width: 800px;
  }
  .hero-split-text h1 {
    font-size: clamp(3rem, 6vw, 5rem);
  }
}
@media (max-width: 1024px) {
  .hero-split > .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-split-text h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
  }
}
@media (max-width: 900px) {
  .hero-split > .container {
    padding-right: 24px;
  }
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-split-text {
    max-width: 100%;
    text-align: center;
    padding-left: 0;
  }
  .hero-split-sub {
    max-width: 100%;
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-split-ctas {
    justify-content: center;
  }
  .hero-split {
    padding: 100px 0 0;
  }
  .hero-split-text h1 {
    font-size: 2.6rem;
  }
  .h1-line-1,
  .h1-line-2 {
    white-space: normal;
  }
}

/* ---- Neon sweep lines ---- */
@keyframes neon-sweep {
  0%, 100% { transform: translateX(-40px); opacity: 0; }
  30%, 70% { opacity: 1; }
  50% { transform: translateX(40px); }
}

/* ========================================
   PILLAR CARDS — Flock-style glass grid
   ======================================== */
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}
.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(156, 200, 227, 0.08);
  border-radius: 16px;
  padding: 40px 28px 36px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
/* Evervault effect replaces nebula — see evervault-cards.js */
/* Neon glow lines — top */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,90,163,0.7), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.pillar-card:hover {
  border-color: rgba(0, 90, 163, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0, 90, 163, 0.15),
    0 0 30px rgba(0, 90, 163, 0.06),
    inset 0 -1px 0 rgba(0, 90, 163, 0.4);
}
.pillar-card:hover::after {
  opacity: 1;
}
/* Bottom neon glow line (via box-shadow inset trick since ::after is taken) */
.pillar-card .pillar-card-bottom-glow {
  display: none;
}
.pillar-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 90, 163, 0.1);
  border: 1px solid rgba(156, 200, 227, 0.12);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillar-card:hover .pillar-card-icon {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 28px rgba(0, 90, 163, 0.3);
  transform: scale(1.15);
}
.pillar-card-icon svg {
  color: #9CC8E3;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}
.pillar-card:hover .pillar-card-icon svg {
  transform: scale(1.15);
  color: #005AA3;
}
.pillar-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillar-card:hover h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(156, 200, 227, 0.2);
}
.pillar-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s;
}
.pillar-card:hover p {
  color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .pillar-card,
  .pillar-card::before,
  .pillar-card::after,
  .pillar-card-icon,
  .pillar-card-icon img,
  .pillar-card h3 {
    transition: none;
  }
}

@media (max-width: 768px) {
  .pillar-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pillar-card {
    padding: 28px 24px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .pillar-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ========================================
   FULL DARK THEME — All sections below hero
   ======================================== */

/* Global dark body */
body {
  background: #061A33;
}

/* Reusable section glow divider */
.section-glow-divider {
  position: relative;
}
.section-glow-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0,90,163,0.15) 30%, rgba(156,200,227,0.2) 50%, rgba(0,90,163,0.15) 70%, transparent 95%);
  z-index: 2;
}

/* ---- Support Band polish ---- */
.support-band {
  position: relative;
  overflow: hidden;
}
.pillar-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ---- Automation Section — dark conversion ---- */
/* ---- Automation Section — LIGHT theme for contrast rhythm ---- */
.automation-section {
  background: #EDEFF7;
  overflow: hidden;
  color: var(--navy);
  position: relative;
}
/* Shadow overlay moved to ecosystem/pillars section */
.automation-section .section-header h2 {
  color: var(--navy);
}
.automation-section .section-label {
  color: var(--blue);
}
.automation-section .section-label::before {
  background: var(--blue);
  box-shadow: none;
}
.automation-section .challenge-stat-num {
  color: var(--blue);
}
.automation-section .challenge-stat-label {
  color: var(--graphite);
}
.automation-section .challenge-text p {
  color: var(--graphite);
}
.automation-section .challenge-closer {
  color: var(--navy) !important;
  font-weight: 700;
}
.automation-section .challenge-image img {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 60px rgba(6,26,51,0.15);
}
.automation-section .challenge-caption {
  color: var(--space);
}
.automation-section .challenge-stat:not(:last-child)::after {
  background: var(--smoke);
}
.automation-section .btn-primary {
  background: var(--blue);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,90,163,0.3);
}
.automation-section .btn-primary:hover {
  background: #0068be;
  box-shadow: 0 8px 24px rgba(0,90,163,0.4);
}
/* Neon glow lines don't work on light bg */
.automation-section .btn::before,
.automation-section .btn::after {
  display: none;
}

/* ---- Six Strategic Pillars polish ---- */
.ecosystem-band {
  background: #041020;
  position: relative;
}
.ecosystem-band > .container {
  position: relative;
  z-index: 1;
}
/* Galaxy nebula background image */
.pillars-galaxy-bg {
  position: absolute;
  inset: 0;
  background: url('../images/pillars-galaxy-bg.jpg') center center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
/* Subtle old galaxy texture overlay for additional depth */
.ecosystem-band::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: url('../images/hero-galaxy.jpg') center center / cover no-repeat;
  opacity: 0.06;
  mask-image: radial-gradient(ellipse at 60% 50%, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 10%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.eco-icon-circle {
  font-size: 0;
  overflow: hidden;
}
.eco-icon-circle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ---- Pillars Showcase — feature list + detail card ---- */
.pillars-showcase {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* --- Left column: pillar list --- */
.ps-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-item {
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
  position: relative;
}
.ps-item:hover {
  background: rgba(0, 90, 163, 0.06);
}
.ps-item--active {
  background: rgba(237, 239, 247, 0.05);
  border-color: rgba(237, 239, 247, 0.12);
}
.ps-item:focus-visible {
  outline: 2px solid #005AA3;
  outline-offset: 2px;
}

.ps-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ps-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(237, 239, 247, 0.06);
  border: 1px solid rgba(237, 239, 247, 0.1);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-item-icon svg {
  width: 22px;
  height: 22px;
  color: rgba(237, 239, 247, 0.5);
  transition: color 0.3s;
}
.ps-item--active .ps-item-icon {
  background: #005AA3;
  border-color: rgba(0, 90, 163, 0.6);
  box-shadow: 0 0 20px rgba(0, 90, 163, 0.3);
}
.ps-item--active .ps-item-icon svg {
  color: #ffffff;
}
.ps-item:not(.ps-item--active):hover .ps-item-icon {
  background: rgba(0, 90, 163, 0.15);
  border-color: rgba(0, 90, 163, 0.25);
}

.ps-item-text {
  flex: 1;
  min-width: 0;
}
.ps-item-title {
  color: rgba(237, 239, 247, 0.45);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.ps-item--active .ps-item-title {
  color: #ffffff;
}
.ps-item:hover .ps-item-title {
  color: rgba(237, 239, 247, 0.8);
}
.ps-item-tagline {
  color: rgba(237, 239, 247, 0.3);
  font-size: 13px;
  margin: 0;
  transition: color 0.3s;
  line-height: 1.4;
}
.ps-item--active .ps-item-tagline {
  color: #EDEFF7;
}

/* Progress bar */
.ps-item-progress {
  height: 2px;
  background: rgba(237, 239, 247, 0.08);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.ps-item--active .ps-item-progress {
  opacity: 1;
}
.ps-item-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #005AA3, #EDEFF7);
  border-radius: 2px;
  transition: width 50ms linear;
}

/* --- Right column: detail card --- */
.ps-detail-card {
  background: rgba(237, 239, 247, 0.03);
  border: 1px solid rgba(237, 239, 247, 0.1);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.ps-card--enter {
  animation: psCardIn 0.4s ease-out;
}
@keyframes psCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ps-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1e3a;
}
.ps-card-image-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #061A33 0%, #0a2a4a 40%, #061A33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-card-image-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(0,90,163,0.2) 0%, transparent 60%);
}
.ps-card-image-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(156,200,227,0.03) 40px, rgba(156,200,227,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(156,200,227,0.03) 40px, rgba(156,200,227,0.03) 41px);
}
.ps-card-image-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 90, 163, 0.15);
  border: 1px solid rgba(0, 90, 163, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 90, 163, 0.2);
}
.ps-card-image-icon svg {
  width: 32px;
  height: 32px;
  color: #9CC8E3;
}
.ps-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.ps-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 26, 51, 0.9) 100%);
  pointer-events: none;
}

.ps-card-body {
  padding: 28px 28px 32px;
  text-align: center;
}
.ps-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ps-card-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1;
}
.ps-card-subtitle {
  color: #EDEFF7;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.ps-card-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ps-card-desc {
  color: #EDEFF7;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.ps-card-details {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.ps-card-details li {
  color: #EDEFF7;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.ps-card-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(237, 239, 247, 0.25);
  border: 1px solid rgba(237, 239, 247, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pillars-showcase {
    gap: 28px;
  }
  .ps-card-body {
    padding: 24px;
  }
}
@media (max-width: 768px) {
  .pillars-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ps-detail-card {
    position: static;
    order: -1;
  }
  .ps-list {
    gap: 2px;
  }
  .ps-item {
    padding: 12px 16px;
  }
  .ps-item-icon {
    width: 40px;
    height: 40px;
  }
  .ps-item-icon svg {
    width: 20px;
    height: 20px;
  }
  .ps-item-title {
    font-size: 15px;
  }
  .ps-card-title {
    font-size: 20px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .ps-card--enter { animation: none; }
  .ps-item,
  .ps-item-icon,
  .ps-item-title,
  .ps-item-tagline,
  .ps-item-progress {
    transition: none;
  }
}

/* ---- GAOS Section — LIGHT theme for contrast rhythm ---- */
.gaos-section {
  background: #ffffff;
  overflow: hidden;
}
.gaos-section h2 {
  color: var(--navy);
}
.gaos-section .section-label {
  color: var(--blue);
}
.gaos-section .section-label::before {
  background: var(--blue);
  box-shadow: none;
}
.gaos-section .section-header p {
  color: var(--graphite);
}
.gaos-section .section-cta .btn-secondary {
  color: var(--blue);
  border-color: rgba(0,90,163,0.25);
  background: transparent;
}
.gaos-section .section-cta .btn-secondary:hover {
  background: rgba(0,90,163,0.06);
  border-color: var(--blue);
}
/* Neon glow lines off on light bg */
.gaos-section .btn::before,
.gaos-section .btn::after {
  display: none;
}

/* ---- GAOS Timeline — scroll-activated cards ---- */
.gaos-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 48px auto 0;
}
.gaos-timeline-entry {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 28px;
}
.gaos-timeline-meta {
  position: sticky;
  top: 120px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  flex-shrink: 0;
  height: min-content;
  z-index: 2;
}
.gaos-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,90,163,0.08);
  border: 1px solid rgba(0,90,163,0.15);
  color: var(--blue);
  transition: all 0.35s ease;
}
.gaos-timeline-entry.is-active .gaos-timeline-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,90,163,0.25);
}
.gaos-timeline-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gaos-timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.3s;
}
.gaos-timeline-entry.is-active .gaos-timeline-title {
  color: var(--blue);
}
.gaos-timeline-subtitle {
  font-size: 12px;
  color: var(--space);
}
.gaos-timeline-sentinel {
  position: absolute;
  top: -80px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.gaos-timeline-card {
  flex: 1;
  border-radius: 16px;
  border: 1px solid var(--smoke);
  background: #fff;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 120px;
  opacity: 0.5;
}
.gaos-timeline-entry.is-active .gaos-timeline-card {
  border-color: rgba(0,90,163,0.2);
  background: #fff;
  box-shadow: 0 8px 32px rgba(6,26,51,0.1), 0 0 0 1px rgba(0,90,163,0.08);
  max-height: 800px;
  opacity: 1;
}
.gaos-timeline-card-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--steel);
  border-bottom: 1px solid var(--smoke);
  background: var(--cloud);
  overflow: hidden;
}
.gaos-timeline-card-img img {
  width: 100%;
  height: auto;
  display: block;
}
.gaos-timeline-card-body {
  padding: 24px;
}
.gaos-timeline-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.gaos-timeline-entry:not(.is-active) .gaos-timeline-card h3 {
  color: var(--graphite);
}
.gaos-timeline-entry:not(.is-active) .gaos-timeline-meta {
  opacity: 0.45;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gaos-timeline-entry.is-active .gaos-timeline-meta {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gaos-timeline-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
  transition: color 0.3s;
}
.gaos-timeline-entry.is-active .gaos-timeline-desc {
  color: var(--text-secondary);
}
.gaos-timeline-entry:not(.is-active) .gaos-timeline-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gaos-timeline-expand {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.25s ease, opacity 0.2s ease;
}
.gaos-timeline-entry.is-active .gaos-timeline-expand {
  grid-template-rows: 1fr;
  opacity: 1;
}
.gaos-timeline-expand-inner {
  overflow: hidden;
}
.gaos-timeline-items {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--smoke);
  margin-top: 16px;
  padding-top: 16px;
}
.gaos-timeline-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite);
}
.gaos-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,90,163,0.6);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Timeline responsive */
@media (max-width: 768px) {
  .gaos-timeline-entry {
    flex-direction: column;
    gap: 16px;
  }
  .gaos-timeline-meta {
    position: relative;
    top: auto;
    width: auto;
  }
  .gaos-timeline {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gaos-timeline-card,
  .gaos-timeline-icon,
  .gaos-timeline-expand,
  .gaos-timeline-desc,
  .gaos-timeline-card h3,
  .gaos-timeline-meta {
    transition: none;
  }
  .gaos-timeline-card {
    max-height: none;
    opacity: 1;
  }
}

/* ---- Agents Section — LIGHT for rhythm ---- */
.agents-section {
  background: #EDEFF7;
  overflow: hidden;
}
.agents-section h2 {
  color: var(--navy);
}
.agents-section .section-label {
  color: var(--blue);
}
.agents-section .section-label::before {
  background: var(--blue);
  box-shadow: none;
}
.agents-section .card.card-with-header {
  background: #fff;
  border: 1px solid var(--smoke);
  backdrop-filter: none;
}
.agents-section .card.card-with-header:hover {
  background: #fff;
  border-color: rgba(0,90,163,0.2);
  box-shadow: 0 8px 32px rgba(6,26,51,0.1);
}
.agents-section .card-header {
  background: var(--cloud);
  color: var(--steel);
}
.agents-section .card-body h3 {
  color: var(--navy);
}
.agents-section .card-body p {
  color: var(--graphite);
}
.agents-section .btn-ghost {
  color: var(--blue);
  border-color: rgba(0,90,163,0.2);
}
.agents-section .btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(0,90,163,0.06);
}
.agents-section .btn::before,
.agents-section .btn::after {
  display: none;
}

/* ---- Playground Section — dark + galaxy bg ---- */
.playground-section {
  background: #041020;
  overflow: hidden;
  position: relative;
}
.playground-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/pillars-galaxy-bg.jpg') center center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.playground-section > .container {
  position: relative;
  z-index: 1;
}
.playground-section h2 {
  color: #fff;
}
.playground-section .section-label {
  color: var(--sky);
}
.playground-section .split-content > p {
  color: #EDEFF7;
  opacity: 0.75;
}
.playground-section .feature-bullet {
  background: rgba(237,239,247,0.06);
  border-color: rgba(237,239,247,0.12);
  color: #EDEFF7;
}
.playground-section .feature-text strong {
  color: #fff;
}
.playground-section .feature-text span {
  color: rgba(237,239,247,0.6);
}
.playground-section .btn-primary {
  background: linear-gradient(135deg, #005AA3, #0070c0, #00a0c8);
  border: none;
  color: #fff;
}
.playground-visual {
  background: linear-gradient(135deg, rgba(6,26,51,0.6), rgba(3,13,26,0.8));
  border: 1px solid rgba(237,239,247,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  aspect-ratio: 4/3;
  align-self: center;
}
.playground-visual span {
  color: rgba(156,200,227,0.2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Playground two-column grid ---- */
.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.playground-features {
  margin-bottom: 0;
}

/* ---- Playground feature list microanimations ---- */
.playground-section .feature-list li {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease-out;
  cursor: default;
}
.playground-section .feature-list li:hover {
  background: rgba(237,239,247,0.04);
  border-color: rgba(237,239,247,0.08);
  transform: translateX(6px);
}
.playground-section .feature-list li:hover .feature-bullet {
  background: #005AA3;
  border-color: rgba(0,90,163,0.6);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0,90,163,0.25);
  transform: scale(1.1);
}
.playground-section .feature-bullet {
  transition: all 0.25s ease-out;
}
.playground-section .feature-list li:hover .feature-text strong {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(237,239,247,0.1);
}
.playground-section .feature-list li:hover .feature-text span {
  color: #EDEFF7;
}

/* ---- CTA wiggle animation ---- */
.playground-cta {
  position: relative;
  animation: ctaNudge 3s ease-in-out 2s infinite;
  display: inline-block;
}
.playground-cta::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,90,163,0.4), rgba(0,160,200,0.2));
  z-index: -1;
  opacity: 0;
  animation: ctaGlow 3s ease-in-out 2s infinite;
}
@keyframes ctaNudge {
  0%, 80%, 100% { transform: translateX(0); }
  85% { transform: translateX(-3px) rotate(-1deg); }
  90% { transform: translateX(3px) rotate(1deg); }
  95% { transform: translateX(-2px) rotate(0deg); }
}
@keyframes ctaGlow {
  0%, 78%, 100% { opacity: 0; }
  85%, 95% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .playground-cta { animation: none; }
  .playground-cta::after { animation: none; }
  .playground-section .feature-list li,
  .playground-section .feature-bullet { transition: none; }
}

/* ---- Playground responsive ---- */
@media (max-width: 768px) {
  .playground-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .playground-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ---- Lab Section — LIGHT for rhythm ---- */
.lab-section {
  background: #ffffff;
}
.lab-section h2 {
  color: var(--navy);
}
.lab-section .section-label-light {
  color: var(--blue);
}
.lab-section .section-label-light::before {
  background: var(--blue);
  box-shadow: none;
}
.lab-section .section-header p {
  color: var(--graphite);
}
.lab-section .btn-primary {
  background: var(--navy);
  border: none;
  color: #fff;
}
.lab-section .btn-primary:hover {
  background: #0a2a4a;
}
.lab-section .btn::before,
.lab-section .btn::after {
  display: none;
}

/* ---- Lab steps — 3-column with connector lines ---- */
.lab-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.lab-step {
  text-align: center;
  padding: 36px 28px 32px;
  border-radius: 16px;
  border: 1px solid rgba(0,90,163,0.1);
  background: #ffffff;
  position: relative;
  transition: all 0.3s ease-out;
}
.lab-step:hover {
  border-color: rgba(0,90,163,0.25);
  box-shadow: 0 12px 40px rgba(0,90,163,0.08);
  transform: translateY(-4px);
}
.lab-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.lab-step:hover .lab-step-number {
  background: #005AA3;
  box-shadow: 0 0 20px rgba(0,90,163,0.25);
}
/* Connector line between steps */
.lab-step-line {
  display: none;
}
.lab-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -18px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,90,163,0.3), rgba(0,90,163,0.1));
  z-index: 2;
}
.lab-step h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.lab-step p {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .lab-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 20px;
  }
  .lab-step:not(:last-child)::after {
    display: none;
  }
  .lab-step {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-step { transition: none; }
}

/* ---- Outcomes Section — dark + galaxy bg ---- */
.outcomes-section {
  background: var(--navy);
  overflow: hidden;
  position: relative;
}
.outcomes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/galaxy-bg.jpg') center top / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
  transform: scaleX(-1);
}
.outcomes-section > .container {
  position: relative;
  z-index: 1;
}
.outcomes-section h2 {
  color: #fff;
}
.outcomes-section .section-label {
  color: var(--sky);
}
.outcomes-section .outcome-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(156,200,227,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(156,200,227,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.outcomes-section .outcome-stat:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(156,200,227,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,90,163,0.1);
}
.outcomes-section .outcome-stat-number {
  color: #fff;
}
.outcomes-section .outcome-stat-label {
  color: rgba(255,255,255,0.45);
}
.section-quote {
  text-align: center;
  max-width: 700px;
  margin: 40px auto 0;
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* ---- Community Section — dark conversion ---- */
.community-section {
  background: #041020;
  text-align: center;
  overflow: hidden;
  position: relative;
}
/* Nebula video background */
.community-nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.community-nebula video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.community-nebula::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #041020 0%, transparent 25%, transparent 75%, #041020 100%);
}
.community-section > .container {
  position: relative;
  z-index: 1;
}
.community-section h2 {
  color: #fff;
}
.community-section .section-label {
  color: var(--sky);
}
.community-section .section-header p {
  color: #EDEFF7;
  opacity: 0.75;
}
.community-section .signup-form {
  background: rgba(237,239,247,0.05);
  border: 1px solid rgba(237,239,247,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.community-section .signup-form input {
  color: #fff;
  background: transparent;
}
.community-section .signup-form input::placeholder {
  color: rgba(237,239,247,0.35);
}
.community-section .signup-form .btn-primary {
  background: linear-gradient(135deg, #005AA3, #0070c0, #00a0c8);
  border: none;
  color: #fff;
}
.community-link {
  color: var(--sky);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.community-link:hover {
  color: #fff;
}

/* ---- Footer refinements ---- */
.footer {
  background: linear-gradient(180deg, #061A33, #061A33);
}

/* ---- Dark section labels ---- */
.automation-section .section-label::before,
.gaos-section .section-label::before,
.agents-section .section-label::before,
.playground-section .section-label::before,
.outcomes-section .section-label::before,
.community-section .section-label::before {
  background: var(--sky);
}

/* ---- Identity Grid (5-col → 3-col → 2-col) ---- */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .identity-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   AOS PAGE STYLES
   ============================================ */

/* ---- Architecture Diagram Split ---- */
.aos-arch-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.aos-arch-visual {
  border-radius: 16px;
  overflow: hidden;
}
.aos-arch-bullets {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.aos-arch-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.aos-arch-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,90,163,0.15);
  border: 1px solid rgba(0,90,163,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
}
.aos-arch-bullet h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.aos-arch-bullet p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 768px) {
  .aos-arch-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- 7-Layer Architecture Stack ---- */
.seven-layers-section {
  overflow: hidden;
}
.seven-layers-section h2 {
  color: var(--navy);
}
.seven-layers-section .section-label {
  color: var(--blue);
}
.seven-layers-section .section-label::before {
  background: var(--blue);
  box-shadow: none;
}
.seven-layers-section .section-header p {
  color: var(--graphite);
}
/* ---- 7-Layer Architecture — Scroll-driven build ---- */
.layers-stack {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
/* Connecting spine line */
.layers-stack::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to top, rgba(0,90,163,0), rgba(0,90,163,0.15) 10%, rgba(0,90,163,0.15) 90%, rgba(0,90,163,0));
  z-index: 0;
}

.layer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 26, 51, 0.06);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
/* Scroll-driven build: start hidden, animate in from bottom */
.layer-build {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.layer-build.layer-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.layer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 90, 163, 0.12);
  border-left-color: var(--blue);
}
.layer-card.layer-expanded {
  border-color: rgba(0, 90, 163, 0.18);
  border-left-color: var(--blue);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 90, 163, 0.06);
}

/* Expand icon */
.layer-expand-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 90, 163, 0.06);
  color: var(--blue);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  margin-left: auto;
}
.layer-card:hover .layer-expand-icon {
  background: rgba(0, 90, 163, 0.1);
}
.layer-card.layer-expanded .layer-expand-icon {
  transform: rotate(180deg);
  background: rgba(0, 90, 163, 0.12);
}

/* Expandable detail panel */
.layer-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  flex-basis: 100%;
}
.layer-card.layer-expanded .layer-detail {
  grid-template-rows: 1fr;
}
.layer-detail-inner {
  overflow: hidden;
  padding: 0 24px;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.layer-card.layer-expanded .layer-detail-inner {
  padding: 16px 24px 20px;
}
.layer-detail-inner p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
  margin: 0 0 12px;
}
.layer-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.layer-detail-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 90, 163, 0.06);
  color: var(--blue);
  border: 1px solid rgba(0, 90, 163, 0.1);
}

/* Core layer (Layer 4) — highlighted */
.layer-card--core {
  background: rgba(255, 255, 255, 1);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(0, 90, 163, 0.08);
  border-color: rgba(0, 90, 163, 0.15);
}
.layer-card--core:hover {
  box-shadow: var(--shadow-xl), 0 0 32px rgba(0, 90, 163, 0.12);
}
/* Core layer pulse glow on first appearance */
.layer-card--core.layer-visible {
  animation: corePulse 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s 1;
}
@keyframes corePulse {
  0% { box-shadow: var(--shadow-lg), 0 0 24px rgba(0, 90, 163, 0.08); }
  40% { box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 90, 163, 0.2), 0 0 80px rgba(0, 90, 163, 0.08); }
  100% { box-shadow: var(--shadow-lg), 0 0 24px rgba(0, 90, 163, 0.08); }
}
.layer-card--core .layer-num {
  background: linear-gradient(135deg, var(--blue), #0077cc);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 90, 163, 0.3);
}
.layer-card--core h3 {
  color: var(--blue);
}
.layer-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 90, 163, 0.08), rgba(156, 200, 227, 0.08));
  border: 1px solid rgba(0, 90, 163, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.layer-content {
  flex: 1;
  min-width: 0;
}
.layer-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.layer-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0;
}

@media (max-width: 768px) {
  .layers-stack::before {
    left: 37px;
  }
  .layer-card {
    padding: 16px 18px;
    gap: 14px;
  }
  .layer-num {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .layer-content h3 {
    font-size: 15px;
  }
  .layer-content p {
    font-size: 13px;
  }
  .layer-expand-icon {
    width: 24px;
    height: 24px;
  }
  .layer-detail-inner {
    padding: 0 18px;
  }
  .layer-card.layer-expanded .layer-detail-inner {
    padding: 12px 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer-build {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .layer-card,
  .layer-card:hover {
    transform: none;
  }
  .layer-card--core.layer-visible {
    animation: none;
  }
}

/* ---- Five Capabilities — 3+2 centered grid ---- */
.aos-capabilities {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.aos-capabilities .card-number {
  background: linear-gradient(135deg, rgba(0,90,163,0.08), rgba(156,200,227,0.08));
  border: 1px solid rgba(0,90,163,0.12);
  color: var(--blue);
}
/* Center the bottom row of 2 */
.aos-capabilities .card:nth-child(4),
.aos-capabilities .card:nth-child(5) {
  max-width: 100%;
}

/* ---- Deployment Cards — dark themed ---- */
.aos-deployment-section {
  background: #041020;
}
.aos-deployment-section .pillars-galaxy-bg {
  position: absolute;
  inset: 0;
  background: url('../images/pillars-galaxy-bg.jpg') center center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.aos-deploy-cards .card {
  background: rgba(237,239,247,0.04);
  border-color: rgba(237,239,247,0.1);
  text-align: center;
}
.aos-deploy-cards .card:hover {
  border-color: rgba(237,239,247,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.aos-deploy-cards .card h3 {
  color: #ffffff;
}
.aos-deploy-cards .card p {
  color: #EDEFF7;
  opacity: 0.75;
}
.aos-deploy-cards .card-number {
  background: rgba(0,90,163,0.2);
  border: 1px solid rgba(0,90,163,0.4);
  color: #9CC8E3;
  margin: 0 auto 20px;
}

/* ---- Progressive Autonomy Stages ---- */
.aos-autonomy-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 48px auto 0;
  position: relative;
}
/* Horizontal progress track behind cards */
.aos-autonomy-stages::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; margin: auto;
  left: 10%;
  right: 10%;
  height: 3px;
  background: rgba(0,90,163,0.08);
  border-radius: 3px;
  z-index: 0;
  pointer-events: none;
}
.aos-autonomy-stages::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; margin: auto;
  left: 10%;
  pointer-events: none;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #005AA3, #9CC8E3);
  border-radius: 3px;
  z-index: 1;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* JS adds these data attributes to control progress (5 tiers, 0–4) */
.aos-autonomy-stages[data-active="0"]::after { width: 0%; }
.aos-autonomy-stages[data-active="1"]::after { width: 20%; }
.aos-autonomy-stages[data-active="2"]::after { width: 40%; }
.aos-autonomy-stages[data-active="3"]::after { width: 60%; }
.aos-autonomy-stages[data-active="4"]::after { width: 80%; }

.aos-stage {
  text-align: center;
  padding: 32px 20px 28px;
  border-radius: 16px;
  border: 1px solid rgba(0,90,163,0.06);
  background: #ffffff;
  position: relative;
  z-index: 2;
  isolation: isolate;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.aos-stage:not(.aos-stage--active) h3,
.aos-stage:not(.aos-stage--active) p,
.aos-stage:not(.aos-stage--active) .aos-stage-badge {
  opacity: 0.5;
}
.aos-stage.aos-stage--active {
  border-color: rgba(0,90,163,0.2);
  box-shadow: 0 12px 40px rgba(0,90,163,0.1);
  transform: translateY(-6px);
  opacity: 1;
}
.aos-stage:hover {
  opacity: 0.85;
}
.aos-stage.aos-stage--active:hover {
  opacity: 1;
}
.aos-stage-badge {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 8px;
  background: #edf1f8;
  color: var(--blue);
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.aos-stage--active .aos-stage-badge {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6,26,51,0.2);
}
.aos-stage-line { display: none; }
.aos-stage h3 {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.aos-stage p {
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .aos-autonomy-stages {
    grid-template-columns: repeat(2, 1fr);
  }
  .aos-autonomy-stages::before,
  .aos-autonomy-stages::after { display: none; }
}
@media (max-width: 600px) {
  .aos-autonomy-stages {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aos-stage,
  .aos-stage-badge,
  .aos-autonomy-stages::after { transition: none; }
  .aos-stage { opacity: 1; transform: none; }
}

/* ---- Economics Split ---- */
.aos-economics-section {
  background: #041020;
}
.aos-econ-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.aos-econ-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aos-econ-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.aos-econ-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(237,239,247,0.06);
  border: 1px solid rgba(237,239,247,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CC8E3;
}
.aos-econ-bullet p {
  color: #EDEFF7;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.aos-econ-visual {
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .aos-econ-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .aos-econ-visual {
    order: -1;
  }
}


/* ========================================
   COMPETITIVE DIFFERENTIATION TABLE
   ======================================== */

/* ---- Agent Workforce Cards (AOS page) ---- */
.aos-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.aos-agent-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.aos-agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25), 0 0 16px rgba(0,90,163,0.08);
  border-color: rgba(0,90,163,0.2);
}
.aos-agent-img-wrap {
  height: 180px;
  overflow: hidden;
}
.aos-agent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.aos-agent-card:hover .aos-agent-img-wrap img {
  transform: scale(1.05);
}
.aos-agent-body {
  padding: 24px;
}
.aos-agent-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.aos-agent-body p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.aos-agent-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.aos-agent-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aos-agent-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--sky);
  letter-spacing: -0.02em;
}
.aos-agent-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
@media (max-width: 768px) {
  .aos-agents-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.aos-comparison-section {
  padding: 100px 0;
}

.aos-comparison-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(156, 200, 227, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(156, 200, 227, 0.06);
  overflow: hidden;
}

.aos-comparison-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.aos-comparison-scroll::-webkit-scrollbar {
  height: 4px;
}
.aos-comparison-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.aos-comparison-scroll::-webkit-scrollbar-thumb {
  background: rgba(156, 200, 227, 0.15);
  border-radius: 4px;
}

.aos-comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-family: 'Manrope', sans-serif;
}

/* Header row */
.aos-comparison-table thead th {
  padding: 16px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  white-space: nowrap;
}

.aos-comparison-table thead th.aos-cmp-capability {
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
}

.aos-comparison-table thead th.aos-cmp-highlight {
  background: rgba(0, 90, 163, 0.2);
  color: #ffffff;
}

/* Body cells */
.aos-comparison-table tbody td {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

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

/* Capability column (first col) */
.aos-comparison-table tbody td.aos-cmp-capability {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Highlighted Infrastructure AI column — green-tinted success */
.aos-comparison-table thead th.aos-cmp-highlight {
  background: rgba(34, 197, 94, 0.15);
  color: #ffffff;
  border-bottom-color: rgba(34, 197, 94, 0.2);
}
.aos-comparison-table tbody td.aos-cmp-highlight {
  background: rgba(34, 197, 94, 0.08);
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: rgba(34, 197, 94, 0.1);
}
.aos-comparison-table tbody tr:hover td.aos-cmp-highlight {
  background: rgba(34, 197, 94, 0.14);
}

/* Competitor columns — muted gray */
.aos-comparison-table tbody td:not(.aos-cmp-capability):not(.aos-cmp-highlight) {
  background: rgba(255, 255, 255, 0.02);
}

/* Checkmark styling — green */
.aos-cmp-check {
  color: #22c55e;
  font-weight: 700;
  margin-right: 4px;
  font-size: 15px;
}

/* Em dash styling — faded red-ish to signal absence */
.aos-cmp-dash {
  color: rgba(255, 255, 255, 0.2);
  font-size: 16px;
}

/* Hover row effect */
.aos-comparison-table tbody tr {
  transition: background 0.2s ease;
}
.aos-comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Responsive */
@media (max-width: 768px) {
  .aos-comparison-section {
    padding: 72px 0;
  }
  .aos-comparison-wrap {
    border-radius: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .aos-comparison-table tbody td.aos-cmp-capability {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aos-comparison-table tbody tr {
    transition: none;
  }
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Lab: Outcomes 4-col grid */
.lab-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .lab-outcomes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lab-outcomes-grid > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(237,239,247,0.08);
  }
  .lab-outcomes-grid > div:last-child {
    border-bottom: none;
  }
}
@media (max-width: 480px) {
  .lab-outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* Lab: Who It's For 2-col grid */
.lab-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .lab-who-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Lab: Cost Comparison 3-col grid */
.lab-cost-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
}
@media (max-width: 480px) {
  .lab-cost-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .lab-cost-grid svg {
    transform: rotate(90deg);
  }
}

/* Playground: Feature cards 2-col grid */
.pg-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .pg-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage: Spline embed responsive height */
@media (max-width: 768px) {
  .spline-wrap {
    height: 400px !important;
  }
}
@media (max-width: 480px) {
  .spline-wrap {
    height: 300px !important;
  }
  :root { --section-pad: 48px; }
  .card { padding: 28px 20px; }
}

/* Identity grid: fix orphan centering */
@media (max-width: 768px) {
  .identity-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
  .identity-grid > :last-child {
    grid-column: 1 / -1;
    max-width: 200px;
  }
}

/* ============================================
   MOBILE AUDIT FIXES — April 2026
   ============================================ */

/* Global image safety net */
img {
  max-width: 100%;
  height: auto;
}

/* Pricing: ROI calculator inputs stack on mobile */
@media (max-width: 600px) {
  .roi-calc-inputs {
    grid-template-columns: 1fr !important;
  }
}

/* Pricing: ROI calculator results stack on small screens */
@media (max-width: 480px) {
  .roi-calc-results {
    grid-template-columns: 1fr !important;
  }
}

/* Lab: Portfolio savings calculator results stack on mobile */
@media (max-width: 600px) {
  .lab-calc-results {
    grid-template-columns: 1fr !important;
  }
}

/* Touch targets: btn-sm minimum 44px height on mobile */
@media (max-width: 768px) {
  .btn-sm {
    min-height: 44px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
  }
}

/* Playground: Observatory hotspot touch targets */
@media (max-width: 768px) {
  .obs-hotspot {
    min-width: 44px;
    min-height: 44px;
    margin-left: -17px;
    margin-top: -17px;
  }
}
