/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c10;
  --surface: #16161d;
  --surface-2: #1e1e28;
  --border: #2a2a38;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --ev-positive: #00e57a;
  --text-primary: #f0f0f5;
  --text-secondary: #8892a4;
  --text-muted: #555870;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-logo {
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}

.header-nav { display: flex; gap: 4px; }

.header-link {
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.header-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 600px) {
  .header-inner { padding: 0 20px; }
}

/* === HERO === */
.hero {
  padding: 100px 40px 80px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 br { display: block; }

.hero .lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* === TERMINAL === */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:last-child { background: #28c840; }

.terminal-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ev-positive);
  letter-spacing: 0.08em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev-positive);
  animation: pulse 1.5s infinite;
}

.terminal-body { padding: 4px 0; }

.terminal-row {
  display: grid;
  grid-template-columns: 1fr 60px 70px 70px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.header-row {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 8px;
}

.ev-row { background: rgba(0, 229, 255, 0.04); }

.odds-high { color: var(--text-primary); font-weight: 600; }
.ev-positive { color: var(--ev-positive); font-weight: 700; }

.terminal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* === SECTION LAYOUT === */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

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

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 16px 0 48px;
  line-height: 1.8;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

/* === ODDS SECTION === */
.odds-section { border-bottom: 1px solid var(--border); }
.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.odds-card {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.odds-icon {
  margin-bottom: 24px;
  width: 32px;
  height: 32px;
}

.odds-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.odds-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === PHILOSOPHY SECTION === */
.philosophy-section { border-bottom: 1px solid var(--border); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.philosophy-left p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.philosophy-quote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.philosophy-stats {
  display: grid;
  gap: 2px;
}

.p-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 32px;
}

.p-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.p-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === OUTCOMES SECTION === */
.outcomes-section { border-bottom: 1px solid var(--border); }
.outcomes-section h2 { margin-bottom: 48px; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}

.outcome-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.outcome-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.outcome-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === MANIFESTO SECTION === */
.manifesto-section {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.manifesto-content {
  max-width: 720px;
}

.manifesto-content h2 { margin-bottom: 32px; }
.manifesto-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* === CLOSING SECTION === */
.closing-section {
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 100px 40px;
}

.closing-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.closing-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === FOOTER === */
footer { padding: 48px 40px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  text-align: right;
}

/* === EMAIL SIGNUP MODAL === */
.signup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.signup-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.15s;
}

.modal-close:hover { color: var(--text-primary); border-color: var(--text-muted); }

.modal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.signup-modal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.signup-modal > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.signup-form { display: flex; flex-direction: column; gap: 12px; }

.signup-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.signup-form input[type="email"]::placeholder { color: var(--text-muted); }
.signup-form input[type="email"]:focus { border-color: var(--accent); }

.signup-form input[type="email"].input-error { border-color: #ff4d6a; }

.signup-form button {
  padding: 13px 24px;
  background: var(--accent);
  color: #0c0c10;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signup-form button:hover:not(:disabled) { opacity: 0.88; }
.signup-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #0c0c10;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-error {
  font-size: 0.8rem;
  color: #ff4d6a;
  padding: 8px 12px;
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.25);
  border-radius: 8px;
}

.form-success {
  font-size: 0.9rem;
  color: var(--ev-positive);
  padding: 14px 16px;
  background: rgba(0, 229, 122, 0.08);
  border: 1px solid rgba(0, 229, 122, 0.25);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.modal-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .signup-modal { padding: 28px 24px; }
  .signup-modal h2 { font-size: 1.3rem; }
}

/* === LIVE FEED === */
.live-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text-primary); background: var(--surface); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

/* Feed Header */
.feed-header {
  padding: 48px 40px 40px;
  border-bottom: 1px solid var(--border);
}

.feed-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.feed-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feed-title p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.feed-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ev-positive);
  text-transform: uppercase;
}

.meta-count, .meta-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.pill:hover { color: var(--text-primary); border-color: var(--text-muted); }
.pill.active { color: var(--accent); background: var(--accent-dim); border-color: var(--accent); }

/* Feed Body */
.feed-body {
  padding: 0 40px 80px;
}

.feed-table-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.feed-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}

.feed-row {
  display: grid;
  grid-template-columns: 70px 1fr 100px 1fr 70px 80px 80px;
  align-items: center;
  padding: 14px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background 0.1s;
}

.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: var(--surface-2); }

.feed-row-head {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 20px;
  background: var(--surface-2);
}

/* Column styles */
.sport-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  text-transform: uppercase;
}

.sport-nba, .sport-ncaa { background: rgba(0, 229, 255, 0.12); color: var(--accent); }
.sport-nfl { background: rgba(255, 100, 50, 0.12); color: #ff6432; }
.sport-mlb { background: rgba(255, 180, 50, 0.12); color: #ffb432; }
.sport-nhl { background: rgba(50, 160, 255, 0.12); color: #32a0ff; }
.sport-ufc { background: rgba(220, 50, 255, 0.12); color: #dc32ff; }

.col-event { color: var(--text-primary); font-weight: 500; }
.ev-time { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

.col-market { color: var(--text-secondary); font-size: 0.8rem; }

.selection-text { color: var(--text-primary); font-weight: 500; }

.book-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  text-align: center;
  letter-spacing: 0.04em;
}

.odds-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ev-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ev-positive);
}

/* Loading & Empty states */
.feed-loading, .feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  text-align: center;
  margin-top: 24px;
}

.feed-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feed-empty p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.feed-empty span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-loading {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.feed-error {
  padding: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.feed-error button {
  margin-left: 8px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* Feed Footer */
.feed-footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.feed-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .feed-header-inner { flex-direction: column; }
  .feed-meta { align-items: flex-start; }
  .feed-row { grid-template-columns: 60px 1fr 60px 70px 70px; }
  .col-market, .col-selection { display: none; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .feed-header { padding: 32px 20px; }
  .filter-bar { padding: 12px 20px; }
  .feed-body { padding: 0 20px 60px; }
  .feed-row { grid-template-columns: 50px 1fr 60px 60px; font-size: 0.78rem; gap: 8px; padding: 12px 16px; }
  .col-book { display: none; }
}
