/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --c-bg: #0f1117;
  --c-text: #e4e4e7;
  --c-text-muted: #a1a1aa;
  --c-accent: #fdba74;
  --c-border: #27272a;
}

html, body {
  height: 100%;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── Dot matrix background ───────────────────────────────────── */
#dot-matrix-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ──────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem;
  gap: 1.25rem;
}

.brand-logo {
  width: min(320px, 80vw);
  height: auto;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--c-accent);
  letter-spacing: 0.02em;
}

.description {
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  color: var(--c-accent);
  max-width: 480px;
  line-height: 1.7;
  opacity: 1;
}

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg);
}

.btn-primary:hover {
  background: #fcd9a0;
}

.status {
  font-size: 0.8rem;
  color: black;
  opacity: 1;
  font-weight: bold;
  border: 2px solid var(--c-accent);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem; 
  background-color: var(--c-accent);
  margin-top: 1rem;
}

/* ── Download section ─────────────────────────────────────────── */
.download-section {
  padding: 4rem 2rem 6rem;
  width: 100%;
  max-width: 800px;
}

.download-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--c-text);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color 0.15s, background 0.15s;
}

.download-card:hover {
  border-color: var(--c-accent);
  background: rgba(253, 186, 116, 0.05);
}

.download-icon {
  color: var(--c-accent);
  fill: var(--c-accent);
  width: 32px;
  height: 32px;
}

/* ── Footer links (GitHub etc.) ──────────────────────────────── */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--c-accent);
}

.footer-link svg {
  fill: currentColor;
}

.download-platform {
  font-weight: 700;
  font-size: 1rem;
}

.download-detail {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--c-text-muted);
  opacity: 0.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}
