:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5f6f7c;
  --line: #d7e0e7;
  --blue: #176b87;
  --green: #2f7d5c;
  --gold: #9b6b20;
  --paper: #f7fafb;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: white;
  border-radius: 6px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 94px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.16), rgba(47, 125, 92, 0.12)),
    var(--paper);
}

.hero.compact {
  min-height: 0;
  grid-template-columns: minmax(0, 880px);
  padding-block: 54px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.actions,
.identity-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.button.secondary {
  background: white;
  color: var(--blue);
}

.signal-panel,
.download-card,
.identity-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 33, 43, 0.09);
}

.signal-panel {
  padding: clamp(18px, 3vw, 28px);
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row span {
  color: var(--muted);
}

.signal-row strong {
  color: var(--blue);
}

.section {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 46px);
}

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

.download-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  text-decoration: none;
}

.download-card strong {
  font-size: 22px;
}

.download-card small,
.platform,
.manifest-link,
.section p {
  color: var(--muted);
}

.platform {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: center;
}

.identity-card {
  padding: 22px;
}

.name-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

code {
  display: block;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 800;
  overflow-wrap: anywhere;
}

footer {
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-grid,
  .name-grid {
    grid-template-columns: 1fr;
  }
}
