/* TRADERS HUB · tradershub.dev
   Premium fintech aesthetic — dark navy + emerald
   Inter typography · generous whitespace */

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
  --bg-deep: #050810;
  --bg-base: #0a0e17;
  --bg-card: #11161f;
  --bg-card-hover: #1a212d;
  --border: #1f2937;
  --border-strong: #2a3442;
  --text-primary: #f9fafb;
  --text-secondary: #c5cdd9;
  --text-muted: #9ca3af;
  --emerald: #10b981;
  --emerald-bright: #4ade80;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --amber: #f59e0b;
  --red: #ef4444;
  --container: 1200px;
  --radius: 16px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

/* Atmospheric background */
.bg-gradient {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(16,185,129,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 100% 50%, rgba(16,185,129,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #050810 0%, #0a0e17 100%);
  z-index: -2; pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  z-index: -1; pointer-events: none;
}

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

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--text-primary); }
.brand-mark { flex-shrink: 0; }
.brand-name { font-weight: 900; letter-spacing: 0.1em; font-size: 14px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--emerald);
  color: var(--bg-deep) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--emerald-bright); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* HERO */
.hero { padding: 80px 0 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-bright);
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--emerald);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--emerald); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-headline {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero-headline-accent {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--text-primary); font-weight: 700; }

.hero-cta-row { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--emerald);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  background: var(--emerald-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-primary); background: rgba(255,255,255,0.04); }
.btn-block { display: block; text-align: center; width: 100%; }
.btn-large { padding: 18px 36px; font-size: 17px; }

.hero-proof {
  display: flex; align-items: center; gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.hero-proof-item { display: flex; flex-direction: column; gap: 2px; }
.hero-proof-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-proof-num span { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.hero-proof-lab {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.hero-proof-divider { width: 1px; height: 32px; background: var(--border); }
@media (max-width: 720px) { .hero-proof-divider { display: none; } }

/* SECTIONS */
.section { padding: 80px 0; }
.section-muted { background: rgba(16, 22, 34, 0.4); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cta { padding: 100px 0; text-align: center; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 760px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

/* DEMO */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.demo-search { display: flex; gap: 8px; margin-bottom: 16px; }
.demo-search input {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
}
.demo-search input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.demo-search button {
  background: var(--emerald);
  color: var(--bg-deep);
  border: none;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
}
.demo-search button:hover { background: var(--emerald-bright); }

.demo-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.demo-quick button {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.demo-quick button:hover {
  border-color: var(--emerald);
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.08);
}

.demo-error {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.demo-error.show { display: block; }

.demo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}

.demo-panel {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.demo-panel-primary { border-color: rgba(16,185,129,0.3); }
.demo-panel-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.signal-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.signal-ticker {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  font-family: "SF Mono", Menlo, monospace;
}
.signal-class {
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}
.signal-verdict {
  font-size: 36px; font-weight: 900; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.signal-verdict.buy { color: var(--emerald-bright); }
.signal-verdict.sell { color: var(--red); }
.signal-verdict.hold { color: var(--amber); }

.confidence-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.confidence-bar {
  flex: 1; height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.confidence-num {
  font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}

.signal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signal-meta > div {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.02);
  padding: 8px 10px;
  border-radius: 6px;
}
.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.signal-meta > div span:last-child {
  font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.frame-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 6px;
}
.frame-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.frame-val { font-size: 13px; font-weight: 700; }
.frame-val.bull { color: var(--emerald-bright); }
.frame-val.bear { color: var(--red); }
.frame-val.neutral { color: var(--amber); }
.frame-verdict {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--emerald-bright);
}
.frame-verdict.idle { background: transparent; border-color: var(--border); color: var(--text-muted); font-weight: 500; }

.sentiment-score {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sentiment-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 600;
}
.sentiment-meta {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.02);
  padding: 10px 12px;
  border-radius: 6px;
}

/* MARKETS */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: all 0.2s;
}
.market-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.market-card-feature {
  border-color: rgba(16,185,129,0.4);
  background: linear-gradient(135deg, rgba(16,185,129,0.06), var(--bg-card));
}
.market-flag { font-size: 32px; margin-bottom: 12px; }
.market-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.market-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.market-example {
  display: block;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--emerald-bright);
  font-family: "SF Mono", Menlo, monospace;
  overflow-x: auto;
  white-space: nowrap;
}
.market-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--emerald);
  color: var(--bg-deep);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* HOW IT WORKS */
.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.endpoint-icon { font-size: 32px; margin-bottom: 12px; }
.endpoint-name {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--emerald-bright);
  margin-bottom: 10px;
}
.endpoint-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.code-block {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-head {
  background: rgba(255,255,255,0.03);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.code-tab {
  font-size: 12px;
  color: var(--text-muted);
  font-family: "SF Mono", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.code-body {
  padding: 18px 20px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--text-primary);
  overflow-x: auto;
  line-height: 1.7;
}
.c-str { color: var(--emerald-bright); }
.code-output {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  background: rgba(16,185,129,0.03);
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
}
.c-key { color: var(--text-secondary); }

/* STORY */
.section-story { background: rgba(16,185,129,0.02); border-top: 1px solid rgba(16,185,129,0.15); border-bottom: 1px solid rgba(16,185,129,0.15); }
.story-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.story-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.story-body strong { color: var(--text-primary); font-weight: 700; }
.story-signoff {
  font-style: italic;
  color: var(--text-secondary) !important;
  margin-top: 24px;
}
.story-byline {
  font-size: 16px;
  font-weight: 700;
  color: var(--emerald-bright);
  margin-top: 8px;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.price-card-featured {
  border-color: rgba(16,185,129,0.5);
  background: linear-gradient(135deg, rgba(16,185,129,0.08), var(--bg-card));
  box-shadow: 0 8px 32px rgba(16,185,129,0.1);
}
.price-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.price-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}
.price-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.price-tag-urgent { color: var(--amber); font-weight: 700; }
.price-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 22px;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}
.price-features li strong { color: var(--text-primary); }

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

/* USE CASES */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.usecase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.usecase-icon { font-size: 32px; margin-bottom: 12px; }
.usecase-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.usecase-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FINAL CTA */
.cta-headline {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cta-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-brand-name {
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 14px;
}
.footer-tag { font-size: 13px; color: var(--text-muted); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-soon { color: var(--text-muted); font-size: 13px; font-style: italic; }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-disclaimer { line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
