:root {
  --bg: #fbfbfd;
  --fg: #0e0e1a;
  --muted: #6b7180;
  --card: #ffffff;
  --border: #e8e9f0;
  --border-soft: rgba(232, 233, 240, 0.6);
  --accent: #f2eefd;
  --accent-fg: #5a3fc8;
  --primary: #6d4dff;
  --primary-glow: #a37bff;
  --radius: 14px;
  --grad-primary: linear-gradient(135deg, #6d4dff, #a37bff);
  --grad-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(163, 123, 255, 0.18), transparent 70%), linear-gradient(180deg, #fdfcff, #f5f1ff);
  --grad-cta: radial-gradient(ellipse at top, #7a5cff, #4a32b8);
  --grad-card: linear-gradient(180deg, #fff, #faf8ff);
  --shadow-soft: 0 1px 2px rgba(20, 20, 50, 0.04), 0 8px 24px rgba(20, 20, 50, 0.06);
  --shadow-elegant: 0 20px 60px -20px rgba(109, 77, 255, 0.35);
  --shadow-glow: 0 0 60px rgba(163, 123, 255, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; background: var(--grad-primary); color: #fff;
  box-shadow: var(--shadow-glow);
}
.nav-links { display: none; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: 14px; color: var(--muted); display: none; }
.nav-signin:hover { color: var(--fg); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; transition: transform 0.18s ease, background 0.18s, box-shadow 0.18s;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--fg); color: var(--bg); height: 36px; }
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: var(--shadow-elegant); height: 48px; padding: 0 24px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7); color: var(--fg);
  border-color: var(--border); height: 48px; padding: 0 24px;
  backdrop-filter: blur(8px);
}
.btn-light { background: #fff; color: var(--fg); height: 48px; padding: 0 28px; }
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.25); color: #fff; height: 48px; padding: 0 28px;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* HERO */
.hero { background: var(--grad-hero); overflow: hidden; position: relative; }
.hero-grid {
  display: grid; gap: 64px; align-items: center;
  padding: 80px 24px 96px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.6);
  font-size: 12px; color: var(--muted); backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 600;
}
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }
.micro-row { display: flex; gap: 20px; margin-top: 28px; font-size: 12px; color: var(--muted); }
.micro-row span { display: inline-flex; align-items: center; gap: 6px; }
.micro-row svg { color: var(--primary); }

/* DASHBOARD MOCK */
.dash-wrap { position: relative; }
.dash-glow {
  position: absolute; inset: -32px; z-index: 0;
  background: var(--grad-primary); opacity: 0.18; filter: blur(48px);
  border-radius: 32px;
}
.dash {
  position: relative; z-index: 1;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-elegant);
}
.dash-top {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
}
.dot-red, .dot-amber, .dot-green { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff6b6b; } .dot-amber { background: #ffc857; } .dot-green { background: #6bd99b; }
.dash-url { margin-left: 12px; height: 18px; width: 140px; border-radius: 6px; background: #f1f1f6; }
.dash-body { display: grid; grid-template-columns: 130px 1fr; }
.dash-side { padding: 16px; border-right: 1px solid var(--border-soft); }
.side-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  padding: 6px 8px; border-radius: 6px; margin-bottom: 4px;
}
.side-item span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.side-item.active { background: var(--accent); color: var(--accent-fg); }
.dash-main { padding: 20px; }
.dash-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-label { font-size: 12px; color: var(--muted); }
.dash-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.dash-chip {
  background: var(--accent); color: var(--accent-fg);
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
}
.chart { height: 112px; background: #f5f4fa; border-radius: 10px; overflow: hidden; }
.chart svg { width: 100%; height: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat { border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; }
.stat-l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.stat-v { font-size: 14px; font-weight: 600; margin-top: 4px; }

/* PROOF */
.proof { padding: 56px 0; background: #f5f5fa; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.eyebrow {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--primary);
}
.eyebrow.center { text-align: center; color: var(--muted); }
.logos {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px;
  opacity: 0.72;
}
.logos > div { text-align: center; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }

/* SECTIONS */
.section { padding: 112px 0; }
.section-muted { background: #f7f6fb; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2 {
  margin-top: 12px; font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 600;
}
.section-head .sub { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* FEATURES */
.features-grid { margin-top: 64px; display: grid; gap: 20px; grid-template-columns: 1fr; }
.feature {
  background: var(--grad-card); border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 28px; transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ficon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 20px;
}
.feature h3 { font-size: 16px; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* STEPS */
.steps { margin-top: 64px; display: grid; gap: 32px; grid-template-columns: 1fr; }
.step { background: var(--card); border: 1px solid var(--border-soft); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-soft); position: relative; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.step-n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.step-line { flex: 1; height: 1px; background: var(--border); }
.step h3 { font-size: 20px; letter-spacing: -0.015em; }
.step p { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* TESTIMONIALS */
.tgrid { margin-top: 64px; display: grid; gap: 24px; grid-template-columns: 1fr; }
.tcard {
  background: var(--grad-card); border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.stars { color: var(--primary); letter-spacing: 2px; font-size: 14px; }
.tcard blockquote { margin-top: 20px; flex: 1; font-size: 16px; line-height: 1.55; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad-primary);
  color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.t-name { font-size: 14px; font-weight: 600; }
.t-role { font-size: 12px; color: var(--muted); }

/* FINAL CTA */
.cta-section { padding: 112px 0; }
.cta-card {
  background: var(--grad-cta); color: #fff;
  border-radius: 28px; padding: 80px 32px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-elegant);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-card h2 {
  position: relative; font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 600;
}
.cta-card p { position: relative; margin-top: 16px; color: rgba(255, 255, 255, 0.8); font-size: 16px; }
.cta-card .cta-row { position: relative; margin-top: 36px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.footer .brand { color: var(--fg); }
.footer .muted { color: var(--muted); font-weight: 400; margin-left: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--fg); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (min-width: 640px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-signin { display: block; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 112px; padding-bottom: 120px; }
  .logos { grid-template-columns: repeat(6, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
}
