/* =========================================
   EdgeStack — Sports Betting Intelligence
   ========================================= */

:root {
  --bg: #080a0f;
  --surface-1: #0f1420;
  --surface-2: #141928;
  --border: #1e2535;
  --text-1: #e8edf8;
  --text-2: #8895ad;
  --text-3: #4a5470;
  --accent: #b8f505;
  --accent-dim: rgba(184, 245, 5, 0.12);
  --positive: #34d97b;
  --positive-dim: rgba(52, 217, 123, 0.12);
  --warning: #f5a623;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --max-w: 1160px;
}

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

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

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s;
}

.header-nav a:hover { color: var(--text-1); }

/* SECTION SHARED */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  letter-spacing: -0.5px;
  max-width: 580px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 80px 24px 100px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 40px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-1);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 32px;
}

.hero-cta {
  margin-top: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0d0d12;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }

.hero-data-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.badge-label { color: var(--text-3); }
.badge-time { color: var(--positive); }
.badge-books { color: var(--text-2); }

/* HERO PANEL */
.hero-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.panel-live {
  font-size: 10px;
  color: var(--positive);
  letter-spacing: 0.05em;
}

.panel-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-dim);
}

.game-teams {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.game-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.edge-score {
  text-align: right;
}

.edge-num {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--positive);
}

.edge-label {
  font-size: 10px;
  color: var(--text-3);
}

.edge-book {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
  text-align: right;
}

/* PANEL ROWS */
.panel-rows { padding: 8px 0; }

.panel-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  align-items: center;
  padding: 8px 18px;
  font-size: 12px;
  gap: 8px;
}

.header-row {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.row-market { color: var(--text-2); }

.row-odds {
  font-weight: 500;
}

.row-odds.best { color: var(--text-1); }

.books-count {
  font-weight: 400;
  color: var(--text-3);
  font-size: 10px;
}

.row-ev.positive { color: var(--positive); }
.row-ev.neutral { color: var(--warning); }

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
}

.panel-scan { color: var(--positive); font-size: 10px; }

/* =========================================
   THE EDGE SECTION
   ========================================= */
.edge-section {
  padding: 100px 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 64px;
}

.edge-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.card-icon {
  width: 32px;
  height: 32px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 20px;
}

.edge-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 12px;
}

.edge-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.solution-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 36px;
}

.bar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  display: block;
  margin-bottom: 4px;
}

.solution-bar p {
  font-size: 14px;
  color: var(--text-2);
}

.solution-stats {
  display: flex;
  gap: 48px;
}

.stat { text-align: right; }

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.hiw-section {
  padding: 100px 0;
}

.hiw-section .section-headline {
  margin-bottom: 64px;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.33% - 24px);
  right: calc(33.33% - 24px);
  height: 1px;
  background: var(--border);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  position: relative;
}

.step-number::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
}

.hiw-step p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.step-tech {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  line-height: 1.6;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-section {
  padding: 100px 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

.pricing-section .section-headline {
  margin-bottom: 56px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.card-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 4px 4px;
}

.card-tier {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 8px;
}

.card-price span {
  font-size: 18px;
  color: var(--text-3);
}

.card-tagline {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
  line-height: 1.5;
}

.card-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-features li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}

.feature-in::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--positive);
  font-size: 13px;
}

.feature-out::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 13px;
}

.feature-out { color: var(--text-3); }

.card-cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.cta-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* =========================================
   CLOSING
   ========================================= */
.closing-section {
  padding: 120px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-1);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 18px;
  color: var(--text-2);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  background: var(--surface-1);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-3);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { display: none; }
  .edge-grid { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .solution-bar { flex-direction: column; gap: 28px; align-items: flex-start; }
  .solution-stats { width: 100%; justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 20px 64px; }
  .hero-headline { letter-spacing: -0.5px; }
  .header-nav { gap: 20px; }
  .section-headline { font-size: 26px; }
  .edge-section, .hiw-section, .pricing-section { padding: 64px 0; }
}