/* ====== RESET & VARIABLES ====== */
:root {
  --bg: #0b0b15;
  --bg2: #111122;
  --card: #161628;
  --card-hover: #1c1c34;
  --orange: #ff6b35;
  --teal: #00d4aa;
  --purple: #9b5de5;
  --text: #e8e8f0;
  --muted: #6b6b88;
  --border: #252540;
  --radius: 14px;
  --max-w: 1100px;
  --banner-h: 40px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ====== TOP BANNER ====== */
.top-banner {
  position: relative;
  /* NOT fixed — natural flow pushes everything down */
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #1a0a04, rgba(255,107,53,0.18));
  border-bottom: 1px solid rgba(255,107,53,0.25);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.3px;
  gap: 0.4rem;
}
.top-banner strong {
  color: #fff;
}

/* ====== UTILS ====== */
.container { max-width:var(--max-w); margin:0 auto; padding:0 1.2rem; }
.gradient {
  background: linear-gradient(135deg, var(--orange), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--banner-h) + 60px);
}
.section-dark { background: var(--bg2); }
.section-cta { background: linear-gradient(135deg, #111133, var(--bg)); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.8rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* ====== NAV ====== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg);
}
.logo { font-size: 1.2rem; font-weight:700; }
.nav-links { display:flex; gap:1.5rem; align-items:center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size:0.9rem; transition:color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-ghost {
  border: 1px solid var(--border);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  color: var(--text) !important;
}

/* ====== HERO ====== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--banner-h) + 10px);
}
.hero::before {
  content:'';
  position:absolute;
  top:-40%; right:-20%;
  width:600px; height:600px;
  background: radial-gradient(circle, rgba(255,107,53,0.12), transparent 70%);
  pointer-events: none;
}
.hero-content {
  flex:1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
  padding: 2rem 1.2rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.hero-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
}
.hero-form input,
.cta-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.hero-form input:focus,
.cta-form input:focus { border-color: var(--orange); }
.hero-form button,
.cta-form button {
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--orange), #e85a20);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.hero-form button:hover,
.cta-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}
.hero-note {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.6rem;
}

/* Hero mockup */
.hero-mockup {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; }
  .hero-content { padding-left: clamp(1.2rem, 4vw, 3rem); }
  .hero-mockup { display: block; }
}
.mockup-phone {
  width: 300px;
  background: var(--card);
  border-radius: 28px;
  padding: 14px 12px;
  border: 2px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-notch { width:100px; height:20px; background:var(--bg); margin: -6px auto 6px; border-radius: 0 0 12px 12px; }
.mock-card {
  background: #1e1e36;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.mock-card strong { display: block; font-size: 0.82rem; margin: 2px 0; }
.mock-tag {
  display: inline-block;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.mock-tag.live { background: #e63946; color: #fff; }
.mock-tag.goal { background: var(--teal); color: #0b0b15; }
.mock-tag { background: #3a3a50; color: var(--text); }
.mock-progress { height:4px; background:#333350; border-radius:2px; margin-top:4px; }
.mock-progress div { height:100%; background:var(--teal); border-radius:2px; }
.mock-card.activity { border-left:3px solid var(--orange); }
.mock-card.alert { border-left:3px solid var(--teal); }
.mock-card.stat { border-left:3px solid var(--purple); }
.mock-card.reminder { border-left:3px solid #ffd23f; }

/* ====== FEATURES GRID ====== */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--orange));
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.fc-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }
.fc-list { margin: 1rem 0; list-style: none; }
.fc-list li { font-size: 0.85rem; color: #b0b0c8; padding: 0.25rem 0; }
.fc-link {
  display: inline-block;
  color: var(--card-accent, var(--orange));
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.5rem;
}
.fc-link:hover { text-decoration: underline; }

/* ====== LIVE DEMO ====== */
.demo-phone {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.demo-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.demo-body { padding: 0.5rem 0; }
.demo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #1a1a30;
  font-size: 0.85rem;
  animation: fadeSlide 0.4s ease-out both;
  animation-delay: calc(var(--i,0) * 0.12s);
}
.demo-item:last-child { border-bottom: none; }
@keyframes fadeSlide {
  from { opacity:0; transform:translateX(-12px); }
  to { opacity:1; transform:translateX(0); }
}
.demo-badge {
  flex-shrink:0;
  font-size:0.6rem;
  padding:2px 7px;
  border-radius:4px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.3px;
  margin-top:3px;
}
.demo-badge.goal { background:var(--teal); color:#0b0b15; }
.demo-badge.live { background:#e63946; color:#fff; }
.demo-badge { background:#3a3a50; color:var(--text); }
.demo-item div { flex:1; }
.demo-item div strong { display:inline; }
.demo-time { flex-shrink:0; font-size:0.7rem; color:var(--muted); }

/* ====== COMPARE ====== */
.compare-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.compare-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.cc-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.compare-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.cc-source {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.cc-divider { height:1px; background:var(--border); margin:0.8rem 0; }
.cc-solution { font-size:0.88rem; color:#b0b0c8; }

/* ====== CTA ====== */
.cta-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
}

/* ====== FOOTER ====== */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
/* ====== NBA / NEWS SECTION ====== */
.nba-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.nba-content > div {
  flex: 1;
  min-width: 300px;
}
.panel-title {
  font-size: 1.2rem;
  color: var(--orange);
  margin-bottom: 1rem;
}
.nba-stats-grid {
  background: var(--card);
  border-radius: 12px;
  padding: 1.2rem;
}
.nba-offseason p {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.nba-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}
.nba-links {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
}
.nba-links li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.nba-links a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}
.nba-links a:hover {
  text-decoration: underline;
}
.nba-game-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nba-game-card:last-child { border: none; }
.nba-team { font-weight: 700; font-size: 0.95rem; }
.nba-vs { color: var(--muted); margin: 0 0.3rem; }
.nba-score { font-size: 1.1rem; font-weight: 700; color: var(--teal); }
.nba-status { font-size: 0.75rem; color: var(--muted); }
.news-list {
  background: var(--card);
  border-radius: 12px;
  padding: 0.5rem;
  max-height: 500px;
  overflow-y: auto;
}
.news-item {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.news-item:last-child { border: none; }
.news-item:hover { background: var(--card-hover); border-radius: 8px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.news-source-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.trash-badge { background: var(--orange); color: #000; }
.shams-badge { background: #1d9bf0; color: #fff; }
.news-date { font-size: 0.75rem; color: var(--muted); }
.news-author { font-size: 0.75rem; color: var(--muted); }
.news-title {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.2rem 0;
}
.news-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0.2rem 0;
}
.news-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--orange);
  text-decoration: none;
  margin-top: 0.3rem;
}
.news-link:hover { text-decoration: underline; }
.loading-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}
.data-freshness-bar {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.data-freshness {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.8rem;
  text-align: right;
}

/* ====== WORLD CUP 2026 ====== */
.worldcup-matches {
  background: var(--card);
  border-radius: 12px;
  padding: 1.2rem;
  max-height: 600px;
  overflow-y: auto;
}
.match-group-title {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.match-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.match-card:hover {
  border-color: var(--border);
}
.match-finished { border-left: 3px solid var(--teal); }
.match-upcoming { border-left: 3px solid var(--muted); }
.match-live { border-left: 3px solid var(--orange); animation: pulse-border 1.5s infinite; }
@keyframes pulse-border {
  0%, 100% { border-color: var(--orange); }
  50% { border-color: transparent; }
}
.match-header {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.match-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.match-team.home { justify-content: flex-end; }
.match-team.away { justify-content: flex-start; }
.team-name { font-weight: 600; font-size: 0.95rem; }
.team-tla { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }
.match-score {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 60px;
  justify-content: center;
}
.score-home, .score-away { min-width: 20px; text-align: center; }
.score-sep { color: var(--muted); }
.match-goals {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.match-status { font-size: 0.7rem; color: var(--teal); margin-top: 0.3rem; }
.worldcup-empty { padding: 2rem 0; text-align: center; }
.worldcup-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}
.worldcup-cities span {
  background: var(--card);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ====== BETTING ODDS ====== */
.betting-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.betting-card {
  flex: 1;
  min-width: 280px;
  background: var(--card);
  border-radius: 12px;
  padding: 1.2rem;
}
.betting-card h4 { font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--text); }
.betting-odds-list { display: flex; flex-direction: column; gap: 0.3rem; }
.betting-link-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}
.betting-link-row:last-child { border: none; }
.betting-odds-link a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}
.betting-odds-link a:hover { text-decoration: underline; }
.betting-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.betting-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(255,107,53,0.08);
  border-radius: 8px;
  border: 1px solid rgba(255,107,53,0.15);
}
.betting-disclaimer a { color: var(--orange); }

/* ====== FANTASY LEAGUE ====== */
.fantasy-content { padding: 0.5rem 0; }
.fantasy-content p { margin-bottom: 0.8rem; }
.fantasy-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fantasy-links li {
  padding: 0.4rem 0.6rem;
  background: var(--card);
  border-radius: 8px;
  font-size: 0.9rem;
}
.fantasy-links a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}
.fantasy-links a:hover { text-decoration: underline; }
.player-stats-title {
  color: var(--teal);
  font-size: 0.95rem;
  margin: 1rem 0 0.6rem;
}
.scorer-table {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.scorer-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg2);
  border-radius: 6px;
  font-size: 0.88rem;
}
.scorer-rank { color: var(--muted); min-width: 24px; }
.scorer-name { flex: 1; font-weight: 600; }
.scorer-goals { color: var(--teal); font-weight: 700; }
.player-stats-preview { margin-top: 1rem; }

/* ====== KNICKS / VIDEOS ====== */
.news-item.knicks-item { border-left: 3px solid var(--orange); margin-bottom: 0.3rem; border-radius: 6px; }
.knicks-badge { background: var(--orange); color: #000; }
.reddit-badge { background: #ff4500; color: #fff; }
.lore-badge { background: #2a6496; color: #fff; font-size: 0.65rem; }
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--card);
  border-radius: 12px;
  padding: 0.6rem;
  max-height: 500px;
  overflow-y: auto;
}
.video-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg2);
  border-radius: 8px;
  transition: background 0.2s;
}
.video-card:hover { background: var(--card-hover); }
.video-icon { font-size: 1.8rem; flex-shrink: 0; }
.video-info { flex: 1; }
.video-title {
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h5 {
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.5px;
  color:var(--muted);
  margin-bottom:0.8rem;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size:0.85rem;
  padding:0.2rem 0;
  transition:color 0.2s;
}
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

/* ====== SCROLL PROGRESS ====== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  z-index: 1000;
  width: 0;
  transition: width 0.1s linear;
}

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--orange);
  background: var(--card-hover);
}

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--teal);
  color: #0b0b15;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 700px) {
  :root { --banner-h: 36px; }
  .top-banner { font-size: 0.72rem; gap: 0.2rem; padding: 0 0.8rem; text-align: center; }
  .nav { padding: 0.7rem 1rem; }
  .hero-form { flex-direction: column; }
  .cta-form { flex-direction: column; }
  .nav-links a:not(.btn-ghost) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}
