/* ============ Tokens ============ */
:root {
  --navy: #0b1f3a;
  --ink: #0f172a;
  --muted: #5b6b82;
  --brand: #0284c7;
  --brand-600: #0369a1;
  --brand-2: #06b6d4;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --line: #e4ecf3;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(2, 32, 71, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 32, 71, 0.16);
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .75rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(2,132,199,.35); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(2,132,199,.45); }
.btn--outline { background: #fff; color: var(--brand-600); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--brand); }
.btn--white { background: #fff; color: var(--brand-600); }
.btn--white:hover { background: #f0f9ff; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { border-color: #fff; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: .75rem;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff;
}
.brand__name span { color: var(--brand); }
.brand--light, .brand--light .brand__name { color: #fff; }
.brand--light .brand__name span { color: #7dd3fc; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links > a:not(.btn) { font-weight: 500; color: var(--muted); }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1000px 500px at 80% -10%, rgba(6,182,212,.14), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(2,132,199,.12), transparent 55%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 72px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 1.25rem 0 1.9rem; max-width: 34rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-size: 1.35rem; color: var(--ink); }
.hero__trust span { font-size: .85rem; color: var(--muted); }

/* Mock dashboard */
.hero__visual { position: relative; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.4deg); }
.mock__bar { display: flex; gap: 7px; padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d7e2ec; }
.mock__bar span:nth-child(1){ background:#ff5f57 } .mock__bar span:nth-child(2){ background:#febc2e } .mock__bar span:nth-child(3){ background:#28c840 }
.mock__body { padding: 20px; }
.mock__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi__label { display: block; font-size: .72rem; color: var(--muted); }
.kpi__val { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 18px 0; }
.mock__chart span { flex: 1; background: var(--grad); border-radius: 6px 6px 3px 3px; opacity: .88; }
.mock__rows { display: grid; gap: 8px; }
.mock__rows .row { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.row__amt { margin-left: auto; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: #22c55e; } .dot.warn { background: #f59e0b; }

/* ============ Strip ============ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; flex-wrap: wrap; }
.strip__inner > span { color: var(--muted); font-weight: 500; }
.strip__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.strip__tags span { font-size: .82rem; font-weight: 600; color: var(--brand-600); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.02em; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: .6rem; }

.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(4, 1fr); }
.grid--steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: start; }

/* Feature cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe3f2; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, #e0f2fe, #cffafe); margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Steps */
.step { text-align: center; padding: 12px; }
.step__num { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--grad); box-shadow: 0 8px 18px rgba(2,132,199,.3); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); }

/* ============ Pricing ============ */
.billing-toggle { display: inline-flex; margin: 0 auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; gap: 4px; position: relative; left: 50%; transform: translateX(-50%); }
.billing-toggle__btn { border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: .92rem; }
.billing-toggle__btn.is-active { background: var(--grad); color: #fff; }
.billing-toggle__btn em { font-style: normal; font-size: .72rem; opacity: .9; }

.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; position: relative; box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.plan__name { font-size: 1.25rem; }
.plan__desc { color: var(--muted); font-size: .92rem; margin: .35rem 0 1.1rem; min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: 1.25rem; }
.plan__amt { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; }
.plan__per { color: var(--muted); font-weight: 500; }
.plan__features { list-style: none; margin-top: 1.4rem; display: grid; gap: .7rem; }
.plan__features li { position: relative; padding-left: 1.7rem; font-size: .93rem; color: var(--ink); }
.plan__features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.plan__features li.muted { color: #9aa8b8; }
.plan__features li.muted::before { content: "–"; color: #cbd5e1; }

/* ============ CTA ============ */
.cta { background: var(--navy); background-image: var(--grad); color: #fff; }
.cta__inner { text-align: center; padding: 76px 0; }
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cta p { opacity: .92; margin: .6rem 0 1.8rem; font-size: 1.08rem; }
.cta__buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

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

/* ============ Footer ============ */
.footer { background: var(--navy); color: #c8d6e5; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding: 60px 0 40px; }
.footer__brand p { margin-top: .8rem; max-width: 22rem; font-size: .95rem; color: #9fb3c8; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer__cols a { display: block; color: #9fb3c8; font-size: .92rem; padding: .3rem 0; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: .88rem; color: #8ba0b6; flex-wrap: wrap; gap: 10px; }
.footer__login { color: #7dd3fc; font-weight: 600; }

/* ============ Scroll reveal (progressive enhancement) ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: .4rem; padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .25s ease; z-index: 40;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links .btn { width: 100%; }
  .grid--steps, .grid--pricing, .footer__inner, .footer__cols { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .grid--features { grid-template-columns: 1fr; }
  .strip__inner { justify-content: center; text-align: center; }
}
