/* ============================================
   PREP-TRAX.AI DESIGN SYSTEM
   Build the foundation first, pages second.
   ============================================ */

/* ============================================
   1. COLOR TOKENS — Prep-TraxMain Color Schema
   ============================================ */
:root {
  /* Core Brand Colors */
  --primary-blue: #1a365d;
  --primary-green: #1DB954;
  --hero-grey: #E8E8E8;

  /* Blue Family */
  --electric-blue: #3B82F6;
  --sky-blue: #60A5FA;
  --cyan: #06B6D4;
  --blue-dark: #153e75;
  --blue-medium: #2d4a73;
  --blue-light: #2c5282;
  --blue-lighter: #6b8fc7;

  /* Green Family */
  --emerald: #10B981;
  --lime: #84CC16;
  --teal: #14B8A6;
  --green-light: #22c55e;
  --green-dark: #16a34a;
  --dark-green: #0F7B3C;

  /* Vibrant Accents */
  --coral: #F97316;
  --purple: #8B5CF6;
  --amber: #F59E0B;
  --rose: #F43F5E;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E5E7EB;
  --medium-gray: #9CA3AF;
  --slate: #64748B;
  --warm-gray: #78716C;
  --dark-gray: #1F2937;
  --black: #000000;

  /* Background Tints */
  --blue-tint: #EFF6FF;
  --green-tint: #ECFDF5;
  --cyan-tint: #ECFEFF;
  --purple-tint: #F5F3FF;
  --coral-tint: #FFF7ED;
  --amber-tint: #FFFBEB;
  --rose-tint: #FFF1F2;
  --grey-tint: #F5F6F7;

  /* ── Semantic aliases used by components throughout this file ── */

  /* Primary scale: electric blue as the interactive color */
  --color-primary-50:  #EFF6FF;
  --color-primary-100: #DBEAFE;
  --color-primary-200: #BFDBFE;
  --color-primary-300: #93C5FD;
  --color-primary-400: #60A5FA;   /* sky-blue */
  --color-primary-500: #3B82F6;   /* electric-blue */
  --color-primary-600: #3B82F6;   /* electric-blue — buttons, links */
  --color-primary-700: #2563EB;   /* electric-blue hover */
  --color-primary-800: #1d4ed8;
  --color-primary-900: #1e40af;

  /* Neutral Grays */
  --color-gray-50:  #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-success: #10B981;   /* emerald */
  --color-warning: #F59E0B;   /* amber */
  --color-error:   #F43F5E;   /* rose */
  --color-info:    #3B82F6;   /* electric-blue */

  /* Surface Colors */
  --color-bg-primary:    #080f1e;
  --color-bg-secondary:  #0d1b2e;
  --color-bg-dark:       #0a1628;   /* deep navy — dark sections */
  --color-text-primary:  #e2e8f0;   /* near-white for dark bg */
  --color-text-secondary: #94a3b8;  /* cool-gray secondary */
  --color-text-inverse:  #ffffff;

  /* ============================================
     2. SPACING SCALE
     ============================================ */
  --s1: 0.25rem;   /* 4px */
  --s2: 0.5rem;    /* 8px */
  --s3: 0.75rem;   /* 12px */
  --s4: 1rem;      /* 16px */
  --s5: 1.25rem;   /* 20px */
  --s6: 1.5rem;    /* 24px */
  --s8: 2rem;      /* 32px */
  --s10: 2.5rem;   /* 40px */
  --s12: 3rem;     /* 48px */
  --s16: 4rem;     /* 64px */
  --s20: 5rem;     /* 80px */
  --s24: 6rem;     /* 96px */
  --s32: 8rem;     /* 128px */

  /* ============================================
     3. TYPOGRAPHY SCALE
     ============================================ */
  --font-family-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ============================================
     4. SHADOW SYSTEM
     ============================================ */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* ============================================
     5. BORDER RADIUS SYSTEM
     ============================================ */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;

  /* ============================================
     6. TRANSITIONS
     ============================================ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ============================================
     7. Z-INDEX HIERARCHY
     ============================================ */
  --z-nav: 1000;
  --z-drawer: 1010;
  --z-modal: 1100;
  --z-tooltip: 1200;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  padding-top: 72px; /* Compensate for fixed header */
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-bold);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--s4);
}

a {
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-700);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s4);
  background: var(--color-primary-600);
  color: var(--color-text-inverse);
  padding: var(--s3) var(--s6);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  z-index: calc(var(--z-modal) + 100);
}

.skip-link:focus {
  top: var(--s4);
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-sans);
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-height: 48px; /* Touch target */
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-300);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background: var(--color-primary-600);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--color-primary-600);
  border-color: var(--color-primary-600);
}

.btn-outline:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-700);
  color: var(--color-primary-700);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
}

.btn-ghost:hover {
  background: var(--color-gray-100);
}

/* Button Sizes */
.btn-sm {
  padding: var(--s2) var(--s4);
  font-size: var(--text-sm);
  min-height: 40px;
}

.btn-lg {
  padding: var(--s4) var(--s8);
  font-size: var(--text-lg);
  min-height: 56px;
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-fade {
  animation: fadeIn 0.6s ease-out forwards;
}

.anim-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.anim-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.2s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.3s; opacity: 0; }
.anim-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Gradient Text Utility */
.text-gradient {
  background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: var(--s20) 0;
}

.section-lg {
  padding: var(--s32) 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(8, 15, 30, 0.92);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  z-index: var(--z-nav);
  transition: all var(--transition-base);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header.scrolled {
  background: rgba(8, 15, 30, 0.97);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.15);
  border-bottom-color: rgba(59, 130, 246, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-brand {
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-family-heading);
  background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-family-heading);
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-logo:hover {
  filter: brightness(1.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s8);
  list-style: none;
}

.nav-link {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-family-heading);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--electric-blue);
  background: rgba(59, 130, 246, 0.1);
}

.nav-link[aria-current="page"] {
  color: var(--electric-blue);
  font-weight: var(--font-bold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-base);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s6);
  list-style: none;
}

.mobile-menu .nav-link {
  display: block;
  padding: var(--s4);
  font-size: var(--text-lg);
  min-height: 48px;
}

.mobile-menu .nav-cta {
  flex-direction: column;
  margin-top: var(--s6);
}

.mobile-menu .btn {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #060d1a 0%, #0c2448 55%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ── Hero Stacked Layout ── */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s8);
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Centered logo block above the image */
.hero-brand-above {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
}

.hero-brand-name {
  font-family: var(--font-family-heading);
  font-size: var(--text-7xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* "Prep" — solid Electric Blue */
.hero-brand-prep {
  color: var(--electric-blue);
}

/* "Prep" — solid Electric Blue */
.hero-brand-dash {
  color: rgba(255, 255, 255, 0.82);
}

/* "TraX" — gradient green: emerald → primary-green → lime */
.hero-brand-trax {
  background: linear-gradient(90deg, var(--emerald) 0%, var(--primary-green) 55%, var(--lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ".ai" — gradient blue → purple for an AI-tech feel */
.hero-brand-ai {
  background: linear-gradient(90deg, var(--electric-blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-brand-sub {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Full-width banner image */
.hero-image-frame {
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.1),
    0 24px 64px rgba(59, 130, 246, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-image-frame img {
  width: 100%;
  height: clamp(280px, 38vw, 520px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Text block below the image */
.hero-text {
  text-align: center;
  max-width: 860px;
  width: 100%;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--s6);
  background: linear-gradient(135deg, #ffffff 0%, var(--electric-blue) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--s8);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s8);
  margin-top: var(--s16);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  font-family: var(--font-family-heading);
  color: #ffffff;
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--s2);
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.45);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  color: var(--electric-blue);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--s3);
  color: #ffffff;
}

.card-description {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s8);
}

/* ── Card icon color variants ── */
.card-icon--emerald {
  background: rgba(16, 185, 129, 0.12) !important;
  color: var(--emerald) !important;
}
.card-icon--cyan {
  background: rgba(6, 182, 212, 0.12) !important;
  color: var(--cyan) !important;
}
.card-icon--purple {
  background: rgba(139, 92, 246, 0.12) !important;
  color: var(--purple) !important;
}

/* ── Card top-border accent variants ── */
.card--emerald {
  border-top: 3px solid var(--emerald);
}
.card--emerald:hover {
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}
.card--cyan {
  border-top: 3px solid var(--cyan);
}
.card--cyan:hover {
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}

/* ── Stat card color variants ── */
.stat-card--emerald {
  border-top: 2px solid var(--emerald) !important;
}
.stat-card--emerald .stat-card-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}
.stat-card--emerald .stat-card-number {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card--emerald:hover {
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12);
}
.stat-card--cyan {
  border-top: 2px solid var(--cyan) !important;
}
.stat-card--cyan .stat-card-icon {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
}
.stat-card--cyan .stat-card-number {
  background: linear-gradient(135deg, var(--cyan), var(--sky-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card--cyan:hover {
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.12);
}

/* ── Emerald inline tag / badge ── */
.tag--emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--emerald::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* ============================================
   DARK SECTION
   ============================================ */
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-text-inverse);
}

.section-dark p {
  color: var(--color-gray-300);
}

/* ============================================
   SPLIT SECTION
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

.split-content h2 {
  margin-bottom: var(--s6);
}

.split-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  align-items: start;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.pricing-card--popular {
  border-color: var(--electric-blue);
  border-width: 2px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.pricing-card--popular:hover {
  box-shadow: 0 8px 48px rgba(59, 130, 246, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: var(--s6);
}

.pricing-card-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--s2);
}

.pricing-card-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pricing-card-price {
  margin-bottom: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-amount {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.45);
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s6);
  flex: 1;
}

.pricing-features li {
  padding: var(--s2) 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pricing-check {
  color: var(--emerald);
  margin-right: 8px;
  font-weight: var(--font-bold);
}

.pricing-ideal {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  margin-bottom: var(--s6);
}

.pricing-ideal h4 {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s2);
}

.pricing-ideal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-ideal li {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  padding: 2px 0;
}

.pricing-ideal li::before {
  content: "\2022";
  color: var(--electric-blue);
  margin-right: 8px;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

/* Add-on price label */
.addon-price {
  margin-top: var(--s4);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--electric-blue);
}

.addon-price span {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-inverse);
  text-align: center;
  padding: var(--s20) var(--s6);
  border-radius: var(--radius-2xl);
}

.cta-band h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--s4);
}

.cta-band p {
  color: var(--color-primary-100);
  font-size: var(--text-lg);
  margin-bottom: var(--s8);
}

.cta-band .btn-primary {
  background: var(--electric-blue);
  color: #ffffff;
}

.cta-band .btn-primary:hover {
  background: var(--color-primary-700);
  color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--s20) 0 var(--s8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s12);
  margin-bottom: var(--s12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--s4);
}

.footer-description {
  color: var(--color-gray-400);
  line-height: 1.6;
}

.footer-column h4 {
  color: var(--color-text-inverse);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--s4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--s6);
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--s6);
}

.form-label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: var(--s2);
  color: rgba(255, 255, 255, 0.88);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--s3) var(--s4);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.form-select option {
  background: #0d1b2e;
  color: rgba(255, 255, 255, 0.9);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--electric-blue);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--s2);
}

.form-success {
  background: var(--color-success);
  color: var(--color-text-inverse);
  padding: var(--s4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--s6);
}

/* Honeypot field — visually hidden but accessible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s4); }
.mt-8 { margin-top: var(--s8); }
.mt-12 { margin-top: var(--s12); }
.mt-16 { margin-top: var(--s16); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--s4); }
.mb-8 { margin-bottom: var(--s8); }
.mb-12 { margin-bottom: var(--s12); }
.mb-16 { margin-bottom: var(--s16); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   STATISTICS BAND
   ============================================ */
.stats-band {
  background: linear-gradient(180deg, #080f1e 0%, #0a1628 100%);
  padding: var(--s16) 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.stats-band h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: var(--s12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-top: 2px solid var(--electric-blue);
  border-radius: var(--radius-xl);
  padding: var(--s8) var(--s6);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s4);
  color: var(--electric-blue);
}

.stat-card-number {
  font-family: var(--font-family-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--s2);
  background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* ============================================
   PLATFORM INTELLIGENCE SECTION
   ============================================ */
.platform-section {
  background: #0a1628;
  padding: var(--s20) 0;
}

.platform-section .section-header {
  text-align: center;
  margin-bottom: var(--s16);
}

.platform-section .section-header h2 {
  color: #ffffff;
  font-size: var(--text-5xl);
}

.platform-section .section-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  margin-bottom: var(--s12);
}

.gauge-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--s8) var(--s6);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.gauge-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

.gauge-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--s4);
  border-radius: 50%;
  background: conic-gradient(
    var(--gauge-color, var(--electric-blue)) 0% calc(var(--pct, 0) * 1%),
    rgba(255, 255, 255, 0.06) calc(var(--pct, 0) * 1%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.gauge-ring::before {
  content: '';
  position: absolute;
  width: 88px;
  height: 88px;
  background: #0a1628;
  border-radius: 50%;
}

.gauge-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-family-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #ffffff;
}

.gauge-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--s1);
  letter-spacing: 0.02em;
}

.gauge-sublabel {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

.gauge-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--gauge-color, var(--electric-blue));
  opacity: 0;
  animation: gaugePulse 2.5s ease-out infinite;
}

@keyframes gaugePulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
}

.chart-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--s8);
}

.chart-panel h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--s6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Area Chart */
.area-chart-svg {
  width: 100%;
  height: 160px;
  overflow: visible;
}

.chart-line-path {
  fill: none;
  stroke: var(--electric-blue);
  stroke-width: 2.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-line-path.animated {
  stroke-dashoffset: 0;
}

.chart-area-path {
  fill: url(#areaGradient);
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.chart-area-path.animated {
  opacity: 1;
}

.chart-dot {
  fill: var(--electric-blue);
  filter: drop-shadow(0 0 4px var(--electric-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-dot.animated {
  opacity: 1;
}

/* Bar Chart */
.bar-rows {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.bar-row-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill-blue   { background: linear-gradient(90deg, var(--electric-blue), var(--sky-blue)); }
.bar-fill-cyan   { background: linear-gradient(90deg, var(--cyan), #22d3ee); }
.bar-fill-emerald { background: linear-gradient(90deg, var(--emerald), var(--lime)); }
.bar-fill-purple { background: linear-gradient(90deg, var(--purple), #a78bfa); }

.bar-row-pct {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.55);
  width: 36px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablets Landscape: 1024px */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-layout {
    gap: var(--s6);
  }

  .hero-brand-name {
    font-size: var(--text-5xl);
  }

  .hero-image-frame img {
    height: clamp(240px, 36vw, 420px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gauge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    grid-template-columns: 1fr;
  }
}

/* Tablets Portrait & Mobile: 768px - THE CRITICAL BREAKPOINT */
@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: unset;
    padding: var(--s16) 0 var(--s12);
  }

  .hero-layout {
    gap: var(--s6);
  }

  .hero-brand-name {
    font-size: var(--text-4xl);
  }

  .hero-logo-icon {
    width: 64px;
    height: 64px;
  }

  .hero-image-frame img {
    height: clamp(200px, 56vw, 360px);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }

  .split-section .split-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }

  .section {
    padding: var(--s12) 0;
  }

  .section-lg {
    padding: var(--s16) 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
  }

  .stat-card-number {
    font-size: var(--text-4xl);
  }

  .gauge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .platform-section .section-header h2 {
    font-size: var(--text-3xl);
  }

}

/* Small Phones: 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--s4);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: var(--text-3xl);
  }

  .card {
    padding: var(--s6);
  }

  .btn {
    padding: var(--s3) var(--s5);
  }

  .btn-lg {
    padding: var(--s3) var(--s6);
    font-size: var(--text-base);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gauge-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
  }

  .gauge-ring {
    width: 96px;
    height: 96px;
  }

  .gauge-ring::before {
    width: 70px;
    height: 70px;
  }
}

/* Focus Visible Polyfill */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-primary-300);
  outline-offset: 2px;
}

