/* ============================================
   EXAMZEN — Design System
   ============================================ */

:root {
  /* Brand colors */
  --brand-primary: #4f46e5;        /* Indigo */
  --brand-primary-dark: #3730a3;
  --brand-primary-light: #818cf8;
  --brand-accent: #f97316;         /* Saffron orange */
  --brand-accent-dark: #ea580c;
  --brand-gold: #f59e0b;

  /* Semantic */
  --success: #10b981;
  --danger:  #ef4444;
  --warning: #f59e0b;
  --info:    #3b82f6;

  /* Light theme (default) */
  --bg-base:     #fafafa;
  --bg-surface:  #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted:    #f4f4f5;
  --bg-inverse:  #0f172a;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;

  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 50px -12px rgb(79 70 229 / 0.25);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Spacing scale (8px grid) */
  --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;

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

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration: 250ms;
  --duration-slow: 400ms;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-base:     #0a0a0f;
  --bg-surface:  #13131a;
  --bg-elevated: #1c1c26;
  --bg-muted:    #1f1f2b;
  --bg-inverse:  #fafafa;

  --text-primary:   #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted:     #64748b;
  --text-inverse:   #0f172a;

  --border:        #2a2a3a;
  --border-strong: #3f3f55;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 50px -12px rgb(0 0 0 / 0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--brand-primary); color: white; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

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

.section {
  padding: var(--space-20) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--space-12) 0; }
}

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-base) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 0.625rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.nav-links { display: flex; gap: var(--space-6); align-items: center; }
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all var(--duration-fast);
}
.theme-toggle:hover { background: var(--bg-muted); transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-menu-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn:not(.mobile-cta) { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-actions .mobile-cta { display: inline-flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 1px 2px 0 rgb(79 70 229 / 0.2);
}
.btn-primary:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}
.btn-accent {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
  color: white;
  box-shadow: 0 1px 2px 0 rgb(249 115 22 / 0.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 25px -5px rgb(249 115 22 / 0.4); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text-primary); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-16);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(79, 70, 229, 0.12), transparent 70%),
    radial-gradient(50% 50% at 80% 30%, rgba(249, 115, 22, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .highlight {
  position: relative;
  display: inline-block;
}
.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 14px;
  background: var(--brand-accent);
  opacity: 0.3;
  z-index: -1;
  border-radius: 4px;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-8);
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero visual — mock test card */
.hero-visual {
  position: relative;
  perspective: 1000px;
}
.mock-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease-out);
}
.mock-card:hover { transform: rotate(0deg) scale(1.02); }
.mock-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.mock-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; }
.mock-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.mock-card-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-q {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.mock-options { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.mock-option {
  padding: 10px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex; align-items: center; gap: var(--space-3);
  transition: all var(--duration-fast);
}
.mock-option .key {
  width: 24px; height: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 600;
}
.mock-option.correct {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
  font-weight: 500;
}
.mock-option.correct .key { background: var(--success); color: white; border-color: var(--success); }

.mock-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.mock-footer .timer {
  display: flex; align-items: center; gap: 6px;
  color: var(--danger);
  font-weight: 600;
}

.floating-card {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 500;
}
.float-1 { top: -8%; right: -18%; transform: rotate(4deg); }
.float-2 { bottom: -6%; left: -14%; transform: rotate(-3deg); }
@media (max-width: 900px) { .float-1, .float-2 { display: none; } }
.floating-card .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
}
.float-1 .icon { background: rgba(79, 70, 229, 0.1); color: var(--brand-primary); }
.float-2 .icon { background: rgba(249, 115, 22, 0.1); color: var(--brand-accent); }

/* ============================================
   EXAM CARDS
   ============================================ */
.exam-card {
  position: relative;
  display: block;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.exam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-gradient, linear-gradient(135deg, var(--brand-primary), var(--brand-accent)));
  opacity: 0;
  transition: opacity var(--duration);
  z-index: 0;
}
.exam-card > * { position: relative; z-index: 1; }
.exam-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-xl);
}
.exam-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--bg-muted);
  margin-bottom: var(--space-4);
  transition: all var(--duration);
}
.exam-card:hover .exam-card-icon {
  background: var(--brand-primary);
  color: white;
}
.exam-card-icon svg { width: 24px; height: 24px; }
.exam-card h3 { margin-bottom: var(--space-2); }
.exam-card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-4); }
.exam-card-meta {
  display: flex; align-items: center; gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.exam-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}
.feature-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(249, 115, 22, 0.1));
  color: var(--brand-primary);
  margin-bottom: var(--space-4);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.feature-card p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.step h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.step p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
  position: relative;
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--duration);
}
.pricing-card.featured {
  border-color: var(--brand-primary);
  border-width: 2px;
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}
.pricing-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.pricing-name { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  margin: var(--space-3) 0;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-amount small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-6); }
.pricing-features { text-align: left; list-style: none; margin-bottom: var(--space-6); }
.pricing-features li {
  padding: var(--space-2) 0;
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.0625rem; font-weight: 600;
  text-align: left;
  padding: 0;
  color: var(--text-primary);
}
.faq-q .icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid; place-items: center;
  transition: transform var(--duration) var(--ease-out);
  flex-shrink: 0;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--brand-primary); color: white; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease-out);
  color: var(--text-secondary);
}
.faq-item.open .faq-a { max-height: 400px; padding-top: var(--space-4); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: var(--space-16) var(--space-8);
  background: linear-gradient(135deg, var(--brand-primary) 0%, #6d28d9 50%, var(--brand-accent) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  color: white;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1), transparent 50%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: var(--space-3); }
.cta-banner p { font-size: 1.0625rem; opacity: 0.9; max-width: 600px; margin: 0 auto var(--space-6); }
.cta-banner .btn-primary { background: white; color: var(--brand-primary); }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,0.9); }
.cta-banner .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: var(--space-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--space-4); font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: var(--text-secondary); font-size: 0.9375rem; transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--brand-primary); }
.footer-about { font-size: 0.9375rem; color: var(--text-secondary); margin: var(--space-3) 0 var(--space-4); max-width: 320px; }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid; place-items: center;
  transition: all var(--duration-fast);
}
.footer-social a:hover { background: var(--brand-primary); color: white; transform: translateY(-2px); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-3);
  font-size: 0.875rem; color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s var(--ease-out) backwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}
.floating-card.float-1 { animation: float 4s ease-in-out infinite; }
.floating-card.float-2 { animation: floatReverse 5s ease-in-out infinite; }

/* ============================================
   UTILITIES
   ============================================ */
.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;
}
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

/* ============================================
   AUTH-AWARE NAV (user chip)
   ============================================ */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-muted);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease-out);
  border: 1px solid transparent;
}
.user-chip:hover { background: var(--bg-elevated); border-color: var(--border); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.user-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .user-name { display: none; }
  .user-chip { padding: 2px; }
}
