/* ===== Design tokens ===== */
:root {
  --bg: #0b0b0f;
  --bg-2: #131318;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(173, 164, 255, 0.30);
  --text: #f4f3fb;
  --muted: #a8a4be;
  --muted-2: #7e7b94;
  --indigo: #7d6fff;
  --purple: #a89dff;
  --pink: #b9acff;
  --gradient: linear-gradient(135deg, #897bff 0%, #a89dff 50%, #cdc8ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(137, 123, 255, .16), rgba(205, 200, 255, .10));
  --glow: 0 18px 50px -14px rgba(137, 123, 255, .55);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 50% -8%, rgba(137, 123, 255, .16), transparent 62%),
    radial-gradient(45% 40% at 88% 6%, rgba(168, 157, 255, .10), transparent 60%),
    radial-gradient(60% 50% at 50% 112%, rgba(137, 123, 255, .10), transparent 60%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.12; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  --pad-y: .82rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .9rem; }
.btn-lg { --pad-y: 1rem; --pad-x: 2rem; font-size: 1.05rem; }
.btn-xl { --pad-y: 1.15rem; --pad-x: 2.6rem; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; }
.btn-gradient { background: var(--gradient); color: #fff; box-shadow: var(--glow); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px rgba(137, 123, 255, .6); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--purple); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 7, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 14px rgba(137, 123, 255, .45)); }
.brand-ai { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s ease; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; text-align: center; animation: fadeUp .8s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; margin: 1.1rem 0; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1.6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--gradient-soft); border: 1px solid var(--border-strong);
  font-size: .85rem; font-weight: 600; color: #e9e3ff;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero-badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-badges li { white-space: nowrap; }

/* Floating orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .30; z-index: 1; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 360px; height: 360px; background: var(--indigo); top: -60px; left: -80px; }
.orb-2 { width: 320px; height: 320px; background: var(--pink); top: 40px; right: -70px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: var(--purple); bottom: -120px; left: 40%; animation-delay: -8s; }
.orb-cta { width: 420px; height: 420px; background: var(--purple); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .22; filter: blur(90px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* ===== Trust bar ===== */
.trustbar { padding: 1.4rem 0; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted-2); font-size: .86rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: rgba(255, 255, 255, .015); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--purple); margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }

/* ===== Grids ===== */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }

/* Feature card */
.feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.feature:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 1.25rem 1.35rem 1.45rem; }
.feature-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature-body p { color: var(--muted); font-size: .95rem; }
@media (max-width: 920px) { #features .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* Why-PolyBuzz benefit cards */
.why-grid .card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.why-grid .card p { color: var(--muted); font-size: .96rem; line-height: 1.65; }

/* ===== Ranking / Comparison ===== */
.ranking { display: flex; flex-direction: column; gap: 1rem; max-width: 920px; margin-inline: auto; }
.rank-row {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.6rem;
  transition: border-color .22s ease, transform .22s ease;
}
.rank-row:hover { transform: translateY(-3px); }
.rank-top { border-color: rgba(168, 157, 255, .5); background: linear-gradient(135deg, rgba(137, 123, 255, .12), rgba(205, 200, 255, .06)); box-shadow: 0 0 0 1px rgba(168, 157, 255, .22), 0 24px 60px -24px rgba(137, 123, 255, .5); padding-top: 2.1rem; }
.ribbon { position: absolute; top: 0; left: 1.6rem; transform: translateY(-50%); background: var(--gradient); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .04em; padding: .3rem .9rem; border-radius: 999px; box-shadow: var(--glow); }
.rank-badge { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.7rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--gradient); color: #fff; }
.rank-badge.muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.rank-info h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.rank-info p { color: var(--muted); font-size: .95rem; }
.rank-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.rank-tags li { font-size: .78rem; font-weight: 600; color: #e9e3ff; padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.rank-score { text-align: center; min-width: 130px; }
.score { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.1rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.score span { font-size: .9rem; -webkit-text-fill-color: var(--muted-2); }
.score.muted { background: none; -webkit-text-fill-color: var(--text); color: var(--text); opacity: .85; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: .95rem; }
.stars.muted { color: #6b6486; }
.rank-score .stars { display: block; margin: .35rem 0 .8rem; }
.rank-note { display: inline-block; font-size: .82rem; color: var(--muted-2); font-weight: 600; }
.compare-foot { text-align: center; color: var(--muted); margin-top: 1.8rem; font-size: 1.02rem; }

/* ===== Companions ===== */
.companion { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.companion-photo { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.companion-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.photo-1 { background: linear-gradient(150deg, #6d5dff, #b3aaff); }
.photo-2 { background: linear-gradient(150deg, #9a8dff, #d4cfff); }
.photo-3 { background: linear-gradient(150deg, #5b4bff, #a99dff); }
.photo-4 { background: linear-gradient(150deg, #897bff, #c7c1ff); }
.companion-letter { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 3.4rem; color: rgba(255, 255, 255, .92); text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.online { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.companion-body { padding: 1rem 1.1rem 1.2rem; }
.companion-body h3 { font-size: 1.1rem; }
.companion-body h3 span { color: var(--muted-2); font-weight: 500; }
.companion-type { color: var(--purple); font-size: .88rem; font-weight: 600; margin-top: .1rem; }
.companion-meta { display: flex; align-items: center; gap: .45rem; margin: .55rem 0 .8rem; color: var(--muted); font-size: .88rem; }
.companion-cta { font-weight: 700; font-size: .92rem; color: #fff; }
.companion:hover .companion-cta { color: var(--pink); }

/* ===== Steps ===== */
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.6rem; position: relative; }
.step-num { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gradient); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; box-shadow: var(--glow); }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; }
#how .center { margin-top: 2.4rem; }

/* ===== Testimonials ===== */
.quote { display: flex; flex-direction: column; gap: .8rem; }
.quote blockquote { color: #e7e2f7; font-size: 1rem; }
.quote figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--muted); font-size: .92rem; margin-top: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: .92rem; }
.a1 { background: linear-gradient(135deg, #6d5dff, #a89dff); }
.a2 { background: linear-gradient(135deg, #9a8dff, #cdc8ff); }
.a3 { background: linear-gradient(135deg, #5b4bff, #897bff); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { font-size: 1.4rem; color: var(--purple); transition: transform .25s ease; line-height: 1; flex-shrink: 0; }
.faq-item[open] .chev { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-a a { color: var(--pink); font-weight: 600; }

/* ===== About / prose ===== */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--muted); font-size: 1.06rem; line-height: 1.8; margin-bottom: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--pink); font-weight: 600; }
.prose a:hover { color: var(--purple); }

/* ===== Language switcher ===== */
.lang-switch { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.lang-switch a { color: var(--muted-2); font-size: .8rem; font-weight: 600; padding: .28rem .65rem; border: 1px solid var(--border); border-radius: 999px; transition: color .2s ease, border-color .2s ease; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: var(--text); border-color: var(--border-strong); }

/* ===== Final CTA ===== */
.final-cta { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; }
.final-inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.final-cta p { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 2rem; }
.final-cta .btn { margin-inline: auto; }
.final-fine { font-size: .86rem; color: var(--muted-2); margin-top: 1.2rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, .25); padding-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-brand p { color: var(--muted-2); font-size: .92rem; margin-top: .6rem; max-width: 280px; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 500; font-size: .94rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.6rem 0 2.4rem; }
.disclosure { color: var(--muted-2); font-size: .8rem; max-width: 760px; margin-bottom: .8rem; }
.disclosure strong { color: var(--muted); }
.copyright { color: var(--muted-2); font-size: .85rem; }
.copyright a { color: var(--muted); }
.copyright a:hover { color: var(--text); }

/* ===== Scroll reveal ===== */
/* Hidden state only applies when JS is active (html.js), so no-JS users and
   crawlers always see content. The hero never uses .reveal — it animates via CSS. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: rgba(12, 8, 24, .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 1rem 1.4rem 1.4rem;
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav > a:not(.btn) { padding: .7rem .2rem; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: .6rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .rank-row { grid-template-columns: auto 1fr; row-gap: 1.1rem; }
  .rank-score { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
  .rank-score .stars { margin: 0; }
  .rank-score .btn { width: auto; flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .rank-row { padding: 1.3rem; }
  .ribbon { left: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .hero-inner { animation: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Legal & content pages ===== */
.legal-nav { display: flex; align-items: center; gap: 1.3rem; }
.legal-nav > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s ease; }
.legal-nav > a:not(.btn):hover { color: var(--text); }

.legal { max-width: 800px; margin-inline: auto; padding: clamp(2.2rem, 5vw, 3.8rem) 22px 1.5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: .5rem; }
.legal .updated { color: var(--muted-2); font-size: .9rem; margin-bottom: 2.4rem; }
.legal .lead { font-size: 1.1rem; color: var(--text); margin-bottom: 1.5rem; }
.legal h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); margin: 2.6rem 0 .8rem; }
.legal h3 { font-family: 'Inter', sans-serif; letter-spacing: 0; font-size: 1.06rem; color: var(--text); margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: #cbc8da; line-height: 1.75; }
.legal p { margin-bottom: 1.05rem; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.legal li { margin: .4rem 0; }
.legal a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #c9c3ff; }
.legal strong { color: var(--text); }
.legal .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.3rem; margin: 1.4rem 0; }
.legal .card p { margin-bottom: .6rem; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 2.6rem 0; }
