:root {
  --anthracite: #1c1e22;
  --anthracite-soft: #24262b;
  --ink: #15171a;
  --gold: #c9a24b;
  --gold-bright: #e0bd63;
  --paper: #f7f4ee;
  --card: #ffffff;
  --text: #2b2d31;
  --muted: #6b6f76;
  --line: #e7e2d7;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 30, 34, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(201, 162, 75, 0.12), transparent 60%),
    var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 48px 24px 32px;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.lede strong { color: var(--text); font-weight: 600; }

/* INSTALLER GRID (Windows + macOS) */
.installer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

.installer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.os-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.os-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.os-emoji { font-size: 1.6rem; line-height: 1; }

.os-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }

/* DOWNLOAD BUTTON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--anthracite), var(--anthracite-soft));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0rem;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 75, 0.4);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(28, 30, 34, 0.18);
  border-color: var(--gold-bright);
}

.btn-primary code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.88em;
  color: var(--gold-bright);
}

.dl-icon { font-size: 1.15em; color: var(--gold-bright); }

.meta-line {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* DETAILS / COLLAPSIBLE INSTRUCTIONS */
.installer-card details {
  text-align: left;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.installer-card details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.installer-card details summary::-webkit-details-marker { display: none; }

.installer-card details summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--anthracite);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  flex: none;
}

.installer-card details[open] summary::before { content: "\2212"; }

.installer-card details > *:not(summary) { margin-top: 10px; }
.installer-card details p { font-size: 0.94rem; }

/* CARDS (shared sections) */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2::before {
  content: "";
  width: 8px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(var(--gold-bright), var(--gold));
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--anthracite);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 50%;
}

.important { border-left: 4px solid var(--gold); }

.note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  background: #f1ede3;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #8a6d2f;
  word-break: break-word;
}

em { color: #b45309; font-style: normal; font-weight: 600; }

footer {
  text-align: center;
  margin-top: 44px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .installer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .card, .installer-card { padding: 22px 20px; }
}
