/* Top Stocks — gettopstocks.com */
:root {
  --bg: #0B0E14;
  --card: #161B26;
  --card-2: #1B2130;
  --border: rgba(255, 255, 255, 0.07);
  --green: #4ADE80;
  --green-dim: rgba(74, 222, 128, 0.14);
  --red: #F87171;
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo img { width: 28px; height: 28px; display: block; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--green);
  color: #0B0E14;
}
.btn-primary:hover { background: #6EE7A0; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.section-head p, .lead { color: var(--muted); font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(74, 222, 128, 0.10), transparent);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero .lead { margin-bottom: 28px; max-width: 520px; }

.store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}
.store-badge svg { width: 20px; height: 20px; fill: var(--text); flex: none; }
.store-badge .sb-lines { line-height: 1.15; text-align: left; }
.store-badge .sb-top { display: block; font-size: 10.5px; color: var(--muted); }
.store-badge .sb-main { display: block; font-size: 15px; font-weight: 700; }
.review-note {
  font-size: 13.5px;
  color: var(--muted);
  width: 100%;
}
.review-note strong { color: var(--text); font-weight: 600; }

/* Waitlist */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
}
.wl-ok {
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Equity curve card ---------- */
.curve-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.curve-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.curve-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.curve-title strong {
  display: block;
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
}
.badge-backtest {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}
.curve-big {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}
.curve-big .arrow { color: var(--green); padding: 0 4px; }
.curve-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
#eqchart { display: block; width: 100%; height: auto; }
.curve-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.curve-stats .cs { min-width: 0; }
.curve-stats .cs b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.curve-stats .cs span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.cs b.neg { color: var(--red); }
.cs b.pos { color: var(--green); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Leaderboard table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.lb-table caption {
  text-align: left;
  padding: 16px 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.lb-table th, .lb-table td {
  text-align: left;
  padding: 15px 20px;
  font-size: 15px;
}
.lb-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.lb-table tbody tr { border-bottom: 1px solid var(--border); }
.lb-table tbody tr:last-child { border-bottom: 0; }
.lb-table tbody tr:hover { background: var(--card-2); }
.lb-table .idx { font-weight: 700; }
.lb-table .idx small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
}
.lb-table .mult { font-weight: 800; color: var(--green); font-size: 17px; }
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.pill-auto {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.pill-signals {
  color: var(--muted);
  background: rgba(156, 163, 175, 0.10);
  border: 1px solid rgba(156, 163, 175, 0.25);
}
.table-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature .f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-dim);
  margin-bottom: 16px;
}
.feature .f-icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Backtest showcase ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
}
.stat-tile b {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-tile b.neg { color: var(--red); }
.stat-tile b.pos { color: var(--green); }
.stat-tile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}
.showcase-copy { max-width: 720px; }
.showcase-copy p { color: var(--muted); margin-bottom: 16px; }
.showcase-copy p strong { color: var(--text); font-weight: 600; }
.holdings {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 15px;
  color: var(--muted);
}
.ticker {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.price-card.featured { border-color: rgba(74, 222, 128, 0.45); }
.price-card .plan-tag {
  position: absolute;
  top: -12px;
  left: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0B0E14;
  background: var(--green);
  border-radius: 999px;
  padding: 5px 12px;
}
.price-card h3 { font-size: 20px; font-weight: 800; }
.price-line { margin: 10px 0 4px; }
.price-line b { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price-line span { color: var(--muted); font-size: 15px; }
.price-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.price-card ul {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}
.price-card li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--text);
  font-size: 15px;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-dim) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234ADE80" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 10px no-repeat;
}
.price-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.copyright { color: var(--muted); font-size: 14px; margin-top: 10px; }
.disclaimer {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.85;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  max-width: 900px;
}
.disclaimer strong { color: var(--text); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 38px 0 10px;
}
.legal p { color: var(--muted); margin-bottom: 12px; font-size: 15.5px; }
.legal p strong, .legal li strong { color: var(--text); font-weight: 600; }
.legal ul, .legal ol {
  color: var(--muted);
  margin: 0 0 12px 22px;
  font-size: 15.5px;
}
.legal li { margin-bottom: 6px; }
.legal .placeholder {
  color: var(--red);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .curve-stats { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .curve-stats { grid-template-columns: repeat(2, 1fr); }
}
