/* Quant website - plain CSS, no build step. */
:root {
  --bg-0: #03060F;
  --bg-1: #060F22;
  --bg-2: #120E1C;
  --bg-3: #3E1A07;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.74);
  --text-dim: rgba(255, 255, 255, 0.52);
  --blue: #3FA9F5;
  --blue-soft: rgba(63, 169, 245, 0.16);
  --orange: #F28C28;
  --orange-hover: #FF9D3D;
  --green: #4CD07D;
  --amber: #F5C542;
  --red: #F2545B;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg-0);
  background-image: linear-gradient(170deg, var(--bg-0) 0%, var(--bg-1) 30%, var(--bg-2) 68%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
h2.h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; color: var(--text-soft); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3, 6, 15, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-soft); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 4px;
  font: inherit; font-weight: 650; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-buy { background: var(--orange); color: #1A0D02; box-shadow: 0 8px 28px rgba(242, 140, 40, 0.35); }
.btn-buy:hover { background: var(--orange-hover); }
.btn-ghost { background: var(--glass-strong); color: var(--text); border-color: var(--glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 22px;
  border-radius: 3px; font-size: 0.85rem; font-weight: 600;
  color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(63, 169, 245, 0.3);
}
.hero h1 { max-width: 880px; margin-left: auto; margin-right: auto; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 720px; margin: 0 auto 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; }
.hero-shot { margin-top: 52px; padding: 10px; }
.hero-shot img { border-radius: 8px; width: 100%; height: auto; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 26px; }
.card p { margin: 0; font-size: 0.97rem; }

.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  font-weight: 700; color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(63, 169, 245, 0.35);
}
.icon {
  width: 40px; height: 40px; border-radius: 6px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.icon svg { width: 22px; height: 22px; }

.beats { display: inline-flex; gap: 4px; vertical-align: middle; }
.beats i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.g { background: var(--green); } .a { background: var(--amber); } .r { background: var(--red); }

/* Results */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 28px; }
.stat { padding: 26px; text-align: center; }
.stat .num { font-size: 2.3rem; font-weight: 750; color: var(--text); line-height: 1.1; }
.stat .num .arrow { color: var(--text-dim); font-weight: 400; margin: 0 6px; }
.stat .num .to { color: var(--blue); }
.stat .label { color: var(--text-soft); font-size: 0.95rem; margin-top: 8px; }
.compare { padding: 10px; }
.compare img { border-radius: 8px; width: 100%; height: auto; }
.honest { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: 0.95rem; color: var(--text-dim); }

/* Split (screenshot + text) */
.split { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.25fr 1fr; } }
.split .shot { padding: 10px; }
.split .shot img { border-radius: 8px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-soft); border: 1px solid var(--blue);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 5px; height: 8px;
  border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Pricing */
.pricing { max-width: 520px; margin: 0 auto; padding: 36px; text-align: center; background: var(--glass-strong); }
.pricing .price { font-size: 3.6rem; font-weight: 800; line-height: 1; margin: 10px 0 4px; }
.pricing .per { color: var(--text-dim); margin-bottom: 26px; }
.pricing .checks { text-align: left; margin: 0 auto 28px; max-width: 360px; }
.pricing .btn + .btn { margin-top: 12px; }
.trial-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-dim); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 24px 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer p, .site-footer a { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Legal pages */
.legal { max-width: 780px; margin: 56px auto; padding: 40px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal ul { color: var(--text-soft); padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.notice {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.92rem;
  background: rgba(245, 197, 66, 0.10); border: 1px solid rgba(245, 197, 66, 0.35); color: #F7DC8C;
}
@media (max-width: 600px) {
  .legal { padding: 26px 20px; margin: 28px auto; }
  .pricing { padding: 28px 20px; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
}

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.fine, .trial-note { color: rgba(255, 255, 255, 0.64); }
.btn-lg { padding: 18px 24px; font-size: 1.1rem; white-space: normal; text-align: center; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Try it */
.try-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .try-grid { grid-template-columns: 1.4fr 1fr; } }
.demo, .trial { padding: 28px; }
.demo-sub { font-size: 0.97rem; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.seg-btn {
  flex: 1 1 200px; padding: 12px 16px; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--glass-strong); border: 1px solid var(--glass-border);
}
.seg-btn:hover { background: rgba(255, 255, 255, 0.16); }
.seg-btn.is-on { background: var(--blue); color: #02101F; border-color: var(--blue); }
#wave { width: 100%; height: 96px; display: block; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.3); cursor: pointer; }
.player-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.play-btn { min-width: 96px; }
.click-btn { padding: 13px 16px; min-width: 104px; }
.click-btn.is-on { border-color: rgba(242, 140, 40, 0.6); color: #F8B26A; }
#seek { flex: 1; min-width: 0; accent-color: var(--blue); height: 28px; }
.time { font-variant-numeric: tabular-nums; color: var(--text-soft); font-size: 0.9rem; white-space: nowrap; }
.trial-line { margin-top: 16px; color: var(--text-soft); }
@media (max-width: 520px) { .demo, .trial { padding: 20px 16px; } .time { font-size: 0.8rem; } }
@media (max-width: 520px) { .player-row { flex-wrap: wrap; } #seek { flex: 1 1 100%; order: 3; } }
/* How it works: three big, simple steps */
.steps-big .card { padding: 30px 28px; }
.steps-big h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 0.4em; }
.steps-big p { font-size: 1.12rem; color: var(--text-soft); }
