:root {
  color-scheme: dark;
  --ink: #15161b;
  --panel: #25272e;
  --paper: #f7f7f8;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.11);
  --accent: #a9bdf5;
  --page-gutter: clamp(18px, 2.4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: #fff;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", "Noto Sans SC", "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 2100px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(84px, 9vw, 118px);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(27px, 2.25vw, 43px);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.brand-mark {
  display: grid;
  width: clamp(48px, 4.3vw, 68px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 31%;
  background: #000;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-downloads {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 720;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-button-primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.header-button-primary:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
}

.header-button-disabled {
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  cursor: default;
}

.header-button small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: max(620px, calc(100svh - 176px));
  padding: 10px 0 34px clamp(0px, 17vw, 330px);
}

.hero-media {
  width: 100%;
  height: 100%;
  min-height: max(576px, calc(100svh - 220px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(28px, 3vw, 50px);
  background: #10131a;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.35);
  animation: media-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media::after {
  position: absolute;
  inset: 10px 0 34px clamp(0px, 17vw, 330px);
  border-radius: clamp(28px, 3vw, 50px);
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.34), transparent 34%),
    linear-gradient(0deg, rgba(7, 9, 13, 0.16), transparent 34%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: max(576px, calc(100svh - 220px));
  object-fit: cover;
  object-position: 54% center;
  transition: transform 9s ease-out;
}

.hero:hover .hero-media img {
  transform: scale(1.025);
}

.download-panel {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: calc(var(--page-gutter) * -0.62);
  width: min(570px, 39vw);
  padding: clamp(34px, 3.4vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(28px, 3vw, 48px);
  background: rgba(37, 39, 46, 0.96);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(-48%);
  backdrop-filter: blur(24px);
  animation: panel-enter 760ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(22px, 2.2vw, 37px);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.download-panel h1 {
  margin: 0;
  font-size: clamp(52px, 5vw, 86px);
  font-weight: 790;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.download-panel h1 span {
  color: var(--accent);
}

.panel-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 23px);
  font-weight: 620;
}

.download-actions {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(66px, 5.4vw, 82px);
  gap: 13px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 760;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.download-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.download-button-disabled {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(21, 22, 27, 0.58);
  cursor: default;
}

.download-button-disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.92);
}

.download-button-disabled span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-button-disabled small {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(21, 22, 27, 0.08);
  font-size: 10px;
  font-weight: 680;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #fff;
}

@keyframes media-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(calc(-48% + 24px));
  }
}

@media (max-width: 1050px) {
  .hero {
    padding-left: 12vw;
  }

  .hero-media::after {
    left: 12vw;
  }

  .download-panel {
    left: -12px;
    width: min(520px, 48vw);
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 14px;
  }

  .page-shell {
    display: block;
  }

  .site-header {
    min-height: 78px;
  }

  .brand {
    gap: 9px;
    font-size: 26px;
  }

  .brand-mark {
    width: 43px;
  }

  .header-downloads {
    gap: 7px;
  }

  .header-button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .header-button-disabled small {
    display: none;
  }

  .hero {
    display: flex;
    min-height: calc(100svh - 126px);
    padding: 0 0 18px;
  }

  .hero-media,
  .hero-media img {
    min-height: max(620px, calc(100svh - 144px));
  }

  .hero-media {
    border-radius: 28px;
  }

  .hero-media::after {
    inset: 0 0 18px;
    border-radius: 28px;
    background:
      linear-gradient(0deg, rgba(10, 12, 17, 0.76), transparent 58%),
      linear-gradient(90deg, rgba(10, 12, 17, 0.12), transparent 70%);
  }

  .hero-media img {
    object-position: 68% center;
  }

  .download-panel {
    top: auto;
    right: 14px;
    bottom: 42px;
    left: 14px;
    width: auto;
    padding: 26px 24px 24px;
    border-radius: 28px;
    transform: none;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 20px;
  }

  .download-panel h1 {
    font-size: clamp(43px, 12.6vw, 58px);
  }

  .panel-note {
    margin-top: 10px;
    font-size: 14px;
  }

  .download-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .download-button {
    min-height: 56px;
    gap: 7px;
    border-radius: 16px;
    font-size: 14px;
  }

  .download-button svg {
    width: 20px;
    height: 20px;
  }

  .download-button-disabled small {
    display: none;
  }

  .site-footer {
    min-height: 48px;
    padding: 0 4px;
    font-size: 10px;
  }

  .site-footer nav {
    gap: 12px;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  .download-panel {
    bottom: 34px;
    padding: 22px 20px;
  }

  .download-panel h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
