:root {
  --background: #0A0A0A;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --text-primary: #f1efe6;
  --text-secondary: #a0a0a0;
  --text-tertiary: #6b6b6b;
  --accent: #c08621;
  --accent-hover: #d4951f;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code, pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
}

pre code { background: none; border: 0; padding: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---- Hero ---- */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(192, 134, 33, 0.08), transparent 60%);
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 32px;
}

.lead.sm { font-size: 1rem; margin-bottom: 24px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { background: var(--accent-hover); color: #0A0A0A; }

.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.sub { color: var(--text-tertiary); font-size: 0.875rem; margin-top: 8px; }

/* ---- Sections ---- */

section { padding: 72px 0; border-bottom: 1px solid var(--border); }
section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
section h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }

.mt { margin-top: 40px; }

/* ---- Steps ---- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #0A0A0A;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.step p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ---- Screenshots ---- */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.shot-large {
  grid-column: span 2;
  grid-row: span 2;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  background: #050505;
}

.shot figcaption {
  padding: 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.shot figcaption strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

/* ---- Features ---- */

.feature-list { list-style: none; }

.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list strong { color: var(--text-primary); font-weight: 600; }

.feature-list.small li { padding: 10px 0; font-size: 0.875rem; }

/* ---- Download grid ---- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dl-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-primary);
  transition: border-color 0.15s, transform 0.1s;
}

.dl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.dl-card.dl-primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(192, 134, 33, 0.12), var(--surface));
}

.dl-os { font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.dl-arch { color: var(--text-tertiary); font-size: 0.8125rem; }

.os-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 18px;
  margin-bottom: 10px;
}

.os-detail summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.os-detail summary::-webkit-details-marker { display: none; }

.os-detail summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1.125rem;
}

.os-detail[open] summary::after { content: '−'; }

.os-detail p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 10px; }
.os-detail[open] { padding-bottom: 16px; }

/* ---- Footer ---- */

.foot {
  padding: 32px 0;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  text-align: center;
}

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

@media (max-width: 760px) {
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
  .wrap { padding: 0 20px; }
  .btn { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .shot-large {
    grid-column: auto;
    grid-row: auto;
  }
}
