:root {
  color-scheme: light;
  --surface: #f6f5f2;
  --panel: #ffffff;
  --ink: #1d1b18;
  --muted: #68615a;
  --border: #ded8d0;
  --accent: #a11e3b;
  --accent-strong: #86162f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100svh - 124px);
}

.hero-copy,
.doc-hero,
.doc-section,
.note-band {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.92;
}

h2 {
  font-size: 1.35rem;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.status {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.95rem;
}

.primary-link,
.secondary-link {
  border-radius: 9px;
  padding: 12px 16px;
  font-weight: 750;
  text-decoration: none;
}

.primary-link {
  background: var(--accent);
  color: #ffffff;
}

.primary-link:hover {
  background: var(--accent-strong);
}

.primary-link.disabled {
  pointer-events: none;
  opacity: 0.58;
}

.secondary-link {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
}

.preview {
  margin: 0;
}

.preview img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: 0 22px 58px rgba(31, 28, 24, 0.16);
}

.platforms,
.note-band,
.doc-section {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.platforms {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
}

.platform-card span,
.doc-section p,
.doc-section li {
  color: var(--muted);
  line-height: 1.55;
}

.platform-card a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.note-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.doc-page {
  max-width: 820px;
}

.doc-hero {
  padding: 70px 0 34px;
}

.doc-section ol {
  margin: 0;
  padding-left: 22px;
}

code {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  padding: 2px 6px;
}

@media (max-width: 900px) {
  .hero,
  .platforms,
  .note-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  main,
  .site-header {
    padding-inline: 18px;
  }
}
