/* Public download page: the same surface, text, accent, radius, and type tokens as the app. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
::selection {
  background: var(--accent-soft);
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-fg);
}
.skip-link:focus {
  top: 12px;
}
.page-shell {
  max-width: 1500px;
  min-height: 100vh;
  margin: auto;
}

.topbar {
  height: 76px;
  padding: 0 clamp(24px, 5.5vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.logo {
  display: block;
  width: auto;
  height: 44px;
}
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.header-label {
  color: var(--fg-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}
.theme-toggle:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}
.moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: none;
}
[data-theme="dark"] .moon-icon {
  display: block;
}

.hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(340px, 0.87fr);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 28px 80px clamp(24px, 5.5vw, 88px);
}
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line {
  width: 19px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
h1,
h2,
h3,
p {
  text-wrap: pretty;
}
.hero h1 {
  margin: 25px 0 20px;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.062em;
}
.hero h1 span {
  color: var(--accent);
}
.hero-description {
  max-width: 540px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.62;
}
.release-meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 34px;
  padding: 8px 12px;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  box-shadow: var(--shadow-sm);
}
.release-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    circle at 54% 48%,
    var(--accent-soft),
    var(--bg-subtle) 53%,
    var(--bg) 84%
  );
  border-left: 1px solid var(--border);
}
.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 77%);
}
.visual-ring {
  position: absolute;
  left: 52%;
  top: 49%;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-inner {
  width: 216px;
  height: 216px;
  border-color: var(--accent);
  opacity: 0.36;
}
.ring-outer {
  width: 392px;
  height: 392px;
  opacity: 0.62;
}
.visual-center {
  position: absolute;
  left: 52%;
  top: 49%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--accent);
  box-shadow:
    0 0 0 13px var(--accent-soft),
    0 16px 40px -12px var(--accent);
}
.visual-center span {
  width: 26px;
  height: 26px;
  border: 3px solid var(--accent-fg);
  border-radius: 50%;
}
.visual-node {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--accent-soft);
}
.node-a {
  left: 31%;
  top: 24%;
}
.node-b {
  left: 73%;
  top: 27%;
}
.node-c {
  left: 80%;
  top: 62%;
}
.node-d {
  left: 31%;
  top: 71%;
}
.node-e {
  left: 54%;
  top: 88%;
}
.visual-caption {
  position: absolute;
  right: 33px;
  bottom: 23px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.downloads {
  padding: 82px clamp(24px, 5.5vw, 88px) 94px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 31px;
}
.section-heading h2,
.next-steps h2 {
  margin: 10px 0 0;
  font-size: clamp(31px, 3vw, 43px);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -0.045em;
}
.section-heading > p {
  max-width: 270px;
  margin: 0 0 3px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 330px;
  padding: 27px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--motion-normal) var(--ease-standard),
    box-shadow var(--motion-normal) var(--ease-standard),
    transform var(--motion-normal) var(--ease-standard);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 29px;
}
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
}
.card-icon svg {
  width: 23px;
  height: 23px;
}
.card-index {
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.card-description {
  max-width: 230px;
  min-height: 42px;
  margin: 0 0 26px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}
.card-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 12px;
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition:
    background var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.download-link:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.download-link span {
  font-size: 15px;
  opacity: 0.85;
}
.card-links .download-link + .download-link {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
  box-shadow: none;
}
.card-links .download-link + .download-link:hover {
  background: var(--bg-subtle);
}
.muted {
  color: var(--fg-subtle);
  font-size: var(--text-sm);
}
.integrity {
  margin: 23px 0 0;
  color: var(--fg-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.integrity a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.next-steps {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 8%;
  padding: 70px clamp(24px, 5.5vw, 88px) 80px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.steps-intro > p:last-child {
  max-width: 330px;
  margin: 17px 0 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.steps-list li {
  display: flex;
  gap: 23px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.steps-list li > span {
  flex: 0 0 24px;
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}
.steps-list h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.steps-list p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(24px, 5.5vw, 88px);
  color: var(--fg-subtle);
  font-size: var(--text-xs);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 72px 24px 58px;
  }
  .hero-visual {
    min-height: 230px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .visual-center {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .ring-inner {
    width: 155px;
    height: 155px;
  }
  .ring-outer {
    width: 280px;
    height: 280px;
  }
  .visual-caption {
    right: 20px;
    bottom: 14px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 250px;
  }
  .card-heading {
    margin-bottom: 20px;
  }
  .card-description {
    max-width: none;
    min-height: 0;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    max-width: 480px;
    margin-top: 16px;
  }
  .next-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 520px) {
  .topbar {
    height: 66px;
    padding-inline: 20px;
  }
  .logo {
    height: 36px;
  }
  .header-label {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .hero-copy {
    padding: 62px 20px 52px;
  }
  .hero h1 {
    font-size: clamp(43px, 11vw, 57px);
  }
  .hero-description {
    font-size: 15px;
  }
  .downloads {
    padding: 65px 20px 70px;
  }
  .next-steps {
    padding: 60px 20px 68px;
  }
  footer {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
