:root {
  color-scheme: light;
  --page: #f5f7fb;
  --paper: #ffffff;
  --ink: #111728;
  --muted: #5e6677;
  --line: #dce1ea;
  --line-strong: #bfc7d5;
  --blue: #135dd8;
  --blue-dark: #0d47a8;
  --blue-soft: #eaf2ff;
  --warning-bg: #fff7e3;
  --warning-border: #ecd395;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--blue-dark);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

main,
footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 68% 52% at 50% 38%, rgba(96, 119, 171, 0.18), transparent 72%),
    linear-gradient(180deg, #0a0e18 0%, #0d1220 100%);
  color: white;
}

.product-hero {
  display: grid;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: 2rem 0 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  text-align: center;
}

.hero-content {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  align-self: center;
  flex-direction: column;
  justify-content: center;
}

.mist-stage {
  position: relative;
  width: clamp(24rem, 84vw, 62rem);
  height: clamp(14rem, 39vw, 27rem);
  margin: -1.5rem 0 clamp(-1.5rem, -2vw, -0.5rem);
  isolation: isolate;
  pointer-events: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 54% 54% at 50% 50%, #000 26%, rgba(0, 0, 0, 0.84) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 54% at 50% 50%, #000 26%, rgba(0, 0, 0, 0.84) 62%, transparent 100%);
}

.mist-texture,
.mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mist-texture {
  z-index: 2;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06, 0.92);
}

.mist-canvas {
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  will-change: opacity;
}

.mist-wordmark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  margin: 0;
  color: rgba(247, 250, 255, 0.9);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-shadow:
    0 2px 24px rgba(6, 10, 18, 0.86),
    0 0 58px rgba(177, 203, 246, 0.2);
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mist-stage.is-static .mist-canvas {
  opacity: 0;
}

.hero-tagline {
  width: min(100%, 34rem);
  max-width: 34rem;
  margin: 0.85rem 0 0;
  color: #c7cfdb;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.hero-download {
  display: inline-flex;
  min-height: 3.25rem;
  margin: 1rem auto 0;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.78rem;
  background: white;
  color: #0d1220;
  align-items: center;
  font-weight: 740;
  justify-content: center;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.hero-download:hover {
  background: #eaf2ff;
  transform: translateY(-2px);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(28rem, 1.22fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: 44rem;
  padding-block: clamp(5rem, 9vw, 8rem);
}

.overline,
.step-label {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2,
p {
  text-wrap: pretty;
}

h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.download-intro > p:last-child {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.download-panel {
  padding: clamp(1.4rem, 4vw, 2.35rem);
  border: 1px solid var(--line-strong);
  border-radius: 1.15rem;
  background: var(--paper);
  box-shadow: 0 1.25rem 4rem rgba(32, 48, 79, 0.1);
}

.panel-heading h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.platform-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  background: #f1f3f7;
}

.platform-picker button {
  min-height: 2.85rem;
  border: 0;
  border-radius: 0.58rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.platform-picker button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0.15rem 0.5rem rgba(31, 43, 67, 0.12);
}

.package-area {
  min-height: 8.25rem;
}

.checking-state {
  display: flex;
  min-height: 8.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.78rem;
  color: var(--muted);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.package-list {
  display: grid;
  gap: 0.65rem;
}

.package-option {
  display: flex;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.78rem;
  background: var(--paper);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.package-option[href]:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

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

.package-option-primary[href]:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.package-option.is-disabled {
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
}

.package-name {
  display: block;
  font-weight: 740;
}

.package-detail {
  display: block;
  margin-top: 0.12rem;
  color: inherit;
  font-size: 0.82rem;
  opacity: 0.78;
}

.package-action {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 740;
}

.release-notice {
  padding: 1rem;
  border: 1px solid var(--warning-border);
  border-radius: 0.78rem;
  background: var(--warning-bg);
}

.release-notice strong,
.release-notice span {
  display: block;
}

.release-notice span {
  margin-top: 0.25rem;
  color: #6b5a2f;
  font-size: 0.9rem;
}

.release-notice a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--blue-dark);
  font-weight: 700;
}

.setup-expectation {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.next-steps,
.essentials {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(24rem, 1.3fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.instruction-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.instruction-list li:first-child {
  padding-top: 0;
}

.instruction-list li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 750;
  place-items: center;
}

.instruction-list p {
  margin: 0.2rem 0 0;
}

kbd {
  padding: 0.08rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  background: var(--paper);
  font: inherit;
  font-size: 0.85em;
}

.essentials {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.essentials h2 {
  max-width: 13ch;
}

.essentials ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.essentials li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 620;
}

footer {
  display: flex;
  min-height: 7rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

@media (max-width: 820px) {
  .download-section,
  .next-steps,
  .essentials {
    grid-template-columns: 1fr;
  }

  .download-section {
    min-height: auto;
    gap: 2.5rem;
  }

  .product-hero {
    padding-bottom: 1.75rem;
  }

  .mist-stage {
    width: min(43rem, 96vw);
    height: clamp(12rem, 43vw, 20rem);
    margin-bottom: clamp(-1.25rem, -3vw, -0.5rem);
  }

  .download-panel {
    padding: 1.2rem;
  }

  footer {
    padding-block: 2rem;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 700px) and (min-width: 600px) {
  .product-hero {
    padding: 0.75rem 0 1rem;
  }

  .mist-stage {
    width: min(70vw, 52rem);
    height: clamp(10rem, 38vh, 15rem);
    margin: -1rem 0 -0.75rem;
  }

  .product-hero h1 {
    font-size: clamp(3.5rem, 10vh, 5rem);
  }

  .hero-tagline {
    margin-top: 0.4rem;
    font-size: 1rem;
  }

  .hero-download {
    min-height: 2.8rem;
    margin-top: 0.5rem;
    padding: 0.65rem 1.2rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .product-hero {
    padding: 0.5rem 0 0.75rem;
  }

  .mist-stage {
    width: min(70vw, 28rem);
    height: clamp(7rem, 36vh, 10rem);
    margin: -0.5rem 0 -0.4rem;
  }

  .product-hero h1 {
    font-size: clamp(2.75rem, 13vh, 3.75rem);
  }

  .hero-tagline {
    margin-top: 0.25rem;
    font-size: 0.9rem;
  }

  .hero-download {
    min-height: 2.6rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 460px) {
  main,
  footer {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .product-hero {
    width: min(calc(100% - 1.25rem), var(--max));
    padding-top: 1rem;
  }

  .product-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .platform-picker button {
    font-size: 0.84rem;
  }

  .package-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mist-canvas {
    display: none;
    will-change: auto;
  }

  .mist-texture {
    opacity: 0.24;
    transform: scale(1.04, 0.94);
  }
}
[hidden] {
  display: none !important;
}
