:root {
  color-scheme: dark;
  --bg: #071012;
  --surface: #10191c;
  --surface-2: #162326;
  --line: #2a3a3e;
  --text: #eef6f2;
  --muted: #a9bab7;
  --teal: #62d7cb;
  --gold: #f0c96a;
  --coral: #ff8f77;
  --ink: #020707;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgb(7 16 18 / 88%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(98 215 203 / 62%);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 820;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-hero {
  padding: 84px 32px 58px;
  background:
    linear-gradient(90deg, rgb(3 8 9 / 96%) 0%, rgb(3 8 9 / 78%) 55%, rgb(22 35 38 / 70%) 100%),
    var(--surface-2);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  margin-bottom: 10px;
  color: var(--teal);
}

.lead {
  max-width: 66ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

section {
  padding: 58px 32px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  color: var(--ink);
}

.button.secondary {
  border-color: rgb(255 255 255 / 26%);
  color: var(--text);
}

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

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

.panel,
.step,
.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
}

.panel,
.step {
  padding: 22px;
}

.note {
  padding: 18px;
  color: var(--muted);
}

.note strong {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.callout {
  border-left: 3px solid var(--gold);
  background: rgb(240 201 106 / 8%);
}

.danger {
  border-left: 3px solid var(--coral);
  background: rgb(255 143 119 / 8%);
}

code,
pre {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
}

code {
  color: #d8fff9;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  background: #020707;
  color: #d8fff9;
  font-size: 0.84rem;
  line-height: 1.55;
}

.command-stack {
  display: grid;
  gap: 14px;
}

.command-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.facts {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: var(--muted);
}

.facts li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts strong {
  color: var(--text);
}

.license-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #020707;
}

.download-stack {
  display: grid;
  gap: 18px;
}

.release-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
}

.release-card h3 {
  color: var(--teal);
}

.hash {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gold);
}

.testing-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgb(240 201 106 / 48%);
  border-radius: 999px;
  background: rgb(240 201 106 / 10%);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

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

.app-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #020707;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot figcaption {
  padding: 13px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  padding: 34px 32px;
  color: var(--muted);
  border-top: 1px solid rgb(255 255 255 / 8%);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
    min-height: auto;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .page-hero,
  section,
  footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-head,
  .grid,
  .triple-grid,
  .command-pair {
    display: grid;
    grid-template-columns: 1fr;
  }

  .release-card,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}
