/* ═══════════════════════════════════════════════════════════
   VELOX — Design System
   Palette: Volcanic Glass + Warm Orange
   Fonts: Clash Display + Plus Jakarta Sans
═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-base:        #111111;
  --bg-surface:     #1A1A1A;
  --bg-elevated:    #222222;
  --bg-card:        #1E1E1E;
  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(255,255,255,0.16);

  --accent:         #FF6B2B;
  --accent-light:   #FFB088;
  --accent-glow:    rgba(255,107,43,0.25);
  --accent-subtle:  rgba(255,107,43,0.10);

  --purple:         #7B68EE;
  --green:          #4ade80;
  --blue:           #60a5fa;

  --text-primary:   #F0EDE8;
  --text-secondary: #A09890;
  --text-muted:     #666058;

  /* Typography */
  --font-display:   'Clash Display', 'Plus Jakarta Sans', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 8rem;

  /* 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.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 32px rgba(255,107,43,0.3);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

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

/* ── 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;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

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

@media (max-width: 640px) {
  .container { padding: 0 var(--space-lg); }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.btn-primary:hover {
  background: #ff7d42;
  border-color: #ff7d42;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-primary.btn-lg {
  padding: 0.9375rem 2rem;
  font-size: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-hover);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-outline.btn-lg {
  padding: 0.9375rem 2rem;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  border: none;
  transition: color var(--duration-base);
}

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

.btn-ghost.btn-lg {
  padding: 0.9375rem 1.5rem;
  font-size: 1rem;
}

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

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,107,43,0.2);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Reveal Animations ──────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration-slow), backdrop-filter var(--duration-slow), border-color var(--duration-slow);
  border-bottom: 1px solid transparent;
}

.nav-header.scrolled {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: opacity var(--duration-base);
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: var(--space-lg);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--duration-base) var(--ease-out);
}

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

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-base);
}

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

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

.mobile-menu-actions .btn-primary,
.mobile-menu-actions .btn-ghost {
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}

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

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-grid {
  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%);
}

@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-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.25);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: var(--space-xl);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 820px;
  margin-bottom: var(--space-xl);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #ffcba4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

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

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

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

/* Social proof */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  margin-left: -10px;
  object-fit: cover;
}

.avatar-stack img:first-child { margin-left: 0; }

.proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars {
  color: #f59e0b;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.proof-text span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.proof-text strong { color: var(--text-primary); }

/* ── Hero Mockup ────────────────────────────────────────── */
.hero-mockup {
  width: 100%;
  max-width: 860px;
  margin-bottom: var(--space-3xl);
}

.mockup-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.mockup-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg-card);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.mockup-body {
  display: flex;
  height: 320px;
}

.mockup-sidebar {
  width: 52px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
}

.sidebar-logo {
  margin-bottom: 12px;
}

.sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--duration-base);
  cursor: pointer;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

.mockup-content {
  flex: 1;
  padding: 20px;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mockup-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,107,43,0.2);
}

.mockup-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mockup-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base);
}

.mockup-card:hover { border-color: var(--border-hover); }

.pulse-card {
  border-color: rgba(255,107,43,0.2);
  animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { border-color: rgba(255,107,43,0.2); }
  50% { border-color: rgba(255,107,43,0.5); }
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.card-icon.orange { background: rgba(255,107,43,0.15); }
.card-icon.blue   { background: rgba(96,165,250,0.15); }
.card-icon.green  { background: rgba(74,222,128,0.15); }

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-stat {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.card-toggle {
  width: 28px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.card-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--duration-base);
}

.card-toggle.on {
  background: rgba(255,107,43,0.2);
  border-color: rgba(255,107,43,0.4);
}

.card-toggle.on::after {
  left: calc(100% - 12px);
  background: var(--accent);
}

/* Chart */
.mockup-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.chart-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: var(--bg-elevated);
  border-radius: 3px 3px 0 0;
  transition: background var(--duration-base);
}

.bar.active { background: var(--accent); }
.bar:hover  { background: var(--accent-light); }

/* Logos */
.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.logos-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.logos-row {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.logo-item {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  transition: color var(--duration-base);
  cursor: default;
}

.logo-item:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .hero-mockup { display: none; }
  .hero-social-proof { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════ */
.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);
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.feature-row-2 {
  direction: rtl;
}

.feature-row-2 > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row-2 {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-2xl);
  }
}

/* Feature visual */
.feature-visual {
  position: relative;
}

.feature-card-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.feature-card-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,43,0.4), transparent);
}

.fv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.fv-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.fv-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Flow nodes */
.fv-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-xl);
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  border: 1px solid var(--border);
}

.flow-node.trigger {
  background: rgba(255,107,43,0.08);
  border-color: rgba(255,107,43,0.25);
  color: var(--accent-light);
}

.flow-node.action {
  background: rgba(123,104,238,0.08);
  border-color: rgba(123,104,238,0.25);
  color: #a89cf7;
}

.flow-node.result {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.25);
  color: #86efac;
}

.flow-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 4px 14px;
  line-height: 1;
}

.fv-stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.fv-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* AI visual */
.ai-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ai-prompt {
  background: var(--bg-card);
  border: 1px solid rgba(123,104,238,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.ai-prompt-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.ai-prompt-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.ai-prompt-actions {
  display: flex;
  gap: var(--space-sm);
}

.ai-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base);
}

.ai-btn.accept {
  background: var(--accent);
  color: white;
  border: none;
}

.ai-btn.accept:hover { background: #ff7d42; }

.ai-btn.dismiss {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.ai-btn.dismiss:hover { border-color: var(--border-hover); color: var(--text-secondary); }

.ai-metrics {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
}

.ai-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.metric-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-ring span {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature text */
.feature-text {
  max-width: 480px;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.feature-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-list li svg { flex-shrink: 0; }

.feature-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--duration-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feature-link:hover { color: var(--accent-light); }

/* Mini cards */
.feature-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (max-width: 900px) {
  .feature-cards-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .feature-cards-row { grid-template-columns: 1fr; }
}

.feature-mini-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-mini-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.feature-mini-card:hover {
  border-color: rgba(255,107,43,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

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

.mini-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.feature-mini-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-mini-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.testimonials::before,
.testimonials::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.testimonials::before { top: 0; }
.testimonials::after  { bottom: 0; }

/* Carousel */
.carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.carousel {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel-slide {
  display: none;
  animation: slideIn 0.4s var(--ease-out);
}

.carousel-slide.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: var(--space-md);
  display: block;
}

blockquote {
  font-size: 1.125rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

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

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-logo {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base);
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--accent-subtle);
  border-color: rgba(255,107,43,0.3);
  color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-base);
  padding: 0;
}

.carousel-dots .dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 24px;
  border-radius: var(--radius-full);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  padding: var(--space-xl);
  text-align: center;
  position: relative;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

@media (max-width: 640px) {
  .stat-divider:nth-child(4) { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════ */
.pricing {
  padding: var(--space-4xl) 0;
}

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: all var(--duration-base);
}

.toggle-switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration-base) var(--ease-out);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-switch[aria-checked="true"] .toggle-thumb {
  transform: translateX(22px);
}

.save-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(74,222,128,0.15);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(74,222,128,0.25);
}

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

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

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: linear-gradient(160deg, #1f1a16 0%, var(--bg-elevated) 100%);
  border-color: rgba(255,107,43,0.35);
  box-shadow: 0 0 0 1px rgba(255,107,43,0.1), var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,107,43,0.2), var(--shadow-accent), var(--shadow-lg);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.featured-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.03em;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.price-currency {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  transition: all var(--duration-base);
}

.enterprise-price {
  font-size: 2rem;
}

.price-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  min-height: 56px;
}

.plan-cta {
  display: block;
  text-align: center;
  margin-bottom: var(--space-xl);
  width: 100%;
  justify-content: center;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-features li svg { flex-shrink: 0; }

.plan-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.pricing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-2xl);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
.cta-banner {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: linear-gradient(135deg, #1a1208 0%, var(--bg-elevated) 50%, #0f0f1a 100%);
  border: 1px solid rgba(255,107,43,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,43,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  position: relative;
}

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

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

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

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

.footer-logo {
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

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

.footer-socials a {
  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);
}

.footer-socials a:hover {
  background: var(--accent-subtle);
  border-color: rgba(255,107,43,0.3);
  color: var(--accent);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 640px) {
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.03em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--duration-base);
}

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

.footer-newsletter-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.footer-newsletter {
  display: flex;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-base);
}

.footer-newsletter:focus-within {
  border-color: rgba(255,107,43,0.4);
}

.footer-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  min-width: 0;
}

.footer-newsletter input::placeholder { color: var(--text-muted); }

.footer-newsletter button {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base);
  flex-shrink: 0;
}

.footer-newsletter button:hover { background: #ff7d42; }

.newsletter-success {
  display: none;
  font-size: 0.8125rem;
  color: var(--green);
  margin-top: var(--space-sm);
  font-weight: 500;
}

.newsletter-success.visible { display: block; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer-legal a {
  color: var(--text-muted);
  transition: color var(--duration-base);
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   FOCUS STYLES (a11y)
═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   SELECTION
═══════════════════════════════════════════════════════════ */
::selection {
  background: rgba(255,107,43,0.25);
  color: var(--text-primary);
}

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