:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f6f6f6;
  --muted: #9b9b9b;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.11), transparent 0 32%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 34%);
}

a {
  color: inherit;
}

#particle-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: max(32px, env(safe-area-inset-top)) clamp(20px, 5vw, 72px) 64px;
}

.hero-copy {
  width: min(760px, 100%);
  text-align: center;
}

.app-icon {
  width: clamp(78px, 12vw, 112px);
  height: clamp(78px, 12vw, 112px);
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(255, 255, 255, 0.12);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 11vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lead {
  width: min(590px, 100%);
  margin: 0 auto 30px;
  color: #d8d8d8;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 148px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 17px;
  line-height: 1;
}

.button.primary {
  background: var(--accent);
  color: #050505;
}

.button.primary:hover {
  background: #dcdcdc;
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.button.secondary:hover {
  background: var(--panel-strong);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.release-meta div {
  min-width: 104px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.release-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.release-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.setup {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 44px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.setup h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.setup p {
  margin-bottom: 10px;
  color: var(--muted);
}

.setup p:last-child {
  margin-bottom: 0;
}

.checksum {
  color: #777;
  font-size: 12px;
  overflow-wrap: anywhere;
}

code {
  color: #d9d9d9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

footer span {
  font-weight: 800;
}

footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.text-link {
  color: var(--ink);
  font-weight: 750;
  text-underline-offset: 3px;
}

.install-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 72px;
}

.install-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(48px, 9vw, 92px);
}

.brand-link,
.back-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-link img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

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

.install-hero {
  width: min(720px, 100%);
  margin-bottom: 44px;
}

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

.install-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
}

.install-hero .lead {
  width: auto;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.3vw, 24px);
}

.install-hero .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-step {
  min-height: 230px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 38px;
  background: var(--ink);
  border-radius: 50%;
  color: var(--bg);
  font-size: 14px;
  font-weight: 900;
}

.install-step h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.install-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.install-note {
  margin-top: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 560px) {
  body::after {
    background:
      radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.1), transparent 0 34%, transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    font-size: 13px;
  }

  .hero {
    min-height: 100svh;
    padding: max(28px, env(safe-area-inset-top)) 18px 34px;
  }

  .app-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border-radius: 18px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(48px, 15vw, 62px);
    line-height: 0.92;
    overflow-wrap: anywhere;
  }

  .lead {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 320px);
    margin: 0 auto 18px;
  }

  .button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }

  .release-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 320px);
    gap: 8px;
  }

  .release-meta div {
    min-width: 0;
    padding: 9px 10px;
  }

  .release-meta div:last-child {
    grid-column: 1 / -1;
  }

  .release-meta dd {
    font-size: 14px;
  }

  .setup {
    width: calc(100% - 36px);
    margin-bottom: 24px;
    padding: 15px 16px;
  }

  .setup p {
    font-size: 14px;
  }

  .checksum {
    font-size: 11px;
  }

  .install-page {
    width: calc(100% - 36px);
    padding-bottom: 40px;
  }

  .install-nav {
    margin-bottom: 48px;
  }

  .install-hero {
    margin-bottom: 30px;
  }

  .install-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .install-hero .hero-actions {
    width: 100%;
    margin-left: 0;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .install-step {
    min-height: 0;
    padding: 20px;
  }

  .step-number {
    margin-bottom: 28px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 16px;
  }

  .release-meta {
    grid-template-columns: 1fr;
  }

  .release-meta div:last-child {
    grid-column: auto;
  }
}
