/* ───────────────────────────────────────────────────────────────────────────
   superAEO marketing site
   Brand: Signal Bloom, indigo field (#5851EC to #3A32AE), white, one spark.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --indigo:        #5851EC;
  --indigo-deep:   #3A32AE;
  --indigo-dark:   #1c1840;
  --ink:           #14132b;
  --body:          #4a4a63;
  --muted:         #8a8aa3;
  --line:          #e7e7f0;
  --bg:            #ffffff;
  --bg-alt:        #f7f7fc;
  --bg-tint:       #f1f0fb;
  --spark:         #b9b4ff;
  --up:            #1f9d6b;

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;
  --shadow-sm:     0 1px 2px rgba(20,19,43,.05), 0 4px 16px rgba(20,19,43,.04);
  --shadow-md:     0 4px 12px rgba(20,19,43,.06), 0 24px 48px rgba(20,19,43,.08);
  --shadow-glow:   0 20px 70px rgba(88,81,236,.35);

  --maxw:          1140px;
  --ease:          cubic-bezier(.22,.61,.36,1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@supports (font-variation-settings: normal) {
  :root { --font: "Inter var", -apple-system, BlinkMacSystemFont, sans-serif; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-feature-settings: "cv05", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  --pad-y: 11px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 1px 2px rgba(58,50,174,.4), 0 8px 22px rgba(88,81,236,.32);
}
.btn--primary:hover {
  background: var(--indigo-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(58,50,174,.4), 0 14px 30px rgba(88,81,236,.42);
}
.btn--ghost {
  background: rgba(255,255,255,.0); color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo-deep); background: var(--bg-tint); }
.btn--lg { --pad-y: 15px; --pad-x: 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.85); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { border-radius: 8px; box-shadow: 0 2px 8px rgba(88,81,236,.3); }
.brand__name { font-size: 18px; color: var(--ink); letter-spacing: -0.02em; font-weight: 600; }
.brand__name strong { font-weight: 800; color: var(--indigo-deep); }

.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a {
  font-size: 15px; color: var(--body); font-weight: 500; position: relative;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--indigo); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 22px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 4px; font-size: 17px; color: var(--ink); font-weight: 500; }
.nav__mobile .btn { margin-top: 10px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(88,81,236,.10), transparent 60%),
    radial-gradient(90% 70% at 0% 10%, rgba(185,180,255,.18), transparent 55%);
  padding: 84px 0 96px;
}
.hero__glow {
  position: absolute; top: -260px; right: -180px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(88,81,236,.28), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--indigo-deep); background: var(--bg-tint);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.grad {
  background: linear-gradient(120deg, var(--indigo), var(--indigo-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px); color: var(--body);
  margin: 22px 0 30px; max-width: 30em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__micro { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Hero panel (product mock) */
.hero__panel { perspective: 1400px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg); transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hero__panel:hover .panel { transform: rotateY(0) rotateX(0); }
.panel__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.panel__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d9d9e6; }
.panel__bar .dot:nth-child(1) { background: #ff6b6b; }
.panel__bar .dot:nth-child(2) { background: #ffd166; }
.panel__bar .dot:nth-child(3) { background: #5dd39e; }
.panel__title { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.panel__body { padding: 22px; }

.kpi { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.kpi__big { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.kpi__big span { font-size: 24px; color: var(--indigo); margin-left: 2px; }
.kpi__label { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi__label .up { color: var(--up); font-style: normal; font-weight: 700; display: block; }

.engines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 11px; }
.engines li { display: grid; grid-template-columns: 78px 1fr 40px; align-items: center; gap: 12px; }
.e-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.meter { height: 8px; background: var(--bg-tint); border-radius: 99px; overflow: hidden; }
.meter i {
  display: block; height: 100%; width: var(--w);
  background: linear-gradient(90deg, var(--indigo), var(--spark));
  border-radius: 99px; transform-origin: left; animation: grow 1.1s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.e-val { font-size: 12.5px; font-weight: 700; color: var(--body); text-align: right; }

.panel__foot {
  font-size: 13.5px; color: var(--body); background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; line-height: 1.5;
}
.panel__foot strong { color: var(--ink); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--indigo-deep); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; margin-right: 8px;
}

/* ── Strip ─────────────────────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px 36px; padding: 26px 24px;
}
.strip__label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.strip__logos { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.strip__logos li {
  font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em;
  opacity: .55; transition: opacity .2s var(--ease);
}
.strip__logos li:hover { opacity: 1; }

/* ── Band (problem) ────────────────────────────────────────────────────── */
.band { padding: 84px 0; text-align: center; }
.band__inner { max-width: 760px; margin: 0 auto; }
.band__title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.band__lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--body); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 12px; }
.section__sub { margin-top: 16px; font-size: 17px; color: var(--body); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--indigo);
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s;
}
.step {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcdcec; }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep));
  box-shadow: 0 6px 16px rgba(88,81,236,.35);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }

/* ── Bento / features ──────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcdcec; }
.card--wide { grid-column: span 2; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--indigo-deep); background: var(--bg-tint);
  border: 1px solid var(--line); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; display: block; }
.card h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { font-size: 15px; margin: 0; }
.card code { background: var(--bg-tint); padding: 1px 6px; border-radius: 6px; font-size: .9em; color: var(--indigo-deep); }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--indigo-deep); background: var(--bg-tint); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 999px;
}

/* ── Why ───────────────────────────────────────────────────────────────── */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.why__copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0 18px; }
.why__copy > p { font-size: 17px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 34px; font-size: 15.5px; color: var(--body); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235851EC' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  border: 1px solid var(--line);
}

.why__viz { display: grid; place-items: center; }
.verify {
  width: 100%; max-width: 380px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md);
}
.verify__row { display: flex; justify-content: space-between; align-items: center; }
.verify__row--head { margin-bottom: 22px; }
.verify__row--head span:first-child { font-weight: 700; color: var(--ink); font-size: 15px; }
.verify__sig {
  font-size: 12px; font-weight: 700; color: var(--up);
  background: rgba(31,157,107,.1); padding: 4px 10px; border-radius: 999px;
}
.verify__chart { display: flex; align-items: flex-end; gap: 28px; height: 160px; padding: 0 16px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bar i {
  display: block; width: 100%; height: var(--h); border-radius: 10px 10px 0 0;
  background: var(--bg-tint); border: 1px solid var(--line);
  animation: rise 1s var(--ease) both;
}
.bar--after i { background: linear-gradient(180deg, var(--indigo), var(--indigo-deep)); border: 0; box-shadow: 0 8px 20px rgba(88,81,236,.3); }
.bar b { font-size: 12px; color: var(--muted); font-weight: 600; }
@keyframes rise { from { height: 0; } }
.verify__note { margin: 22px 0 0; font-size: 13.5px; color: var(--body); }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.plan {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan--feature {
  border-color: var(--indigo); box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, #fff, #fbfbff);
}
.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .03em; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(88,81,236,.4);
}
.plan__head h3 { font-size: 22px; }
.plan__price { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin: 8px 0 4px; }
.plan__price span { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__for { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }
.plan__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--body); }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235851EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.plans__foot { text-align: center; margin: 34px 0 0; font-size: 15px; color: var(--muted); }
.plans__foot a { color: var(--indigo-deep); font-weight: 600; border-bottom: 1px solid rgba(88,81,236,.3); }
.plans__foot a:hover { border-color: var(--indigo); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px; box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease);
}
.accordion details[open] { border-color: #d5d4ec; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--indigo);
  transition: transform .25s var(--ease); line-height: 1;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { margin: 0 0 20px; font-size: 15.5px; color: var(--body); }

/* ── Final CTA ─────────────────────────────────────────────────────────── */
.final {
  position: relative; overflow: hidden; text-align: center; padding: 96px 0;
  background: linear-gradient(160deg, var(--indigo-dark), var(--indigo-deep) 55%, var(--indigo));
}
.final__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 520px;
  background: radial-gradient(circle, rgba(185,180,255,.4), transparent 60%);
  filter: blur(30px); pointer-events: none;
}
.final__inner { position: relative; max-width: 640px; margin: 0 auto; }
.final__mark { margin: 0 auto 24px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.final h2 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); }
.final p { color: rgba(255,255,255,.82); font-size: 18px; margin: 18px auto 32px; max-width: 30em; }
.final .btn--primary { background: #fff; color: var(--indigo-deep); box-shadow: 0 12px 36px rgba(0,0,0,.28); }
.final .btn--primary:hover { background: #f3f2ff; color: var(--indigo-dark); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand__name { color: #fff; }
.footer .brand__name strong { color: var(--spark); }
.footer__brand p { margin: 16px 0 0; font-size: 14.5px; max-width: 26em; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .02em; }
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; color: rgba(255,255,255,.66); transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ── Reveal animation ──────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .meter i, .bar i { animation: none; }
  .panel { transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { max-width: 480px; }
  .panel { transform: none; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .steps, .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .plan--feature { order: -1; }
  .section { padding: 68px 0; }
  .band { padding: 64px 0; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .hero { padding: 56px 0 68px; }
}
