/* ============================================
   AppBridge — Premium SaaS Website Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  --bg-primary: #050b18;
  --bg-secondary: #0a1628;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);

  --violet: #7c3aed;
  --violet-light: #9d65f8;
  --violet-dim: rgba(124,58,237,0.15);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.15);
  --emerald: #10b981;
  --emerald-dim: rgba(16,185,129,0.15);
  --amber: #f59e0b;
  --rose: #f43f5e;

  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);

  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-card-1: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.1));
  --gradient-card-2: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(16,185,129,0.1));
  --gradient-card-3: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(245,158,11,0.1));
  --gradient-card-4: linear-gradient(135deg, rgba(244,63,94,0.2), rgba(124,58,237,0.1));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-violet: 0 0 60px rgba(124,58,237,0.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: var(--radius-full); }

/* ─── Typography ─────────────────────────── */
h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

/* ─── Layout ──────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ─── Navigation ──────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(5,11,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--violet);
  color: var(--violet-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Hero Section ────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.6), transparent 70%);
  top: -200px; left: -100px;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 70%);
  bottom: -100px; right: -50px;
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--violet-light);
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  width: fit-content;
}

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

.hero-title { margin-bottom: 1.5rem; }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item { text-align: left; }
.stat-number { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Hero Visual ─────────────────────────── */
.hero-visual {
  position: relative;
}

.code-window {
  background: rgba(10,22,40,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(124,58,237,0.1);
  backdrop-filter: blur(20px);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.code-filename { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-left: 8px; }

.code-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

.code-line { display: flex; gap: 16px; }
.code-ln { color: var(--text-muted); user-select: none; min-width: 20px; text-align: right; }
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.at { color: #f78c6c; }
.cm { color: var(--text-muted); font-style: italic; }
.pu { color: #89ddff; }
.va { color: #eeffff; }

.floating-card {
  position: absolute;
  background: rgba(10,22,40,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: float-card 4s ease-in-out infinite;
}

.floating-card-1 { top: -20px; right: -20px; animation-delay: 0s; }
.floating-card-2 { bottom: 30px; left: -30px; animation-delay: -2s; }

.fc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.fc-icon-violet { background: var(--violet-dim); }
.fc-icon-emerald { background: var(--emerald-dim); }
.fc-icon-cyan { background: var(--cyan-dim); }

.fc-text { font-size: 0.78rem; }
.fc-title { font-weight: 600; color: var(--text-primary); }
.fc-sub { color: var(--text-muted); }

/* ─── Section Headers ─────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 1rem auto 0;
}

/* ─── How It Works ────────────────────────── */
#how-it-works { background: var(--bg-secondary); }

.steps-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-flow::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--emerald));
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.step-item.visible { opacity: 1; transform: translateY(0); }
.step-item:nth-child(2) { transition-delay: 0.1s; }
.step-item:nth-child(3) { transition-delay: 0.2s; }
.step-item:nth-child(4) { transition-delay: 0.3s; }

.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  border: 2px solid;
  position: relative;
}

.step-1 .step-number { background: var(--violet-dim); border-color: var(--violet); color: var(--violet-light); }
.step-2 .step-number { background: var(--cyan-dim); border-color: var(--cyan); color: var(--cyan); }
.step-3 .step-number { background: var(--emerald-dim); border-color: var(--emerald); color: var(--emerald); }
.step-4 .step-number { background: rgba(245,158,11,0.15); border-color: var(--amber); color: var(--amber); }

.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Integrations ────────────────────────── */
#integrations { position: relative; }

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.integration-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.integration-card:nth-child(2) { transition-delay: 0.1s; }
.integration-card:nth-child(3) { transition-delay: 0.2s; }
.integration-card:nth-child(4) { transition-delay: 0.3s; }

.integration-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
}

.integration-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.int-card-1::before { background: var(--gradient-card-1); }
.int-card-2::before { background: var(--gradient-card-2); }
.int-card-3::before { background: var(--gradient-card-3); }
.int-card-4::before { background: var(--gradient-card-4); }

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

.int-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.int-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.int-icon-1 { background: var(--violet-dim); border: 1px solid rgba(124,58,237,0.3); }
.int-icon-2 { background: var(--cyan-dim); border: 1px solid rgba(6,182,212,0.3); }
.int-icon-3 { background: var(--emerald-dim); border: 1px solid rgba(16,185,129,0.3); }
.int-icon-4 { background: rgba(244,63,94,0.15); border: 1px solid rgba(244,63,94,0.3); }

.int-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
}

.badge-violet { background: var(--violet-dim); color: var(--violet-light); border: 1px solid rgba(124,58,237,0.3); }
.badge-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(6,182,212,0.3); }
.badge-emerald { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.badge-rose { background: rgba(244,63,94,0.15); color: var(--rose); border: 1px solid rgba(244,63,94,0.3); }

.int-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.int-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 24px; position: relative; z-index: 1; }

.int-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

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

.int-features li::before {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.int-card-1 .int-features li::before { background: var(--violet-dim); color: var(--violet-light); }
.int-card-2 .int-features li::before { background: var(--cyan-dim); color: var(--cyan); }
.int-card-3 .int-features li::before { background: var(--emerald-dim); color: var(--emerald); }
.int-card-4 .int-features li::before { background: rgba(244,63,94,0.15); color: var(--rose); }

.int-code-snippet {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.int-code-snippet .kw { color: #c792ea; }
.int-code-snippet .str { color: #c3e88d; }
.int-code-snippet .fn { color: #82aaff; }

.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover { border-color: var(--violet); color: var(--violet-light); }

/* ─── Dashboard Preview ─────────────────────── */
#analytics { background: var(--bg-secondary); }

.dashboard-wrapper {
  background: rgba(10,22,40,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(124,58,237,0.15);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.dash-logo-txt { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; }

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--emerald);
}

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse-dot 2s infinite; }

.dashboard-body { display: grid; grid-template-columns: 240px 1fr; min-height: 480px; }

.dash-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.dash-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.dash-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.dash-nav li:hover { background: var(--bg-card); color: var(--text-primary); }
.dash-nav li.active { background: var(--violet-dim); color: var(--violet-light); border: 1px solid rgba(124,58,237,0.2); }
.dash-nav-icon { width: 16px; height: 16px; opacity: 0.7; }

.dash-main { padding: 28px; overflow: hidden; }

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.metric-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.metric-value { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.metric-change { font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.change-up { color: var(--emerald); }
.change-dn { color: var(--rose); }

.dash-chart-area { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.chart-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; color: var(--text-secondary); }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-bottom: 4px;
}

.chart-bar-group { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }

.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
  min-height: 4px;
}

.bar-visits { background: linear-gradient(to top, var(--violet), rgba(124,58,237,0.4)); }
.bar-installs { background: linear-gradient(to top, var(--cyan), rgba(6,182,212,0.4)); }

.bar-label { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

.chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }

.funnel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.funnel-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.funnel-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-step-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.funnel-step-name { color: var(--text-secondary); }
.funnel-step-val { font-weight: 600; color: var(--text-primary); }

.funnel-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Pricing ─────────────────────────────── */
#pricing { position: relative; }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-label { font-size: 0.9rem; color: var(--text-secondary); }
.toggle-label.active { color: var(--text-primary); font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
  background: var(--violet);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.toggle-thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch.annual .toggle-thumb { left: 28px; }

.save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(40px);
}

.pricing-card.visible { opacity: 1; transform: translateY(0); }
.pricing-card:nth-child(2) { transition-delay: 0.15s; }
.pricing-card:nth-child(3) { transition-delay: 0.3s; }

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

.pricing-card.featured {
  background: linear-gradient(145deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05));
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.1), var(--shadow-card);
}

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

.featured-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-hero);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.plan-price { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.plan-price span { font-size: 1.1rem; font-weight: 500; color: var(--text-muted); vertical-align: middle; }
.plan-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.plan-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.5; }

.plan-divider { height: 1px; background: var(--border); margin-bottom: 24px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--emerald-dim);
  color: var(--emerald);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-features li.included .plan-check { background: var(--emerald-dim); color: var(--emerald); }
.plan-features li.excluded .plan-check { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.plan-features li.excluded { opacity: 0.5; }

/* ─── Integrations Strip ─────────────────── */
#integrations-strip { background: var(--bg-secondary); padding: 60px 0; }

.strip-title { text-align: center; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 36px; }

.logos-track {
  overflow: hidden;
  position: relative;
}

.logos-track::before,
.logos-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
}

.logos-track::before { left: 0; background: linear-gradient(to right, var(--bg-secondary), transparent); }
.logos-track::after { right: 0; background: linear-gradient(to left, var(--bg-secondary), transparent); }

.logos-inner {
  display: flex;
  gap: 48px;
  animation: scroll-logos 20s linear infinite;
  width: max-content;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
  padding: 10px 20px;
}

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

.logo-dot {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ─── Testimonials ────────────────────────── */
#testimonials { position: relative; }

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card.visible { opacity: 1; transform: translateY(0); }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }

.testimonial-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.stars { display: flex; gap: 4px; margin-bottom: 16px; }
.star { color: var(--amber); font-size: 0.9rem; }

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}

.avatar-1 { background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.avatar-2 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.avatar-3 { background: linear-gradient(135deg, #f59e0b, #f43f5e); }

.author-name { font-size: 0.9rem; font-weight: 600; }
.author-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }

/* ─── CTA Section ─────────────────────────── */
#cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner h2 { margin-bottom: 1.2rem; }
.cta-inner p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; }

.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.cta-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* ─── Footer ──────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 12px 0 20px; max-width: 280px; }

.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.social-btn:hover { border-color: var(--violet); color: var(--violet-light); background: var(--violet-dim); }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-legal a:hover { color: var(--text-primary); }

/* ─── Animations ──────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes type-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Mobile Hamburger ──────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .steps-flow { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-flow::before { display: none; }
  .dashboard-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .dash-chart-area { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .floating-card { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .dash-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-actions .btn-ghost { display: none; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .steps-flow { grid-template-columns: 1fr; }
}

/* ─── Auth Modal ──────────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}
.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(15, 28, 52, 0.98) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 24px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 32px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(124,58,237,0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0;
}
.auth-modal-overlay.open .auth-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.auth-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.auth-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), #5b21b6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(124,58,237,0.4);
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 9px 16px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--violet), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.auth-tab:not(.active):hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

/* Messages */
.auth-error,
.auth-success {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.84rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}
.auth-error {
  background: rgba(244,63,94,0.12);
  border: 1px solid rgba(244,63,94,0.35);
  color: #fca5a5;
}
.auth-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.auth-input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px 12px 40px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}
.auth-input-wrap input::placeholder {
  color: var(--text-muted);
}
.auth-input-wrap input:focus {
  border-color: rgba(124,58,237,0.6);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 4px;
  border-radius: 12px;
}
.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  margin-top: 4px;
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--violet-light);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  transition: color 0.2s ease;
}
.auth-switch-btn:hover { color: #c4b5fd; text-decoration: underline; }

/* Legal */
.auth-legal {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  margin-top: 20px;
}
.auth-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-legal a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 480px) {
  .auth-modal-card {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }
}
