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

:root {
  --bg: #0a0a0a;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: #333;
  --text: #f0f0f0;
  --muted: #888;
  --accent: #3b82f6;
  --green: #22c55e;
  --font: "Segoe UI", system-ui, sans-serif;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
}

.brand img { border-radius: 50%; }

.brand small {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.top__gh {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color .15s, border-color .15s;
}

.top__gh:hover {
  color: var(--text);
  border-color: #555;
}

.hero {
  flex: 1;
  position: relative;
}

.hero__glow {
  position: absolute;
  inset: -80px -40px auto;
  height: 280px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,.18), transparent 70%);
  pointer-events: none;
}

.card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card__win {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.card h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.card__sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.dl {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 18px 14px;
  margin-bottom: 18px;
}

.dl__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.dl__file {
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
}

.dl__pct {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.dl__track {
  height: 8px;
  background: #2a2a2a;
  border-radius: 99px;
  overflow: hidden;
}

.dl__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, var(--green));
  border-radius: 99px;
  transition: width .12s ease-out;
}

.dl__bar.done {
  background: var(--green);
}

.dl__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dl.error .dl__bar {
  background: #ef4444;
}

.dl.error .dl__pct { color: #ef4444; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tags li {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.link {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.features article {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
}

.features__ico {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.features b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.features small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.foot a:hover { color: var(--text); }

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .card { padding: 22px 18px 18px; }
}
