/* ============================================
   SPX PLAYS — 2025 Modern SaaS Design
   Stunning. Bold. High-Converting.
   ============================================ */

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ========== VARIABLES ========== */
:root {
  /* Brand colors - SPX Plays Blue */
  --blue-primary: #0A58EB;
  --blue-bright: #3b82f6;
  --blue-light: #60a5fa;
  --blue-pale: #93c5fd;
  
  /* Primary */
  --primary: #0A58EB;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  
  /* Accent */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  
  /* Neutrals */
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  
  /* Dark backgrounds (for footer/final CTA) */
  --dark-bg: #020617;
  --dark-bg-elevated: #0f172a;
  --dark-text: #f8fafc;
  --dark-text-secondary: #94a3b8;
  --dark-text-muted: #64748b;
  --dark-border: rgba(255, 255, 255, 0.08);
  
  /* Status */
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.4);
  --amber: #f59e0b;
  --red: #ef4444;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Radius - 2025 generous curves */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-3xl: 48px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 60px rgba(10, 88, 235, 0.4);
  --shadow-glow-accent: 0 0 60px rgba(59, 130, 246, 0.3);
  
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(20px);
  
  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 200ms;
  --duration-md: 300ms;
  --duration-lg: 500ms;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 { 
  font-size: clamp(2.75rem, 8vw, 5.5rem); 
  font-weight: 800;
  line-height: 1;
}

h2 { 
  font-size: clamp(2rem, 5vw, 3.5rem); 
}

h3 { 
  font-size: 1.25rem; 
  letter-spacing: -0.02em;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  padding: var(--space-24) 0;
  position: relative;
}

/* ========== ANIMATED BACKGROUND ========== */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: blobFloat 20s ease-in-out infinite;
}

.gradient-blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.gradient-blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-light));
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

.gradient-blob-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -10px) scale(1.02); }
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: all var(--duration-lg) var(--ease);
}

/* White nav for non-hero pages */
.header:not(.on-hero) {
  background: white;
  border-bottom: 1px solid var(--border);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 28px;
}

/* Logo switching */
.logo .logo-light {
  display: none;
}

.logo .logo-dark {
  display: block;
}

.header.on-hero .logo .logo-light {
  display: block;
}

.header.on-hero .logo .logo-dark {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-bright));
  border-radius: var(--radius-full);
  transition: width var(--duration-md) var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.header.on-hero .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.header.on-hero .nav-link:hover {
  color: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-md) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-bright) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(10, 88, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 88, 235, 0.4);
}

/* Glow pulse animation for primary CTA */
.btn-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(10, 88, 235, 0.3); }
  50% { box-shadow: 0 4px 40px rgba(10, 88, 235, 0.6), 0 0 60px rgba(10, 88, 235, 0.3); }
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Non-hero and scrolled state buttons */
.header:not(.on-hero) .btn-outline,
.header.scrolled .btn-outline {
  color: var(--text);
  border-color: var(--border);
}

.header:not(.on-hero) .btn-outline:hover,
.header.scrolled .btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.header:not(.on-hero) .btn-white,
.header.scrolled .btn-white {
  background: var(--blue-primary);
  color: white;
}

.header:not(.on-hero) .btn-white:hover,
.header.scrolled .btn-white:hover {
  background: var(--primary-dark);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: 1rem;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
}

/* ========== MOBILE NAV ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration-md) var(--ease);
}

.header.on-hero .nav-toggle span {
  background: white;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-lg) var(--ease);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  padding: var(--space-16) var(--space-6);
  transition: right var(--duration-lg) var(--ease);
}

.mobile-nav.open { right: 0; }

.mobile-nav-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.mobile-nav-close:hover {
  background: var(--bg);
  color: var(--text);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-link {
  padding: var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}

.mobile-nav-link:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  background: var(--blue-primary);
}

/* Geometric shapes background */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-6);
}

.hero h1 .highlight {
  display: block;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-10);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
}

.stat {
  text-align: center;
  min-width: 100px;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Device mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  position: relative;
  animation: deviceFloat 6s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(5deg); }
  50% { transform: translateY(-15px) rotateY(-5deg) rotateX(5deg); }
}

.device-macbook {
  width: 500px;
  height: auto;
  background: #1a1a1a;
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: 
    0 50px 100px -20px rgba(0, 0, 0, 0.5),
    0 30px 60px -30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.device-screen {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.device-dot:nth-child(1) { background: #ef4444; }
.device-dot:nth-child(2) { background: #f59e0b; }
.device-dot:nth-child(3) { background: #22c55e; }

.device-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-alert {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
}

.device-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.device-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--green);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.device-alert-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
}

.device-alert-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.device-alert-thesis {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.device-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.device-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.device-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
}

.device-stat-value.green { color: var(--green); }

.device-stat-label {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ========== PROOF BAR ========== */
.proof-bar {
  background: var(--bg);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.proof-bar-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  min-width: max-content;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.proof-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.proof-item strong {
  color: var(--text);
}

/* ========== SECTIONS ========== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  color: var(--text);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ========== FEATURES ========== */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-lg) var(--ease);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-card.highlighted {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-bright) 100%);
  border-color: transparent;
}

.feature-card.highlighted h3,
.feature-card.highlighted p {
  color: white;
}

.feature-card.highlighted p {
  opacity: 0.85;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-md) var(--ease-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-card.highlighted .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

.feature-card.highlighted .feature-icon svg {
  color: white;
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== ALFRED ========== */
.alfred {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.alfred-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.alfred-text .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.alfred-text h2 {
  margin-bottom: var(--space-5);
}

.alfred-text > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.alfred-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.alfred-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-md) var(--ease);
}

.alfred-feature:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.alfred-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.alfred-feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.alfred-feature h4 {
  color: var(--text);
  margin-bottom: 2px;
}

.alfred-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Alfred Card */
.alfred-visual {
  display: flex;
  justify-content: center;
}

.alfred-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.alfred-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
}

.alfred-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alfred-logo svg {
  width: 26px;
  height: 26px;
  color: white;
}

.alfred-title h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 2px;
}

.alfred-title span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.alfred-title span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.alfred-card-body {
  padding: var(--space-5);
}

.prediction {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.prediction-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.prediction-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.prediction-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.prediction-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--space-3);
}

.prediction-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.prediction-bar-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--blue-primary) 0%, var(--green) 100%);
  border-radius: var(--radius-full);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.metric {
  background: var(--bg-elevated);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
}

.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.metric-value.green { color: var(--green); }
.metric-value.blue { color: var(--primary); }

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ========== FIT SECTION ========== */
.fit-section {
  background: var(--bg-elevated);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.fit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-md) var(--ease);
}

.fit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fit-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.fit-card.good h3 {
  color: var(--green);
}

.fit-card.bad h3 {
  color: var(--red);
}

.fit-card ul {
  list-style: none;
}

.fit-card li {
  position: relative;
  padding-left: var(--space-8);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fit-card.good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
}

.fit-card.bad li::before {
  content: '✗';
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
}

/* ========== PRICING ========== */
.pricing {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-bright) 50%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
}

/* Pricing decorative elements */
.pricing-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pricing-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.pricing-orb-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -100px;
}

.pricing-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -50px;
}

.pricing .section-header {
  position: relative;
  z-index: 1;
}

.pricing .section-header .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  background: none;
  -webkit-text-fill-color: unset;
}

.pricing .section-header h2 {
  color: white;
}

.pricing .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-3xl);
  padding: var(--space-10);
  position: relative;
  transform: none !important;
}

.pricing-card:hover {
  transform: none !important;
}

.pricing-card.featured {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--blue-primary);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(10, 88, 235, 0.3);
}

.pricing-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-price .amount {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: var(--space-2);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature.disabled svg {
  color: var(--text-muted);
  opacity: 0.3;
}

.pricing-feature.disabled span {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-card .btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-card .btn:hover {
  transform: none;
}

.pricing-note {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: var(--space-10);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-trial {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.pricing-trial a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.pricing-trial a:hover {
  color: var(--primary-dark);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--bg);
  overflow: hidden;
}

.testimonials-header .rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.testimonials-header .stars {
  color: var(--amber);
}

/* Testimonial carousel */
.testimonials-carousel {
  position: relative;
  overflow: visible;
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  animation: scrollTestimonials 30s linear infinite;
}

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

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-md) var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-stars {
  color: var(--amber);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== EDUCATION ========== */
.education {
  background: var(--bg-elevated);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.education-card {
  display: block;
  padding: var(--space-8);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  transition: all var(--duration-lg) var(--ease);
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.education-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  transition: transform var(--duration-md) var(--ease-bounce);
}

.education-card:hover .education-icon {
  transform: scale(1.1) rotate(-5deg);
}

.education-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.education-card h3 {
  color: var(--text);
  margin-bottom: var(--space-2);
}

.education-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.education-card {
  position: relative;
}

.card-arrow {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  transition: all var(--duration-md) var(--ease);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: all var(--duration-md) var(--ease);
}

.education-card:hover .card-arrow {
  background: var(--primary);
  transform: translateX(4px);
}

.education-card:hover .card-arrow svg {
  color: white;
}

/* ========== FAQ ========== */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-6) 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: color var(--duration) var(--ease);
}

.faq-question h3 {
  font-weight: 500;
  font-size: 1rem;
}

.faq-question:hover h3 {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform var(--duration-lg) var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-lg) var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: var(--space-6);
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-bright) 100%);
}

.cta-banner-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-10);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-banner-text h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.cta-banner-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cta-banner-action {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-banner-action {
    width: 100%;
    flex-direction: column;
  }
  
  .cta-banner-action .btn {
    width: 100%;
  }
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: var(--dark-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(10, 88, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: white;
  margin-bottom: var(--space-5);
}

.final-cta p {
  font-size: 1.125rem;
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Urgency badge */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  color: #f87171;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.urgency-badge svg {
  width: 16px;
  height: 16px;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: var(--space-16) 0 var(--space-8);
}

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

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

.footer-brand .logo {
  display: inline-block;
  margin-bottom: var(--space-5);
}

.footer-brand .logo img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  color: var(--dark-text-secondary);
  transition: all var(--duration) var(--ease);
}

.footer-social:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-text-muted);
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-3);
}

.footer-link a {
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-link a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--dark-border);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--dark-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-legal a:hover {
  color: var(--dark-text-secondary);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-lg) var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 600ms; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 700ms; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 800ms; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: var(--space-16) 0; }
  
  .nav, .nav-cta .btn { display: none; }
  .nav-cta { gap: var(--space-2); }
  .nav-toggle { display: flex; }
  
  .hero { min-height: auto; padding: 120px 0 var(--space-16); }
  .hero-stats { flex-wrap: wrap; gap: var(--space-6); }
  .hero-stats .stat { width: calc(50% - var(--space-3)); }
  
  
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .education-grid,
  .fit-grid,
  .alfred-features { grid-template-columns: 1fr; }
  
  .testimonial-card { width: 100%; }
  
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  h1 { font-size: 2.25rem; }
  
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  
  .stat-value { font-size: 2rem; }
  
  .proof-bar-inner { 
    justify-content: flex-start; 
    padding: 0 var(--space-4);
    gap: var(--space-6);
  }
  
}
