:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);
  --brand-1: #6366f1;
  --brand-2: #22d3ee;
  --brand-3: #a855f7;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand-1) 45%, transparent);
  --header-h: 68px;
}

html[data-theme="dark"] {
  --bg: #070b14;
  --bg-alt: #0b1220;
  --surface: #0e1526;
  --surface-2: #121b31;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eaeefb;
  --muted: #98a3bd;
  --glass: rgba(12, 18, 33, .72);
  --up: #34d399;
  --down: #fb7185;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --border: rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .18);
  --text: #0f172a;
  --muted: #5b667f;
  --glass: rgba(255, 255, 255, .78);
  --up: #059669;
  --down: #e11d48;
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 780px; }
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  padding: 10px 16px; background: var(--brand-1); color: #fff; border-radius: 10px; z-index: 1000;
}

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.section__head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section__sub.left { text-align: left; }

.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, opacity .18s;
  white-space: nowrap; background: var(--btn-bg); color: var(--text);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand-1) 70%, transparent); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--brand-1) 80%, transparent); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }

.nav {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand__mark { display: grid; place-items: center; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color .18s; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
  transition: background .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-2); }
#themeToggle .i-moon { display: none; }
html[data-theme="light"] #themeToggle .i-sun { display: none; }
html[data-theme="light"] #themeToggle .i-moon { display: block; }
.nav__burger { display: none; }

.hero { padding-top: clamp(40px, 7vw, 84px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% -10% auto; height: 720px; z-index: -1;
  background: radial-gradient(46% 46% at 22% 26%, color-mix(in srgb, var(--brand-1) 34%, transparent), transparent 70%),
              radial-gradient(40% 40% at 78% 12%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero__inner { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero__copy h1 { margin-bottom: 20px; }
.hero__copy { max-width: 620px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); margin-bottom: 22px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero__note { font-size: .86rem; color: var(--muted); margin: 0; }

.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.mock__title { margin-left: 10px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.mock__body { display: grid; grid-template-columns: 54px 1fr; }
.mock__side { border-right: 1px solid var(--border); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock__item { width: 26px; height: 26px; border-radius: 9px; background: var(--surface-2); }
.mock__item.is-active { background: var(--grad); }
.mock__main { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi__label { font-size: .68rem; color: var(--muted); }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.kpi__delta { font-size: .7rem; font-weight: 600; }
.kpi__delta.up { color: var(--up); } .kpi__delta.down { color: var(--down); }
.chart { margin-top: 16px; }
.chart svg { width: 100%; height: 110px; display: block; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 14px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand-1)); opacity: .82; }

.hero__visual { position: relative; }
.float-card {
  position: absolute; font-size: .82rem; font-weight: 500; padding: 11px 15px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 8px;
  animation: float 5s var(--ease) infinite;
}
.float-card b { color: var(--text); }
.float-card--a { left: -18px; bottom: 14%; }
.float-card--b { right: -14px; top: 12%; animation-delay: 1.2s; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-3) 70%, transparent); animation: pulse 2s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.logos { padding: 14px 0 48px; }
.logos__label { text-align: center; color: var(--muted); font-size: .84rem; letter-spacing: .02em; margin-bottom: 20px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 52px); }
.logos__row span { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--muted); opacity: .68; transition: opacity .2s, transform .2s; }
.logos__row span:hover { opacity: 1; transform: translateY(-2px); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: color-mix(in srgb, var(--brand-1) 16%, transparent); color: var(--brand-2);
  margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--brand-1) 26%, transparent);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.showcase__copy .section__sub { margin-bottom: 22px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--up) 20%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px;
  border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg);
}
.showcase__panel { display: grid; gap: 14px; }
.prompt, .answer { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.prompt { border-left: 3px solid var(--border-strong); }
.answer { border-left: 3px solid var(--brand-2); box-shadow: var(--shadow); }
.prompt__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prompt__tag--ai { color: var(--brand-2); }
.prompt p, .answer p { margin: 0; }
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 74px; margin-top: 16px; }
.mini-chart span { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--brand-2), var(--brand-1)); }

.stats { padding: clamp(30px, 4vw, 56px) 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .9rem; }

.toggle { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-top: 26px; }
.toggle__btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, background .2s; }
.toggle__btn.is-active { background: var(--grad); color: #fff; }
.save { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--up) 22%, transparent); color: var(--up); }
.toggle__btn.is-active .save { background: rgba(255, 255, 255, .22); color: #fff; }

.pricing { align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan--featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 24px 70px -24px color-mix(in srgb, var(--brand-1) 60%, transparent); }
.ribbon { position: absolute; top: -13px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; }
.plan header h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan header p { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }
.price { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); }
.price__cur { font-size: 1.3rem; font-weight: 700; }
.price__amt { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; }
.price__per { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 3px; }
.price__note { color: var(--muted); font-size: .82rem; margin: 4px 0 22px; }
.plan .btn { margin-bottom: 22px; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan__list li { position: relative; padding-left: 28px; color: var(--muted); font-size: .92rem; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: rotate(-45deg); }

.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; margin: 0; }
.stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.quote blockquote { margin: 0 0 20px; font-size: 1rem; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption span:last-child { display: flex; flex-direction: column; }
.quote figcaption small { color: var(--muted); font-size: .82rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; }

.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 4px 20px; transition: border-color .2s; }
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-family: var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-2); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }

.cta { text-align: center; }
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; margin: auto; width: min(700px, 90%); height: 340px;
  background: radial-gradient(50% 60% at 50% 40%, color-mix(in srgb, var(--brand-1) 26%, transparent), transparent 72%); filter: blur(10px);
}
.cta__form { display: flex; gap: 10px; max-width: 480px; margin: 26px auto 10px; }
.cta__form input {
  flex: 1; font: inherit; padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.cta__form input:focus { outline: none; box-shadow: var(--ring); border-color: var(--brand-1); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cta__msg { min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--up); margin: 0 0 4px; }
.cta__msg.err { color: var(--down); }

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: clamp(46px, 6vw, 72px) 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand p { color: var(--muted); font-size: .92rem; max-width: 300px; margin: 14px 0 18px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); color: var(--muted); transition: color .2s, border-color .2s, transform .2s; }
.socials a:hover { color: var(--brand-2); border-color: var(--brand-2); transform: translateY(-2px); }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.footer__col a { color: var(--text); font-size: .93rem; opacity: .82; transition: opacity .2s, color .2s; }
.footer__col a:hover { opacity: 1; color: var(--brand-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--brand-2); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
  .showcase { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 16px 22px 22px; background: var(--glass); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a { padding: 10px 0; width: 100%; font-size: 1rem; color: var(--text); }
  .nav.is-open .nav__links .nav__cta { margin-top: 8px; color: #fff; text-align: center; }
}

@media (max-width: 620px) {
  .grid--3 { grid-template-columns: 1fr; }
  .cta__form { flex-direction: column; }
  .float-card--a { left: -6px; bottom: 8%; }
  .float-card--b { right: -6px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__name { display: inline; }
}
