/* ===== Design tokens ===== */
:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-light: #eef2ff;
  --accent: #06b6d4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 12px 32px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, .22);
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(79,70,229,.36); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: 1.05rem; font-weight: 800;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--ink-2); font-size: .95rem; transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }

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

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: max-height .3s ease, padding .3s ease;
}
.mobile-menu.open { max-height: 480px; padding: 12px 24px 24px; }
.mobile-menu a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: none; margin-top: 12px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(6,182,212,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(79,70,229,.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 20px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40ch; margin-bottom: 30px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.hero-trust span { font-size: .85rem; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; min-height: 380px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dash-main { padding: 20px; }
.dash-head { display: flex; align-items: center; gap: 7px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #f87171; } .dot-amber { background: #fbbf24; } .dot-green { background: #34d399; }
.dash-title { margin-left: 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.dash-body { padding-top: 20px; }
.dash-stat { display: flex; flex-direction: column; margin-bottom: 20px; }
.dash-label { font-size: .82rem; color: var(--muted); }
.dash-value { font-family: var(--display); font-size: 2.2rem; color: var(--ink); font-weight: 800; }
.dash-trend.up { color: #059669; font-size: .82rem; font-weight: 600; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.dash-bars span {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 6px 6px 0 0; opacity: .85;
  animation: grow .9s ease both;
}
@keyframes grow { from { height: 0; } }

.dash-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  animation: float 4s ease-in-out infinite;
}
.dash-float strong { display: block; font-size: .88rem; color: var(--ink); }
.dash-float small { color: var(--muted); font-size: .78rem; }
.mini-icon { font-size: 1.4rem; }
.dash-float-1 { top: 8%; right: -6%; animation-delay: .2s; }
.dash-float-2 { bottom: 6%; left: -8%; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Trust bar ===== */
.trustbar { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trustbar-label { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.trustbar-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.trustbar-items span { font-family: var(--display); font-weight: 700; color: #94a3b8; font-size: 1.15rem; letter-spacing: .02em; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head-light h2, .section-head-light .eyebrow { color: #fff; }
.section-head-light .eyebrow { background: rgba(255,255,255,.14); }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { font-size: .93rem; color: var(--muted); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ===== Stats ===== */
.stats-section { background: var(--bg-dark); background-image: radial-gradient(800px 400px at 80% 0%, rgba(79,70,229,.35), transparent 60%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; color: #fff; padding: 20px; }
.stat-num { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; display: block; background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: #cbd5e1; font-size: .95rem; }

/* ===== Quote ===== */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink); line-height: 1.4; margin-bottom: 22px; }
.quote footer { color: var(--muted); }
.quote strong { color: var(--brand); }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.price-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .02em;
}
.price-card h3 { font-size: 1.4rem; }
.price-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price { margin-bottom: 22px; }
.price-amt { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.price-features { list-style: none; margin-bottom: 26px; flex: 1; }
.price-features li { padding: 9px 0 9px 28px; position: relative; color: var(--ink-2); font-size: .95rem; border-bottom: 1px solid var(--line); }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-copy p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 22px; }
.cta-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cta-points li { color: rgba(255,255,255,.95); font-weight: 500; }

.demo-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.form-note { margin-top: 12px; font-size: .9rem; text-align: center; }
.form-note.success { color: #059669; font-weight: 600; }
.form-note.error { color: #dc2626; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--ink); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #94a3b8; font-size: .95rem; max-width: 32ch; margin-bottom: 18px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-weight: 600; transition: background .2s; }
.social a:hover { background: var(--brand); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; font-size: .92rem; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #64748b; font-size: .88rem; }
.footer-bottom a:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .steps, .pricing-grid, .stats-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .dash-float-1 { right: 0; }
  .dash-float-2 { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
