/* ═══════════════════════════════════════════════════════════
   FLOWSYNC — DESIGN SYSTEM & STYLES
   Theme: Midnight Galaxy | Mobile-First Responsive
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Colors */
  --bg-base:        #0D1B2A;
  --bg-surface:     #1B2D45;
  --bg-elevated:    #243650;
  --bg-card:        #162236;

  --primary:        #6B5CE7;
  --primary-light:  #8B7CF8;
  --primary-dark:   #5244C5;
  --accent:         #A78BFA;
  --accent-glow:    rgba(107, 92, 231, 0.35);

  --teal:           #2DD4BF;
  --teal-dim:       rgba(45, 212, 191, 0.15);
  --blue:           #60A5FA;
  --blue-dim:       rgba(96, 165, 250, 0.15);
  --orange:         #FB923C;
  --orange-dim:     rgba(251, 146, 60, 0.15);
  --pink:           #F472B6;
  --pink-dim:       rgba(244, 114, 182, 0.15);
  --purple-dim:     rgba(107, 92, 231, 0.15);

  --text-primary:   #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --text-inverse:   #0D1B2A;

  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(107, 92, 231, 0.4);

  --success:        #34D399;
  --warning:        #FBBF24;
  --error:          #F87171;

  /* Typography */
  --font-display:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;

  /* 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;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(107, 92, 231, 0.25);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.mono { font-family: var(--font-mono); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity var(--duration-base);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,92,231,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary i { position: relative; z-index: 1; }
.btn-primary span, .btn-primary > * { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--accent);
  background: var(--purple-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  transition: color var(--duration-base);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-display);
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
}
.btn-ghost-white:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

.btn-sm  { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg  { padding: 0.875rem 2rem;  font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; padding: 0.875rem; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration-base), backdrop-filter var(--duration-base), box-shadow var(--duration-base);
}
.nav-header.scrolled {
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.logo-icon i { width: 18px; height: 18px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}
.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }

.nav-actions {
  display: none;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
  margin-left: auto;
}
.nav-toggle:hover { color: var(--text-primary); background: var(--bg-elevated); }

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(20px);
  padding: var(--space-lg);
  gap: var(--space-xs);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.25s var(--ease-out);
}
.nav-links.open .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mesh-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(107,92,231,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(45,212,191,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(167,139,250,0.08) 0%, transparent 50%);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(107,92,231,0.12);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(45,212,191,0.07);
  top: 30%; right: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: rgba(167,139,250,0.08);
  bottom: 10%; left: 30%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

/* Hero layout */
.hero .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(107,92,231,0.12);
  border: 1px solid rgba(107,92,231,0.3);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  cursor: pointer;
  transition: all var(--duration-base);
}
.hero-badge:hover { background: rgba(107,92,231,0.2); border-color: rgba(107,92,231,0.5); }
.badge-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.badge-text { font-size: 0.8rem; }
.badge-arrow { width: 14px; height: 14px; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* Sub */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

/* Proof */
.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}
.proof-avatars {
  display: flex;
}
.proof-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  margin-left: -8px;
  object-fit: cover;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.proof-stars {
  display: flex;
  gap: 2px;
}
.star-icon {
  width: 14px; height: 14px;
  color: var(--warning);
  fill: var(--warning);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(107,92,231,0.1);
}
.dashboard-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.875rem var(--space-lg);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.dashboard-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28CA41; }
.dashboard-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}
.dashboard-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--success);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.dashboard-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }

/* Workflow nodes */
.workflow-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-md) 0;
}
.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  position: relative;
  transition: all var(--duration-base);
  min-width: 80px;
  text-align: center;
}
.workflow-node i { width: 20px; height: 20px; }
.node-trigger { border-color: rgba(107,92,231,0.4); color: var(--accent); }
.node-trigger i { color: var(--primary); }
.node-ai { border-color: rgba(45,212,191,0.4); color: var(--teal); }
.node-ai i { color: var(--teal); }
.node-action { border-color: rgba(96,165,250,0.4); color: var(--blue); }
.node-action i { color: var(--blue); }
.node-pulse {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-md) + 3px);
  border: 1.5px solid var(--primary);
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.08); }
}

.workflow-connector {
  position: relative;
  width: 48px;
  height: 2px;
  flex-shrink: 0;
}
.connector-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--primary-dark), var(--border));
}
.connector-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: moveDot 2s linear infinite;
}
.connector-dot.delay-1 { animation-delay: -1s; }
@keyframes moveDot {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.stat-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-unit { font-size: 1rem; }
.stat-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  opacity: 0;
  animation: fadeInActivity 0.5s var(--ease-out) forwards;
}
.activity-item-1 { animation-delay: 0.5s; }
.activity-item-2 { animation-delay: 1s; }
.activity-item-3 { animation-delay: 1.5s; }
@keyframes fadeInActivity {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.success { background: var(--success); }
.activity-dot.warning { background: var(--warning); }
.activity-text { flex: 1; color: var(--text-secondary); }
.activity-time { color: var(--text-muted); flex-shrink: 0; }

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-badge i { width: 16px; height: 16px; }
.float-badge-1 {
  top: -16px; right: -16px;
  color: var(--success);
  border-color: rgba(52,211,153,0.3);
  animation: floatBadge 4s ease-in-out infinite;
}
.float-badge-2 {
  bottom: 24px; left: -24px;
  color: var(--blue);
  border-color: rgba(96,165,250,0.3);
  animation: floatBadge 4s ease-in-out infinite;
  animation-delay: -2s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Trusted bar */
.trusted-bar {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.trusted-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}
.logo-scroll {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.logo-track {
  display: flex;
  gap: var(--space-3xl);
  width: max-content;
  animation: scrollLogos 20s linear infinite;
}
.brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transition: color var(--duration-base);
  white-space: nowrap;
}
.brand-logo:hover { color: var(--text-secondary); }
@keyframes scrollLogos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION SHARED STYLES
═══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-dim);
  border: 1px solid rgba(107,92,231,0.25);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-badge i { width: 14px; height: 14px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════════════════════ */
.features {
  padding: var(--space-4xl) 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,92,231,0.04), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }

.feature-card-large {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.feature-icon-wrap i { width: 24px; height: 24px; }
.icon-purple { background: var(--purple-dim); color: var(--primary-light); }
.icon-blue   { background: var(--blue-dim);   color: var(--blue); }
.icon-teal   { background: var(--teal-dim);   color: var(--teal); }
.icon-orange { background: var(--orange-dim); color: var(--orange); }
.icon-pink   { background: var(--pink-dim);   color: var(--pink); }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* AI Pipeline visual */
.ai-pipeline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  justify-content: center;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.pipeline-icon {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-base);
}
.pipeline-icon i { width: 20px; height: 20px; }
.pipeline-step.active .pipeline-icon {
  background: var(--purple-dim);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 16px rgba(107,92,231,0.3);
}
.pipeline-step.active { color: var(--accent); }
.pipeline-arrow { color: var(--text-muted); }
.pipeline-arrow i { width: 16px; height: 16px; }

/* Integration grid */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.int-icon {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-base);
}
.int-icon:hover { border-color: var(--primary); color: var(--accent); background: var(--purple-dim); }
.int-icon i { width: 20px; height: 20px; }

/* Mini chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
.chart-bar {
  flex: 1;
  height: var(--h);
  background: var(--bg-surface);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s var(--ease-out);
}
.chart-bar.active { background: linear-gradient(180deg, var(--primary-light), var(--primary)); }

/* Security badges */
.security-badges { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }
.sec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.sec-badge i { width: 14px; height: 14px; }

/* Builder preview */
.builder-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
.builder-node {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
}
.builder-node.small { font-size: 0.7rem; padding: 0.25rem 0.75rem; border-color: var(--border); color: var(--text-muted); }
.builder-line {
  width: 2px; height: 20px;
  background: var(--border);
}
.builder-fork {
  display: flex;
  gap: var(--space-xl);
  position: relative;
}
.builder-fork::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 1px;
  background: var(--border);
}
.fork-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.fork-branch::before {
  content: '';
  width: 2px; height: 16px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════ */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, transparent, rgba(107,92,231,0.04), transparent);
  position: relative;
}
.how-it-works::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.steps-line {
  display: none;
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--teal));
  opacity: 0.3;
}

.step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  background: var(--purple-dim);
  border: 1px solid rgba(107,92,231,0.3);
  border-radius: var(--radius-full);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.step-content { flex: 1; }
.step-icon {
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.step-icon i { width: 20px; height: 20px; }
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.carousel-wrapper { position: relative; overflow: hidden; }

.carousel-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  min-width: calc(100% - 0px);
  flex-shrink: 0;
  transition: border-color var(--duration-base);
}
.testimonial-card:hover { border-color: var(--border-hover); }

.testimonial-stars { display: flex; gap: 4px; margin-bottom: var(--space-md); }

blockquote {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  font-style: italic;
  position: relative;
}
blockquote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
}
.author-info strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.carousel-btn {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-base);
}
.carousel-btn:hover { border-color: var(--primary); color: var(--accent); background: var(--purple-dim); }
.carousel-btn i { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-base);
}
.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════ */
.pricing {
  padding: var(--space-4xl) 0;
  position: relative;
}
.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}
.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-switch {
  width: 52px; height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--duration-base);
}
.toggle-switch.active { background: var(--primary); border-color: var(--primary); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration-base) var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.toggle-switch.active .toggle-thumb { transform: translateX(24px); }
.save-badge {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--bg-base);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pricing-card-featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(107,92,231,0.08), var(--bg-card));
  box-shadow: 0 0 40px rgba(107,92,231,0.15);
}
.pricing-card-featured:hover { box-shadow: 0 0 60px rgba(107,92,231,0.25); }

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card-header { margin-bottom: var(--space-lg); }
.plan-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: var(--space-md) 0 var(--space-sm);
}
.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-lg);
}
.price-currency {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}
.price-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  transition: all var(--duration-base);
}
.enterprise-price { font-size: 2rem; }
.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.plan-features li i { width: 16px; height: 16px; flex-shrink: 0; }
.plan-features li:not(.disabled) i { color: var(--success); }
.plan-features li.disabled { color: var(--text-muted); }
.plan-features li.disabled i { color: var(--text-muted); }

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.pricing-guarantee i { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(107,92,231,0.12), rgba(45,212,191,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.cta-orb-1 {
  width: 400px; height: 400px;
  background: rgba(107,92,231,0.15);
  top: -100px; left: -100px;
}
.cta-orb-2 {
  width: 300px; height: 300px;
  background: rgba(45,212,191,0.1);
  bottom: -80px; right: -80px;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}
.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

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

.footer-brand { max-width: 320px; }
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: var(--space-md) 0 var(--space-lg);
}
.footer-social { display: flex; gap: var(--space-sm); }
.social-link {
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-base);
}
.social-link:hover { border-color: var(--primary); color: var(--accent); background: var(--purple-dim); }
.social-link i { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer-col a:hover { color: var(--text-primary); }

.hiring-badge {
  background: rgba(52,211,153,0.15);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≥ 640px)
═══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .hero .container {
    padding-top: var(--space-4xl);
  }
  .testimonial-card {
    min-width: calc(50% - var(--space-sm));
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥ 1024px)
═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }

  .hero .container {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-3xl);
    padding-top: var(--space-4xl);
  }
  .hero-content {
    align-items: flex-start;
    flex: 1;
  }
  .hero-cta { justify-content: flex-start; }
  .hero-proof { justify-content: flex-start; }
  .hero-visual { flex: 1; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card-large {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .feature-card-large .feature-card-inner { flex: 1; }
  .feature-card-large .feature-visual { flex: 1; }

  .steps-container { flex-direction: row; gap: 0; }
  .steps-line { display: block; left: 0; right: 0; top: 28px; bottom: auto; width: auto; height: 2px; }
  .step { flex-direction: column; flex: 1; padding: 0 var(--space-lg); }
  .step-number { margin-bottom: var(--space-lg); }

  .testimonial-card {
    min-width: calc(33.333% - var(--space-md));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-card-featured {
    transform: scale(1.04);
  }
  .pricing-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — WIDE (≥ 1280px)
═══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .container { padding: 0 var(--space-xl); }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}