/* Scoreline: terminal x broadcast. Stadium night, real ANSI hues, chalk lines. */

:root {
  --pitch: #0a0f0c;
  --panel: #10180f;
  --panel-edge: #1e2b1c;
  --chalk: #e8ede6;
  --dim: #7a857d;
  --ansi-green: #3fdd78;
  --ansi-yellow: #e5c453;
  --ansi-cyan: #57c7d4;
  --ansi-blue: #6c9ef8;
  --ansi-red: #e06c60;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #14251a 0%, var(--pitch) 55%);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Chalk pitch markings behind the hero */
.pitch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: 160vw;
  height: 900px;
  color: var(--ansi-green);
  opacity: 0.07;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
  z-index: 0;
}

.hero, .section, .scorebugs-section, .footer {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- eyebrows and match-clock chips ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--pitch);
  background: var(--ansi-yellow);
  padding: 2px 9px;
  border-radius: 3px;
}

.chip-live { background: var(--ansi-green); }

/* ---------- hero ---------- */

.hero { padding-top: 96px; }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 11vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lede {
  max-width: 560px;
  margin-top: 26px;
  color: #b9c2ba;
  font-size: 19px;
}

/* ---------- terminal windows ---------- */

.terminal {
  margin-top: 48px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 120px -40px rgba(63, 221, 120, 0.18);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #0d140c;
  border-bottom: 1px solid var(--panel-edge);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #e0574f; }
.dot-y { background: #dfa63c; }
.dot-g { background: #35b654; }

.terminal-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-left: 10px;
}

.terminal-body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  padding: 18px 20px 14px;
  overflow-x: auto;
}

.terminal-body p { white-space: nowrap; }

.t-dim    { color: var(--dim); }
.t-green  { color: var(--ansi-green); }
.t-yellow { color: var(--ansi-yellow); }
.t-cyan   { color: var(--ansi-cyan); }
.t-blue   { color: var(--ansi-blue); }
.t-cursor { color: var(--chalk); }

.blink { animation: blink 1.1s steps(1) infinite; color: var(--ansi-green); }
@keyframes blink { 50% { opacity: 0; } }

.statusline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-edge);
  font-size: 13.5px;
}

.sl-score { font-weight: 700; }

/* ---------- install ---------- */

.install-row {
  display: flex;
  align-items: stretch;
  margin-top: 34px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.install-row code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ansi-green);
  padding: 14px 18px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--pitch);
  background: var(--ansi-green);
  border: none;
  padding: 0 22px;
  cursor: pointer;
  transition: filter 0.15s;
}

.copy-btn:hover { filter: brightness(1.15); }
.copy-btn:focus-visible { outline: 2px solid var(--chalk); outline-offset: -4px; }

.install-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--dim);
}

.install-note a { color: var(--ansi-cyan); text-decoration: none; }
.install-note a:hover { text-decoration: underline; }

/* ---------- scorebug strip ---------- */

.scorebugs-section { padding-top: 96px; }

.strip-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 16px;
}

.scorebugs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bug {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  padding: 12px 18px;
}

.bug-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  min-width: 52px;
}

.bug-team {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.bug-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--ansi-yellow);
}

.bug-live {
  border-color: rgba(63, 221, 120, 0.45);
  box-shadow: 0 0 24px -6px rgba(63, 221, 120, 0.35);
}

.bug-live .bug-status { color: var(--ansi-green); }
.bug-live .bug-score { color: var(--ansi-green); }

.bug-post { opacity: 0.62; }

.bug-pre .bug-score { color: var(--dim); font-size: 13px; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ansi-green);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

.strip-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

/* ---------- sections ---------- */

.section { padding-top: 110px; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 36px;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 24px 22px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ansi-green);
  margin-bottom: 10px;
}

.card p { font-size: 15px; color: #b9c2ba; }

.card code, .integrate-note code, .snippet-label code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ansi-cyan);
}

/* ---------- modes ---------- */

.modes {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: start;
}

.mode { margin-bottom: 22px; }

.mode code {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ansi-yellow);
}

.mode p { font-size: 15px; color: #b9c2ba; margin-top: 3px; }

.terminal-small { margin-top: 0; }
.terminal-small .terminal-body { font-size: 12.5px; }

/* ---------- integrate ---------- */

.integrate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.snippet {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 20px;
}

.snippet-label { font-size: 14.5px; color: #b9c2ba; margin-bottom: 14px; }

.snippet pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ansi-green);
  overflow-x: auto;
}

.integrate-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--dim);
  max-width: 640px;
}

/* ---------- footer ---------- */

.footer {
  padding-top: 120px;
  padding-bottom: 64px;
  font-size: 15px;
  color: #b9c2ba;
}

.footer a { color: var(--ansi-cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer-fine {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .integrate { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding-top: 80px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .blink, .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}
