:root {
  --black: #070707;
  --black-soft: #101010;
  --panel: #171717;
  --panel-light: #202020;
  --red: #d71935;
  --red-light: #f13a55;
  --red-dark: #9f1026;
  --text: #ffffff;
  --muted: #aaa6a7;
  --muted-dark: #716d6e;
  --line: rgba(255, 255, 255, 0.11);
  --red-line: rgba(215, 25, 53, 0.38);
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--black);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body,
button,
a {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
  background: rgba(6, 6, 6, 0.95);
  border-bottom: 1px solid var(--red-line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--shell), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  max-width: 175px;
  max-height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.main-nav a {
  color: #d7d4d5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--red-light);
}

.header-download {
  min-height: 42px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: var(--red);
  border: 1px solid var(--red-light);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(215, 25, 53, 0.23);
}

.header-download[aria-disabled="true"],
.primary-download[aria-disabled="true"],
.final-download-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.78;
}

.header-download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.menu-button.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.download-hero {
  position: relative;
  min-height: 665px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 72% 45%,
      rgba(215, 25, 53, 0.16),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #111111,
      #070707 68%
    );
  border-bottom: 1px solid var(--line);
}

.download-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 7, 0.98) 0%,
      rgba(7, 7, 7, 0.88) 42%,
      rgba(7, 7, 7, 0.52) 72%,
      rgba(7, 7, 7, 0.82) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 7, 7, 0.08),
      rgba(7, 7, 7, 0.62)
    );
}

.hero-background-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.13;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  z-index: 2;
  width: 450px;
  height: 450px;
  opacity: 0.08;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px
    );
  background-size: 32px 32px;
  transform: rotate(18deg);
}

.hero-grid-left {
  left: -230px;
  bottom: -230px;
}

.hero-grid-right {
  right: -210px;
  top: -240px;
}

.hero-glow {
  position: absolute;
  z-index: 2;
  width: 620px;
  height: 450px;
  left: -310px;
  top: 40px;
  background:
    radial-gradient(
      circle,
      rgba(215, 25, 53, 0.12),
      transparent 70%
    );
  border-radius: 50%;
  filter: blur(16px);
}

.hero-decoration {
  position: absolute;
  z-index: 2;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

.hero-decoration-card {
  left: 3%;
  bottom: 4%;
  width: clamp(90px, 11vw, 175px);
  opacity: 0.2;
  transform: rotate(-13deg);
}

.hero-decoration-chip {
  right: 3%;
  top: 12%;
  width: clamp(75px, 9vw, 145px);
  opacity: 0.17;
  transform: rotate(12deg);
}

.hero-layout {
  position: relative;
  z-index: 5;
  min-height: 665px;
  padding: 70px 0 58px;
  display: grid;
  grid-template-columns:
    minmax(380px, 0.84fr)
    minmax(520px, 1.16fr);
  gap: 65px;
  align-items: center;
}

.brand-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--red);
  border-radius: 50%;
  box-shadow:
    0 16px 38px rgba(215, 25, 53, 0.26),
    inset 0 1px rgba(255, 255, 255, 0.3);
}

.brand-mark span {
  font-size: 36px;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  color: var(--red-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 15px 0 0;
  font-size: clamp(50px, 5.6vw, 75px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy h1 strong {
  display: block;
  margin-top: 13px;
  color: #eee9eb;
  font-size: 0.52em;
  line-height: 1.27;
  letter-spacing: -0.034em;
}

.hero-intro {
  max-width: 590px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Platform selector */

.platform-selector {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #989395;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.platform-button:hover {
  color: #ffffff;
  border-color: var(--red-line);
}

.platform-button.is-active {
  color: #ffffff;
  background: rgba(215, 25, 53, 0.14);
  border-color: var(--red);
}

.platform-text-icon {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 21px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.platform-button.is-active .platform-text-icon {
  background: var(--red);
  border-color: var(--red-light);
}

.primary-download {
  min-height: 60px;
  margin-top: 17px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  background: var(--red);
  border: 1px solid var(--red-light);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 17px 38px rgba(215, 25, 53, 0.24);
}

.primary-download small,
.primary-download strong {
  display: block;
}

.primary-download small {
  margin-bottom: 3px;
  font-size: 10px;
  opacity: 0.73;
}

.platform-symbol {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}

.platform-text-symbol {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.download-note {
  margin: 13px 0 0;
  color: var(--muted-dark);
  font-size: 12px;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-panel {
  position: relative;
  z-index: 4;
  width: min(100%, 650px);
  min-height: 430px;
  padding: 35px 30px 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(215, 25, 53, 0.06)
    ),
    #131313;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.4);
}

.visual-panel::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 20px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--red),
      transparent
    );
}

.device-picture {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 340px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(
      0 28px 35px rgba(0, 0, 0, 0.48)
    );
}

.visual-caption {
  position: absolute;
  left: 25px;
  bottom: 21px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 7, 7, 0.88);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--red-light);
  border-radius: 50%;
  box-shadow: 0 0 13px var(--red);
}

.visual-caption small,
.visual-caption strong {
  display: block;
}

.visual-caption small {
  margin-bottom: 3px;
  color: var(--muted-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.visual-caption strong {
  font-size: 12px;
}

.red-orbit {
  position: absolute;
  border: 1px solid rgba(215, 25, 53, 0.17);
  border-radius: 50%;
}

.red-orbit-one {
  width: 680px;
  height: 280px;
  transform: rotate(-17deg);
}

.red-orbit-two {
  width: 490px;
  height: 210px;
  transform: rotate(18deg);
}

/* Section headings */

.section-heading {
  max-width: 710px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Steps */

.steps-section {
  padding: 80px 0 86px;
  background: var(--black-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.step-number {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 3;
  color: var(--red-light);
  font-size: 13px;
  font-weight: 900;
}

.step-card figure {
  height: 245px;
  margin: 0;
  padding: 34px 20px 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(215, 25, 53, 0.13),
      transparent 62%
    ),
    linear-gradient(
      145deg,
      #231b1d,
      #111111
    );
}

.step-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.step-copy {
  padding: 25px;
}

.step-copy small {
  color: var(--red-light);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.step-copy h3 {
  margin: 8px 0 0;
  font-size: 23px;
}

.step-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Client preview */

.client-preview-section {
  padding: 82px 0 88px;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(215, 25, 53, 0.08),
      transparent 35%
    ),
    #0d0d0d;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-preview-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.client-preview-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.client-preview-card:hover {
  transform: translateY(-5px);
  border-color: var(--red-line);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.3);
}

.client-preview-card figure {
  position: relative;
  height: 235px;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(215, 25, 53, 0.13),
      transparent 60%
    ),
    #101010;
  border-bottom: 1px solid var(--line);
}

.client-preview-card figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(15, 15, 15, 0.74)
    );
}

.client-preview-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.client-preview-copy {
  min-height: 125px;
  padding: 22px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 14px;
}

.client-preview-copy > span {
  color: var(--red-light);
  font-size: 12px;
  font-weight: 900;
}

.client-preview-copy h3 {
  margin: 0;
  font-size: 21px;
}

.client-preview-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Devices */

.devices-section {
  padding: 69px 0;
  background:
    radial-gradient(
      circle at 10% 50%,
      rgba(215, 25, 53, 0.08),
      transparent 26%
    ),
    #090909;
  border-top: 1px solid var(--line);
}

.devices-layout {
  display: grid;
  grid-template-columns:
    minmax(300px, 0.75fr)
    minmax(0, 1.25fr);
  gap: 75px;
  align-items: center;
}

.devices-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.devices-copy p {
  margin: 19px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.devices-trophy {
  width: min(260px, 100%);
  margin: 30px 0 0;
}

.devices-trophy img {
  width: 100%;
  max-height: 165px;
  object-fit: contain;
  object-position: left center;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.device-list article {
  min-height: 120px;
  padding: 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.device-list article:nth-child(even) {
  border-right: 0;
}

.device-code {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(215, 25, 53, 0.08);
  border: 1px solid var(--red-line);
  border-radius: 13px;
}

.device-text-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--red);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.device-list strong {
  display: block;
  font-size: 17px;
}

.device-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Final */

.final-download {
  padding: 48px 0;
  background:
    linear-gradient(
      90deg,
      #24050b,
      #13080a 48%,
      #26050c
    );
  border-top: 1px solid var(--red-line);
  border-bottom: 1px solid var(--red-line);
}

.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.final-inner h2 {
  margin: 8px 0 0;
  font-size: 31px;
}

.final-inner p {
  margin: 10px 0 0;
  color: #a78e93;
}

.final-download-button {
  min-width: 215px;
  min-height: 49px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  background: var(--red);
  border: 1px solid var(--red-light);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

/* Footer */

.site-footer {
  padding: 27px 0;
  background: #040404;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-inner img {
  width: auto;
  max-width: 145px;
  max-height: 36px;
  object-fit: contain;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: #676364;
  font-size: 12px;
  text-align: right;
}

/* Toast */

.page-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 25px;
  padding: 12px 18px;
  color: #ffffff;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid var(--red-line);
  border-radius: 10px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.page-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.image-missing {
  min-height: 120px;
  background:
    linear-gradient(
      135deg,
      rgba(215, 25, 53, 0.06),
      rgba(255, 255, 255, 0.015)
    );
}

/* Tablet */

@media (max-width: 1000px) {
  .client-preview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .client-preview-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    margin: 0 auto;
  }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 710px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }

  .step-card {
    display: grid;
    grid-template-columns:
      minmax(250px, 0.8fr)
      minmax(0, 1.2fr);
  }

  .step-card figure {
    height: 100%;
    min-height: 240px;
  }

  .devices-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile */

@media (max-width: 680px) {
  .page-shell,
  .header-inner {
    width: min(100% - 28px, var(--shell));
  }

  .site-header,
  .header-inner {
    min-height: 64px;
  }

  .brand img {
    max-width: 132px;
    max-height: 35px;
  }

  .header-download {
    margin-left: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
  }

  .header-download svg {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 15px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #080808;
    box-shadow:
      0 22px 40px rgba(0, 0, 0, 0.32);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-background-image {
    opacity: 0.09;
  }

  .hero-decoration-card {
    left: -25px;
    bottom: 2%;
  }

  .hero-decoration-chip {
    right: -20px;
    top: 18%;
  }

  .hero-layout {
    min-height: auto;
    padding: 52px 0 45px;
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .platform-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-button {
    min-height: 43px;
  }

  .primary-download {
    width: 100%;
  }

  .hero-visual {
    min-height: 350px;
  }

  .visual-panel {
    min-height: 320px;
    padding: 24px 18px 50px;
  }

  .device-picture {
    height: 260px;
  }

  .step-card {
    display: block;
  }

  .step-card figure {
    height: 235px;
    min-height: 0;
  }

  .client-preview-section {
    padding: 60px 0 65px;
  }

  .client-preview-grid {
    grid-template-columns: 1fr;
  }

  .client-preview-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .client-preview-card figure {
    height: 245px;
  }

  .devices-trophy {
    margin-right: auto;
    margin-left: auto;
  }

  .devices-trophy img {
    object-position: center;
  }

  .device-list {
    grid-template-columns: 1fr;
  }

  .device-list article {
    border-right: 0;
  }

  .final-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-download-button {
    width: 100%;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .header-download span:first-child {
    max-width: 85px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero-visual {
    min-height: 310px;
  }

  .visual-panel {
    min-height: 285px;
  }

  .device-picture {
    height: 225px;
  }

  .visual-caption {
    display: none;
  }

  .platform-button {
    padding: 0 10px;
    font-size: 12px;
  }

  .platform-text-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    font-size: 10px;
  }

  .client-preview-card figure {
    height: 215px;
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}