/* =====================================
   SharpFolio — Landing Page Styles
   Dark financial terminal aesthetic
   ===================================== */

:root {
  --bg: #08080D;
  --surface: #0E0E18;
  --surface2: #14141F;
  --border: #1E1E2E;
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, 0.12);
  --amber-glow: rgba(245, 166, 35, 0.08);
  --text: #E8E8F0;
  --text-dim: #6B6B8A;
  --text-muted: #44445A;
  --green: #3DD68C;
  --red: #FF4D4D;
  --gold: #FFD700;
  --silver: #B8B8C8;
  --bronze: #CD7F32;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 13, 0.92);
  backdrop-filter: blur(12px);
  padding: 0 32px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  font-size: 18px;
  color: var(--amber);
  font-family: var(--font-mono);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  cursor: pointer;
}
.btn-nav-ghost {
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: transparent;
}
.btn-nav-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.btn-nav-primary {
  background: var(--amber);
  color: #08080D;
  font-weight: 600;
  border: 1px solid var(--amber);
}
.btn-nav-primary:hover {
  opacity: 0.88;
}

/* ---- HERO ---- */
.hero {
  padding: 80px 32px 64px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  max-width: 720px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--amber);
  color: #08080D;
  border: 1px solid var(--amber);
  margin-bottom: 56px;
  transition: opacity 0.15s;
}
.btn-hero:hover { opacity: 0.88; }
.hero-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: var(--surface);
}
.ticker-item {
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.ticker-val.accent { color: var(--amber); }
.ticker-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.stat-icon { color: var(--amber); font-size: 10px; }

/* ---- SPOTLIGHT WIDGET ---- */
.spotlight-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
}
.spotlight-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.spotlight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.spotlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
  animation: spotlight-pulse 2s ease-in-out infinite;
}
@keyframes spotlight-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.spotlight-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.spotlight-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.spotlight-card:hover {
  border-color: var(--amber);
  background: var(--amber-dim);
}
.spotlight-rank {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.spotlight-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.spotlight-sport {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spotlight-roi {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ---- SPOTLIGHT CTA ---- */
.spotlight-cta {
  background: var(--amber-dim);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
}
.spotlight-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.spotlight-cta-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.spotlight-cta-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.spotlight-cta-btn:hover { opacity: 0.75; }

/* ---- SECTIONS (shared) ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}
.section-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

/* ---- TRACKER SECTION ---- */
.tracker-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.tracker-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}
.mockup-header {
  background: var(--surface2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }
.mockup-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.mockup-body { padding: 20px; }
.mockup-cols {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* Bet table */
.bet-table { width: 100%; }
.bet-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr 1fr;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.bet-table-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bet-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}
.bet-row:last-child { border-bottom: none; }
.bet-row span { color: var(--text-dim); }
.type-tag {
  background: var(--amber-dim);
  color: var(--amber) !important;
  font-size: 10px !important;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pnl { font-weight: 600; }
.pnl.win { color: var(--green) !important; }
.pnl.loss { color: var(--red) !important; }
.clv { font-size: 12px; }
.clv.good { color: var(--green) !important; }
.clv.bad { color: var(--red) !important; }

/* Stats panel */
.stats-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-block { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.5px;
}
.stat-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.sparkline { width: 100%; }
.sparkline svg { width: 100%; height: 48px; }
.panel-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* ---- LEADERBOARD SECTION ---- */
.leaderboard-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.lb-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.lb-features { display: flex; flex-direction: column; gap: 12px; }
.lb-feat, .feat-icon { font-family: var(--font-mono); font-size: 13px; }
.lb-feat { display: flex; align-items: center; gap: 10px; color: var(--text-dim); }
.feat-icon { color: var(--amber); flex-shrink: 0; }

.lb-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.lb-table { width: 100%; }
.lb-head {
  display: grid;
  grid-template-columns: 40px 1fr 80px 80px 48px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lb-row {
  display: grid;
  grid-template-columns: 40px 1fr 80px 80px 48px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  align-items: center;
  transition: background 0.15s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--surface2); }
.lb-row.top { background: rgba(245, 166, 35, 0.04); }
.rank { color: var(--text-dim); font-size: 12px; }
.rank.gold { color: var(--gold); font-weight: 600; }
.rank.silver { color: var(--silver); font-weight: 600; }
.rank.bronze { color: var(--bronze); font-weight: 600; }
.bettor-name { color: var(--text); font-size: 13px; }
.roi-val { color: var(--text-dim); }
.roi-val.gold { color: var(--green); font-weight: 600; }
.units { color: var(--text-dim); font-size: 12px; }
.trend { font-size: 12px; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.trend.neutral { color: var(--text-muted); }

/* ---- COPY SECTION ---- */
.copy-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.copy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.copy-visual {
  display: flex;
  align-items: center;
  gap: 20px;
}
.copy-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.copy-card.to {
  border-color: var(--amber);
  box-shadow: 0 0 20px var(--amber-glow);
}
.cc-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cc-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.cc-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.cc-stat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}
.cc-since {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.copy-arrow {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--amber);
  flex-shrink: 0;
}
.copy-features { display: flex; flex-direction: column; gap: 12px; }
.copy-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---- MANIFESTO ---- */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 32px;
}
.manifesto-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.manifesto-rule {
  width: 48px;
  height: 1px;
  background: var(--amber);
  margin: 32px auto;
}
.manifesto-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- CLOSING ---- */
.closing {
  padding: 96px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.closing-inner { max-width: 640px; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 28px;
}
.closing-body {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-vision {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.5px;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-ticker { flex-wrap: wrap; }
  .mockup-cols { grid-template-columns: 1fr; }
  .lb-layout, .copy-layout { grid-template-columns: 1fr; gap: 32px; }
  .bet-table-head, .bet-row { grid-template-columns: 2fr 1fr 1fr; }
  .bet-table-head span:nth-child(4),
  .bet-table-head span:nth-child(5),
  .bet-table-head span:nth-child(6),
  .bet-row span:nth-child(4),
  .bet-row span:nth-child(5),
  .bet-row span:nth-child(6) { display: none; }
  .copy-visual { flex-direction: column; }
  .copy-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 20px 40px; }
  .stats-bar { padding: 16px 20px; }
  .tracker-section, .leaderboard-section, .copy-section { padding: 48px 20px; }
  .manifesto { padding: 48px 20px; }
  .closing { padding: 64px 20px; }
  .hero-headline { letter-spacing: -1px; }
  .lb-head span:nth-child(4),
  .lb-row .units { display: none; }
  .nav { padding: 0 16px; }
  .nav-tagline { display: none; }
  .btn-nav-primary { padding: 0 12px; font-size: 13px; }
  .btn-nav-ghost { padding: 0 10px; font-size: 13px; }
  .spotlight-section { padding: 10px 20px; }
  .spotlight-cards { gap: 6px; }
  .spotlight-card { padding: 5px 10px; gap: 6px; }
  .spotlight-cta { padding: 8px 20px; }
}