:root {
  color-scheme: light;
  --ink: #172321;
  --muted: #54625f;
  --surface: #ffffff;
  --soft: #eef4f2;
  --brand: #00796f;
  --brand-strong: #005f57;
  --accent: #ffd54f;
  --danger: #b42318;
  --line: #d7e1de;
  --shadow: 0 12px 32px rgba(10, 45, 40, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--brand-strong);
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 225, 222, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.hero-brand-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 64px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #163c37 url("../images/app-map-screen.png") center 38% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 27, 0.65);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 72px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: clamp(18px, 2.4vw, 24px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--brand-strong);
}

.button-secondary {
  border-color: white;
  background: rgba(0, 0, 0, 0.18);
}

.button-disabled {
  background: #7a8583;
  cursor: not-allowed;
}

.band {
  padding: 72px 0;
}

.band-soft {
  background: var(--soft);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
}

.section-heading p,
.page-intro p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.link-grid,
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.link-tile,
.release-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-code {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.feature h3,
.link-tile h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature p,
.link-tile p {
  margin: 0;
  color: var(--muted);
}

.link-tile {
  color: var(--ink);
  text-decoration: none;
}

.link-tile:hover,
.link-tile:focus-visible {
  border-color: var(--brand);
}

.release-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f9fbfa;
}

.release-strip .container {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-intro {
  padding: 72px 0 40px;
  background: var(--soft);
}

.prose {
  padding: 48px 0 80px;
}

.prose h2 {
  margin-top: 40px;
  font-size: 26px;
}

.prose h3 {
  margin-top: 28px;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #fff9dc;
}

.notice-danger {
  border-left-color: var(--danger);
  background: #fff3f1;
}

.hash {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f7f6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.check-list {
  padding-left: 22px;
}

.check-list li {
  margin: 9px 0;
}

.download-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.release-panel dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 16px;
  margin: 0;
}

.release-panel dt {
  color: var(--muted);
}

.release-panel dd {
  margin: 0;
  font-weight: 750;
}

.footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #132421;
  color: #dce8e5;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer a {
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.footer .small {
  color: #afc4bf;
}

@media (max-width: 800px) {
  .nav {
    min-height: 58px;
    gap: 8px;
  }

  .nav-links a:not(.nav-download) {
    display: none;
  }

  .nav-links {
    gap: 8px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
    margin-right: 6px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 68px 0 48px;
  }

  .feature-grid,
  .link-grid,
  .release-grid,
  .download-summary {
    grid-template-columns: 1fr;
  }

  .release-strip .container,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-panel dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .release-panel dd {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
