/* ============================================================
   QUANT SIGNALS — style.css
   Dark fintech theme. No external dependencies.
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #1c2130;
  --bg-card-hover: #222940;
  --border: #21262d;
  --border-accent: #30363d;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.08);
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --positive: #3fb950;
  --negative: #f85149;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --nav-h: 64px;
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* ── Utilities ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-accent);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.96);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta { margin-left: 16px; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(0,212,170,0.06) 0%, transparent 70%),
    var(--bg);
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-stat-block {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  margin-bottom: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.section-spacer { margin-top: 64px; }

/* ── Data Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 14px;
}

.data-table thead {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.data-table tbody tr {
  background: var(--bg-card);
  transition: background var(--transition);
}
.data-table tbody tr:hover { background: var(--bg-card-hover); }

.highlight-row { background: var(--accent-glow) !important; }
.highlight-row:hover { background: rgba(0,212,170,0.12) !important; }

.data-table tfoot .total-row {
  background: var(--bg-alt);
  border-top: 2px solid var(--border-accent);
}
.data-table tfoot td {
  border-top: 2px solid var(--border-accent);
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.asset-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.asset-dot.btc  { background: #f7931a; }
.asset-dot.eth  { background: #627eea; }
.asset-dot.sol  { background: #9945ff; }
.asset-dot.xrp  { background: #00aae4; }
.asset-dot.bnb  { background: #f3ba2f; }
.asset-dot.doge { background: #c2a633; }
.asset-dot.hype { background: #00d4aa; }

.win-rate { font-weight: 700; color: var(--accent); }
.mono { font-family: var(--mono); }

.pnl { font-weight: 600; }
.pnl.positive { color: var(--positive); }
.pnl.negative { color: var(--negative); }

/* Win-rate bar */
.bar-cell { min-width: 120px; padding-right: 20px; }
.bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(0,212,170,0.6));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* A/B note */
.ab-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 28px;
  font-size: 14px;
}
.ab-icon {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.ab-text { color: var(--text); }
.ab-text strong { color: var(--accent); }

/* Disclosure */
.disclosure {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}

/* ── How It Works ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: var(--radius);
  padding: 6px 12px;
  flex-shrink: 0;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.step-content { padding-bottom: 8px; }

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin-left: 21px;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(0,212,170,0.08) 0%, var(--bg-card) 60%);
}
.pricing-card-featured:hover { border-color: var(--accent); }

.plan-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: -4px;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-val {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.price-per {
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-features li {
  font-size: 13px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.plan-btn {
  width: 100%;
  margin-top: 4px;
}

.pricing-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.pricing-note a { color: var(--text-secondary); }
.pricing-note a:hover { color: var(--accent); opacity: 1; }

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-q[aria-expanded="true"] { background: var(--bg-card-hover); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  background: var(--bg-card);
}
.faq-a.open { display: block; }
.faq-a p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .nav-logo {
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); opacity: 1; }

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open + .nav-cta { display: block; }

  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }

  .hero-stat-block {
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px;
  }
  .hero-stat-divider { width: 40px; height: 1px; }

  .section { padding: 64px 0; }

  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .bar-cell { display: none; }

  .pricing-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { align-items: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .step { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { text-align: center; }
  .hero-stat-block { width: 100%; }
}
