/* =============================================================================
   VWAP Reversion — website styles
   Dark theme matching the backtester/indicator aesthetic.
   ============================================================================= */

:root {
  --bg:        #0a0b0d;
  --surface:   #141518;
  --surface-2: #1b1d22;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.16);
  --text:      #e8e8ea;
  --muted:     #9a9ba1;
  --dim:       #6b6d74;
  --accent:    #4fd1c5;   /* teal — primary CTA */
  --accent-2:  #3cb8ad;
  --win:       #3dd68c;
  --loss:      #ff4d6d;
  --amber:     #f0b957;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  --container-max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0; }

/* Layout ------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }

.section-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 40px;
}

/* Header / nav ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 13px;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  padding: 7px 14px;
  background: var(--accent);
  color: #0b1311;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-2); color: #0b1311; }

/* Hero --------------------------------------------------------------------- */
.hero {
  padding: 88px 0 104px;
  text-align: center;
  background: radial-gradient(1200px 500px at 50% -100px, rgba(79, 209, 197, 0.08), transparent 60%);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 20px;
}

.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0b1311;
}
.btn-primary:hover { background: var(--accent-2); color: #0b1311; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-note {
  margin-top: 28px;
  color: var(--dim);
  font-size: 12px;
}
.hero-note a { color: var(--muted); border-bottom: 1px dotted var(--border-2); }

/* Social proof strip -------------------------------------------------------- */
.proof-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.proof-card {
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.proof-card blockquote {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.proof-card cite {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.proof-card cite b { color: var(--text); font-weight: 600; }

/* How it works ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.step-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
  letter-spacing: -0.04em;
  position: absolute;
  top: 18px;
  right: 22px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 14px; }

/* Pricing ------------------------------------------------------------------ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}
.tier:hover { border-color: var(--border-2); }
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.08);
}
.tier-badge {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 209, 197, 0.12);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.tier h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.tier .tier-tag {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.tier .tier-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.tier .tier-cycle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.tier ul li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tier ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  width: 12px;
  flex-shrink: 0;
}
.tier ul li.dim {
  color: var(--dim);
}
.tier ul li.dim::before {
  content: "—";
  color: var(--dim);
}
.tier .btn { width: 100%; justify-content: center; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
}

/* Track record ------------------------------------------------------------- */
.track-placeholder {
  padding: 40px;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}
.track-placeholder p { margin-top: 12px; font-size: 14px; }
.track-placeholder code {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--amber);
}

/* FAQ ---------------------------------------------------------------------- */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.faq-item p {
  color: var(--muted);
  font-size: 14px;
}

/* Risk-disclosure strip ---------------------------------------------------- */
.risk-strip {
  background: rgba(240, 185, 87, 0.07);
  border-top: 1px solid rgba(240, 185, 87, 0.22);
  border-bottom: 1px solid rgba(240, 185, 87, 0.22);
  padding: 24px 0;
}
.risk-strip p {
  font-size: 13px;
  color: var(--amber);
  max-width: 820px;
  line-height: 1.55;
}
.risk-strip strong { color: #ffcd85; font-weight: 600; }
.risk-strip a { color: var(--amber); border-bottom: 1px dotted rgba(240, 185, 87, 0.4); }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-row h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.footer-row ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-row li { margin-bottom: 8px; }
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--text); }
.footer-row .footer-brand-blurb {
  color: var(--dim);
  font-size: 12px;
  max-width: 320px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--dim);
}

/* Legal pages -------------------------------------------------------------- */
.legal-page {
  padding: 72px 0;
  max-width: 820px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 18px;
  color: var(--text);
  margin: 40px 0 12px;
}
.legal-page h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-page p, .legal-page li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-page ul, .legal-page ol {
  padding-left: 20px;
}
.legal-page .callout {
  padding: 16px 20px;
  background: rgba(240, 185, 87, 0.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  color: #f3c987;
  font-size: 13px;
  line-height: 1.6;
}
.legal-page .callout strong { color: #ffd99a; }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }

/* Cookie banner ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
  animation: cookie-in 0.25s ease-out;
}
@keyframes cookie-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-leaving { animation: cookie-out 0.2s ease-in forwards; }
@keyframes cookie-out {
  to { transform: translateY(20px); opacity: 0; }
}
.cookie-banner-inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.cookie-banner-text a {
  color: var(--accent);
  border-bottom: 1px dotted var(--border-2);
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}
.cookie-btn-primary {
  background: var(--accent);
  color: #0b1311;
}
.cookie-btn-primary:hover { background: var(--accent-2); }
.cookie-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.cookie-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Track record (mock) ------------------------------------------------------ */
.tr-mock-banner {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(240, 185, 87, 0.14);
  color: var(--amber);
  border: 1px solid rgba(240, 185, 87, 0.35);
  border-radius: 3px;
  margin-bottom: 16px;
}

.tr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.tr-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tr-stat .tr-stat-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tr-stat .tr-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tr-stat .tr-stat-value.pos { color: var(--win); }
.tr-stat .tr-stat-value.neg { color: var(--loss); }

.tr-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.tr-chart-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.tr-chart-title h4 {
  font-size: 14px;
  font-weight: 600;
}
.tr-chart-title .tr-chart-meta {
  font-size: 11px;
  color: var(--dim);
}
.tr-chart-svg {
  width: 100%;
  height: 280px;
  display: block;
}

.tr-monthly {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  min-height: 80px;
}
.tr-month-bar {
  position: relative;
  border-radius: 2px;
  min-height: 2px;
  transition: opacity 0.15s ease;
}
.tr-month-bar:hover { opacity: 0.7; }
.tr-month-bar.pos { background: var(--win); }
.tr-month-bar.neg { background: var(--loss); }
.tr-month-bar .tr-month-label {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  color: var(--dim);
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 820px) {
  .proof-row, .steps, .pricing { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 72px; }
  .section-title { font-size: 26px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ──────────────────────────────────────────────────────────────────── */
/* PRICING COMPARISON TABLE                                              */
/* ──────────────────────────────────────────────────────────────────── */
.pricing-compare-wrap { margin-top: 56px; }
.pricing-compare-title {
  font-size: 18px; margin: 0 0 18px; text-align: center;
  color: var(--text); letter-spacing: 0.3px;
}
.pricing-compare-scroll { overflow-x: auto; }
.pricing-compare {
  width: 100%; border-collapse: collapse; font-size: 13px;
  min-width: 640px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.pricing-compare th, .pricing-compare td {
  padding: 11px 14px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.pricing-compare th { font-weight: 600; color: var(--text); }
.pricing-compare th.th-featured { background: rgba(0, 212, 170, 0.06); color: var(--accent, #00d4aa); }
.pricing-compare thead th { font-size: 12px; line-height: 1.45; padding: 14px; border-bottom: 2px solid var(--border-2); }
.pricing-compare .th-price { font-size: 11px; color: var(--muted); font-weight: 400; }
.pricing-compare td:first-child { text-align: left; color: var(--muted); padding-left: 18px; }
.pricing-compare th.th-group {
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; text-align: left; padding: 9px 18px;
}
.pricing-compare tr:last-child td { border-bottom: none; }
.pricing-compare td:nth-child(3) { background: rgba(0, 212, 170, 0.03); }

/* ──────────────────────────────────────────────────────────────────── */
/* PRODUCT-SCREENSHOT GRID                                               */
/* ──────────────────────────────────────────────────────────────────── */
.screenshot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px; margin-top: 30px;
}
.screenshot-card { margin: 0; }
.screenshot-frame {
  aspect-ratio: 16 / 9; background: var(--surface); border: 1px dashed var(--border-2);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--muted); font-size: 13px; text-align: center; padding: 18px;
}
.screenshot-frame[data-placeholder] span {
  font-size: 11px; color: var(--dim); display: block; margin-top: 4px;
}
.screenshot-card figcaption {
  margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5;
  padding: 0 4px;
}

/* ──────────────────────────────────────────────────────────────────── */
/* MODALS (waitlist + risk-disclosure)                                   */
/* ──────────────────────────────────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal-inner {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 32px 30px;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.18s ease-out;
}
.modal-wide { max-width: 680px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 6px 10px;
  border-radius: 4px; transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.modal h3 { margin-top: 0; margin-bottom: 8px; font-size: 19px; color: var(--text); }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-fine { font-size: 12px; color: var(--dim); margin-top: 14px; }
.modal-fine a { color: var(--accent, #00d4aa); }
.risk-ack-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm);
  cursor: pointer;
}
.risk-ack-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
  cursor: pointer; accent-color: var(--accent, #00d4aa);
}
.risk-ack-row span { font-size: 13px; color: var(--text); line-height: 1.5; }
