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

:root {
  --orange: #FF7704;
  --navy: #003368;
  --bg: #01172B;
  --surface: #061E3A;
  --card: #0A2444;
  --border: #0F2E55;
  --text: #F0F4F8;
  --muted: #7C99B7;
  --sub: #A9BED4;
  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --pad: 56px;
  --max: 1400px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ACCESSIBILITY: keyboard focus visibility */
:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid #E8872B;
  outline-offset: 2px;
}

/* NAV */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo img { display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-link {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--orange); }

/* HERO */
.hero-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero {
  padding: 72px var(--pad) 64px;
  max-width: var(--max);
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tag::after { content: ''; flex: 0 0 32px; height: 1px; background: var(--orange); opacity: 0.5; }

.hero h1 {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 96px;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--text);
}
.hero h1 span { color: var(--orange); }

.hero p {
  font-size: 16px;
  color: var(--sub);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.btn-primary:hover { background: #E06800; }

.btn-ghost {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--sub);
  border: 1px solid var(--border);
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* HOME SECTIONS */
.home-section {
  padding: 52px var(--pad);
  max-width: var(--max);
}

.home-divider {
  height: 1px;
  background: var(--border);
  margin: 0 var(--pad);
}

.section-label {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* HUB CARDS */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.hub-card:hover { border-color: rgba(255,119,4,0.4); }
.hub-card.featured { border-color: rgba(255,119,4,0.25); }
.hub-card.soon { opacity: 0.5; pointer-events: none; }

.hc-top { padding: 28px 24px 20px; flex: 1; }

.hc-icon {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 38px;
  color: var(--orange);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.hc-label {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.hc-title {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}

.hc-desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

.hc-bottom {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hc-cta {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.hc-cta.soon-cta { color: var(--muted); }

.hc-badge {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  background: rgba(255,119,4,0.12);
  color: var(--orange);
  padding: 3px 9px;
  border-radius: 3px;
}
.hc-badge.dim { background: var(--surface); color: var(--sub); }

/* ABOUT STRIP */
.about-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}

.about-strip {
  max-width: var(--max);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.about-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(255,119,4,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 900;
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

.about-text { flex: 1; }
.about-name { font-family: var(--fd); font-weight: 800; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.about-bio { font-size: 13px; color: var(--sub); line-height: 1.6; max-width: 700px; }

.about-link {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
}

/* DATA NOTE */
.data-note {
  max-width: var(--max);
  padding: 16px var(--pad) 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--sub);
}
.data-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }

/* PAGE HEADER */
.page-header {
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  padding: 52px var(--pad) 40px;
  max-width: var(--max);
}
.page-header-inner h1 {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 48px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}
.page-header-inner h1 span { color: var(--orange); }
.page-header-inner p { font-size: 14px; color: var(--sub); max-width: 540px; }

/* SCORE BAR */
.score-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.score-bar-inner {
  max-width: var(--max);
  padding: 24px var(--pad);
  display: flex;
  align-items: center;
}
.score-main {
  padding-right: 36px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.score-num {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 52px;
  color: var(--orange);
  line-height: 1;
}
.score-label {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 3px;
}
.score-stats { display: flex; flex: 1; }
.ss {
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.ss:last-child { border-right: none; }
.ss-num {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 3px;
}
.ss-num.g { color: #4ADE80; }
.ss-num.b { color: #60A5FA; }
.ss-num.a { color: #FBBF24; }
.ss-num.w { color: var(--text); }
.ss-label { font-size: 11px; color: var(--sub); line-height: 1.4; }

/* BRACKET */
.bracket-wrap {
  max-width: 1000px;
  padding: 36px var(--pad);
}
.bracket-layout { display: flex; gap: 28px; align-items: flex-start; }
.bracket-layout .bracket-grid { flex: 1; min-width: 0; margin-bottom: 0; }
.bubble-sidebar { flex: 0 0 210px; display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.bracket-grid { display: flex; flex-direction: column; gap: 5px; margin-bottom: 28px; }

.seed-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .15s;
}
.seed-group:hover { border-color: rgba(255,119,4,0.2); }

.seed-num {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 900; font-size: 12px;
  color: #fff; margin-top: 2px;
}
.s1{background:#E8872B} .s2{background:#D07828} .s3{background:#4A6FA5} .s4{background:#3D5E8C}
.s5{background:#3D5E8C} .s6{background:#304D73} .s7{background:#304D73} .s8{background:#2A4060}
.s9{background:#2A4060} .s10{background:#254060} .s11{background:#6B4A2A} .s12{background:#6B4A2A}
.s13{background:#555} .s14{background:#555} .s15{background:#484848} .s16{background:#3A3A3A}

.seed-teams-col {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 12px;
}
.seed-teams-col-6 { grid-template-columns: repeat(3, 1fr); }

.team-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-name { font-family: var(--fd); font-weight: 700; font-size: 13px; color: var(--text); }

.result {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.r6 { background: rgba(74,222,128,0.12); color: #4ADE80; }
.r4 { background: rgba(96,165,250,0.12); color: #60A5FA; }
.r3 { background: rgba(251,191,36,0.12); color: #FBBF24; }

/* BUBBLE SECTION */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bubble-card { padding: 18px 20px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); }
.bubble-label {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.bubble-teams { font-family: var(--fd); font-weight: 700; font-size: 13px; color: var(--text); line-height: 1.5; }
.last-four-in .bubble-label { color: #E8872B; }
.first-four-out .bubble-label { color: #8B4444; }
.next-four-out .bubble-label { color: #6B3A3A; }
.third-four-out .bubble-label { color: var(--sub); }

/* PREDICTIONS PAGE TYPOGRAPHY OVERRIDES */
.predictions-page .team-name { font-size: 15px; }
.predictions-page .result { font-size: 13px; }
.predictions-page .ss-num { font-size: 30px; }
.predictions-page .ss-label { font-size: 13px; }
.predictions-page .score-label { font-size: 12px; }
.predictions-page .bubble-label { font-size: 12px; }
.predictions-page .bubble-teams { font-size: 15px; line-height: 1.7; }
.predictions-page .section-label { font-size: 13px; }

/* ABOUT PAGE */
.about-page { max-width: 740px; padding: 52px var(--pad); }
.about-page h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--text);
  margin: 40px 0 10px;
}
.about-page h2:first-child { margin-top: 0; }
.about-page p { font-size: 15px; color: var(--sub); line-height: 1.75; margin-bottom: 8px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--sub);
  margin-top: auto;
}
.footer-logo {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-disclaimer {
  flex: 1 1 100%;
  line-height: 1.6;
}
