/* ============================================================
   X4 Digital — SaaS Landing Page Styles
   Build: x4-913544
   Fonts: Space Grotesk (display) + DM Sans (body)
   Theme: Dark Navy / Violet-Purple
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Palette */
  --color-primary:        #7C5CFC;
  --color-primary-hover:  #6B4DEA;
  --color-primary-glow:   rgba(124, 92, 252, 0.35);
  --color-accent:         #A78BFA;
  --color-accent-dim:     rgba(167, 139, 250, 0.15);

  /* Backgrounds */
  --color-bg:             #0A0A1F;
  --color-surface:        #12122A;
  --color-surface-2:      #18183A;
  --color-surface-3:      #1E1E3A;
  --color-border:         #1E1E3A;
  --color-border-subtle:  #2A2A4A;

  /* Text */
  --color-text:           #E8E8ED;
  --color-text-secondary: #9090B0;
  --color-text-muted:     #5A5A80;
  --color-text-on-primary:#FFFFFF;

  /* Feedback */
  --color-success:        #34D399;
  --color-danger:         #F87171;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.5rem;     /* 40px */
  --text-5xl:  3.5rem;     /* 56px */
  --text-6xl:  4.5rem;     /* 72px */
  --text-7xl:  6rem;       /* 96px */

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

  /* Layout */
  --container-max:  1200px;
  --container-wide: 1400px;
  --container-narrow: 720px;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 40px var(--color-primary-glow);
  --shadow-glow-sm: 0 0 20px rgba(124, 92, 252, 0.2);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.loaded { opacity: 1; }

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

ul, ol { list-style: none; }

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

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

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

.section {
  padding: var(--space-24) 0;
}
.section-sm {
  padding: var(--space-16) 0;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.25rem, 5vw, var(--text-6xl)); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, var(--text-2xl));  font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

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

.text-accent { color: var(--color-primary); }
.text-lavender { color: var(--color-accent); }

/* Eyebrow / Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}

/* Section header */
.section-header {
  margin-bottom: var(--space-16);
}
.section-header.centered {
  text-align: center;
}
.section-header.centered p {
  margin: var(--space-4) auto 0;
}
.section-header h2 {
  margin-top: var(--space-3);
}
.section-header p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px var(--color-primary-glow);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-primary-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-subtle);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.btn-text {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
  padding: 0.875rem 0;
  gap: var(--space-2);
}
.btn-text svg { transition: transform var(--transition-base); }
.btn-text:hover { color: var(--color-primary); }
.btn-text:hover svg { transform: translateX(4px); }

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
  min-height: 56px;
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  min-height: 38px;
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--color-surface-2);
  color: var(--color-accent);
  border: 1px solid var(--color-border-subtle);
}
.badge-primary {
  background: rgba(124, 92, 252, 0.12);
  color: var(--color-primary);
  border-color: rgba(124, 92, 252, 0.25);
}
.badge-featured {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 10, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-slow), background var(--transition-slow);
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(10, 10, 31, 0.96);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-logo-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-sm);
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-cta {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  min-height: 38px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 61px;
  background: var(--color-bg);
  z-index: 190;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile .nav-mobile-cta {
  margin-top: var(--space-4);
  width: 100%;
}

/* ── HERO ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
}

/* Dot-grid noise background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(124, 92, 252, 0.06) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Ambient purple orb */
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.25);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}
.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero h1 .hero-highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-8);
}
.hero-sub p { max-width: unset; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-avatars {
  display: flex;
}
.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  background: var(--color-surface-2);
  overflow: hidden;
  margin-left: -8px;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-surface-2);
}

/* Hero Visual - product mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
}
.hero-mockup-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.2) 0%, transparent 65%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-mockup {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6),
              0 0 0 1px rgba(124, 92, 252, 0.1),
              var(--shadow-glow);
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--color-surface);
}
.hero-mockup img {
  width: 100%;
  display: block;
}

/* Floating chat UI mockup (coded illustration) */
.hero-chat-ui {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.chat-ui-header {
  background: var(--color-surface-2);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.chat-ui-dots {
  display: flex;
  gap: 6px;
}
.chat-ui-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chat-ui-dot:nth-child(1) { background: #FF5F57; }
.chat-ui-dot:nth-child(2) { background: #FEBC2E; }
.chat-ui-dot:nth-child(3) { background: #28C840; }
.chat-ui-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-left: auto;
}
.chat-ui-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
}
.chat-msg {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}
.chat-avatar.ai-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
}
.chat-avatar.user-avatar {
  background: var(--color-surface-3);
  color: var(--color-text-secondary);
}
.chat-bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 75%;
}
.chat-msg.ai .chat-bubble {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
}
.chat-msg.user .chat-bubble {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg);
}
.chat-progress-wrap {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
}
.chat-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.chat-progress-bar {
  height: 4px;
  background: var(--color-surface-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.chat-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  animation: progressFill 2s ease-out forwards;
}
@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}
.chat-success-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.1);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0;
}
.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 160px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
}
.stat-number span.accent { color: var(--color-primary); }
.stat-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  background: var(--color-bg);
  position: relative;
}
.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.steps-horizontal {
  display: flex;
  gap: var(--space-4);
  position: relative;
  align-items: flex-start;
}
.steps-connector {
  position: absolute;
  top: 28px;
  left: calc(100% / 6 + 20px);
  right: calc(100% / 6 + 20px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-border) 0,
    var(--color-border) 6px,
    transparent 6px,
    transparent 14px
  );
}
.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.step-num-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(124, 92, 252, 0.06);
  position: relative;
  z-index: 1;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.step-item:hover .step-num-circle {
  background: rgba(124, 92, 252, 0.12);
  box-shadow: var(--shadow-glow-sm);
}
.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.step-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 220px;
  margin: 0 auto var(--space-3);
}
.step-time {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* ── FEATURES BENTO GRID ── */
.features-section {
  background: var(--color-surface);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-4);
}
.bento-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  overflow: hidden;
  position: relative;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: var(--shadow-card);
}
.bento-card.span-2 {
  grid-column: span 2;
}
.bento-card.span-row {
  grid-row: span 2;
}
.bento-card.featured {
  background: linear-gradient(135deg, #1A0E3D 0%, #12122A 100%);
  border-color: rgba(124, 92, 252, 0.4);
}
.bento-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
.bento-card.with-image {
  padding: 0;
  overflow: hidden;
}
.bento-card.with-image .bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bento-card.with-image:hover .bento-img {
  transform: scale(1.03);
}
.bento-card.with-image .bento-img.loaded { opacity: 1; }
.bento-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(transparent, rgba(10, 10, 31, 0.85));
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}
.bento-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.bento-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: unset;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-4);
}
.bento-tag svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── DASHBOARD PREVIEW ── */
.dashboard-section {
  background: var(--color-bg);
  overflow: hidden;
  position: relative;
}
.dashboard-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 92, 252, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.dashboard-label {
  text-align: center;
  margin-bottom: var(--space-16);
}
.dashboard-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.dashboard-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}
.dashboard-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), var(--shadow-glow);
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 0.6s ease;
}
.dashboard-img-wrap:hover {
  transform: perspective(1200px) rotateX(1deg);
}
.dashboard-img-wrap img {
  width: 100%;
  display: block;
}

/* Dashboard coded placeholder */
.dashboard-ui {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), var(--shadow-glow);
  transform: perspective(1200px) rotateX(4deg);
}
.dashboard-ui-header {
  background: var(--color-surface-2);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.dashboard-ui-nav {
  display: flex;
  gap: var(--space-6);
}
.dashboard-ui-nav span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-bottom: 2px;
}
.dashboard-ui-nav span.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-primary);
}
.dashboard-ui-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 300px;
}
.dashboard-sidebar {
  background: var(--color-surface-2);
  padding: var(--space-6);
  border-right: 1px solid var(--color-border);
}
.dashboard-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.dashboard-sidebar-item.active,
.dashboard-sidebar-item:hover {
  background: rgba(124, 92, 252, 0.1);
  color: var(--color-accent);
}
.dashboard-sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-subtle);
  flex-shrink: 0;
}
.dashboard-sidebar-item.active .dashboard-sidebar-dot {
  background: var(--color-primary);
}
.dashboard-preview-area {
  padding: var(--space-6);
  background: var(--color-surface);
}
.dashboard-preview-header {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.dashboard-preview-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ── COMPARISON TABLE ── */
.comparison-section {
  background: var(--color-surface);
}
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comparison-table thead tr {
  background: var(--color-surface-2);
}
.comparison-table th {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.01em;
}
.comparison-table th.col-x4 {
  background: rgba(124, 92, 252, 0.06);
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  color: var(--color-accent);
}
.comparison-table th.col-x4 .th-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.comparison-table tbody tr {
  transition: background var(--transition-fast);
}
.comparison-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}
.comparison-table tbody tr:hover {
  background: rgba(124, 92, 252, 0.04);
}
.comparison-table td {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table td.col-x4 {
  background: rgba(124, 92, 252, 0.04);
  border-left: 2px solid rgba(124, 92, 252, 0.2);
  border-right: 2px solid rgba(124, 92, 252, 0.2);
  color: var(--color-text);
  font-weight: 600;
}
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}
.check-icon { color: var(--color-success); font-weight: 700; }
.x-icon { color: var(--color-danger); }

/* ── PRICING ── */
.pricing-section {
  background: var(--color-bg);
  position: relative;
}
.pricing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0, rgba(124, 92, 252, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.pricing-toggle-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}
.pricing-toggle-label.active {
  color: var(--color-text);
}
.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-subtle);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-base);
}
.toggle-switch.on { background: var(--color-primary); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition-base);
}
.toggle-switch.on .toggle-knob { transform: translateX(22px); }
.pricing-annual-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.1);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  align-items: start;
  position: relative;
  z-index: 1;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.pricing-card:hover {
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-glow);
  background: linear-gradient(160deg, #120D2A 0%, var(--color-surface) 60%);
  transform: scale(1.04);
  position: relative;
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-2px); }
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.pricing-card.featured .pricing-tier { color: var(--color-accent); }
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-price .price-dollar {
  font-size: var(--text-xl);
  font-weight: 600;
  vertical-align: super;
  color: var(--color-text-secondary);
}
.pricing-price .price-period {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.pricing-feature-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-success);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.pricing-feature-item.na {
  color: var(--color-text-muted);
  opacity: 0.5;
}
.pricing-feature-item.na svg { stroke: var(--color-text-muted); }

.activation-offer-wrap {
  background: linear-gradient(135deg, rgba(124,92,252,0.08) 0%, rgba(167,139,250,0.04) 100%);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-12);
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}
.activation-offer-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
.activation-offer-drama {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-4);
}
.activation-offer-sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.activation-offer-fine {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--color-surface);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.testimonial-card:hover {
  border-color: rgba(124, 92, 252, 0.25);
  box-shadow: var(--shadow-card);
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
}
.testimonial-star {
  width: 16px;
  height: 16px;
}
.testimonial-star svg {
  width: 100%;
  height: 100%;
  fill: #FBBF24;
  stroke: #FBBF24;
  stroke-width: 1;
}
.testimonial-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}
.testimonial-quote {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-6);
  max-width: unset;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-3);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-accent);
}
.testimonial-author-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.testimonial-author-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── FAQ ── */
.faq-section {
  background: var(--color-bg);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}
.faq-item:hover,
.faq-item.open {
  border-color: rgba(124, 92, 252, 0.3);
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition-fast);
}
.faq-item.open .faq-trigger { color: var(--color-accent); }
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base), color var(--transition-base);
}
.faq-chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item.open .faq-body {
  max-height: 400px;
}
.faq-body-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: unset;
}
.faq-body-inner a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-24) 0;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 31, 0.72);
}
/* Coded fallback if no image */
.cta-banner-bg-coded {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 92, 252, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.1) 0%, transparent 50%),
    var(--color-bg);
  z-index: 0;
}
.cta-banner-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124, 92, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.cta-banner p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-8);
}
.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cta-banner-fine {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── FOOTER ── */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 260px;
  margin-bottom: var(--space-6);
}
.footer-socials {
  display: flex;
  gap: var(--space-3);
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.footer-social-link:hover {
  background: rgba(124, 92, 252, 0.1);
  color: var(--color-accent);
  border-color: rgba(124, 92, 252, 0.3);
}
.footer-social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-text); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--color-text-secondary); }

/* ── CARDS ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  border-color: rgba(124, 92, 252, 0.25);
  box-shadow: var(--shadow-card);
}

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.form-input,
.form-textarea,
.form-select {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── UTILITY CLASSES ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.w-full      { width: 100%; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-center { justify-content: center; }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }
.mt-4        { margin-top: var(--space-4); }
.mt-6        { margin-top: var(--space-6); }
.mt-8        { margin-top: var(--space-8); }
.mb-4        { margin-bottom: var(--space-4); }
.mb-6        { margin-bottom: var(--space-6); }
.mb-8        { margin-bottom: var(--space-8); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ── SELECTION ── */
::selection {
  background: rgba(124, 92, 252, 0.3);
  color: var(--color-text);
}

/* ============================================================
   RESPONSIVE — Mobile-First Breakpoints
   ============================================================ */

/* ── 640px (landscape phone) ── */
@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 768px (tablet) ── */
@media (min-width: 768px) {
  .steps-horizontal { gap: var(--space-8); }
}

/* ── 1024px (desktop) ── */
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 1280px (large desktop) ── */
@media (min-width: 1280px) {
  .pricing-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ── MAX-WIDTH: 1023px (tablets and below) ── */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-content { max-width: unset; }
  .hero-sub { max-width: unset; }

  .bento-card.span-2 { grid-column: span 1; }
  .bento-card.span-row { grid-row: span 1; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }

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

/* ── MAX-WIDTH: 767px (mobile) ── */
@media (max-width: 767px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.75rem;
  }

  .section { padding: var(--space-16) 0; }
  .section-sm { padding: var(--space-12) 0; }

  .nav-links { display: none; }
  .nav-actions .nav-login { display: none; }
  .nav-hamburger { display: flex; }

  .hero { min-height: auto; padding: var(--space-12) 0; }

  .stats-grid { flex-direction: column; gap: var(--space-8); }
  .stat-divider { display: none; }

  .steps-horizontal {
    flex-direction: column;
    gap: var(--space-8);
    align-items: flex-start;
  }
  .steps-connector { display: none; }
  .step-item { text-align: left; }
  .step-num-circle { margin: 0 0 var(--space-4); }
  .step-desc { margin: 0 0 var(--space-3); }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card.span-2 { grid-column: span 1; }
  .bento-card { min-height: 180px; }
  .bento-card.with-image .bento-img { min-height: 200px; }

  .dashboard-ui-body { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }

  .comparison-table-wrap { border-radius: var(--radius-md); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-2px); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-actions { flex-direction: column; align-items: stretch; }
  .cta-banner-actions .btn { text-align: center; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .activation-offer-wrap { padding: var(--space-8) var(--space-6); }
}

/* ── MAX-WIDTH: 479px (small phones) ── */
@media (max-width: 479px) {
  .container, .container-wide, .container-narrow {
    padding: 0 var(--space-4);
  }
  .hero h1 { font-size: 2rem; }
  .stat-number { font-size: 3.5rem; }
}

/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* Hero stagger */
.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.4s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.5s; }

/* Hover draw underline for nav links */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}
.nav-links a:hover::after { width: 100%; }

/* Gradient text utility (use sparingly — hero only) */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer animation for CTA accent moments */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent) 40%,
    var(--color-primary) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Floating animation for hero mockup */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Slide in from left (hero text direction) */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-animated {
  animation: countUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}

/* Print */
@media print {
  .nav, .hero-visual, .cta-banner, .footer-socials { display: none; }
  body { background: #fff; color: #000; }
}
