:root {
  --bg: #0f172a;
  --surface: #111827;
  --surface-alt: #1f2937;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dark: #0ea5e9;
  --border: rgba(148, 163, 184, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 28%),
              linear-gradient(180deg, #020617 0%, #0c1221 100%);
  color: var(--text);
}

.download-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.hero {
  margin-bottom: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.downloads-panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.download-grid {
  display: grid;
  gap: 18px;
}

.download-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.download-meta {
  min-width: 240px;
  flex: 1 1 320px;
}

.download-meta h3 {
  margin: 4px 0 10px;
  font-size: 1.2rem;
}

.download-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.download-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 182px;
  gap: 10px;
  align-items: flex-end;
}

.file-type,
.file-size {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: rgba(56, 189, 248, 0.08);
}

@media (max-width: 760px) {
  .download-page {
    width: calc(100% - 24px);
    padding: 24px 0 48px;
  }
  .download-card {
    flex-direction: column;
    align-items: stretch;
  }
  .download-actions {
    align-items: stretch;
  }
}
