/* ==========================================================================
   Echo — Design System & Styles
   Single CSS file for the entire Echo website.
   Dark futuristic aesthetic · Purple/blue gradients · Glassmorphism
   ========================================================================== */

/* Skip-to-content accessibility link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent-purple);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   0. Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors — dark palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;

  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  --white: #ffffff;
  --black: #000000;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  --gradient-hero: linear-gradient(160deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-cyan) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  --gradient-border: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.5));

  /* Spacing scale (4px base) */
  --space-xs: 0.25rem;   /* 4px  */
  --space-sm: 0.5rem;    /* 8px  */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px */

  /* Typography */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;

  /* Borders & Radius */
  --radius-sm: 0.375rem;  /* 6px  */
  --radius-md: 0.625rem;  /* 10px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
  --border-accent: 1px solid rgba(139, 92, 246, 0.3);

  /* Shadows & Glow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.7);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.35), 0 0 60px rgba(139, 92, 246, 0.15);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.15);
  --glow-sm: 0 0 10px rgba(139, 92, 246, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-below: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;

  /* Layout */
  --header-height: 4.5rem;
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* --------------------------------------------------------------------------
   1. Reset / Normalize
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  overflow-wrap: break-word;
  padding-bottom: 0.08em;
}

p {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-hero {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

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

.section {
  padding-block: var(--space-4xl);
  position: relative;
}

.section--lg {
  padding-block: var(--space-5xl);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
  overflow: visible;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: var(--space-md);
}

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--glow-sm);
}

.btn--primary:hover {
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: var(--glow-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--full {
  width: 100%;
}

/* Glow pulse on CTA buttons */
.btn--glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.25); }
  50%      { box-shadow: 0 0 30px rgba(139, 92, 246, 0.45), 0 0 60px rgba(59, 130, 246, 0.15); }
}

/* --------------------------------------------------------------------------
   5. Glassmorphism Card
   -------------------------------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.glass-card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Glow Effects
   -------------------------------------------------------------------------- */
.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-primary);
  filter: blur(20px);
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: var(--z-below);
  pointer-events: none;
}

.glow:hover::after {
  opacity: 0.4;
}

.glow-static {
  box-shadow: var(--glow-purple);
}

/* Background glow orbs */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: var(--z-below);
}

.bg-glow--purple {
  background: rgba(139, 92, 246, 0.15);
}

.bg-glow--blue {
  background: rgba(59, 130, 246, 0.12);
}

/* --------------------------------------------------------------------------
   7. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
/* Reveals are opt-in: JS adds .reveal-ready to <html> when IntersectionObserver is available.
   Without JS, all elements remain fully visible. */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html.reveal-ready .reveal { opacity: 0; transform: translateY(30px); }
html.reveal-ready .reveal-left { opacity: 0; transform: translateX(-30px); }
html.reveal-ready .reveal-right { opacity: 0; transform: translateX(30px); }
html.reveal-ready .reveal-scale { opacity: 0; transform: scale(0.92); }

html.reveal-ready .reveal.revealed,
html.reveal-ready .reveal-left.revealed,
html.reveal-ready .reveal-right.revealed,
html.reveal-ready .reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.header__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.header__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.header__link:hover {
  color: var(--text-primary);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.header__link:hover::after {
  width: 100%;
}

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

/* Hamburger / Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: var(--z-overlay);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 850px;
  margin-inline: auto;
  overflow: visible;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  animation: badge-border-glow 3s ease-in-out infinite alternate;
}

/* Shimmer sweep across the badge */
.hero__badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  animation: badge-shimmer 4s ease-in-out infinite;
}

@keyframes badge-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

@keyframes badge-border-glow {
  0% { border-color: rgba(139, 92, 246, 0.25); box-shadow: none; }
  100% { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 12px rgba(139, 92, 246, 0.15); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  padding-inline: var(--space-sm);
  overflow: visible;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  margin-top: var(--space-3xl);
  position: relative;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-below);
}

/* Dot grid pattern */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  translate: -50% 0;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
  border-radius: 50%;
  filter: blur(60px);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { opacity: 0.7; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -5%) scale(1.05); }
}

/* --------------------------------------------------------------------------
   10. Features Grid
   -------------------------------------------------------------------------- */
.features {
  background: var(--bg-secondary);
  position: relative;
}

/* Subtle gradient mesh behind features */
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.feature-card {
  text-align: left;
  padding: var(--space-2xl);
  padding-bottom: calc(var(--space-2xl) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Override glass-card hover effects for feature cards */
  backdrop-filter: none;
}

/* Top-left gradient accent unique per card */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Ambient glow on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(139, 92, 246, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  opacity: 1;
}

/* Each card gets a unique accent color for its top bar */
.feature-card:nth-child(1)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, #22c55e, #4ade80); }

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  font-size: var(--text-2xl);
  position: relative;
}

/* Each icon gets matching gradient background */
.feature-card:nth-child(1) .feature-card__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}
.feature-card:nth-child(2) .feature-card__icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.feature-card:nth-child(3) .feature-card__icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
  color: #22d3ee;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}
.feature-card:nth-child(4) .feature-card__icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  color: #f472b6;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}
.feature-card:nth-child(5) .feature-card__icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}
.feature-card:nth-child(6) .feature-card__icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  color: #4ade80;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   11. How It Works
   -------------------------------------------------------------------------- */
.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* Connecting line between steps */
.how-it-works__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.25;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: var(--z-base);
  box-shadow: var(--glow-sm);
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   12. Use Cases
   -------------------------------------------------------------------------- */
.use-cases {
  background: var(--bg-secondary);
}

.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.use-case-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
}

.use-case-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--accent-blue);
  border: var(--border-subtle);
}

.use-case-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.use-case-card__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-xl);
}

.testimonial-card__stars {
  color: var(--warning);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

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

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
  position: relative;
  background: var(--bg-secondary);
  z-index: 0;
}

/* Rotating gradient ring around avatar */
.testimonial-card__avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-purple),
    var(--accent-blue),
    var(--accent-cyan),
    var(--accent-purple)
  );
  z-index: -2;
  animation: avatar-ring-spin 4s linear infinite;
}

/* Inner fill */
.testimonial-card__avatar::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  z-index: -1;
}

@keyframes avatar-ring-spin {
  to { transform: rotate(360deg); }
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-card__role {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.pricing {
  background: var(--bg-secondary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
}

.pricing-card--featured {
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--glow-purple);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.pricing-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.pricing-card__price {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.pricing-card__price span {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. CTA Section
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__inner {
  position: relative;
  z-index: var(--z-base);
  padding: var(--space-4xl) var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--gradient-card);
  border: var(--border-subtle);
  max-width: 900px;
  margin-inline: auto;
}

.cta__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  padding-inline: var(--space-sm);
}

.cta__desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-inline: auto;
}

.cta__bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: var(--border-subtle);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: var(--border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: var(--border-subtle);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

.footer__socials a:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: var(--glow-sm);
}

/* --------------------------------------------------------------------------
   17. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq__list {
  max-width: 750px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.2);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--accent-purple);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
  color: var(--accent-purple);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   18. Blog Listing
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.blog-card__tag {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.blog-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title {
  color: var(--accent-purple);
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-purple);
  margin-top: var(--space-md);
  transition: gap var(--transition-base);
}

.blog-card__read-more:hover {
  gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   19. Blog Article
   -------------------------------------------------------------------------- */
.article {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.article__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.article__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.article__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
}

.article__cover {
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3xl);
  background: var(--bg-tertiary);
}

.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.article__body h2 {
  color: var(--text-primary);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.article__body h3 {
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article__body p {
  margin-bottom: var(--space-lg);
}

.article__body a {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body a:hover {
  color: var(--accent-blue);
}

.article__body ul,
.article__body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article__body li {
  margin-bottom: var(--space-sm);
  list-style: disc;
}

.article__body ol li {
  list-style: decimal;
}

.article__body blockquote {
  border-left: 3px solid var(--accent-purple);
  padding-left: var(--space-lg);
  margin-block: var(--space-xl);
  font-style: italic;
  color: var(--text-muted);
}

.article__body code {
  font-family: var(--font-mono);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.article__body pre {
  background: var(--bg-tertiary);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-block: var(--space-xl);
  overflow-x: auto;
}

.article__body pre code {
  background: none;
  padding: 0;
  font-size: var(--text-sm);
}

.article__body img {
  border-radius: var(--radius-md);
  margin-block: var(--space-xl);
}

/* --------------------------------------------------------------------------
   20. Responsive Breakpoints (mobile-first)
   -------------------------------------------------------------------------- */

/* Small phones and up (480px) */
@media (max-width: 480px) {
  :root {
    --text-5xl: 2.25rem;
    --text-6xl: 2.5rem;
    --text-7xl: 3rem;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Up to tablet (768px) */
@media (max-width: 768px) {
  .section {
    padding-block: var(--space-3xl);
  }

  .section--lg {
    padding-block: var(--space-4xl);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  /* Navigation — mobile */
  .nav-toggle {
    display: flex;
  }

  .header__nav {
    display: none;
  }

  /* Grids — single column */
  .features__grid,
  .how-it-works__steps,
  .testimonials__grid,
  .pricing__grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works__steps::before {
    display: none;
  }

  .use-cases__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Hero */
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  /* CTA */
  .cta__title {
    font-size: var(--text-3xl);
  }

  /* Article */
  .article__title {
    font-size: var(--text-3xl);
  }
}

/* Tablet (768px — 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-2xl);
  }

  .hero__title {
    font-size: var(--text-7xl);
  }
}

/* --------------------------------------------------------------------------
   21. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
