:root {
  color-scheme: dark;
  --bg: #070b11;
  --panel: rgba(18, 24, 33, .78);
  --panel-2: rgba(14, 20, 28, .92);
  --text: #f0f4f8;
  --muted: #98a6b7;
  --line: rgba(255,255,255,.09);
  --accent: #58a6ff;
  --accent-2: #8b5cf6;
  --ok: #3fb950;
  --shadow: 0 20px 70px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(88,166,255,.12), transparent 34%),
    radial-gradient(circle at 80% 15%, rgba(139,92,246,.12), transparent 30%),
    var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.ambient { position: fixed; width: 360px; height: 360px; filter: blur(100px); opacity: .12; border-radius: 50%; pointer-events: none; z-index: -1; }
.ambient-a { top: 80px; left: -180px; background: #58a6ff; }
.ambient-b { right: -180px; bottom: 100px; background: #8b5cf6; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1180px, calc(100% - 24px)); margin: 12px auto 0; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(7,11,17,.72); backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.16);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; color: white; }
.brand strong { color: var(--accent); font-weight: 600; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); padding: 7px 10px; border-radius: 9px; font-size: 13px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; padding: 112px 0 104px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 12px; letter-spacing: .18em; font-weight: 700; }
h1 { margin: 14px 0 18px; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
h1 span { background: linear-gradient(90deg, #8ac3ff, #b997ff); -webkit-background-clip: text; color: transparent; }
.hero-copy p { max-width: 630px; margin: 0; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 11px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.button.primary { background: #f0f4f8; color: #0d1117; }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.button:hover { transform: translateY(-1px); }
.hero-card { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(21,28,39,.86), rgba(10,15,22,.9)); box-shadow: var(--shadow); overflow: hidden; }
.hero-card-top { padding: 14px 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 16px rgba(63,185,80,.7); }
.muted { margin-left: auto; color: var(--muted); }
.terminal { padding: 22px; font: 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; color: #c9d1d9; min-height: 180px; }
.prompt { color: var(--accent); margin-right: 8px; }
.ok { color: #7ee787; padding-left: 18px; }
.controls { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 22px; }
h2 { margin: 6px 0 0; font-size: 31px; letter-spacing: -.03em; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.search-wrap { width: min(360px, 58vw); display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.search-wrap svg { width: 18px; fill: none; stroke: #7d8b9b; stroke-width: 1.8; }
.search-wrap input { width: 100%; padding: 11px 0; border: 0; outline: 0; background: transparent; color: var(--text); }
select { padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); color: var(--text); outline: none; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.download-card { display: flex; flex-direction: column; min-height: 310px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,.1); transition: transform .2s ease, border-color .2s ease; }
.download-card:hover { transform: translateY(-3px); border-color: rgba(88,166,255,.32); }
.card-head { display: flex; gap: 13px; }
.file-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, rgba(88,166,255,.18), rgba(139,92,246,.18)); border: 1px solid rgba(255,255,255,.07); font-weight: 700; color: #bcdcff; }
.file-meta-head h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.file-meta-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tag { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #b4c0ce; font-size: 11px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.meta-grid div { min-width: 0; }
.meta-grid dt { color: #6f7d8e; font-size: 11px; }
.meta-grid dd { margin: 1px 0 0; font-size: 12px; color: #c7d1dc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-button { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(88,166,255,.24); background: rgba(88,166,255,.08); color: #cfe7ff; font-size: 13px; font-weight: 600; }
.download-button:hover { background: rgba(88,166,255,.14); }
.download-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.empty-state h3 { color: var(--text); margin-bottom: 3px; }
.empty-state p { margin-top: 0; }
.empty-icon { font-size: 34px; }
.hidden { display: none !important; }
.about { margin-top: 100px; padding: 30px 0 80px; }
.about-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about article { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.about article > span { color: var(--accent); font: 600 12px ui-monospace, monospace; }
.about h3 { margin: 11px 0 7px; font-size: 16px; }
.about p { margin: 0; color: var(--muted); font-size: 13px; }
code { color: #b8d8ff; }
.footer { padding: 22px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #6f7d8e; font-size: 12px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 80px; }
  .hero-card { max-width: 620px; }
  .download-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .controls { align-items: stretch; flex-direction: column; }
  .toolbar { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1120px); }
  .topbar { width: calc(100% - 16px); }
  .nav a:nth-child(2) { display: none; }
  .hero { padding: 70px 0 72px; }
  h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .toolbar, .search-wrap, select { width: 100%; }
  .download-grid, .about-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 6px; }
}
