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

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:           #080d14;
  --surface:      #0f1a26;
  --surface-2:    #142030;
  --surface-3:    #1a2a3e;
  --border:       #1e3048;
  --border-2:     #284260;
  --text-hi:      #edf4fc;
  --text:         #9ab8cc;
  --text-dim:     #5a7e96;
  --text-mute:    #304858;
  --accent:       #0078ff;
  --accent-dim:   rgba(0,120,255,.15);
  --radius:       12px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: linear-gradient(160deg, #18273a 0%, #080d14 45%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,13,20,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-left  { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-right { display: flex; align-items: center; flex-shrink: 0; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-leds { display: flex; gap: 4px; }
.led-dot {
  width: 9px; height: 9px;
  border-radius: 3px;
  animation: led-pulse 1.9s ease-in-out infinite;
}
.ld1 { background: #ff4500; animation-delay: 0s;   }
.ld2 { background: #ff8c00; animation-delay: .25s; }
.ld3 { background: #ffd700; animation-delay: .50s; }
@keyframes led-pulse {
  0%,100% { opacity: .18; box-shadow: none; }
  50%      { opacity: 1;   box-shadow: 0 0 8px currentColor; }
}
.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -.4px;
}

/* Version chip */
.ver-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ver-hash { color: var(--text-mute); }

/* Mode badge */
.mode-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── System info ──────────────────────────────────────────────────────────── */
.info-section { padding-bottom: 64px; }

.section-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-hi);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-value.mono { font-family: var(--font-mono); font-size: 16px; }
.mono { font-family: var(--font-mono); }

/* Subsections */
.subsection { margin-bottom: 28px; }
.subsection-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

/* Sport pills */
.sport-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.sp {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 5px 13px;
  border-radius: 20px;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.sp.on  { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.sp.off { opacity: .4; }

/* Display modes table */
.mode-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mode-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mode-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  min-width: 130px;
  flex-shrink: 0;
}
.mode-desc {
  font-size: 13px;
  color: var(--text);
}

/* About */
.about-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 16px;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.about-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  letter-spacing: .4px;
}
.footer-links { display: flex; gap: 18px; }
.footer-link  { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.footer-link:hover { color: var(--accent); text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .container  { padding: 0 14px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mode-key   { min-width: 110px; }
}

@media (max-width: 500px) {
  .container    { padding: 0 10px; }
  .stats-grid   { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; }
  .stat-card    { padding: 12px 10px 10px; }
  .stat-label   { font-size: 10px; }
  .stat-value   { font-size: 16px; }
  .stat-value.mono { font-size: 12px; }
  .info-section { padding-bottom: 40px; }
  .section-heading  { font-size: 11px; margin-bottom: 12px; }
  .subsection-title { font-size: 11px; }
  .about-text   { font-size: 13px; }
  .mode-key     { min-width: 100px; font-size: 11px; }
  .mode-desc    { font-size: 12px; }
}

@media (max-width: 380px) {
  .logo-text { display: none; }
  .ver-chip  { display: none; }
}
