/* ═══════════════════════════════════════════════════════════════
   SENTINEL AI — Unified Theme v2.0
   ═══════════════════════════════════════════════════════════════
   THE SINGLE SOURCE OF TRUTH.
   Every page loads this file. Every color, font, shadow, spacing,
   and animation token lives here. Zero magic numbers elsewhere.

   Structure:
     0. Fonts
     1. Design Tokens (CSS Custom Properties)
     2. CSS Reset
     3. Base Typography
     4. Shared Components (nav, footer, buttons, cards, cookie banner)
     5. Utility Classes
     6. Keyframe Animations
     7. Accessibility
     8. Responsive Breakpoints
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   0. FONTS
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Colors ── */
  --purple:        #7c3aed;
  --purple-mid:    #8b5cf6;
  --purple-light:  #a855f7;
  --indigo:        #6366f1;
  --cyan:          #06b6d4;
  --cyan-light:    #22d3ee;
  --pink:          #EC4899;
  --pink-light:    #F472B6;
  --emerald:       #10b981;
  --amber:         #f59e0b;
  --red:           #ef4444;
  --blue:          #3b82f6;
  --blue-light:    #60a5fa;

  /* RGB channels for alpha compositing */
  --purple-rgb:    124, 58, 237;
  --indigo-rgb:    99, 102, 241;
  --cyan-rgb:      6, 182, 212;
  --pink-rgb:      236, 72, 153;
  --blue-rgb:      59, 130, 246;
  --emerald-rgb:   16, 185, 129;

  /* ── Backgrounds (dark scale, never pure #000) ── */
  --bg:            #050508;
  --bg-alt:        #08081a;
  --surface:       #0c0c1a;
  --surface-2:     #111128;
  --surface-3:     #1a1a35;
  --surface-hover: #222245;
  --card-bg:       #0d0d1a;
  --card-bg-hover: #111128;
  --elevated:      #141428;

  /* ── Text (4-tier hierarchy) ── */
  --text:          #f0f0f8;
  --text-dim:      #c0c0d8;
  --text-muted:    #8080a0;
  --text-faint:    #505070;
  --text-ghost:    #303050;

  /* Monochrome grays (for Vercel-clean sections) */
  --white:         #ededed;
  --gray-100:      #a1a1a1;
  --gray-200:      #888;
  --gray-300:      #666;
  --gray-400:      #444;
  --gray-500:      #333;
  --gray-600:      #222;
  --gray-700:      #1a1a1a;
  --gray-800:      #111;

  /* ── Borders ── */
  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.20);
  --border-accent: rgba(124, 58, 237, 0.30);

  /* ── Gradients ── */
  --gradient-brand:    linear-gradient(135deg, #EC4899, #8B5CF6, #3B82F6);
  --gradient-text:     linear-gradient(135deg, #EC4899, #8B5CF6, #3B82F6);
  --gradient-subtle:   linear-gradient(135deg, rgba(236,72,153,0.1), rgba(139,92,246,0.1), rgba(59,130,246,0.1));
  --gradient-hero:     radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--purple-rgb), 0.15), rgba(var(--pink-rgb), 0.08), transparent);
  --gradient-glow:     radial-gradient(circle at center, rgba(var(--purple-rgb), 0.4), transparent 70%);
  --gradient-cta:      linear-gradient(135deg, #8B5CF6, #7C3AED);

  /* ── Typography ── */
  --font-display:  'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Fluid type scale */
  --text-xs:    clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm:    clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base:  clamp(0.9375rem, 0.90rem + 0.2vw, 1rem);
  --text-lg:    clamp(1.0625rem, 1.00rem + 0.3vw, 1.125rem);
  --text-xl:    clamp(1.1875rem, 1.10rem + 0.4vw, 1.25rem);
  --text-2xl:   clamp(1.375rem, 1.25rem + 0.6vw, 1.5rem);
  --text-3xl:   clamp(1.625rem, 1.40rem + 1.1vw, 2rem);
  --text-4xl:   clamp(2rem, 1.70rem + 1.5vw, 2.75rem);
  --text-5xl:   clamp(2.5rem, 2.00rem + 2.5vw, 4rem);
  --text-hero:  clamp(3rem, 2.50rem + 4vw, 6rem);

  /* ── Spacing (4px base) ── */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-section: clamp(80px, 12vh, 140px);

  /* ── Layout ── */
  --max-width:    1280px;
  --max-width-sm: 800px;
  --max-width-lg: 1440px;
  --nav-height:   72px;
  --content-pad:  clamp(16px, 4vw, 48px);

  /* ── Border Radius ── */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs:      0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.45), 0 16px 64px rgba(0, 0, 0, 0.3);
  --shadow-xl:      0 16px 64px rgba(0, 0, 0, 0.5), 0 32px 128px rgba(0, 0, 0, 0.3);
  --shadow-glow-sm: 0 0 20px rgba(var(--purple-rgb), 0.1);
  --shadow-glow:    0 0 40px rgba(var(--purple-rgb), 0.2);
  --shadow-glow-lg: 0 0 80px rgba(var(--purple-rgb), 0.2);
  --shadow-glow-xl: 0 0 120px rgba(var(--purple-rgb), 0.25);
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* ── Easing ── */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ── Durations ── */
  --dur-instant:   100ms;
  --dur-fast:      150ms;
  --dur-normal:    250ms;
  --dur-slow:      400ms;
  --dur-reveal:    700ms;
  --dur-dramatic:  1000ms;
  --dur-ambient:   12s;

  /* ── Z-Index Scale ── */
  --z-below:    -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-nav:      1000;
  --z-modal:    3000;
  --z-toast:    4000;
  --z-overlay:  9000;
  --z-top:      9999;

  /* ══ LEGACY ALIASES ══
     Map old variable names → new tokens so existing CSS
     doesn't break during migration. Remove after full cleanup.
     ══════════════════════════════════════════════════════ */
  --color-bg:           var(--bg);
  --color-bg-alt:       var(--bg-alt);
  --color-surface:      var(--surface);
  --color-surface-2:    var(--surface-2);
  --color-surface-3:    var(--surface-3);
  --color-border:       var(--border);
  --color-border-hover: var(--border-hover);
  --color-border-active:var(--border-active);
  --color-text:         var(--text);
  --color-text-2:       var(--text-dim);
  --color-text-3:       var(--text-muted);
  --color-text-4:       var(--text-faint);
  --color-accent:       var(--purple);

  /* ══ BACKWARD COMPAT (design-system.css aliases) ══ */
  --text-bright:    #ffffff;
  --bg-card:        var(--card-bg);
  --bg-card-hover:  var(--card-bg-hover);
  --gradient-main:  linear-gradient(135deg, #EC4899, #8B5CF6, #3B82F6);
  --duration:       var(--dur-normal);
  --duration-fast:  var(--dur-fast);

  /* Legacy spacing aliases */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --color-accent-2:     var(--indigo);
  --color-accent-3:     var(--cyan);
  --color-accent-rgb:   var(--purple-rgb);
  --color-accent-2-rgb: var(--indigo-rgb);
  --color-accent-3-rgb: var(--cyan-rgb);
  --color-gradient:     var(--gradient-brand);
  --color-gradient-text:var(--gradient-text);
  --color-gradient-subtle:var(--gradient-subtle);
  --color-success:      var(--emerald);
  --color-warning:      var(--amber);
  --color-error:        var(--red);
  --color-info:         var(--blue);
  --bg-primary:         var(--bg);
  --bg-secondary:       var(--bg-alt);
  --bg-tertiary:        var(--surface);
  --bg-card:            var(--card-bg);
  --bg-card-hover:      var(--card-bg-hover);
  --bg-elevated:        var(--elevated);
  --text-primary:       var(--text);
  --text-secondary:     var(--text-dim);
  --text-accent:        var(--purple-light);
  --purple-deep:        var(--purple);
  --green:              var(--emerald);
  --green-light:        #34d399;
  --orange:             #f97316;
  --pink-hot:           #E040FB;

  /* Old agency design-system aliases */
  --section-pad:        var(--space-section);
  --section-pad-mobile: 72px;
  --ease-premium:       cubic-bezier(0.215, 0.61, 0.355, 1);
  --dur-base:           var(--dur-normal);
  --dur-slower:         600ms;
  --container-sm:       var(--max-width-sm);
  --z-cursor:           9998;
  --z-noise:            var(--z-top);
  /* HOTEL portal/admin design tokens */
  --z-bg:               0;
  --z-default:          1;
  --ease-default:       cubic-bezier(0.16, 1, 0.3, 1);
  --text-sm-size:       0.875rem;
  --text-body-size:     1rem;
  --text-h2-size:       1.5rem;
  --text-h2-weight:     700;
  --dur-normal:         300ms;
}

/* ═══════════════════════════════════════════════════════════════
   2. CSS RESET
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
}

/* Prevent iOS zoom on inputs with font-size < 16px */
input, textarea, select {
  font-size: max(16px, 1em);
}

/* ═══════════════════════════════════════════════════════════════
   3. BASE TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 65ch;
}

code, pre {
  font-family: var(--font-mono);
}

/* Selection */
::selection {
  background: rgba(var(--purple-rgb), 0.3);
  color: var(--text);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--purple-rgb), 0.4);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) var(--bg);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@supports not selector(:focus-visible) {
  :focus {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
  }
}

/* ═══════════════════════════════════════════════════════════════
   4. SHARED COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-width-sm);
}

.container--wide {
  max-width: var(--max-width-lg);
}

/* ── Section Headers ── */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--purple-light);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-5);
  color: var(--text);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: var(--space-16);
}

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

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-normal) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  border: 1px solid rgba(var(--purple-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--purple-rgb), 0.3);
  border-color: rgba(var(--purple-rgb), 0.5);
}

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

.btn-secondary:hover {
  background: rgba(var(--purple-rgb), 0.08);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

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

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-normal) var(--ease),
              border-color var(--dur-normal) var(--ease);
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.95);
  border-bottom-color: var(--border-hover);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Nav brand (simple: icon + text link) */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  z-index: 10;
}

.nav-brand svg {
  width: 20px;
  height: 20px;
}

/* Nav logo (expanded: image + styled text) */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(var(--purple-rgb), 0.3));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
}

.nav-logo-text .ai {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-dim);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-text);
  border-radius: 1px;
}

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  background: var(--gradient-cta);
  color: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--purple-rgb), 0.3);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-normal) var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--purple-rgb), 0.3);
  background: var(--gradient-cta);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur-normal) var(--ease),
              opacity var(--dur-normal) var(--ease);
  border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav: overlay panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-normal) var(--ease),
              opacity var(--dur-normal) var(--ease);
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease);
}

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

.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
  padding: 14px 24px;
  background: var(--gradient-cta);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none !important;
}

/* Mobile nav: inline dropdown (simpler pages) */
.nav-links.open {
  display: flex;
}

/* ── Footer (simple layout — used across all pages) ── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-10) var(--content-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dim);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-brand svg {
  width: 16px;
  height: 16px;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a {
  color: var(--text-faint);
  font-size: var(--text-xs);
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* Footer: expanded grid layout (optional, for pages that need columns) */
.footer--expanded {
  background: var(--bg-alt);
  padding: var(--space-20) 0 var(--space-10);
  max-width: none;
}

.footer--expanded .footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(var(--purple-rgb), 0.3));
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
}

.footer-logo-text .ai {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-links-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-built {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ── Premium Footer ── */
.footer--premium {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 0;
  max-width: none;
}

.footer-premium-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--content-pad) 32px;
}

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

.footer-top-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer--premium .footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer--premium .footer-brand svg {
  width: 20px;
  height: 20px;
}

.footer--premium .footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

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

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.footer-trust-badge svg {
  color: var(--purple-light);
  flex-shrink: 0;
}

.footer--premium .footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer--premium .footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer--premium .footer-socials a:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text);
  background: rgba(139, 92, 246, 0.06);
}

.footer--premium .footer-socials svg {
  width: 16px;
  height: 16px;
}

/* Footer CTA */
.footer-top-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text-bright);
}

.footer-cta-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-cta-form {
  display: flex;
  gap: 0;
  margin-top: 4px;
}

.footer-cta-form input {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-cta-form input::placeholder {
  color: var(--text-faint);
}

.footer-cta-form input:focus {
  border-color: rgba(139, 92, 246, 0.4);
}

.footer-cta-form button {
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-cta-form button:hover {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.footer-cta-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* Footer Divider */
.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 40px;
}

/* Footer Columns */
.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer--premium .footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer--premium .footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer--premium .footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s ease;
  text-decoration: none;
}

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

/* Contact card in footer */
.footer-contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.footer-contact-card .footer-col-title {
  margin-bottom: 12px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-contact-row svg {
  color: var(--purple-light);
  flex-shrink: 0;
}

.footer-contact-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-contact-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--text-bright);
}

/* Footer Bottom */
.footer--premium .footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer--premium .footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.footer--premium .footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-contact-card {
    grid-column: 1 / -1;
  }
  .footer-premium-inner {
    padding: 48px 20px 24px;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-cta-form {
    flex-direction: column;
    gap: 8px;
  }
  .footer-cta-form input {
    border-right: 1px solid var(--border);
    border-radius: 8px;
  }
  .footer-cta-form button {
    border-radius: 8px;
  }
  .footer-trust {
    gap: 8px;
  }
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  transition: border-color var(--dur-normal) var(--ease),
              background var(--dur-normal) var(--ease),
              transform var(--dur-normal) var(--ease);
}

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

/* ── Divider ── */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-6);
  z-index: var(--z-top);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--dur-normal) var(--ease),
              opacity var(--dur-normal) var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

.cookie-banner p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.cookie-accept {
  background: var(--text);
  color: var(--bg);
}

.cookie-accept:hover {
  background: var(--text-dim);
}

.cookie-decline {
  background: transparent;
  color: var(--text-faint);
  border: 1px solid var(--border);
}

.cookie-decline:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════════════════════════════
   5. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

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

/* Tabular numbers */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Content visibility for below-fold perf */
.content-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Hide/show by breakpoint */
.hide-mobile  { display: initial; }
.show-mobile  { display: none; }
.hide-tablet  { display: initial; }
.show-tablet  { display: none; }

/* ── Scroll Reveal ── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════
   5b. WINDOW CHROME DOTS — brand violet bars, not Mac traffic lights
   ═══════════════════════════════════════════════════════════════ */
.engine__dots span,
.intake-bar-dot,
.build-bar-dot,
.error-terminal-dot,
.refarch-browser-dot,
.browser-dot,
.wt-browser-dot,
.cinema-terminal-dot,
.cinema-browser-dots span,
.dp-card__dot,
.dp-console__dot,
.dp-chat-dot,
.dp-bd,
.juliet-demo-browser-dots span,
.ops-term-dots span,
.mp-console-dot,
.alpha-terminal__dot,
.walkthrough__demo-dots span,
.field-ops__browser-bar span {
  border-radius: 1px !important;
  width: 12px !important;
  height: 3px !important;
}

/* ═══════════════════════════════════════════════════════════════
   6. KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

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

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--purple-rgb), 0.15); }
  50%      { box-shadow: 0 0 40px rgba(var(--purple-rgb), 0.3); }
}

/* ═══════════════════════════════════════════════════════════════
   7. ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

/* Skip navigation link */
.skip-nav {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: var(--space-3) var(--space-6);
  background: var(--purple);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--dur-normal) var(--ease);
  text-decoration: none;
}

.skip-nav:focus {
  top: 0;
  outline: none;
}

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

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   8. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links { display: none; }
  .nav .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  /* Inline dropdown nav: show when .open */
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-4);
    gap: var(--space-1);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-nav);
  }

  .hide-mobile { display: none !important; }
  .show-mobile { display: initial !important; }

  .section-header {
    margin-bottom: var(--space-12);
  }

  .section-desc {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
  }
}

@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
  .show-tablet { display: initial !important; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

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



/* ═══════════════════════════════════════════════════════════════
   ADDITIONAL SHARED COMPONENTS
   (Merged from components.css — single source of truth)
   ═══════════════════════════════════════════════════════════════ */

/* ── Preloader ── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--text-bright);
    letter-spacing: -0.02em;
}
.preloader-logo svg { width: 28px; height: 28px; }
.preloader-ai {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.preloader-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s;
}
.preloader-status {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
}

/* ── Ambient Background ── */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.orb-1 {
    width: 600px; height: 600px;
    top: -200px; left: -100px;
    background: rgba(var(--purple-rgb), 0.08);
    animation: orbFloat1 20s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    bottom: -150px; right: -100px;
    background: rgba(var(--pink-rgb), 0.06);
    animation: orbFloat2 25s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    top: 40%; left: 60%;
    background: rgba(var(--blue-rgb), 0.05);
    animation: orbFloat3 18s ease-in-out infinite;
}

/* ── Scroll Progress ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gradient-main);
    z-index: var(--z-modal);
    transition: width 50ms linear;
}

/* ── Nav: container wrapper support ── */
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-pad);
    height: 100%;
}

/* ── Nav: .nav-link (components-style links) ── */
.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--dur-normal) var(--ease);
    position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width var(--dur-normal) var(--ease);
}
.nav-link:hover::after { width: 100%; }

/* ── Nav: mobile menu button ── */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 10;
}
.nav-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--dur-normal) var(--ease), opacity var(--dur-normal) var(--ease);
}
.nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Page Hero (subpages) ── */
.page-hero {
    position: relative;
    padding: 160px 24px 80px;
    text-align: center;
    overflow: hidden;
    z-index: var(--z-base);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
}
.page-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center,
        rgba(var(--purple-rgb), 0.12) 0%,
        rgba(var(--pink-rgb), 0.06) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite;
}
.page-hero-content {
    position: relative;
    z-index: var(--z-raised);
    max-width: 720px;
    margin: 0 auto;
}
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(var(--emerald-rgb), 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--emerald);
    margin-bottom: 32px;
    background: rgba(var(--emerald-rgb), 0.05);
}
.page-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    animation: badgePulse 2s ease-in-out infinite;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}
.page-hero-sub {
    font-size: var(--text-xl);
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Section Divider ── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
    position: relative;
    z-index: 2;
}
.section-divider::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(var(--purple-rgb), 0.08), transparent);
    pointer-events: none;
}

/* ── Pricing Cards (index section) ── */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: transform var(--dur-normal) var(--ease), border-color var(--dur-normal), box-shadow var(--dur-normal);
    position: relative;
}
.pricing-card.featured {
    border-color: rgba(var(--purple-rgb), 0.4);
    transform: scale(1.03);
    box-shadow: var(--shadow-glow-xl);
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--purple-rgb), 0.3);
}
.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-main);
    color: #fff;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.pricing-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-2xl);
    color: var(--text-bright);
    margin-bottom: 8px;
}
.pricing-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--text-bright);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.pricing-period {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 28px;
}
.pricing-features {
    text-align: left;
    margin-bottom: 28px;
}
.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: var(--text-sm);
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-check {
    color: var(--emerald);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    text-align: center;
    transition: all var(--dur-normal);
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--purple-rgb), 0.3);
}
.pricing-btn-primary {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}
.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--purple-rgb), 0.3);
}
.pricing-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text);
}

/* ── FAQ ── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-bright);
    transition: color var(--dur-normal);
}
.faq-q:hover { color: var(--purple-light); }
.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform var(--dur-normal), color var(--dur-normal);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--purple-light);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.active .faq-a {
    max-height: 300px;
    padding-bottom: 20px;
}
.faq-a-inner {
    font-size: var(--text-sm);
    color: var(--text-dim);
    line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
    position: relative;
    z-index: var(--z-base);
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(var(--purple-rgb), 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.cta-desc {
    font-size: var(--text-lg);
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.6;
}
.cta-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}
.cta-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-bright);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--dur-normal);
}
.cta-input:focus { border-color: rgba(var(--purple-rgb), 0.5); }
.cta-input::placeholder { color: var(--text-faint); }

/* ── Footer: column layout (components style) ── */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text);
    margin-bottom: 4px;
}
.footer-col a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--dur-normal);
}
.footer-col a:hover { color: var(--text); }

/* ── Footer: status indicator ── */
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--emerald);
}
.footer-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    animation: badgePulse 2s ease-in-out infinite;
}

/* ── Footer: social icons ── */
.footer-socials {
    display: flex;
    gap: 16px;
}
.footer-socials a {
    color: var(--text-muted);
    transition: color var(--dur-normal);
}
.footer-socials a:hover { color: var(--text); }
.footer-socials svg { width: 18px; height: 18px; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* ── Glow Breathe ── */
.glow-breathe {
    animation: glowBreathe 4s ease-in-out infinite;
}

/* ── Button Shimmer ── */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.04) 55%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: none;
}
.btn-primary:hover::before {
    transform: translateX(30%);
    transition: transform 0.7s var(--ease);
}

/* ── Ticker ── */
.ticker-track {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONAL KEYFRAMES (from animations.css)
   ═══════════════════════════════════════════════════════════════ */

@keyframes heroGlow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

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

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

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-25px, 25px); }
    66% { transform: translate(35px, -15px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, 30px); }
    66% { transform: translate(-30px, -20px); }
}

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

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes counterUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes statFlash {
    0% { text-shadow: 0 0 20px rgba(var(--purple-rgb), 0.6); }
    100% { text-shadow: none; }
}

@keyframes glowBreathe {
    0%, 100% { box-shadow: 0 0 30px rgba(var(--purple-rgb), 0.1); }
    50% { box-shadow: 0 0 50px rgba(var(--purple-rgb), 0.2); }
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONAL RESPONSIVE (from components.css)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Nav: mobile menu support */
    .nav-menu-btn { display: flex; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: var(--z-nav);
    }
    .nav-links.open { display: flex; }
    .nav-link { font-size: var(--text-xl); }
    .nav-cta {
        padding: 14px 28px;
        font-size: var(--text-base);
    }
    
    /* Page hero mobile */
    .page-hero { padding: 140px 20px 60px; }
    
    /* CTA mobile */
    .cta-form { flex-direction: column; }
}

@media (max-width: 480px) {
    .page-hero { padding: 120px 16px 48px; }

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — Shared Styles (privacy, terms)
   ═══════════════════════════════════════════════════════════════ */
.legal-content { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; position: relative; z-index: 1; }
.legal-content h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--text-bright); margin: 40px 0 16px; letter-spacing: -0.02em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: var(--text-sm); color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }
.legal-content ul { list-style: none; margin-bottom: 24px; }
.legal-content ul li { padding: 6px 0; font-size: var(--text-sm); color: var(--text-dim); display: flex; align-items: flex-start; gap: 10px; }
.legal-content ul li::before { content: '•'; color: var(--purple-light); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.legal-content a { color: var(--purple-light); }
.legal-content a:hover { text-decoration: underline; }
.legal-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   END OF UNIFIED THEME v2.0
   ═══════════════════════════════════════════════════════════════ */
