/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --purple: #7e14ff;
  --purple-600: #6d0fe0;
  --purple-100: #ede6ff;
  --cyan: #47bfff;
  --ink: #0d0b18;
  --body: #45424f;
  --muted: #6b6878;
  --line: #e8e5f0;
  --bg: #ffffff;
  --bg-alt: #f7f5fc;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(126, 20, 255, 0.22);
  --shadow-sm: 0 2px 12px rgba(13, 11, 24, 0.06);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-100); padding: 6px 12px; border-radius: 999px;
}
.grad {
  background: linear-gradient(100deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; padding: 11px 20px;
  border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 6px 20px -6px rgba(126,20,255,.5); }
.btn--primary:hover { background: var(--purple-600); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--purple); color: var(--purple); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: var(--purple); }
.btn--light { background: #fff; color: var(--purple); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.brand__ai { color: var(--purple); }
.nav__links { display: flex; gap: 28px; margin-left: 12px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--body); }
.nav__links a:hover { color: var(--purple); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 60px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(126,20,255,.10), transparent 70%),
    radial-gradient(700px 360px at 85% 10%, rgba(71,191,255,.10), transparent 70%);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin: 22px 0 18px; }
.hero__sub { max-width: 660px; font-size: 1.12rem; color: var(--muted); }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 12px; flex-wrap: wrap; justify-content: center; }
.hero__note { font-size: 0.88rem; color: var(--muted); }

/* App mock */
.hero__mock { width: 100%; margin-top: 52px; perspective: 1600px; }
.mock {
  max-width: 940px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #d8d4e4; }
.mock__url { margin-left: 12px; font-size: 0.8rem; color: var(--muted); background: #fff; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); }
.mock__body { display: grid; grid-template-columns: 188px 1fr; min-height: 320px; }
.mock__side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fbfaff; display: flex; flex-direction: column; gap: 4px; }
.mock__logo { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 0.9rem; margin-bottom: 12px; }
.mock__nav { font-size: 0.85rem; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.mock__nav--active { background: var(--purple-100); color: var(--purple); font-weight: 600; }
.mock__main { padding: 20px; }
.mock__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.stat__label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat__num { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.stat__num small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.stat__trend { font-size: 0.74rem; font-weight: 600; }
.stat__trend.up { color: var(--green); }
.stat__trend.down { color: var(--purple); }
.mock__rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--body); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.pill { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.pill--green { background: #e7f7ee; color: var(--green); }
.pill--amber { background: #fdf1e1; color: var(--amber); }

/* ── Frameworks strip ───────────────────────────────────── */
.strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip__label { text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.strip__list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; }
.strip__list li { font-weight: 600; font-size: 0.92rem; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.section__lead { font-size: 1.08rem; color: var(--muted); }
.section__lead.center { text-align: center; }

/* Problem */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.problem__list li { position: relative; padding-left: 30px; color: var(--body); }
.problem__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--purple-100); color: var(--purple); border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; }
.problem__list strong { color: var(--ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(126,20,255,.25); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem; background: var(--purple-100); border-radius: 12px; margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; background: var(--purple); color: #fff; font-weight: 800; border-radius: 11px; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Integrations */
.logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-chip { font-weight: 600; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 12px 22px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: .18s; }
.logo-chip:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.price--featured { border-color: var(--purple); box-shadow: var(--shadow); }
.price__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; }
.price__name { font-size: 1.15rem; margin-bottom: 10px; }
.price__amt { font-size: 2rem; font-weight: 800; color: var(--ink); display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price__amt span { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.price__desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.price__feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.price__feats li { position: relative; padding-left: 24px; font-size: 0.9rem; }
.price__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 800; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq__item summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none; 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.4rem; color: var(--purple); font-weight: 400; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--muted); padding: 0 0 18px; font-size: 0.95rem; }

/* CTA band */
.cta { padding: 76px 0; background: linear-gradient(120deg, var(--purple), #5a0fb8); }
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; }
.cta .btn { margin-top: 8px; }

/* Footer */
.footer { background: var(--ink); color: #cfcbe0; padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: 12px; font-size: 0.92rem; color: #9d99b3; max-width: 300px; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer__cols h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 0.92rem; color: #9d99b3; padding: 5px 0; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.84rem; color: #807c96; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2,1fr); }
  .pricing { grid-template-columns: repeat(2,1fr); }
  .problem__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px; margin: 0;
  }
  .nav.open .nav__links a { padding: 10px 0; }
  .steps { grid-template-columns: 1fr; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__stats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards, .pricing { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2,1fr); }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
