/* Pico Terminal Hub — neon green on dark theme */
:root {
  --bg:      #0a0a0a;
  --bg2:     #0f0f1a;
  --bg3:     #12121f;
  --border:  #1a1a2e;
  --accent:  #39FF14;
  --accent2: #22cc00;
  --text:    #e8e8f0;
  --muted:   #6c7080;
  --red:     #ff3355;
  --yellow:  #ffcc00;
  --blue:    #4488ff;
  --kofi:    #ff5e5b;
  --discord: #5865f2;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }
code {
  font-family: var(--font-mono);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.accent { color: var(--accent); }

/* ── Header ── */
.header {
  background: linear-gradient(180deg, #050510 0%, var(--bg2) 100%);
  border-bottom: 1px solid var(--accent);
  padding: 40px 24px 32px;
  text-align: center;
}
.header-inner { max-width: 800px; margin: 0 auto; }

.logo {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.35);
}
.logo-bracket { color: var(--muted); }
.logo-text { color: var(--text); }
.logo-text .accent { color: var(--accent); }

.tagline {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.header-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.badge:hover { opacity: 0.85; text-decoration: none; }
.badge-kofi    { background: var(--kofi);    color: #fff; }
.badge-discord { background: var(--discord); color: #fff; }
.badge-gh      { background: var(--bg3); border: 1px solid var(--border); color: var(--text); }

/* ── Sections ── */
main { max-width: 920px; margin: 0 auto; padding: 0 20px 60px; }

.section {
  padding: 56px 0 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-title::before { content: '// '; color: var(--accent); font-size: 0.9em; }

.subsection-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.section-desc { color: var(--muted); margin-bottom: 24px; }

/* ── Hero grid ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-grid p { color: var(--muted); margin-bottom: 12px; }

.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* ── Downloads ── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.dl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.dl-card.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.dl-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.dl-cat { font-weight: 600; font-size: 0.9rem; color: var(--accent); font-family: var(--font-head); letter-spacing: 0.03em; }
.dl-count { font-size: 0.78rem; color: var(--muted); }

.dl-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  color: var(--text);
}
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: rgba(57, 255, 20, 0.06); text-decoration: none; }
.dl-row.latest .dl-filename::after {
  content: ' (latest)';
  color: var(--accent);
  font-size: 0.75rem;
}
.dl-filename { flex: 1; font-family: var(--font-mono); font-size: 0.82rem; }
.dl-size { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.dl-arrow { color: var(--accent); font-size: 1.1rem; }

.dl-static {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.dl-static p { color: var(--muted); font-size: 0.9rem; }

.no-releases { color: var(--muted); padding: 24px; font-size: 0.9rem; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  min-width: 52px;
  line-height: 1;
  padding-top: 4px;
}
.step-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.step-body p  { color: var(--muted); font-size: 0.9rem; }

/* ── Hardware ── */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.hw-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.hw-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}
.hw-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hw-card li { font-size: 0.85rem; color: var(--muted); padding-left: 14px; position: relative; }
.hw-card li::before { content: '›'; color: var(--accent); position: absolute; left: 0; }

/* ── Support / Community ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  color: #fff;
}
.support-card:hover { transform: translateY(-2px); text-decoration: none; }
.support-card.kofi    { background: linear-gradient(135deg, #ff5e5b, #ff8c5a); }
.support-card.discord { background: linear-gradient(135deg, #5865f2, #8094f4); }
.support-card.github  { background: var(--bg2); border-color: var(--border); color: var(--text); }
.support-icon { font-size: 2rem; }
.support-label { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; }
.support-desc { font-size: 0.8rem; opacity: 0.85; }

/* ── Changelog ── */
.changelog { display: flex; flex-direction: column; gap: 0; }
.cl-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 56px 80px 1fr;
  gap: 0 16px;
  align-items: start;
}
.cl-entry:last-child { border-bottom: none; }
.cl-version {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  padding-top: 2px;
}
.cl-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 5px;
}
.cl-items { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cl-items li { font-size: 0.88rem; color: var(--muted); padding-left: 14px; position: relative; }
.cl-items li::before { content: '–'; color: var(--accent); position: absolute; left: 0; }
@media (max-width: 480px) {
  .cl-entry { grid-template-columns: auto; }
  .cl-date  { display: none; }
}

/* ── Feedback ── */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 16px;
}
.feedback-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.feedback-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.feedback-icon { font-size: 1.8rem; flex-shrink: 0; }
.feedback-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--accent); margin-bottom: 4px; }
.feedback-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.section-note {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin-top: 12px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer .sep { margin: 0 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer-small { margin-top: 8px; font-size: 0.78rem; opacity: 0.6; font-style: italic; }
