/* ===== Design tokens ===== */
:root {
  --bg: #0b1020;
  --bg-soft: #0f1630;
  --surface: #ffffff;
  --ink: #0e1424;
  --ink-soft: #4b5568;
  --line: #e6e9f0;
  --brand: #6d5efc;
  --brand-2: #22d3ee;
  --brand-ink: #4b3ff0;
  --accent: #ff7a59;
  --ok: #1fbf75;
  --down: #ef5a7a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px -18px rgba(29, 22, 84, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(29, 22, 84, 0.25);
  --maxw: 1140px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fbfbfe;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  box-shadow: 0 12px 26px -10px rgba(109, 94, 252, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(109, 94, 252, 0.75); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-light { background: #fff; color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header (floating pill) ===== */
.site-header {
  position: sticky; top: 14px; z-index: 50; margin-top: 14px;
  background: transparent; border: 0; backdrop-filter: none;
  padding: 0 16px;
}
.nav {
  display: flex; align-items: center; gap: 24px; height: 62px;
  padding: 0 12px 0 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  box-shadow: 0 14px 34px -18px rgba(20,16,60,0.45);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled .nav {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 42px -18px rgba(20,16,60,0.55);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.brand strong { font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px -8px rgba(109, 94, 252, 0.7);
}
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: 12px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero (full-bleed gradient banner) ===== */
.hero {
  position: relative; overflow: hidden; padding: 84px 0 56px; color: #fff;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(120, 224, 255, 0.55), transparent 58%),
    radial-gradient(760px 560px at 8% 96%, rgba(122, 92, 255, 0.6), transparent 60%),
    linear-gradient(140deg, #6a4dfb 0%, #5b46f2 42%, #4a37e6 100%);
}
.hero-glow {
  position: absolute; inset: -30% -10% auto 30%; height: 620px;
  background: radial-gradient(600px 320px at 60% 20%, rgba(255,255,255,0.28), transparent 60%);
  z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.grad {
  background: linear-gradient(120deg, #ffffff 0%, #a9f3ff 60%, #d8ccff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,0.9); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Banner-style pill CTAs (like the reference) */
.hero .btn-primary {
  background: #fff; color: var(--brand-ink);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,0.45); letter-spacing: .02em;
}
.hero .btn-primary:hover { background: #fff; box-shadow: 0 22px 40px -14px rgba(0,0,0,0.5); }
.hero .btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.6);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: #fff; }

.hero-badges { display: flex; gap: 22px; list-style: none; margin-top: 28px; flex-wrap: wrap; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; }

/* Hero phone mockup */
.hero-card { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; padding: 12px; border-radius: 42px;
  background: linear-gradient(160deg, #1a2150, #0c1230);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 50px 90px -30px rgba(23, 16, 74, 0.75), inset 0 0 0 2px rgba(255,255,255,0.04);
  animation: floaty 6s ease-in-out infinite;
}
.notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; border-radius: 0 0 14px 14px; background: #0c1230; z-index: 3; }
.phone-screen {
  position: relative; border-radius: 32px; padding: 42px 18px 18px; overflow: hidden;
  background: linear-gradient(180deg, #f7f7fd 0%, #eef0fb 100%); color: var(--ink);
  min-height: 520px;
}
.app-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #444c66; margin-bottom: 14px; }
.app-status-icons { letter-spacing: 1px; font-size: 10px; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-head small { color: var(--ink-soft); font-size: 12px; }
.app-head b { display: block; font-size: 16px; font-weight: 800; }
.app-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 16px -6px rgba(109,94,252,.6); }

.balance {
  border-radius: 18px; padding: 18px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  box-shadow: 0 18px 34px -14px rgba(109,94,252,.7);
}
.balance small { opacity: .85; font-size: 12px; }
.balance-val { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 6px; }
.balance-up { font-size: 12px; font-weight: 700; color: #c6ffe4; }
.balance-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 14px; }
.balance-bars span { flex: 1; height: var(--h); border-radius: 4px; background: rgba(255,255,255,.4); animation: grow .9s ease both; }
.balance-bars span:last-child { background: #fff; }
@keyframes grow { from { height: 6%; opacity: .3; } }

.app-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.app-list-head a { color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.app-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; margin-bottom: 9px; }
.ai-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ai-info { flex: 1; min-width: 0; }
.ai-info b { display: block; font-size: 13.5px; font-weight: 700; }
.ai-info small { color: var(--ink-soft); font-size: 11.5px; }
.ai-amt { font-weight: 800; font-size: 14px; }
.app-cta {
  width: 100%; margin-top: 8px; padding: 13px; border: 0; border-radius: 14px; cursor: default;
  color: #fff; font-family: inherit; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  box-shadow: 0 12px 24px -10px rgba(109,94,252,.65);
}

/* Floating badges */
.float-badge {
  position: absolute; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700;
  padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; z-index: 4;
}
.fb-1 { top: 14%; right: -14px; color: var(--ok); animation: floaty 4s ease-in-out infinite; }
.fb-2 { bottom: 12%; left: -20px; color: var(--brand-ink); animation: floaty 4.6s ease-in-out infinite .4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.alt { background: #f4f5fb; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; color: var(--brand-ink); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow.light { color: #fff; opacity: .85; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.fi { width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px; border-radius: 14px; background: linear-gradient(135deg, rgba(109,94,252,.12), rgba(34,211,238,.12)); margin-bottom: 16px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  box-shadow: 0 10px 20px -8px rgba(109,94,252,.6);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Business value */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 52px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  border-radius: var(--radius-lg); padding: 32px 24px; color: #fff;
  box-shadow: 0 26px 50px -22px rgba(109,94,252,.6);
}
.stat-box { text-align: center; position: relative; }
.stat-box + .stat-box::before { content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); height: 44px; width: 1px; background: rgba(255,255,255,.2); }
.stat-box b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.stat-box small { font-size: 13.5px; opacity: .9; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { padding: 8px 4px; }
.benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: 15px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff, #f7f6ff);
  box-shadow: var(--shadow); transform: translateY(-8px);
  outline: 2px solid rgba(109,94,252,.35);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 20px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.price span { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price small { color: var(--ink-soft); font-weight: 600; }
.price-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.price-card ul { list-style: none; margin-bottom: 24px; display: grid; gap: 10px; }
.price-card li { font-size: 15px; padding-left: 26px; position: relative; color: #2b3350; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* Trial section */
.trial-section {
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(109,94,252,0.35), transparent 60%),
    radial-gradient(700px 340px at 90% 100%, rgba(34,211,238,0.28), transparent 60%),
    linear-gradient(160deg, #171d43 0%, #0d1330 100%);
  color: #eef1ff;
}
.trial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trial-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.trial-copy p { color: #c3c9ef; font-size: 17px; margin-top: 14px; max-width: 480px; }
.trial-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; font-weight: 600; color: #dfe3fb; }

/* Form */
.trial-form-wrap { position: relative; }
.trial-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
}
.trial-form h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field label .opt { color: var(--ink-soft); font-weight: 500; }
.field input, .field select {
  font-family: inherit; font-size: 15px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fbfbfe; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(109,94,252,.15);
}
.field input.invalid, .field select.invalid { border-color: var(--down); box-shadow: 0 0 0 4px rgba(239,90,122,.12); }
.error { color: var(--down); font-size: 12.5px; font-weight: 600; margin-top: 6px; min-height: 0; }
.form-note { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.trial-form .btn-lg { margin-top: 6px; }

.form-success { text-align: center; padding: 12px 0 6px; }
.form-success .check {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 14px; font-size: 30px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--ok), #17a86a); box-shadow: 0 12px 26px -10px rgba(31,191,117,.7);
  animation: pop .4s ease both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.form-success h4 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: 15px; }

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

/* CTA band */
.cta-band { text-align: center; padding: 80px 0; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; }
.cta-band p { margin: 12px auto 26px; font-size: 18px; opacity: .92; max-width: 520px; }

/* Footer */
.site-footer { background: #0c1128; color: #b9c0e0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 300px; color: #949bc2; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col a { display: block; font-size: 14px; color: #949bc2; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: #7d84a8;
}
.footer-legal a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .trial-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 460px; }
  .feature-grid, .steps, .price-grid, .benefits-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-box:nth-child(odd)::before { display: none; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Collapse the text links into the hamburger, but keep both header buttons
     (Start free trial + Log in) visible. */
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-login { margin-left: 4px; }
  .nav-toggle { display: flex; margin-left: 4px; }
  .nav-links.open {
    display: flex; position: absolute; top: calc(100% + 10px); left: 8px; right: 8px;
    flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 18px 22px; gap: 16px; margin: 0;
    box-shadow: 0 22px 44px -18px rgba(20,16,60,0.4);
  }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .feature-grid, .steps, .price-grid, .benefits-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
}
/* On the narrowest phones, drop the trial CTA from the header (it's still front
   and centre in the hero); the Log in button stays. */
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
