/* Hyver Intro Page - Modern Design System (Optimized) */

/* === Variables === */
:root {
  /* Colors - Dark theme (Design System: OLED Dark) */
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Accent colors - using teal/green CTA per design system */
  --accent-1: #00b7a8;
  --accent-2: #22c55e;
  --accent-3: #10b981;
  --primary: #00b7a8;
  --cta-color: #22c55e;
  --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-cta: linear-gradient(135deg, #22c55e, #10b981);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(0, 183, 168, 0.15), transparent 70%);

  /* Spacing - Using clamp for fluid spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 183, 168, 0.3);

  /* Transitions - Using CSS custom properties for consistency */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Performance: GPU-accelerated transform hints */
  --gpu-transform: translateZ(0);
  --intro-header-offset: env(safe-area-inset-top, 0px);
  --intro-header-height: 70px;
  --intro-header-clearance: calc(var(--intro-header-offset) + var(--intro-header-height));
}

/* Light theme */
html[data-theme='light'] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);

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

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 183, 168, 0.15);
}

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

/* Ensure all interactive elements have pointer cursor */
a,
button,
[role='button'],
.market-card,
.feature-card,
.visual-card,
.big-stat,
.step-card,
.logo-marquee-item {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Performance: Enable scroll snap for smoother section navigation */
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  /* Performance: Optimize text rendering */
  text-rendering: optimizeSpeed;
}

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

/* === Skip Link for Accessibility === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-1);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 1000;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid white;
  outline-offset: 2px;
}

/* === Focus Styles for Keyboard Navigation === */
body.using-keyboard *:focus {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

body:not(.using-keyboard) *:focus {
  outline: none;
}

/* === Background Effects === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  /* Performance: Use containment for layout optimization */
  contain: strict;
}

html[data-theme='light'] .bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.bg-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 183, 168, 0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(34, 197, 94, 0.08), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
  /* Performance: Use will-change sparingly, only for animated properties */
  will-change: transform;
  contain: strict;
  animation: glow-drift 20s ease-in-out infinite;
}

@keyframes glow-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5%, 5%);
  }
}

/* === Navigation === */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--intro-header-height);
  padding: calc(var(--space-md) + var(--intro-header-offset)) var(--space-xl) var(--space-md);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  /* Performance: Isolate compositing layer */
  contain: layout style;
  will-change: background-color;
}

html[data-theme='light'] .nav-header {
  background: rgba(255, 255, 255, 0.9);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.nav-logo-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(0, 183, 168, 0.4));
  transition:
    filter var(--transition-base),
    transform var(--transition-base);
}

.nav-brand:hover .nav-logo-svg {
  filter: drop-shadow(0 0 12px rgba(0, 183, 168, 0.6));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.theme-toggle .icon-sun {
  display: none;
}
html[data-theme='light'] .theme-toggle .icon-moon {
  display: none;
}
html[data-theme='light'] .theme-toggle .icon-sun {
  display: block;
}

.nav-btn {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.nav-btn.secondary:hover {
  color: var(--text-primary);
}

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

.nav-btn.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* Mobile CTA buttons inside nav - hidden on desktop */
.nav-mobile-cta {
  display: none;
}

/* Mobile overlay - hidden on desktop */
.nav-overlay {
  display: none;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  /* Performance: GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
}

.btn-primary {
  position: relative;
  background: var(--gradient-cta);
  color: white;
  box-shadow:
    0 4px 16px rgba(34, 197, 94, 0.3),
    0 0 20px rgba(34, 197, 94, 0.15);
  overflow: hidden;
}

/* Shine effect on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(34, 197, 94, 0.4),
    0 0 40px rgba(34, 197, 94, 0.25);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost.btn-mobile,
.btn-primary.btn-mobile {
  color: #ffffff;
}

html[data-theme='light'] .btn-ghost {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 183, 168, 0.3);
  transform: translateY(-2px);
}

html[data-theme='light'] .btn-ghost:hover {
  background: rgba(0, 183, 168, 0.05);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-md);
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

/* Arrow animation in buttons */
.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* === Hero Section === */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  min-height: 85vh;
  padding: calc(80px + var(--space-4xl)) var(--space-2xl) var(--space-xl);
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

/* Hero radial gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(0, 183, 168, 0.12) 0%,
    rgba(34, 197, 94, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* === Hero Floating Geometric Shapes === */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(60px);
  animation: shape-float 20s ease-in-out infinite;
  will-change: transform;
}

/* Shape 1 - Large teal blob top-left */
.hero-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 183, 168, 0.4) 0%,
    rgba(0, 183, 168, 0.1) 50%,
    transparent 70%
  );
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

/* Shape 2 - Medium green blob center-right */
.hero-shape.shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.35) 0%,
    rgba(34, 197, 94, 0.1) 50%,
    transparent 70%
  );
  top: 30%;
  right: -5%;
  animation-delay: -5s;
  animation-duration: 25s;
}

/* Shape 3 - Small emerald blob bottom-left */
.hero-shape.shape-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.3) 0%,
    rgba(16, 185, 129, 0.08) 50%,
    transparent 70%
  );
  bottom: 10%;
  left: 15%;
  animation-delay: -10s;
  animation-duration: 22s;
}

/* Shape 4 - Cyan accent top-right */
.hero-shape.shape-4 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 183, 168, 0.3) 0%,
    rgba(0, 183, 168, 0.08) 50%,
    transparent 70%
  );
  top: 10%;
  right: 20%;
  animation-delay: -3s;
  animation-duration: 18s;
}

/* Shape 5 - Small floating orb */
.hero-shape.shape-5 {
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(0, 183, 168, 0.5) 0%,
    rgba(34, 197, 94, 0.2) 40%,
    transparent 70%
  );
  bottom: 30%;
  right: 35%;
  animation-delay: -8s;
  animation-duration: 15s;
  filter: blur(40px);
}

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

/* Reduced motion: disable shape animations */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
}

/* Mobile: simplify shapes */
@media (max-width: 768px) {
  .hero-shape {
    display: none;
  }

  /* Keep just one subtle shape on mobile */
  .hero-shape.shape-1 {
    display: block;
    width: 300px;
    height: 300px;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    animation: none;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-title {
  font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
  /* Text glow effect */
  filter: drop-shadow(0 0 20px rgba(0, 183, 168, 0.3));
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme='light'] .hero-stats {
  background: rgba(0, 0, 0, 0.02);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1 1 0;
  text-align: center;
  align-items: center;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

/* Mobile: ensure stat labels wrap to two lines and flex items can shrink */
@media (max-width: 600px) {
  .hero-stats {
    padding: var(--space-md);
  }

  .stat {
    min-width: 0;
    padding: 0 var(--space-xs);
  }

  /* Only wrap the last stat label (Reply Rate) to two lines on small screens */
  .hero-stats .stat:last-of-type .stat-label {
    max-width: 6ch;
    white-space: normal;
    overflow-wrap: break-word;
    display: block;
  }
}

.stat-divider {
  width: 1px;
  height: 40px;
  margin: 0 var(--space-md);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--border-color) 30%,
    var(--border-color) 70%,
    transparent 100%
  );
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Performance: Contain layout for better paint performance */
  contain: layout style;
}

/* Central glow behind cards */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 183, 168, 0.15) 0%,
    rgba(34, 197, 94, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: visual-glow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes visual-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 500;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease;
  /* Performance: GPU acceleration for floating animations */
  will-change: transform;
  transform-style: preserve-3d;
}

html[data-theme='light'] .visual-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 183, 168, 0.3) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.3) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.visual-card:hover {
  transform: translateY(-8px) scale(1.03) rotateX(2deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 183, 168, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 183, 168, 0.3);
}

html[data-theme='light'] .visual-card:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(0, 183, 168, 0.1);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 183, 168, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  color: white;
}

.visual-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 183, 168, 0.4);
}

.card-1 {
  top: 10%;
  left: 10%;
  animation: float-1 6s ease-in-out infinite;
}
.card-2 {
  top: 50%;
  right: 5%;
  animation: float-2 7s ease-in-out infinite;
}
.card-3 {
  bottom: 10%;
  left: 20%;
  animation: float-3 8s ease-in-out infinite;
}

@keyframes float-1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

@keyframes float-3 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
}

/* === AI Gears Visual === */
.ai-gears-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
}

.gear-main {
  animation: spin-cw 12s linear infinite;
  transform-origin: 250px 250px;
}
.gear-sat-1 {
  animation: spin-ccw 8s linear infinite;
  transform-origin: 360px 175px;
}
.gear-sat-2 {
  animation: spin-ccw 10s linear infinite;
  transform-origin: 160px 360px;
}
.gear-teeth {
  animation: pulse-opacity 4s ease-in-out infinite;
}

.orbit-ring-1 {
  animation: spin-cw 25s linear infinite;
  transform-origin: 250px 250px;
}
.orbit-ring-2 {
  animation: spin-ccw 20s linear infinite;
  transform-origin: 250px 250px;
}

.connection-lines {
  animation: connection-appear 3s ease-in-out infinite;
}

.data-flow {
  stroke-dashoffset: 0;
}
.flow-1 {
  animation: dash-flow 3s linear infinite;
}
.flow-2 {
  animation: dash-flow 3s linear infinite 0.4s;
}
.flow-3 {
  animation: dash-flow 3s linear infinite 0.8s;
}
.flow-4 {
  animation: dash-flow 3s linear infinite 1.2s;
}
.flow-5 {
  animation: dash-flow 3s linear infinite 1.6s;
}
.flow-6 {
  animation: dash-flow 4s linear infinite 0s;
}
.flow-7 {
  animation: dash-flow 4s linear infinite 0.6s;
}
.flow-8 {
  animation: dash-flow 4s linear infinite 1.2s;
}

.node-1 {
  animation: node-pulse 3s ease-in-out infinite;
}
.node-2 {
  animation: node-pulse 3s ease-in-out infinite 0.5s;
}
.node-3 {
  animation: node-pulse 3s ease-in-out infinite 1s;
}
.node-4 {
  animation: node-pulse 3s ease-in-out infinite 1.5s;
}
.node-5 {
  animation: node-pulse 3s ease-in-out infinite 2s;
}
.node-6 {
  animation: node-pulse 3s ease-in-out infinite 2.5s;
}

.particle-1 {
  animation: float-particle 6s ease-in-out infinite;
}
.particle-2 {
  animation: float-particle 7s ease-in-out infinite 0.5s;
}
.particle-3 {
  animation: float-particle 5s ease-in-out infinite 1s;
}
.particle-4 {
  animation: float-particle 8s ease-in-out infinite 0.3s;
}
.particle-5 {
  animation: float-particle 6s ease-in-out infinite 1.5s;
}
.particle-6 {
  animation: float-particle 7s ease-in-out infinite 2s;
}
.particle-7 {
  animation: float-particle 5s ease-in-out infinite 0.8s;
}
.particle-8 {
  animation: float-particle 8s ease-in-out infinite 1.8s;
}

@keyframes spin-cw {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-ccw {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes pulse-opacity {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dash-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -20;
  }
}

@keyframes connection-appear {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.45;
  }
}

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

@keyframes float-particle {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(8px, -8px);
    opacity: 0.7;
  }
  50% {
    transform: translate(-4px, 4px);
    opacity: 0.5;
  }
  75% {
    transform: translate(6px, 2px);
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gear-main,
  .gear-sat-1,
  .gear-sat-2,
  .gear-teeth,
  .orbit-ring-1,
  .orbit-ring-2,
  .connection-lines,
  .data-flow,
  .node-1,
  .node-2,
  .node-3,
  .node-4,
  .node-5,
  .node-6,
  .particle-1,
  .particle-2,
  .particle-3,
  .particle-4,
  .particle-5,
  .particle-6,
  .particle-7,
  .particle-8 {
    animation: none !important;
  }
  .gear-main {
    transform: none;
  }
  .gear-sat-1 {
    transform: none;
  }
  .gear-sat-2 {
    transform: none;
  }
  .orbit-ring-1 {
    transform: none;
  }
  .orbit-ring-2 {
    transform: none;
  }
}

/* === Video Section === */
.video-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-2xl) var(--space-3xl);
  text-align: center;
}

.video-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.video-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 183, 168, 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.video-frame {
  position: relative;
  padding: 3px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-1));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: calc(var(--radius-xl) - 3px);
  overflow: hidden;
  background: var(--bg-primary);
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform var(--transition-slow),
    filter var(--transition-slow);
}

.video-wrapper:hover .video-thumbnail {
  transform: scale(1.02);
  filter: brightness(0.85);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 56px;
  border: none;
  background: none;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    filter var(--transition-base);
  filter: drop-shadow(0 4px 20px rgba(0, 183, 168, 0.4));
  z-index: 2;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  filter: drop-shadow(0 6px 30px rgba(0, 183, 168, 0.6));
}

.video-play-btn svg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.video-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-accent {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.video-accent.accent-1 {
  width: 120px;
  height: 120px;
  top: -30px;
  right: -30px;
  background: radial-gradient(circle, var(--accent-1), transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.video-accent.accent-2 {
  width: 80px;
  height: 80px;
  bottom: -20px;
  left: -20px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 900px) {
  .video-section,
  .video-container,
  .video-glow,
  .video-frame,
  .video-wrapper,
  .video-thumbnail,
  .video-play-btn,
  .video-accents {
    display: none;
  }

  .video-play-btn {
    width: 60px;
    height: 42px;
  }

  .video-accent {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-frame {
    animation: none;
  }

  .video-accent {
    animation: none;
  }

  .video-wrapper:hover .video-thumbnail {
    transform: none;
  }
}

/* === Trusted Section === */
.trusted {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.trusted-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* === Flow Diagram Section - Premium Design === */
.flow-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-primary) 100%
  );
  overflow: hidden;
  position: relative;
}

.flow-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.flow-section .section-header {
  margin-bottom: var(--space-3xl);
}

.flow-visual {
  position: relative;
  padding: var(--space-2xl) 0;
}

/* Animated grid background */
.flow-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 183, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 183, 168, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

/* Main flow track */
.flow-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Step cards */
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card {
  position: relative;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: var(--space-xl) var(--space-lg);
  min-width: 160px;
  text-align: center;
  transition:
    transform var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow);
  overflow: hidden;
  /* Performance: GPU acceleration for hover transforms */
  will-change: transform;
  contain: layout style paint;
}

[data-theme='light'] .step-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.step-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 183, 168, 0.5);
  box-shadow:
    0 20px 40px rgba(0, 183, 168, 0.15),
    0 0 30px rgba(0, 183, 168, 0.1);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 183, 168, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.step-card:hover .card-glow {
  opacity: 1;
}

/* Floating particles effect */
.card-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
}

.card-particles::before,
.card-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
}

.step-card:hover .card-particles::before {
  animation: particle-float 2s ease-out infinite;
}

.step-card:hover .card-particles::after {
  animation: particle-float 2s ease-out infinite 0.5s;
}

@keyframes particle-float {
  0% {
    bottom: 20%;
    left: 30%;
    opacity: 0;
    transform: scale(0);
  }
  20% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    bottom: 100%;
    left: 50%;
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Hyver card special styles */
.hyver-card {
  background: rgba(0, 183, 168, 0.08);
  border-color: rgba(0, 183, 168, 0.25);
  animation: hyver-float 6s ease-in-out infinite;
  /* Performance: Optimize animation */
  will-change: transform;
}

@keyframes hyver-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hyver-card:hover {
  animation: none;
  transform: translateY(-8px) scale(1.05);
}

.hyver-glow {
  background: radial-gradient(circle at 50% 50%, rgba(0, 183, 168, 0.4), transparent 70%);
  opacity: 0.5;
  animation: hyver-breathe 3s ease-in-out infinite;
}

@keyframes hyver-breathe {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Pulsing rings around Hyver */
.card-rings {
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  pointer-events: none;
}

.card-rings::before,
.card-rings::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--primary);
  border-radius: 30px;
  opacity: 0;
}

.card-rings::before {
  animation: ring-pulse 3s ease-out infinite;
}

.card-rings::after {
  animation: ring-pulse 3s ease-out infinite 1.5s;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Step icons */
.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-card:hover .step-icon {
  color: var(--primary);
  transform: scale(1.15) rotate(5deg);
}

.hexagon-icon {
  position: relative;
  width: 64px;
  height: 64px;
}

.hexagon-icon svg {
  filter: drop-shadow(0 0 20px rgba(0, 183, 168, 0.4));
  animation: hex-rotate 20s linear infinite;
}

@keyframes hex-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.step-card:hover .hexagon-icon svg {
  animation-play-state: paused;
}

.hexagon-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 20px var(--primary),
    0 0 40px var(--primary),
    0 0 60px rgba(0, 183, 168, 0.5);
  animation: core-pulse 1.5s ease-in-out infinite;
}

@keyframes core-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 20px var(--primary),
      0 0 40px var(--primary);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow:
      0 0 30px var(--primary),
      0 0 60px var(--primary),
      0 0 80px rgba(0, 183, 168, 0.3);
  }
}

/* Step content */
.step-content h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}

/* Cycling example messages */
.example-messages {
  position: relative;
  height: 50px;
  margin-top: var(--space-md);
  min-width: 200px;
  max-width: 280px;
}

.message-bubble {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

.user-messages .message-bubble {
  background: rgba(0, 183, 168, 0.1);
  border: 1px solid rgba(0, 183, 168, 0.2);
  color: var(--text-secondary);
  font-style: italic;
}

.service-messages .message-bubble {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--text-secondary);
}

[data-theme='light'] .user-messages .message-bubble {
  background: rgba(0, 183, 168, 0.08);
}

[data-theme='light'] .service-messages .message-bubble {
  background: rgba(34, 197, 94, 0.08);
}

/* Synced animation - 12s total cycle, 3s per message */
.message-bubble.msg-1 {
  animation: message-cycle 12s ease-in-out infinite 0s;
}
.message-bubble.msg-2 {
  animation: message-cycle 12s ease-in-out infinite 3s;
}
.message-bubble.msg-3 {
  animation: message-cycle 12s ease-in-out infinite 6s;
}
.message-bubble.msg-4 {
  animation: message-cycle 12s ease-in-out infinite 9s;
}

@keyframes message-cycle {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  2% {
    opacity: 1;
    transform: translateY(0);
  }
  23% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Mobile: hide messages */
@media (max-width: 768px) {
  .example-messages {
    display: none;
  }
}

/* Bidirectional Connectors */
.flow-connector {
  display: flex;
  align-items: center;
  padding: 0 var(--space-xs);
}

.connector-track {
  position: relative;
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
}

.connector-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 183, 168, 0.2) 0%,
    rgba(0, 183, 168, 0.5) 50%,
    rgba(0, 183, 168, 0.2) 100%
  );
  transform: translateY(-50%);
}

/* Arrows */
.connector-arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
}

.arrow-right {
  right: 0;
  transform: translateY(-50%);
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--primary);
  animation: arrow-pulse-right 2s ease-in-out infinite;
}

.arrow-left {
  left: 0;
  transform: translateY(-50%);
  border-width: 5px 8px 5px 0;
  border-color: transparent var(--primary) transparent transparent;
  animation: arrow-pulse-left 2s ease-in-out infinite 1s;
}

@keyframes arrow-pulse-right {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
  }
}

@keyframes arrow-pulse-left {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(-3px);
  }
}

/* Animated pulses */
.connector-pulse {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary);
  opacity: 0;
  /* Performance: GPU acceleration for smooth pulse animations */
  will-change: transform, opacity, left, right;
}

.pulse-right {
  animation: pulse-go-right 2.5s ease-in-out infinite;
}

.pulse-left {
  animation: pulse-go-left 2.5s ease-in-out infinite;
}

.p1 {
  animation-delay: 0s;
}
.p2 {
  animation-delay: 0.8s;
}
.p3 {
  animation-delay: 1.6s;
}
.p4 {
  animation-delay: 0.3s;
}
.p5 {
  animation-delay: 1.1s;
}
.p6 {
  animation-delay: 1.9s;
}

@keyframes pulse-go-right {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes pulse-go-left {
  0% {
    right: 0;
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    right: calc(100% - 8px);
    opacity: 0;
    transform: scale(0.5);
  }
}

/* === Animated Beam Connections (21st.dev Traveling Light Effect) === */
.beam-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Base beam path - subtle static line */
.beam-path-base {
  fill: none;
  stroke: rgba(0, 183, 168, 0.12);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Animated beam with traveling light gradient */
.beam-path-animated {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

/* Reverse beams are slightly thinner */
.beam-path-animated.beam-reverse {
  stroke-width: 2;
  opacity: 0.7;
}

/* Connection point circles on cards (enhanced with Stitch glow effects) */
.beam-connector {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 5;
}

/* Horizontal connectors (desktop) - vertically centered */
.beam-connector-left,
.beam-connector-right {
  top: 50%;
  transform: translateY(-50%);
}

.beam-connector-left {
  left: -7px;
  right: auto;
}

.beam-connector-right {
  right: -7px;
  left: auto;
}

/* Vertical connectors (hidden on desktop, shown on mobile) */
.beam-connector-top,
.beam-connector-bottom {
  display: none;
}

.beam-connector::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 183, 168, 0.3);
}

.beam-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 6px var(--primary),
    0 0 12px var(--primary),
    0 0 18px rgba(0, 183, 168, 0.5);
  animation: connector-pulse-glow 2s ease-in-out infinite;
}

@keyframes connector-pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 6px var(--primary),
      0 0 12px var(--primary);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow:
      0 0 10px var(--primary),
      0 0 20px var(--primary),
      0 0 30px rgba(0, 183, 168, 0.4);
  }
}

/* Hover state for connectors */
.step-card:hover .beam-connector::before {
  border-color: var(--cta-color);
  box-shadow:
    0 0 12px rgba(34, 197, 94, 0.5),
    0 0 24px rgba(34, 197, 94, 0.3);
}

.step-card:hover .beam-connector::after {
  background: var(--cta-color);
  box-shadow:
    0 0 8px var(--cta-color),
    0 0 16px var(--cta-color),
    0 0 24px rgba(34, 197, 94, 0.5);
}

/* Hide old flow connectors when beams are active */
.flow-connector {
  opacity: 0;
  pointer-events: none;
}

/* Light theme adjustments */
[data-theme='light'] .beam-path-base {
  stroke: rgba(0, 183, 168, 0.25);
}

[data-theme='light'] .beam-connector::before {
  background: var(--bg-secondary);
}

/* Mobile responsive - Vertical Stack Layout */
@media (max-width: 768px) {
  .flow-section {
    padding: var(--space-2xl) 0;
  }

  .flow-visual {
    display: block;
    padding: var(--space-lg) 0;
  }

  /* Vertical flow track */
  .flow-track {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
    /* Ensure beam connectors between cards are visible */
    overflow: visible;
  }

  /* Hide old horizontal connectors on mobile */
  .flow-connector {
    display: none;
  }

  /* Step cards in vertical layout */
  .flow-step {
    width: 100%;
    max-width: 280px;
    /* Ensure connectors are visible outside step boundaries */
    overflow: visible;
  }

  .step-card {
    width: 100%;
    min-width: unset;
    padding: var(--space-lg);
    /* Allow beam connectors to extend outside card boundaries */
    overflow: visible;
  }

  /* Beam connectors for vertical layout */
  .beam-connector-left,
  .beam-connector-right {
    display: none;
  }

  .beam-connector-top,
  .beam-connector-bottom {
    display: block;
    position: absolute;
    /* Reset horizontal positioning - center horizontally */
    left: 50%;
    right: auto;
    /* Reset vertical positioning from base class */
    top: auto;
    bottom: auto;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    z-index: 5;
  }

  .beam-connector-top {
    top: -7px;
    bottom: auto;
  }

  .beam-connector-bottom {
    top: auto;
    bottom: -7px;
  }

  .beam-connector-top::before,
  .beam-connector-bottom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 183, 168, 0.3);
  }

  .beam-connector-top::after,
  .beam-connector-bottom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
      0 0 6px var(--primary),
      0 0 12px var(--primary);
    animation: connector-pulse-glow 2s ease-in-out infinite;
  }

  /* SVG beam overlay adjustments for mobile */
  .beam-svg {
    pointer-events: none;
  }

  /* Example messages below cards on mobile */
  .example-messages {
    position: relative;
    height: auto;
    min-height: 50px;
    margin-top: var(--space-sm);
    min-width: unset;
    max-width: 100%;
  }

  .message-bubble {
    position: relative;
    margin-bottom: var(--space-xs);
  }

  /* Only show active message on mobile */
  .message-bubble:not(.active) {
    display: none;
  }

  .message-bubble.active {
    display: block;
    opacity: 1;
    transform: none;
  }

  .hyver-card {
    animation: none;
  }

  /* Hexagon icon smaller on mobile */
  .hexagon-icon {
    width: 56px;
    height: 56px;
  }

  .step-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .flow-container {
    padding: 0 var(--space-md);
  }

  .flow-step {
    max-width: 260px;
  }

  .step-card {
    padding: var(--space-md);
  }

  .step-icon {
    width: 44px;
    height: 48px;
  }

  .hexagon-icon {
    width: 56px;
    height: 56px;
  }

  .connector-track {
    width: 40px;
  }
}

/* === Infinite Logo Marquee === */
.logo-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

/* Fade edges for seamless look */
.logo-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
}

.logo-marquee-fade-right {
  right: 0;
  background: linear-gradient(270deg, var(--bg-secondary) 0%, transparent 100%);
}

.logo-marquee {
  display: flex;
  overflow: hidden;
  padding: var(--space-md) 0;
}

.logo-marquee-track {
  display: flex;
  gap: var(--space-4xl);
  animation: marquee-scroll 30s linear infinite;
  /* Performance: GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}

/* Pause on hover for better UX */
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.logo-marquee-item img {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-marquee-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Text placeholder for logos we don't have */
.logo-text-placeholder {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-marquee-item:hover .logo-text-placeholder {
  opacity: 0.8;
  color: var(--text-secondary);
  transform: scale(1.05);
}

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

/* Reduced motion: stop animation */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
}

/* Light theme adjustments */
html[data-theme='light'] .logo-marquee-fade-left {
  background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
}

html[data-theme='light'] .logo-marquee-fade-right {
  background: linear-gradient(270deg, var(--bg-secondary) 0%, transparent 100%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo-marquee-fade {
    width: 60px;
  }

  .logo-marquee-track {
    gap: var(--space-2xl);
  }

  .logo-marquee-item img {
    height: 28px;
  }

  .logo-text-placeholder {
    font-size: var(--font-size-md);
  }
}

/* === Section Styles === */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-1);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

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

/* === Marketplace Section (Bento Grid Style) === */
.marketplace {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.market-card {
  position: relative;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s ease;
  /* Performance: GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
}

html[data-theme='light'] .market-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Gradient border effect */
.market-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 183, 168, 0.4) 0%,
    transparent 40%,
    transparent 60%,
    rgba(34, 197, 94, 0.4) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Inner glow effect - enhanced */
.market-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(
    ellipse 80% 80% at 50% -30%,
    rgba(0, 183, 168, 0.15) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Reveal line on hover - bento-style */
.market-card .market-reveal-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(0, 183, 168, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(0, 183, 168, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] .market-card:hover {
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 0 60px rgba(0, 183, 168, 0.1);
}

.market-card:hover::before,
.market-card:hover::after {
  opacity: 1;
}

.market-card:hover .market-reveal-line {
  width: 100%;
}

.market-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s ease;
}

.gradient-bg {
  background: var(--gradient-primary);
  box-shadow: 0 8px 24px rgba(0, 183, 168, 0.3);
  color: white;
}

.market-card:hover .market-icon {
  transform: scale(1.15) rotate(8deg) translateY(-4px);
  box-shadow:
    0 12px 30px rgba(0, 183, 168, 0.4),
    0 0 40px rgba(0, 183, 168, 0.2);
}

.market-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  transition: all 0.4s ease;
}

.market-card:hover h3 {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.market-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  transition: color 0.4s ease;
}

.market-card:hover > p {
  color: var(--text-primary);
}

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

.market-features li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    padding-left 0.3s ease;
}

.market-card:hover .market-features li {
  color: var(--text-primary);
  padding-left: var(--space-xs);
}

.market-features li:last-child {
  border-bottom: none;
}

.market-features li::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(0, 183, 168, 0.15);
  color: var(--accent-1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  /* SVG checkmark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300B7A8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.market-card:hover .market-features li::before {
  background-color: rgba(0, 183, 168, 0.3);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0, 183, 168, 0.3);
}

.market-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent-1);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition:
    color 0.3s ease,
    gap 0.3s ease,
    transform 0.3s ease;
}

.market-link:hover {
  color: var(--accent-2);
  gap: var(--space-sm);
  transform: translateX(4px);
}

/* === Features Section === */
.features {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease,
    background 0.4s ease;
  /* Performance: GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
}

html[data-theme='light'] .feature-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

/* Gradient border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 183, 168, 0.5) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.5) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Top highlight line */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 183, 168, 0.5) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 183, 168, 0.2);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(0, 183, 168, 0.1);
}

html[data-theme='light'] .feature-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.08),
    0 0 30px rgba(0, 183, 168, 0.08);
}

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

.feature-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 183, 168, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
  border: 1px solid rgba(0, 183, 168, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
  color: var(--accent-1);
}

/* Pulse ring effect */
.feature-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 2px solid rgba(0, 183, 168, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Inner glow */
.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 30%, rgba(0, 183, 168, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) translateY(-4px);
  background: linear-gradient(135deg, rgba(0, 183, 168, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
  border-color: rgba(0, 183, 168, 0.4);
  box-shadow:
    0 8px 24px rgba(0, 183, 168, 0.25),
    0 0 40px rgba(0, 183, 168, 0.15);
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
  transform: scale(1);
  animation: feature-icon-pulse 2s ease-in-out infinite;
}

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

@keyframes feature-icon-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.feature-card h4 {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

.feature-card:hover h4 {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  transition: color 0.3s ease;
}

.feature-card:hover p {
  color: var(--text-primary);
}

/* === How It Works V2 - Animated Timeline === */
.how-it-works-v2 {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

/* Timeline Container */
.timeline-container {
  margin-top: var(--space-3xl);
}

/* Timeline Track */
.timeline-track {
  position: relative;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-3xl);
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border-color);
  border-radius: 1px;
}

.timeline-progress {
  position: absolute;
  top: 24px;
  left: 60px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 183, 168, 0.5);
}

/* Timeline Nodes */
.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition-base);
}

.timeline-node:hover {
  transform: translateY(-2px);
}

.timeline-node:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.node-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-node.active .node-number,
.timeline-node.completed .node-number {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow:
    0 0 20px rgba(0, 183, 168, 0.4),
    0 0 40px rgba(0, 183, 168, 0.2);
  animation: node-pulse-timeline 2s ease-in-out infinite;
}

.timeline-node.completed .node-number {
  animation: none;
}

@keyframes node-pulse-timeline {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(0, 183, 168, 0.4),
      0 0 40px rgba(0, 183, 168, 0.2);
  }
  50% {
    box-shadow:
      0 0 30px rgba(0, 183, 168, 0.6),
      0 0 60px rgba(0, 183, 168, 0.3);
  }
}

.node-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.timeline-node.active .node-label,
.timeline-node.completed .node-label {
  color: var(--text-primary);
}

/* Step Panels */
.timeline-content {
  position: relative;
  min-height: 200px;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 183, 168, 0.08), transparent);
  pointer-events: none;
}

.step-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  animation: panel-fade-in 0.4s ease-out;
}

.step-panel.active {
  display: flex;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-icon-wrapper {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: rgba(0, 183, 168, 0.1);
  border: 1px solid rgba(0, 183, 168, 0.2);
  border-radius: 50%;
  color: var(--accent-1);
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
}

.step-panel.active .step-icon-wrapper {
  animation: icon-glow 2s ease-in-out infinite alternate;
}

@keyframes icon-glow {
  from {
    box-shadow: 0 0 20px rgba(0, 183, 168, 0.2);
  }
  to {
    box-shadow: 0 0 40px rgba(0, 183, 168, 0.4);
  }
}

.step-panel h4 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.step-panel p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive - Horizontal Timeline (adjusted line length) */
@media (max-width: 768px) {
  .how-it-works-v2 {
    padding: var(--space-2xl) var(--space-md);
  }

  .timeline-container {
    margin-top: var(--space-xl);
  }

  .timeline-track {
    padding: 0 var(--space-xs);
    margin-bottom: var(--space-xl);
  }

  /* Adjust line to align with node centers */
  .timeline-track::before {
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    top: 20px;
  }

  .timeline-progress {
    left: calc(12.5% + 4px);
    top: 20px;
  }

  .timeline-nodes {
    justify-content: space-between;
    padding: 0 var(--space-xs);
  }

  .timeline-node {
    min-width: 0;
    flex: 1;
    max-width: 25%;
  }

  .node-number {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-md);
  }

  .node-label {
    font-size: var(--font-size-xs);
    white-space: nowrap;
  }

  .timeline-content {
    padding: var(--space-lg);
    min-height: auto;
  }

  .step-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .step-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }

  .step-panel h4 {
    font-size: var(--font-size-lg);
  }

  .step-panel p {
    font-size: var(--font-size-sm);
    max-width: 100%;
    padding: 0 var(--space-xs);
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .how-it-works-v2 {
    padding: var(--space-xl) var(--space-sm);
  }

  /* Tighter alignment for smaller screens */
  .timeline-track::before {
    left: calc(12.5% + 2px);
    right: calc(12.5% + 2px);
    top: 18px;
  }

  .timeline-progress {
    left: calc(12.5% + 2px);
    top: 18px;
  }

  .node-number {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }

  .node-label {
    font-size: 0.65rem;
  }

  .timeline-content {
    padding: var(--space-md);
  }

  .step-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .step-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .step-panel h4 {
    font-size: var(--font-size-md);
  }

  .step-panel p {
    font-size: var(--font-size-xs);
    line-height: 1.5;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .timeline-progress {
    transition: none;
  }

  .node-number,
  .step-icon-wrapper {
    animation: none !important;
  }

  .step-panel {
    animation: none;
  }
}

/* === Stats Section === */
.stats-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Animated background glow */
.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(0, 183, 168, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.big-stat {
  position: relative;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  transform: translateZ(0);
}

html[data-theme='light'] .big-stat {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}

.big-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 183, 168, 0.4) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.4) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.big-stat:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 183, 168, 0.2);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(0, 183, 168, 0.1);
}

.big-stat:hover::before {
  opacity: 1;
}

.big-stat-value {
  display: block;
  font-size: clamp(var(--font-size-4xl), 8vw, 5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 183, 168, 0.2));
  /* Counter animation support */
  font-variant-numeric: tabular-nums;
}

/* Counter animation class */
.big-stat-value[data-count] {
  transition:
    transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.5s ease;
}

.big-stat-value.counting {
  animation: count-glow 0.3s ease-out;
}

.big-stat-value.count-complete {
  animation: count-complete 0.6s ease-out;
}

@keyframes count-glow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 30px rgba(0, 183, 168, 0.4);
  }
}

@keyframes count-complete {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.big-stat-label {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--text-primary);
}

.big-stat p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

/* === Pricing Section === */
.pricing-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-2xl);
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-primary) 100%
  );
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-toggle .toggle-label.active {
  color: var(--text-primary);
  font-weight: 500;
}

.pricing-toggle .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 200ms;
}

.pricing-toggle .toggle-switch:hover {
  background: var(--text-muted);
}

.pricing-toggle .toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 200ms;
}

.pricing-toggle .toggle-knob.right {
  transform: translateX(20px);
}

.save-badge {
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: #166534;
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
}

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

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.border-fly:hover {
  border-color: #9ca3af;
  box-shadow: 0 8px 32px rgba(156, 163, 175, 0.25);
}

.pricing-card.border-bee:hover {
  border-color: #facc15;
  box-shadow: 0 8px 32px rgba(250, 204, 21, 0.25);
}

.pricing-card.border-wasp:hover {
  border-color: #fb923c;
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.3);
}

.pricing-card.border-hornet:hover {
  border-color: #f87171;
  box-shadow: 0 8px 32px rgba(248, 113, 113, 0.25);
}

.pricing-card.popular {
  border-color: #fb923c;
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(251, 146, 60, 0.15);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-6px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #2c1200;
  padding: 0.4rem 1rem;
  border-radius: 24px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
}

.card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  min-height: 80px;
}

.tier-svg {
  width: 64px;
  height: 64px;
}

.fly-svg {
  width: 64px;
  height: 64px;
}
.bee-svg {
  width: 80px;
  height: 80px;
}
.wasp-svg {
  width: 96px;
  height: 96px;
}
.hornet-svg {
  width: 112px;
  height: 112px;
}

.fly-svg {
  color: #6b7280;
}
.bee-svg {
  color: #eab308;
}
.wasp-svg {
  color: #f59e0b;
}
.hornet-svg {
  color: #dc2626;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-tier-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-tier-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
}

.card-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.card-price .currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-price .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.card-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
  font-weight: 500;
}

.card-annual-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.card-allowance {
  font-size: 0.85rem;
  color: var(--accent-1);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 183, 168, 0.1);
  border-radius: 24px;
  letter-spacing: 0.02em;
}

.allowance-label {
  font-weight: 400;
  color: var(--text-muted);
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  width: 100%;
  text-align: left;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features li svg {
  color: #22c55e;
  flex-shrink: 0;
}

.card-cta {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  font-size: var(--font-size-sm);
}

.pricing-card.popular .card-cta {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.3);
}

.pricing-card.popular .card-cta:hover {
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.4);
}

.pricing-compare-link {
  text-align: center;
  margin-top: 2.5rem;
}

.pricing-compare-link a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 200ms;
}

.pricing-compare-link a:hover {
  color: var(--accent-1);
}

/* Insect Wing Animations */
.fw-l {
  animation: flutter-x 0.15s ease-in-out infinite;
  transform-origin: 32px 28px;
}
.fw-r {
  animation: flutter-x 0.15s ease-in-out infinite;
  transform-origin: 32px 28px;
}

.bw-l {
  animation: flutter-y 0.2s ease-in-out infinite;
  transform-origin: 25px 35px;
}
.bw-r {
  animation: flutter-y 0.2s ease-in-out infinite;
  transform-origin: 55px 35px;
}

.ww-l {
  animation: flutter-rotate-l 0.18s ease-in-out infinite;
  transform-origin: 30px 40px;
}
.ww-r {
  animation: flutter-rotate-r 0.18s ease-in-out infinite;
  transform-origin: 66px 40px;
}

.hw-tl {
  animation: flutter-rotate-l 0.16s ease-in-out infinite;
  transform-origin: 35px 45px;
}
.hw-tr {
  animation: flutter-rotate-r 0.16s ease-in-out infinite;
  transform-origin: 77px 45px;
}
.hw-bl {
  animation: flutter-y 0.16s ease-in-out infinite;
  transform-origin: 38px 50px;
  animation-delay: 0.05s;
}
.hw-br {
  animation: flutter-y 0.16s ease-in-out infinite;
  transform-origin: 74px 50px;
  animation-delay: 0.05s;
}

@keyframes flutter-x {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.7);
  }
}

@keyframes flutter-y {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.55);
  }
}

@keyframes flutter-rotate-l {
  0%,
  100% {
    transform: scaleY(1) rotate(0deg);
  }
  50% {
    transform: scaleY(0.5) rotate(-5deg);
  }
}

@keyframes flutter-rotate-r {
  0%,
  100% {
    transform: scaleY(1) rotate(0deg);
  }
  50% {
    transform: scaleY(0.5) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  [class*='fw-'],
  [class*='bw-'],
  [class*='ww-'],
  [class*='hw-'] {
    animation: none !important;
  }
}

/* Bulk Actions Table */
.bulk-section {
  max-width: 720px;
  margin: 4rem auto 0;
  text-align: center;
}

.bulk-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.bulk-table thead {
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, transparent 100%);
}

.bulk-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.bulk-table th:first-child {
  text-align: left;
  padding-left: 1.5rem;
}

.bulk-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.bulk-table td:first-child {
  text-align: left;
  padding-left: 1.5rem;
  font-weight: 500;
}

.bulk-table tbody tr {
  transition: background 150ms ease;
}

.bulk-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.bulk-table tbody tr:last-child td {
  border-bottom: none;
}

.bulk-discount {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: #166534;
  color: white;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.bulk-discount.highlight {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.bulk-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bulk-note a {
  color: var(--accent-1);
  text-decoration: none;
}

.bulk-note a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .bulk-table {
    min-width: 0;
  }

  .bulk-table thead {
    display: none;
  }

  .bulk-table tr {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .bulk-table tr:last-child {
    border-bottom: none;
  }

  .bulk-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: none;
    font-size: 0.85rem;
    text-align: right;
  }

  .bulk-table td:first-child {
    padding-left: 0;
  }

  .bulk-table td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
}

/* Pricing Section Light Theme */
html[data-theme='light'] .pricing-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .pricing-card.popular {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.06) 0%, rgba(0, 0, 0, 0.02) 100%);
}

html[data-theme='light'] .pricing-toggle .toggle-switch {
  background: rgba(0, 0, 0, 0.15);
}

html[data-theme='light'] .bulk-table-wrap {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .bulk-table thead {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
}

html[data-theme='light'] .bulk-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* === CTA Section === */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-2xl);
  overflow: hidden;
}

/* Animated background grid */
.cta-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 183, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 183, 168, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
  animation: cta-grid-move 20s linear infinite;
  pointer-events: none;
}

@keyframes cta-grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-4xl) var(--space-3xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Corner line decorations */
.cta-corner-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cta-line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: cta-line-draw 2s ease forwards;
}

.cta-line-1 {
  animation-delay: 0.2s;
}
.cta-line-2 {
  animation-delay: 0.4s;
}
.cta-line-3 {
  animation-delay: 0.6s;
}
.cta-line-4 {
  animation-delay: 0.8s;
}

@keyframes cta-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Pulsing glow center */
.cta-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 183, 168, 0.2) 0%, transparent 60%);
  animation: cta-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

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

html[data-theme='light'] .cta-container {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* Gradient border */
.cta-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 183, 168, 0.5) 0%,
    rgba(34, 197, 94, 0.3) 25%,
    transparent 50%,
    rgba(16, 185, 129, 0.3) 75%,
    rgba(0, 183, 168, 0.5) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cta-border-rotate 8s linear infinite;
  pointer-events: none;
}

@keyframes cta-border-rotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Radial glow background */
.cta-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 183, 168, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Animated orbs/particles */
.cta-container .cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: cta-float 10s ease-in-out infinite;
  pointer-events: none;
}

.cta-container .cta-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(0, 183, 168, 0.3);
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.cta-container .cta-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(34, 197, 94, 0.3);
  bottom: -30px;
  right: -30px;
  animation-delay: -3s;
}

.cta-container .cta-orb-3 {
  width: 100px;
  height: 100px;
  background: rgba(16, 185, 129, 0.2);
  top: 50%;
  right: 10%;
  animation-delay: -6s;
}

@keyframes cta-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(10px, -10px) scale(1.1);
  }
  50% {
    transform: translate(-5px, 5px) scale(0.95);
  }
  75% {
    transform: translate(-10px, -5px) scale(1.05);
  }
}

.cta-container h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: 700;
  margin-bottom: var(--space-md);
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent-1) 50%,
    var(--accent-2) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: cta-title-gradient 5s ease infinite;
}

@keyframes cta-title-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.cta-container p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.cta-container .btn {
  position: relative;
  z-index: 1;
  box-shadow:
    0 8px 24px rgba(34, 197, 94, 0.3),
    0 0 40px rgba(34, 197, 94, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.cta-container .btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(34, 197, 94, 0.4),
    0 0 60px rgba(34, 197, 94, 0.3);
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-2xl);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
}

.footer-logo-svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px rgba(0, 183, 168, 0.3));
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

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

.footer-legal {
  width: 100%;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

/* === Animations === */

/* Blur Reveal Animation */
.blur-reveal {
  display: inline-block;
  animation: blur-reveal 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
}

.blur-reveal.delay-1 {
  animation-delay: 0.3s;
}

.blur-reveal.delay-2 {
  animation-delay: 0.5s;
}

.blur-reveal.delay-3 {
  animation-delay: 0.7s;
}

@keyframes blur-reveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Reduced motion: instant reveal */
@media (prefers-reduced-motion: reduce) {
  .blur-reveal {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.animate-in {
  animation: fade-up 0.8s ease forwards;
  /* Performance: GPU acceleration */
  will-change: transform, opacity;
}

.animate-in.delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  /* Performance: GPU acceleration for scroll animations */
  will-change: transform, opacity;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --intro-header-height: 64px;
  }

  /* Mobile Navigation Container */
  .nav-header {
    padding: calc(var(--space-sm) + var(--intro-header-offset)) var(--space-md) var(--space-sm);
  }

  /* Hide desktop nav links by default on mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: calc(var(--intro-header-clearance) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-sm);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    z-index: 99;
    display: flex;
  }

  /* Show mobile nav when active */
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    padding: var(--space-md) var(--space-sm);
    font-size: var(--font-size-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a:last-of-type {
    border-bottom: none;
  }

  /* Mobile CTA buttons at bottom of slide-out menu */
  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
  }

  .btn-mobile {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-md);
  }

  /* Hide desktop nav actions except theme toggle and primary CTA */
  .nav-actions {
    gap: var(--space-sm);
  }

  .nav-btn.secondary {
    display: none;
  }

  /* Keep primary CTA visible on mobile, next to hamburger */
  .nav-btn.primary {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
  }

  /* Show hamburger menu button */
  .nav-mobile-toggle {
    display: flex;
    z-index: 101;
  }

  /* Hamburger menu animation - X shape when active */
  .nav-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile nav CTA buttons inside slide-out menu */
  .nav-links::after {
    content: '';
    display: block;
    margin-top: auto;
  }

  /* Mobile overlay when menu is open */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 98;
  }

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

  .hero {
    padding: calc(var(--intro-header-clearance) + var(--space-2xl)) var(--space-md) var(--space-2xl);
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat-divider {
    display: none;
  }

  .trusted-logos {
    gap: var(--space-xl);
  }

  .trusted-logos img {
    height: 32px;
  }

  .marketplace-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    gap: var(--space-md);
  }

  .hero-visual {
    height: 320px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  /* Smaller mobile nav panel */
  .nav-links {
    width: 100%;
    right: -100%;
  }

  .nav-links.active::before {
    display: none;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .btn-lg,
  .btn-xl {
    padding: var(--space-md) var(--space-lg);
  }

  /* Improve touch targets */
  .nav-links a {
    padding: var(--space-lg) var(--space-md);
  }

  .hero-visual {
    height: 280px;
  }

  /* Timeline Small Mobile */
  .timeline-track::before {
    left: 20px;
    right: 20px;
  }

  .timeline-progress {
    left: 20px;
  }

  .node-number {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }

  .node-label {
    display: none;
  }

  .timeline-content {
    padding: var(--space-md);
    min-height: 180px;
  }

  .step-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .step-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }

  /* Feature Icon Mobile */
  .feature-icon {
    width: 60px;
    height: 60px;
  }

  /* CTA Section Mobile */
  .cta-bg-grid {
    background-size: 40px 40px;
  }

  .cta-glow-center {
    width: 200px;
    height: 200px;
  }

  .cta-container {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cta-bg-grid,
  .cta-glow-center,
  .cta-orb,
  .feature-icon::before {
    animation: none;
  }

  .cta-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .feature-icon::before {
    opacity: 0;
  }
}
