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

:root {
  --bg: #0d0f14;
  --surface: #13161e;
  --surface2: #1a1e29;
  --border: rgba(255,255,255,0.07);
  --accent: #e8ff47;
  --accent2: #47ffe8;
  --text: #e8eaf0;
  --muted: #7a7f95;
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-title: 'Orbitron', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(13,15,20,0.94);
  backdrop-filter: blur(14px);
  z-index: 100;
}

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

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* SVG / PNG logo from docs/logo.svg */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(232,255,71,0.35));
  transition: filter 0.3s;
}
.logo-img:hover {
  filter: drop-shadow(0 0 12px rgba(232,255,71,0.7));
}

/* Fallback icon (used when no logo.svg) */
.logo-icon {
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  animation: pulse 3s ease-in-out infinite;
}

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

/* ── Site title — Orbitron with accent gradient ─────────────────────────── */
h1 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.tagline {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-top: 0.1rem;
}

.header-links {
  display: flex;
  gap: 1.5rem;
}

.header-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.header-links a:hover { color: var(--accent); }

/* ── Main ─────────────────────────────────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section-title {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
}

.stat-number.small {
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updated-pill { flex: 2; }

/* ── Chart ────────────────────────────────────────────────────────────────── */
.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 260px;
}

/* ── Cards grid ───────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.card-badge {
  background: rgba(232,255,71,0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  border: 1px solid rgba(232,255,71,0.25);
}

.project-list {
  list-style: none;
  padding: 0.6rem 0;
  flex: 1;
}

.project-list li {
  padding: 0.35rem 1.1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.project-list li:hover {
  color: var(--text);
  border-left-color: var(--accent2);
}

.project-list li.empty {
  font-style: italic;
  color: rgba(122,127,149,0.4);
}

.project-list li a { color: inherit; display: block; }
.project-list li a:hover { color: var(--accent2); }

/* ── Pipeline ─────────────────────────────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 110px;
}

.pipe-icon { font-size: 2rem; line-height: 1; }

.pipe-logo {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(232,255,71,0.35));
}

.pipe-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  color: var(--text);
  line-height: 1.4;
}

.pipe-label small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.pipe-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  main { padding: 2rem 1rem 3rem; }
  .stats-row { flex-direction: column; }
  .pipeline { flex-direction: column; }
  .pipe-arrow { transform: rotate(90deg); }
  h1 { font-size: 0.95rem; }
}
