/* ==========================================================================
   prreview — homepage styles
   Single stylesheet, no external dependencies. Dark developer-tool aesthetic.
   ========================================================================== */

:root {
  /* palette */
  --bg:        #0a0d14;
  --bg-2:      #0d111a;
  --surface:   #12161f;
  --card:      rgba(255, 255, 255, 0.028);
  --card-brd:  rgba(255, 255, 255, 0.09);
  --text:      #e7eaf1;
  --muted:     #949cb0;
  --faint:     #6b7387;

  --indigo:    #6366f1;
  --cyan:      #22d3ee;
  --violet:    #a78bfa;
  --green:     #34d399;
  --amber:     #fbbf24;
  --red:       #f87171;

  --grad:      linear-gradient(100deg, #818cf8 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(34,211,238,0.10));

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(34,211,238,0.10), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(255,255,255,0.06);
       padding: 0.12em 0.4em; border-radius: 6px; color: #cbd3ff; }

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

.grad {
  background: var(--grad);
  -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: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary {
  color: #06121a;
  background: var(--grad);
  box-shadow: 0 8px 24px -8px rgba(56,189,248,0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(56,189,248,0.7); }
.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: var(--card-brd);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10,13,20,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__name { font-size: 1.12rem; letter-spacing: -0.03em; }
.brand__mark { display: block; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-size: 0.94rem; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }
.nav__cta .btn--ghost { display: none; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 40px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-brd);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
             box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 3.75rem); margin: 22px 0 20px; }
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 34em; }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hero__points li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.96rem; }
.hero__points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.hero__points strong { color: var(--text); }

/* mock review card */
.hero__demo { perspective: 1400px; }
.review { transform: rotateY(-4deg) rotateX(2deg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); }
                    50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-10px); } }
.card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.review { padding: 0; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); }
.review__head {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.review__title { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: 8px; }
.badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge--ok { color: var(--green); background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.3); }
.review__body { padding: 18px; }
.finding { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; margin-bottom: 10px; flex-wrap: wrap; }
.sev { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 6px; font-size: 0.68rem; }
.sev--blocker { color: #fff; background: var(--red); }
.cat { color: var(--violet); background: rgba(167,139,250,0.14); padding: 2px 8px; border-radius: 6px; }
.loc { font-family: var(--mono); color: var(--faint); margin-left: auto; }
.finding__text { font-size: 0.92rem; color: var(--text); margin: 0 0 16px; }
.consensus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.1); }
.consensus__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.mchip { font-size: 0.74rem; font-family: var(--mono); padding: 3px 8px; border-radius: 999px;
         background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.25); }
.mchip--muted { background: rgba(255,255,255,0.05); color: var(--faint); border-color: rgba(255,255,255,0.1); }
.consensus__note { font-size: 0.74rem; color: var(--muted); margin-left: auto; }
.review__foot {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 13px 18px; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.78rem; color: var(--muted); background: rgba(255,255,255,0.02);
}
.review__foot strong { color: var(--text); }
.review__foot .cost { margin-left: auto; font-family: var(--mono); color: var(--cyan); }

/* trust strip */
.trust {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 56px; padding: 18px 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust__label { color: var(--faint); font-size: 0.86rem; }
.trust__logos { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--muted); }
.trust__logos .sep { color: var(--faint); }
.trust__logos .soon { color: var(--faint); font-weight: 500; }
.trust__logos .soon em { font-style: normal; font-size: 0.7rem; opacity: 0.7; }

/* ---------- problem band ---------- */
.band { padding: 30px 0 10px; }
.band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.band__item { padding: 6px 4px; }
.band__stat { font-size: 1.7rem; margin-bottom: 8px; }
.band__stat.grad, .band__item:first-child .band__stat { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band__item p { color: var(--muted); font-size: 0.98rem; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section--alt { background:
  linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 12%, rgba(255,255,255,0.015) 88%, transparent);
  border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
           text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature { padding: 28px; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.4);
                 background: rgba(99,102,241,0.05); }
.feature__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 1.4rem; border-radius: 12px; margin-bottom: 16px;
  background: var(--grad-soft); border: 1px solid var(--card-brd);
}
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; }
.feature strong { color: var(--text); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s;
         display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding: 26px 20px; border-radius: var(--radius);
        background: var(--card); border: 1px solid var(--card-brd); }
.step__num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  font-weight: 800; font-size: 1.05rem; color: #06121a; background: var(--grad);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- pricing ---------- */
.pricing { align-items: stretch; margin-top: 6px; }
.plan { padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.plan--featured {
  border-color: rgba(99,102,241,0.55);
  background:
    linear-gradient(180deg, rgba(99,102,241,0.10), rgba(34,211,238,0.04)),
    var(--card);
  box-shadow: 0 24px 60px -30px rgba(99,102,241,0.6);
  transform: translateY(-8px);
}
.plan__ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: 999px; color: #06121a; background: var(--grad);
  white-space: nowrap;
}
.plan__name { font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.plan__price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan__amt { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; }
.plan__per { color: var(--faint); font-size: 0.95rem; }
.plan__tag { color: var(--muted); font-size: 0.95rem; min-height: 2.6em; }
.plan__list { list-style: none; margin: 20px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.94rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan__list strong { color: var(--text); }
.plan__fine { margin-top: 12px; font-size: 0.78rem; color: var(--faint); text-align: center; }

/* ---------- credits explainer ---------- */
.credits { margin-top: 34px; padding: 32px; }
.credits__title { font-size: 1.25rem; margin-bottom: 22px; text-align: center; }
.credits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.credits__k { display: block; font-family: var(--mono); font-weight: 700; color: var(--cyan);
              margin-bottom: 8px; font-size: 0.98rem; }
.credits__grid p { color: var(--muted); font-size: 0.9rem; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--card-brd); border-radius: var(--radius-sm);
  background: var(--card); padding: 4px 20px; transition: border-color 0.2s;
}
.faq__item[open] { border-color: rgba(99,102,241,0.4); }
.faq__item summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
  padding: 16px 30px 16px 0; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--cyan); font-weight: 400; transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 18px; font-size: 0.96rem; }

/* ---------- final cta ---------- */
.cta { padding: 96px 0; }
.cta__inner {
  text-align: center; max-width: 720px; margin: 0 auto; padding: 60px 40px;
  border-radius: 24px; border: 1px solid rgba(99,102,241,0.35);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(99,102,241,0.22), transparent 70%),
    var(--surface);
  box-shadow: 0 40px 90px -40px rgba(99,102,241,0.5);
}
.cta__inner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta__inner > p { color: var(--muted); font-size: 1.1rem; margin: 16px auto 30px; max-width: 40em; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__fine { margin-top: 22px; color: var(--faint); font-size: 0.86rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.07); padding: 60px 0 30px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__tag { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 26em; }
.footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--muted); font-size: 0.92rem; transition: color 0.15s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--faint); font-size: 0.84rem;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__demo { max-width: 460px; }
  .review { transform: none; animation: none; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .credits__grid { grid-template-columns: 1fr 1fr; }
  .band__grid { grid-template-columns: 1fr; gap: 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .plan--featured { transform: none; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: inline-flex; }
  .hero { padding: 52px 0 30px; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .credits__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .trust { justify-content: center; text-align: center; }
  .section { padding: 64px 0; }
}

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
