/* ═══════════════════════════════════════════════════
   FlowPilot — style.css  (Enhanced v2)
   Fonts: Syne (headings) + DM Sans (body)
═══════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────── */
:root {
  --bg:       #080d1a;
  --bg-soft:  #0d1526;
  --surface:  rgba(255,255,255,0.05);
  --surface-2:rgba(255,255,255,0.09);
  --text:     #dde4f0;
  --muted:    #7a8ba6;
  --line:     rgba(255,255,255,0.09);
  --primary:  #4f7cff;
  --primary-2:#8ca8ff;
  --accent:   #22c55e;
  --accent-2: #6ee7b7;
  --warning:  #f59e0b;
  --shadow:   0 24px 56px rgba(0,0,0,0.38);
  --shadow-sm:0 8px 24px rgba(0,0,0,0.22);
  --radius:   20px;
  --radius-sm:12px;
  --container:1220px;
  --ease:     cubic-bezier(.22,.68,0,1.2);
  --t:        0.3s;
}

body.light-mode {
  --bg:       #f3f6fc;
  --bg-soft:  #eaeff9;
  --surface:  #ffffff;
  --surface-2:#f0f4fc;
  --text:     #111827;
  --muted:    #5a6882;
  --line:     rgba(17,24,39,0.1);
  --shadow:   0 24px 56px rgba(15,23,42,0.1);
  --shadow-sm:0 8px 24px rgba(15,23,42,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

h1,h2,h3,h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }

.container { width: min(92%, var(--container)); margin: auto; }
.section    { padding: 100px 0; }

/* ── Custom Cursor ────────────────────────────── */
.cursor, .cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .3s;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--primary-2);
  transform: translate(-50%,-50%);
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(140,168,255,.4);
  transform: translate(-50%,-50%);
  transition: transform .12s, width .2s, height .2s, border-color .2s;
}
body.cursor-hover .cursor-follower {
  width: 54px; height: 54px;
  border-color: rgba(140,168,255,.7);
}
@media (hover:none) { .cursor, .cursor-follower { display:none; } }

/* ── Announcement Bar ─────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, rgba(79,124,255,.12), rgba(34,197,94,.08));
  border-bottom: 1px solid var(--line);
  position: relative;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: .9rem;
  padding: 0 40px 0 0;
}
.ann-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.announcement-inner a { color: var(--primary-2); font-weight: 600; margin-left: auto; white-space: nowrap; }
.ann-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-size: .9rem; padding: 4px 8px;
}

/* ── Header ───────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8,13,26,.78);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.3); }
body.light-mode .site-header { background: rgba(243,246,252,.88); }

.nav-wrapper {
  min-height: 76px;
  display: flex; align-items: center;
  gap: 16px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--primary-2); }

.nav { display: flex; gap: 4px; align-items: center; margin: 0 auto; }
.nav a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent; color: var(--text);
  border-radius: 50%; cursor: pointer;
  transition: background var(--t), transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--surface); transform: rotate(20deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  cursor: pointer; white-space: nowrap;
}
.btn-lg  { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm  { padding: 9px 16px;  font-size: .88rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(79,124,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(79,124,255,.4); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,.18); }
body.light-mode .btn-ghost:hover { background: var(--surface-2); }

.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.full-width { width: 100%; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius-sm);
  cursor: pointer; align-items: center; justify-content: center;
  padding: 10px;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #22c55e; top: -100px; right: -120px; }
.orb-3 { width: 350px; height: 350px; background: var(--primary-2); bottom: -80px; left: 40%; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Reveal animation */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  animation: slideUp .7s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes slideUp {
  to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item, .reveal { animation: none !important; transition: none !important; opacity:1 !important; transform: none !important; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-2);
  font-weight: 600; font-size: .85rem;
  background: rgba(79,124,255,.07);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary-2), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 500px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.play-icon { font-size: .8rem; }

.hero-proof { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.hero-proof strong { color: var(--text); }
.avatars { display: flex; }
.av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #4f7cff,#8ca8ff); color:#fff; }
.av-2 { background: linear-gradient(135deg, #22c55e,#6ee7b7); color:#fff; }
.av-3 { background: linear-gradient(135deg, #f59e0b,#fcd34d); color:#fff; }
.av-4 { background: linear-gradient(135deg, #ec4899,#f9a8d4); color:#fff; }

/* Dashboard card */
.float-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
body.light-mode .float-card {
  background: rgba(255,255,255,.9);
  border-color: rgba(17,24,39,.1);
}

.window-bar {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 20px;
}
.dot { width:11px; height:11px; border-radius:50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }
.window-title { margin-left: 8px; font-size: .82rem; color: var(--muted); }

.dash-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.dash-label { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.dash-value { font-family: 'Syne',sans-serif; font-size: 2rem; font-weight: 700; }

/* Animated chart bars */
.chart-wrap { margin: 20px 0 16px; }
.chart-bars {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 8px;
  align-items: end;
}
.bar {
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  height: 0;
  transition: height .8s var(--ease), opacity .2s;
  cursor: pointer;
  position: relative;
  opacity: .7;
}
.bar:hover { opacity: 1; }
.bar.bar-active { background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity:1; }
.bar-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: .75rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.bar:hover .bar-tooltip { opacity:1; }
.chart-labels {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 8px;
  margin-top: 8px;
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 4px;
}
.dash-metric-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.dash-metric-card p { color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.dash-metric-card strong { display: block; font-size: 1.1rem; font-family: 'Syne',sans-serif; }

.trend { font-size: .78rem; font-weight: 600; margin-top: 2px; display: block; }
.trend.up   { color: var(--accent-2); }
.trend.down { color: #fca5a5; }

/* Floating badges */
.hero-visual { position: relative; }
.float-badge {
  position: absolute;
  background: rgba(8,13,26,.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 220px;
}
body.light-mode .float-badge { background: rgba(255,255,255,.95); }
.badge-tl { top: -20px; left: -40px; }
.badge-br { bottom: -16px; right: -30px; }
.badge-icon { font-size: 1.4rem; }
.float-badge div { display: flex; flex-direction: column; }
.float-badge strong { font-size: .82rem; white-space: nowrap; }
.float-badge span  { font-size: .74rem; color: var(--muted); }

/* Hero stats bar */
.hero-stats {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-top: 56px;
}
.h-stat { flex: 1; text-align: center; min-width: 120px; padding: 4px 0; }
.h-stat strong { display: block; font-family: 'Syne',sans-serif; font-size: 1.8rem; color: var(--primary-2); }
.h-stat span   { font-size: .85rem; color: var(--muted); }
.h-stat-divider { width: 1px; height: 40px; background: var(--line); flex-shrink: 0; }

/* Badges inline */
.badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600; font-size: .8rem;
  white-space: nowrap;
}
.badge-success { background: rgba(34,197,94,.15); color: #6ee7b7; }
.badge-neutral  { background: rgba(255,255,255,.08); color: var(--text); }
body.light-mode .badge-neutral { background: rgba(17,24,39,.07); }

/* ── Brand Strip ──────────────────────────────── */
.brand-strip { padding: 28px 0 48px; }
.brand-label { text-align:center; color:var(--muted); font-size:.85rem; margin-bottom:20px; }

.brand-scroll-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.brand-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: brandScroll 22s linear infinite;
}
.brand-track span {
  color: var(--muted);
  font-family: 'Syne',sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: .6;
  transition: opacity .2s;
}
.brand-track span:hover { opacity: 1; }
@keyframes brandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Header ───────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-header .eyebrow { margin-bottom: 16px; }
.section-header h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 14px; }
.section-header p  { color: var(--muted); }

/* ── Features ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.feature-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation-delay: calc(var(--ci) * 80ms);
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(79,124,255,.3);
}
.feature-card-inner { padding: 28px; position: relative; }

.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(79,124,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: transform .3s var(--ease);
}
.feature-card:hover .icon-box { transform: scale(1.12) rotate(-4deg); }

.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p  { color: var(--muted); font-size: .95rem; }

.feature-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,124,255,.08), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.feature-card:hover .feature-glow { opacity: 1; }

/* ── Dashboard Section ────────────────────────── */
.dashboard-section { background: linear-gradient(180deg, transparent, rgba(79,124,255,.04), transparent); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.dashboard-copy h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin: 16px 0 16px; }
.dashboard-copy p  { color: var(--muted); }

.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feature-list li {
  color: var(--muted);
  padding-left: 24px;
  position: relative; font-size: .95rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
}

.dash-showcase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.panel-top-row h3 { font-size: 1.4rem; margin-top: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.kpi-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.kpi-card p { color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.kpi-card strong { font-family: 'Syne',sans-serif; font-size: 1.5rem; display: block; }

.progress-card {
  margin-top: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.progress-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s var(--ease); }
.progress-fill.accent2 { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }

/* ── Metrics ──────────────────────────────────── */
.metrics-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-card { text-align: center; padding: 40px 20px; background: var(--bg); }
.stat-card strong { display: block; font-family: 'Syne',sans-serif; font-size: 2.4rem; color: var(--primary-2); margin-bottom: 6px; }
.stat-card span   { color: var(--muted); font-size: .9rem; }

/* ── Pricing ──────────────────────────────────── */
.billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}
.bill-label { font-weight: 600; color: var(--muted); transition: color .2s; }
.bill-label.active-label { color: var(--text); }

.toggle-track {
  width: 52px; height: 28px;
  border-radius: 999px;
  background: var(--line);
  border: 1.5px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background .3s;
}
.toggle-track[aria-checked="true"] { background: var(--primary); }
.toggle-thumb {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: transform .3s var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.toggle-track[aria-checked="true"] .toggle-thumb { transform: translateX(24px); }

.save-badge {
  background: rgba(34,197,94,.15);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .75rem;
  font-weight: 700;
  margin-left: 6px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: rgba(79,124,255,.4);
  background: linear-gradient(160deg, rgba(79,124,255,.07), rgba(79,124,255,.02));
  transform: translateY(-8px);
}
.pricing-card.featured:hover { transform: translateY(-12px); }

.plan-name { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

.price-val {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  margin: 8px 0 6px;
  transition: opacity .2s;
}
.price-val span { font-size: 1rem; color: var(--muted); font-weight: 400; font-family: 'DM Sans', sans-serif; }
.price-custom { font-family: 'Syne',sans-serif; font-size: 2rem; margin: 8px 0 6px; }

.plan-text { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.pricing-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.pricing-card li { color: var(--muted); font-size: .9rem; padding-left: 20px; position: relative; }
.pricing-card li::before { content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800; }

.featured-tag {
  position: absolute; top: 18px; right: 18px;
  background: rgba(79,124,255,.18);
  color: var(--primary-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 800;
}

/* ── Testimonials Carousel ────────────────────── */
.testimonials-carousel { position: relative; }

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(4, 100%);
  transition: transform .5s cubic-bezier(.22,.68,0,1);
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0 10px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--warning); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-card > p { color: var(--muted); font-style: italic; font-size: .98rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.testimonial-author strong { display: block; }
.testimonial-author span  { color: var(--muted); font-size: .85rem; }

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 28px;
}
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: var(--surface-2); transform: scale(1.08); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
}
.carousel-dot.active { background: var(--primary-2); transform: scale(1.3); }

/* ── FAQ ──────────────────────────────────────── */
.faq-container { max-width: 860px; }

.faq-search {
  position: relative;
  margin-bottom: 28px;
}
.faq-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; pointer-events: none;
}
.faq-search input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.faq-search input:focus { outline: none; border-color: rgba(79,124,255,.5); box-shadow: 0 0 0 4px rgba(79,124,255,.1); }
.faq-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; padding: 4px 8px;
  display: none;
}
.faq-clear.show { display: block; }

.faq-grid { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.active { border-color: rgba(79,124,255,.3); }
.faq-item.hidden { display: none; }

.faq-btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  background: transparent; border: none;
  color: var(--text); cursor: pointer;
  padding: 20px 24px;
  text-align: left; font-weight: 600;
}
.faq-icon { font-size: 1.3rem; flex-shrink: 0; transition: transform .3s; color: var(--muted); }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--primary-2); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--muted); font-size: .95rem; line-height: 1.7; }

.faq-no-results { text-align: center; padding: 40px; color: var(--muted); }
.faq-no-results p { margin-bottom: 20px; }

/* ── Contact ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 14px 0; }
.contact-copy p  { color: var(--muted); }

.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-icon { font-size: 1.3rem; }
.contact-item div { display: flex; flex-direction: column; gap: 2px; }
.contact-item strong { font-size: .9rem; }
.contact-item span  { color: var(--muted); font-size: .88rem; }
.contact-item a { color: var(--primary-2); }

/* Multi-step form */
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px;
}
.form-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  transition: background .3s, border-color .3s, color .3s;
}
.form-step.active .step-num, .form-step.done .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.step-label { font-size: .72rem; color: var(--muted); }
.form-step.active .step-label { color: var(--primary-2); font-weight: 600; }
.step-line {
  width: 60px; height: 2px;
  background: var(--line);
  margin-bottom: 20px;
  transition: background .3s;
}
.step-line.done { background: var(--primary); }

.form-panel { display: none; }
.form-panel.active { display: block; }
.form-panel h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-panel > p { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-group label { font-size: .85rem; font-weight: 600; color: var(--muted); }

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
body.light-mode input, body.light-mode select, body.light-mode textarea { background: #fff; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(79,124,255,.6);
  box-shadow: 0 0 0 4px rgba(79,124,255,.1);
}
textarea { min-height: 110px; resize: vertical; }

.form-nav {
  display: flex; justify-content: flex-end;
  gap: 12px; margin-top: 22px;
}

.form-success { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3rem; margin-bottom: 16px; animation: popIn .5s var(--ease); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h3 { font-size: 1.6rem; margin-bottom: 8px; }
.form-success p  { color: var(--muted); }

/* ── Footer ───────────────────────────────────── */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 700; font-size: .85rem;
  transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--text); border-color: var(--primary-2); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}

/* ── Scroll Reveal ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to Top ──────────────────────────────── */
.back-to-top {
  position: fixed; right: 22px; bottom: 80px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8,13,26,.88);
  backdrop-filter: blur(12px);
  color: var(--text); font-size: 1.1rem;
  cursor: pointer; z-index: 998;
  display: none; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
body.light-mode .back-to-top { background: rgba(255,255,255,.92); }

/* ── Sticky CTA Bar ───────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(8,13,26,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
body.light-mode .sticky-cta { background: rgba(243,246,252,.96); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta p { color: var(--muted); font-size: .9rem; }
.sticky-cta-close {
  position: absolute; right: 16px;
  background: transparent; border: none;
  color: var(--muted); cursor: pointer; font-size: .9rem;
  padding: 4px 8px;
}

/* ── Cookie Banner ────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(8,13,26,.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex; align-items: center; gap: 20px;
  z-index: 950;
  box-shadow: var(--shadow);
  width: min(92%, 640px);
  transition: opacity .4s, transform .4s;
}
body.light-mode .cookie-banner { background: rgba(255,255,255,.98); }
.cookie-banner.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.cookie-banner p { color: var(--muted); font-size: .88rem; flex: 1; }
.cookie-banner a { color: var(--primary-2); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: .85; transform: translateY(-1px); }
.cookie-btn.cookie-btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.cookie-btn.cookie-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid, .dashboard-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .badge-tl, .badge-br { display: none; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    display: none; flex-direction: column;
    align-items: flex-start; gap: 4px;
    padding: 12px 4%;
    background: rgba(8,13,26,.97);
    border-bottom: 1px solid var(--line);
    z-index: 999;
  }
  body.light-mode .nav { background: rgba(243,246,252,.98); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 16px; }
  .nav-actions .btn-ghost { display: none; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dash-metrics { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 48px; }
  .hero-copy h1 { font-size: 2.6rem; }
  .features-grid, .pricing-grid, .metrics-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .contact-grid { gap: 32px; }
  .footer-grid  { grid-template-columns: 1fr; }
  .h-stat-divider { display: none; }
  .hero-stats   { gap: 16px; flex-direction: column; }
  .sticky-cta p { display: none; }
  .announcement-inner { flex-direction: column; padding: 8px 32px 8px 0; text-align: center; }
  .form-steps { gap: 4px; }
  .step-line { width: 30px; }
  .nav-actions .btn-primary { padding: 10px 16px; font-size: .88rem; }
}
