@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #090D16;
  --panel: rgba(15, 23, 42, 0.8);
  --border: rgba(51, 65, 85, 0.6);
  --text: #F8FAFC;
  --text-sub: #94A3B8;
  --primary: #38BDF8;
  --success: #10B981;
  --mono: 'JetBrains Mono', monospace;
  --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header { border-bottom: 1px solid var(--border); padding: 16px 0; background: rgba(9, 13, 22, 0.9); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--mono); font-weight: 700; color: var(--primary); font-size: 1.1rem; }

.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { color: var(--text-sub); max-width: 600px; }

.firmware-list { margin: 32px 0 64px; display: flex; flex-direction: column; gap: 16px; }
.package-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}
.package-card:hover { border-color: var(--primary); }

.pkg-info h3 { font-size: 1.15rem; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.pkg-meta { font-family: var(--mono); font-size: 0.85rem; color: var(--text-sub); }
.tag { font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.tag-stable { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.tag-lts { background: rgba(56, 189, 248, 0.2); color: var(--primary); }

.btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { opacity: 0.9; }

.progress-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-content {
  background: #0F172A;
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
  width: 440px;
}
.progress-bar {
  height: 8px;
  background: rgba(51, 65, 85, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.1s;
}
