:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --text: #111113;
  --muted: #5f5f66;
  --border: #e2e2e6;
  --accent: #111113;
  --accent-text: #ffffff;
  --download: #15803d;
  --download-hover: #166534;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1f;
    --text: #f2f2f3;
    --muted: #a1a1a8;
    --border: #2c2c31;
    --accent: #f2f2f3;
    --accent-text: #111113;
    --download: #16a34a;
    --download-hover: #15803d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

header { border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }

.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; background: #fff; }


main { padding: 4rem 0; }

.hero { text-align: center; }
.hero img { width: 8rem; height: 8rem; border-radius: 1.5rem; background: #fff; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 1.5rem 0 0.5rem; line-height: 1.2; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 auto 3rem; max-width: 32rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }


.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 24rem)); justify-content: center; gap: 1rem; }
.platform { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); }
.platform h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; font-size: 1.25rem; }
.os-icon { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.platform p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
.platform[hidden] { display: none; }
.platform .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.platform .actions .button { text-align: center; padding-inline: 0.5rem; background: var(--download); color: #ffffff; border: 1px solid var(--download); }
.platform .actions .button:hover { background: var(--download-hover); border-color: var(--download-hover); }
.platform .actions .button.secondary { background: transparent; color: var(--download); }
.platform .actions .button.secondary:hover { background: var(--download); color: #ffffff; }

.other-platforms { text-align: center; margin-top: 1.5rem; }
.other-platforms a { color: var(--muted); }
