/* ==========================================================================
   LVL7 LEADGEN — Design System (2026 Standard)
   Combined: Reset, Typography, Layout, Components, Pages, Utilities
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Brand Core — Dark Sophisticated Base */
  --brand-900: #0a0e1a;
  --brand-800: #111827;
  --brand-700: #1a2338;
  --brand-600: #24304d;
  --brand-500: #314268;
  --brand-400: #4a5c7a;
  --brand-300: #6b7b8d;
  --brand-200: #9aa4b2;
  --brand-100: #c8ced6;
  --brand-50:  #e8ebef;

  /* Accent System — Purpose-Driven Colors */
  --electric: #00ff88;       /* Primary CTAs, success, live indicators */
  --electric-dim: rgba(0, 255, 136, 0.15);
  --electric-glow: rgba(0, 255, 136, 0.4);
  --violet: #a855f7;         /* Secondary, innovation, AI */
  --violet-dim: rgba(168, 85, 247, 0.15);
  --violet-glow: rgba(168, 85, 247, 0.3);
  --amber: #fbbf24;          /* Warnings, popular badges, warmth */
  --amber-dim: rgba(251, 191, 36, 0.15);
  --coral: #f97316;          /* Energy, urgency */
  --rose: #f43f5e;           /* Errors, destructive */
  --cyan: #06b6d4;           /* Info, calibration, trust */

  /* Semantic Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0a0e1a;
  --surface: #0f172a;
  --surface-elevated: #1e293b;
  --surface-hover: #2d3a4f;
  --border: #2d3a4f;
  --border-light: #3d4b63;
  --border-focus: var(--electric);

  /* Status */
  --success: var(--electric);
  --warning: var(--amber);
  --error: var(--rose);
  --info: var(--cyan);

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 800px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows — Layered Depth */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px var(--electric-glow);
  --shadow-glow-violet: 0 0 40px var(--violet-glow);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.2);

  /* Transitions — Natural Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Typography Scale — Fluid */
  --fs-display: clamp(3.5rem, 8vw, 6.5rem);
  --fs-h1: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h4: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-xs2: 0.6875rem;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--brand-900);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--electric-dim);
  color: var(--text-inverse);
}

::placeholder { color: var(--brand-400); }

/* ==========================================================================
   Layout Primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

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

.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section--sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--lg { padding: clamp(7rem, 12vw, 10rem) 0; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, .h1, .display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-family: 'Space Grotesk', sans-serif; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-family: 'Space Grotesk', sans-serif; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; font-family: 'Space Grotesk', sans-serif; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; font-family: 'Space Grotesk', sans-serif; }

.lead { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.7; max-width: 65ch; }
.body { font-size: var(--fs-base); color: var(--text-secondary); line-height: 1.7; }
.small { font-size: var(--fs-sm); color: var(--text-muted); }
.micro { font-size: var(--fs-xs); color: var(--text-muted); }
.micro-strong { font-size: var(--fs-xs2); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-xs2);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--electric);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: var(--shadow-glow);
}
.eyebrow--violet { color: var(--violet); }
.eyebrow--violet::before { background: var(--violet); box-shadow: var(--shadow-glow-violet); }
.eyebrow--amber { color: var(--amber); }
.eyebrow--amber::before { background: var(--amber); box-shadow: 0 0 12px rgba(251,191,36,0.4); }
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--cyan::before { background: var(--cyan); box-shadow: 0 0 12px rgba(6,182,212,0.4); }

.gradient-text {
  background: linear-gradient(135deg, var(--electric) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(135deg, var(--electric), #00d472);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px var(--electric-glow);
}
.btn--primary:hover {
  box-shadow: 0 8px 30px var(--electric-glow);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  background: var(--brand-700);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--electric);
  color: var(--electric);
  box-shadow: 0 0 20px var(--electric-dim);
}

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

.btn--violet {
  background: linear-gradient(135deg, var(--violet), #c084fc);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px var(--violet-glow);
}
.btn--violet:hover { box-shadow: 0 8px 30px var(--violet-glow); transform: translateY(-2px); }

.btn--amber {
  background: linear-gradient(135deg, var(--amber), #fcd34d);
  color: var(--text-inverse);
}
.btn--amber:hover { transform: translateY(-2px); }

.btn--cyan {
  background: linear-gradient(135deg, var(--cyan), #22d3ee);
  color: var(--text-inverse);
}
.btn--cyan:hover { transform: translateY(-2px); }

.btn--sm { padding: 0.75rem 1.5rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.25rem 2.5rem; font-size: var(--fs-base); }
.btn--full { width: 100%; }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--duration-base); }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-spring);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.card:hover::before { transform: scaleX(1); }

.card--elevated { background: var(--surface-elevated); border-color: var(--border-light); }

.card--interactive { cursor: pointer; }

.card--featured {
  border-color: var(--electric);
  box-shadow: 0 0 0 1px var(--electric-dim), var(--shadow-lg);
}
.card--featured::before { transform: scaleX(1); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--brand-400); }
.form-input:hover,
.form-select:hover { border-color: var(--border-light); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px var(--electric-dim);
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}
.form-textarea { min-height: 140px; resize: vertical; }

.form-error { color: var(--error); font-size: var(--fs-xs); margin-top: 0.375rem; display: none; }
.form-input[aria-invalid="true"] { border-color: var(--error); }
.form-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(244,63,94,0.2); }
.form-input[aria-invalid="true"] + .form-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-input {
  width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--electric); cursor: pointer;
}
.checkbox-label { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.5; }
.checkbox-label a { color: var(--electric); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-label a:hover { color: var(--text-primary); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--duration-base);
}
.header--scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--electric), var(--violet));
  color: var(--text-inverse);
  font-weight: 900;
  font-size: var(--fs-base);
  flex-shrink: 0;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; }
.logo-accent { color: var(--electric); }

.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
  background: var(--surface);
}
.nav-link[aria-current="page"] { color: var(--electric); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
  }
  .nav--open { transform: translateX(0); }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-link { width: 100%; justify-content: center; padding: 1rem; font-size: var(--fs-lg); }
  .nav-cta { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, var(--electric-dim) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 70%, var(--violet-dim) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(168,85,247,0.08) 0%, transparent 40%),
    var(--brand-900);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,255,136,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(168,85,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift { 0% { transform: translate(0,0); } 100% { transform: translate(60px,80px); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.hero-title { margin-bottom: 1.5rem; max-width: 90%; }
.hero-title .line { display: block; animation: slide-up 0.8s var(--ease-out) backwards; }
.hero-title .line:nth-child(2) { animation-delay: 0.15s; }
.hero-title .line:nth-child(3) { animation-delay: 0.3s; }
@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 55ch;
  margin-bottom: 2rem;
  animation: slide-up 0.8s var(--ease-out) 0.4s backwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
  animation: slide-up 0.8s var(--ease-out) 0.5s backwards;
}
.hero-trust {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  animation: slide-up 0.8s var(--ease-out) 0.6s backwards;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 500; }
.trust-item strong { color: var(--text-primary); font-weight: 700; }
.trust-divider { width: 1px; height: 24px; background: var(--border); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.hero-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--electric) 0 15%, transparent 18%),
    radial-gradient(circle at 70% 70%, var(--violet) 0 18%, transparent 22%),
    radial-gradient(circle at 50% 50%, var(--cyan) 0 8%, transparent 12%),
    conic-gradient(from 0deg at 50% 50%, transparent 0 120deg, var(--electric-dim) 180deg, transparent 240deg);
  animation: orb-rotate 20s linear infinite, orb-pulse 4s ease-in-out infinite;
  filter: blur(1px);
}
@keyframes orb-rotate { to { transform: rotate(360deg); } }
@keyframes orb-pulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 0.8; } }
.hero-orb::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid rgba(0,255,136,0.3);
  animation: ring-pulse 3s ease-out infinite;
}
@keyframes ring-pulse { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0; } }

.hero-metrics {
  position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 2.5rem;
  box-shadow: var(--shadow-xl); z-index: 2;
}
.metric { text-align: center; }
.metric-value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--electric); line-height: 1.1; }
.metric-label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; max-width: 360px; }
  .hero-title { max-width: 100%; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-metrics { position: static; transform: none; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { max-width: 800px; margin: 0 auto 1rem; }
.section-header .lead { margin: 0 auto; }
.section-header--left .lead, .section-header--left h2 { margin-left: 0; margin-right: auto; text-align: left; }
.section-header--center h2, .section-header--center .lead { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Services / Features
   ========================================================================== */

.service-card { position: relative; padding: 2.5rem; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--electric-dim); color: var(--electric);
  margin-bottom: 1.5rem; transition: all var(--duration-base);
}
.service-card:hover .service-icon {
  background: var(--electric); color: var(--text-inverse);
  transform: scale(1.1) rotate(3deg); box-shadow: var(--shadow-glow);
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.service-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--electric); }
.service-link:hover { gap: 0.75rem; }

/* ==========================================================================
   Lead Calculator (Interactive)
   ========================================================================== */

.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 600px;
  margin: 0 auto;
}
.calculator-header { text-align: center; margin-bottom: 2rem; }
.calculator-header .eyebrow { justify-content: center; }
.calculator-header h3 { margin-bottom: 0.5rem; }
.calculator-header p { color: var(--text-muted); }

.calculator-fields { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.calculator-field { display: grid; gap: 0.5rem; }
.calculator-field label { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); font-weight: 600; }
.calculator-field .value { color: var(--electric); font-variant-numeric: tabular-nums; }

.calculator-slider {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px; background: var(--brand-700); outline: none;
}
.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--electric); cursor: pointer;
  box-shadow: var(--shadow-glow); transition: transform var(--duration-fast);
}
.calculator-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calculator-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--electric); border: none; cursor: pointer; }

.calculator-result {
  background: var(--brand-800);
  border: 1px solid var(--electric);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.result-row:last-child { border-bottom: none; font-size: var(--fs-lg); font-weight: 700; color: var(--electric); }
.result-label { color: var(--text-secondary); }
.result-value { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.result-value--highlight { color: var(--electric); font-size: var(--fs-h3); }

/* ==========================================================================
   Niche Selector Tabs (Interactive)
   ========================================================================== */

.niche-selector { max-width: 900px; margin: 0 auto; }
.niche-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: 2rem;
}
.niche-tab {
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
}
.niche-tab:hover { color: var(--text-primary); border-color: var(--border-light); }
.niche-tab.active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--electric), #00d472);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.niche-content { display: none; animation: fade-in 0.3s var(--ease-out); }
.niche-content.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.niche-card { text-align: center; padding: 2rem; }
.niche-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; color: var(--electric); }
.niche-card h3 { margin-bottom: 0.75rem; }
.niche-card p { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 300px; margin-left: auto; margin-right: auto; }
.niche-meta { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.niche-meta-item { display: flex; align-items: center; gap: 0.375rem; font-size: var(--fs-xs); color: var(--text-muted); }
.niche-meta-item strong { color: var(--text-primary); }

/* ==========================================================================
   Case Studies / Results
   ========================================================================== */

.case-study {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.case-study:nth-child(even) { direction: rtl; }
.case-study:nth-child(even) > * { direction: ltr; }
.case-study-visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden; position: relative;
}
.case-study-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow); }
.case-study:hover .case-study-visual img { transform: scale(1.05); }
.case-study-badge {
  position: absolute; top: 1.5rem; left: 1.5rem;
  padding: 0.5rem 1rem; font-size: var(--fs-xs2); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--electric); color: var(--text-inverse); border-radius: var(--radius-full);
}
.case-study-content { display: flex; flex-direction: column; justify-content: center; }
.case-study-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.case-study-tag { padding: 0.375rem 0.875rem; font-size: var(--fs-xs2); font-weight: 600; background: var(--electric-dim); color: var(--electric); border-radius: var(--radius-full); }
.case-study h3 { margin-bottom: 1rem; }
.case-study p { color: var(--text-secondary); margin-bottom: 2rem; }
.case-study-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-metric { text-align: center; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.case-metric-value { font-size: var(--fs-h3); font-weight: 800; color: var(--electric); line-height: 1.1; }
.case-metric-label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .case-study { grid-template-columns: 1fr; gap: 2rem; }
  .case-study:nth-child(even) { direction: ltr; }
  .case-study-visual { aspect-ratio: 16/9; }
  .case-study-metrics { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process Steps
   ========================================================================== */

.process-track { position: relative; max-width: 900px; margin: 0 auto; }
.process-track::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: linear-gradient(180deg, var(--electric), var(--violet), var(--cyan));
  transform: translateX(-50%);
}
.process-step {
  position: relative; display: flex; gap: 3rem; margin-bottom: 4rem;
}
.process-step:last-child { margin-bottom: 0; }
.process-step:nth-child(odd) { flex-direction: row; }
.process-step:nth-child(even) { flex-direction: row-reverse; }
.process-step-content { flex: 1; max-width: 450px; z-index: 1; }
.process-step:nth-child(odd) .process-step-content { text-align: right; padding-right: 2rem; }
.process-step:nth-child(even) .process-step-content { text-align: left; padding-left: 2rem; }
.process-step-number {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--brand-900); border: 3px solid var(--electric);
  border-radius: 50%; font-size: var(--fs-h3); font-weight: 800; color: var(--electric);
  z-index: 2; box-shadow: var(--shadow-glow);
}
.process-step h3 { margin-bottom: 0.75rem; }
.process-step p { color: var(--text-secondary); }
.process-step-visual { flex: 1; max-width: 450px; }
.process-step-visual img { border-radius: var(--radius-lg); border: 1px solid var(--border); }

@media (max-width: 900px) {
  .process-track::before { left: 40px; }
  .process-step { flex-direction: column !important; align-items: flex-start; gap: 1.5rem; padding-left: 80px; }
  .process-step:nth-child(odd) .process-step-content,
  .process-step:nth-child(even) .process-step-content { text-align: left; padding: 0; max-width: none; }
  .process-step-number { left: 8px; transform: none; }
  .process-step-visual { max-width: 100%; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; position: relative;
}
.testimonial::before {
  content: '"'; position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 6rem; font-weight: 700; color: var(--electric); opacity: 0.15;
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-text { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--violet));
  display: grid; place-items: center; color: var(--text-inverse);
  font-weight: 800; font-size: var(--fs-lg); flex-shrink: 0;
}
.testimonial-name { font-weight: 700; }
.testimonial-role { font-size: var(--fs-sm); color: var(--text-muted); }
.testimonial-company { font-size: var(--fs-xs); color: var(--electric); font-weight: 600; }

/* ==========================================================================
   Pricing Tables
   ========================================================================== */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  display: flex; flex-direction: column; transition: all var(--duration-base);
  position: relative;
}
.pricing-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card--popular {
  border-color: var(--electric);
  box-shadow: 0 0 0 1px var(--electric-dim), var(--shadow-lg);
}
.pricing-card--popular::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 0.375rem 1rem; font-size: var(--fs-xs2); font-weight: 800; letter-spacing: 0.08em;
  background: var(--electric); color: var(--text-inverse); border-radius: var(--radius-full);
}
.pricing-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pricing-name { font-size: var(--fs-h4); font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: var(--electric); line-height: 1; margin-bottom: 0.25rem; }
.pricing-period { color: var(--text-muted); font-size: var(--fs-sm); }
.pricing-description { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 1rem; text-align: center; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 2rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0;
  color: var(--text-secondary); border-bottom: 1px solid var(--border); font-size: var(--fs-sm);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--electric); margin-top: 2px; }
.pricing-cta { width: 100%; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 0.75rem; background: var(--surface);
  transition: all var(--duration-base);
}
.faq-item:hover { border-color: var(--border-light); }
.faq-item[open] { border-color: var(--electric); box-shadow: var(--shadow-glow); }
.faq-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; cursor: pointer; font-size: var(--fs-base); font-weight: 600; color: var(--text-primary);
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon { width: 24px; height: 24px; color: var(--electric); flex-shrink: 0; transition: transform var(--duration-base); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-content { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.7; animation: fade-in 0.3s ease-out; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--brand-900); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 320px; }
.footer-logo { margin-bottom: 1rem; }
.footer-tagline { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-md); background: var(--surface);
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all var(--duration-fast);
}
.footer-social a:hover { border-color: var(--electric); color: var(--electric); transform: translateY(-2px); }
.footer-heading { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: var(--fs-sm); transition: color var(--duration-fast); }
.footer-links a:hover { color: var(--electric); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.footer-copyright { color: var(--text-muted); font-size: var(--fs-sm); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { color: var(--text-muted); font-size: var(--fs-sm); transition: color var(--duration-fast); }
.footer-legal a:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* ==========================================================================
   Page Headers
   ========================================================================== */

.page-header {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--electric-dim) 0%, transparent 60%),
    var(--brand-900);
}
.page-header .eyebrow { justify-content: center; margin-bottom: 1rem; }
.page-header h1 { max-width: 800px; margin: 0 auto 1.5rem; }
.page-header .lead { margin: 0 auto; max-width: 600px; }

/* ==========================================================================
   Blog / Articles
   ========================================================================== */

.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--duration-base);
}
.article-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.article-image { aspect-ratio: 16/9; background: var(--brand-800); overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow); }
.article-card:hover .article-image img { transform: scale(1.05); }
.article-content { padding: 1.5rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; font-size: var(--fs-xs); color: var(--text-muted); }
.article-category { color: var(--electric); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.article-title { font-size: var(--fs-h4); margin-bottom: 0.75rem; }
.article-excerpt { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: 1rem; }
.article-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--electric); }
.article-link:hover { gap: 0.75rem; }

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden, .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;
}

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

.flex-shrink-0 { flex-shrink: 0; }

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .header, .footer, .btn, .calculator, .niche-tabs { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
  .card, .case-study-visual { break-inside: avoid; }
}

/* ==========================================================================
   Toast Notifications (injected by JS)
   ========================================================================== */

.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xl); animation: slide-in-right 0.3s var(--ease-out); max-width: 400px; }
.toast--success { border-color: var(--success); }
.toast--error { border-color: var(--error); }
.toast-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--electric); }
.toast--success .toast-icon { color: var(--success); }
.toast--error .toast-icon { color: var(--error); }
.toast-message { flex: 1; font-size: var(--fs-sm); color: var(--text-primary); }
.toast-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0; opacity: 0.6; transition: opacity var(--duration-fast); }
.toast-close:hover { opacity: 1; }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-out-right { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
