/* ===== Design tokens ===== */
:root {
  --brand: #4355f5;
  --brand-dark: #2f3fd6;
  --brand-light: #eef0ff;
  --ink: #0b0d14;
  --ink-2: #3a3f4d;
  --muted: #6b7280;
  --line: #e8eaf0;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --green: #19c37d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 20, 40, .06), 0 1px 2px rgba(16, 20, 40, .04);
  --shadow: 0 12px 40px rgba(20, 28, 80, .10);
  --shadow-lg: 0 30px 70px rgba(20, 28, 80, .16);
  --container: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(67, 85, 245, .28); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(67, 85, 245, .38); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 32px; }
.nav__link { color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__link:hover { color: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(67, 85, 245, .10), transparent 70%),
    radial-gradient(50% 40% at 10% 20%, rgba(67, 85, 245, .06), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.6rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.hero__lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* Hero visual */
.hero__visual { position: relative; }
.dashboard {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dashboard__bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.dashboard__dot { width: 11px; height: 11px; border-radius: 50%; background: #d6d9e4; }
.dashboard__dot:nth-child(1) { background: #ff5f57; }
.dashboard__dot:nth-child(2) { background: #febc2e; }
.dashboard__dot:nth-child(3) { background: #28c840; }
.dashboard__body { padding: 24px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px; }
.stat__label { display: block; font-size: .78rem; color: var(--muted); }
.stat__value { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat__trend { font-size: .78rem; color: var(--green); font-weight: 600; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.chart__bar {
  flex: 1; height: var(--h); border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--brand), #8b97ff);
  animation: rise .9s var(--ease) both;
}
.chart__bar:nth-child(even) { opacity: .55; }
@keyframes rise { from { height: 0; } to { height: var(--h); } }

.card-float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}
.card-float strong { display: block; font-size: .85rem; }
.card-float span { font-size: .75rem; color: var(--muted); }
.card-float--1 { top: -22px; left: -28px; }
.card-float--2 { bottom: -24px; right: -22px; animation-delay: -2s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--blue { background: var(--brand); box-shadow: 0 0 0 4px rgba(67, 85, 245, .18); }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(25, 195, 125, .18); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Proof ===== */
.proof { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__label { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.proof__logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; }
.proof__logos span { font-weight: 700; font-size: 1.15rem; color: #aab0c0; letter-spacing: -.01em; }

/* ===== Section heads ===== */
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; margin-top: 12px; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ===== Features ===== */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--brand-light); border-radius: 12px; margin-bottom: 18px;
}
.feature__icon i { font-size: 1.5rem; line-height: 1; color: var(--brand); }
.pill i { font-size: 1rem; line-height: 1; }
.feature h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

/* ===== Steps ===== */
.step { text-align: center; padding: 12px; }
.step__num {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px;
  background: var(--brand); color: #fff; border-radius: 50%; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(67, 85, 245, .3);
}
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 8px; color: var(--muted); }

/* ===== Pricing ===== */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -24px 0 44px; }
.billing-toggle__label { font-weight: 600; color: var(--muted); transition: color .2s; }
.billing-toggle__label.is-active { color: var(--ink); }
.save { background: var(--brand-light); color: var(--brand-dark); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-left: 4px; }
.switch { width: 50px; height: 28px; border-radius: 999px; border: 0; background: var(--brand); cursor: pointer; padding: 3px; position: relative; }
.switch__knob { display: block; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(22px); }

.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.25rem; }
.plan__desc { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.plan__price { display: flex; align-items: flex-start; gap: 2px; margin: 22px 0; }
.plan__currency { font-size: 1.4rem; font-weight: 700; margin-top: 6px; }
.plan__amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan__period { color: var(--muted); align-self: flex-end; margin-bottom: 6px; font-weight: 500; }
.plan__features { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.plan__features li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .95rem; }
.plan__features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 800;
}
.plan .btn { margin-top: 4px; }

/* ===== Testimonials ===== */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.quote p { font-size: 1.05rem; color: var(--ink-2); }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600; }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
}

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

/* ===== Final CTA ===== */
.cta { padding: 0 0 96px; }
.cta__box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), #6d7cff);
  border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff;
}
.cta__box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 80% 0%, rgba(255, 255, 255, .18), transparent 70%);
}
.cta__box > * { position: relative; }
.cta__box h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.03em; }
.cta__box p { margin-top: 12px; opacity: .92; font-size: 1.1rem; }
.cta__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta__input {
  flex: 1; min-width: 240px; max-width: 320px;
  padding: 15px 20px; border-radius: 999px; border: 0; font-size: 1rem; font-family: inherit;
}
.cta__input:focus { outline: 3px solid rgba(255, 255, 255, .5); }
.cta__form .btn--primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta__form .btn--primary:hover { background: var(--ink); color: #fff; }
.cta__msg { margin-top: 16px; font-weight: 600; min-height: 1.2em; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c4c8d4; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 48px; }
.footer .logo { color: #fff; }
.footer__brand p { margin-top: 12px; font-size: .92rem; color: #8a90a2; max-width: 260px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__col h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: .9rem; color: #9aa0b0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #232733; font-size: .85rem; color: #8a90a2;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #1c202b; color: #c4c8d4; font-size: .9rem; transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--brand); color: #fff; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__lead { max-width: none; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav, .header__actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .grid--3 { grid-template-columns: 1fr; }
  .proof__logos { gap: 28px; }
  .proof__logos span { font-size: 1rem; }
  .card-float--1 { left: 0; }
  .card-float--2 { right: 0; }
}
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .cta__box { padding: 48px 20px; }
}

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