:root {
  color-scheme: dark;
  --bg: #05060b;
  --surface: #0d1019;
  --surface-soft: #111522;
  --line: rgba(151, 165, 211, 0.16);
  --line-strong: rgba(111, 141, 255, 0.32);
  --text: #f7f8ff;
  --muted: #9ba4bb;
  --blue: #4b70ff;
  --cyan: #21c8ff;
  --purple: #8c5bff;
  --yellow: #ffc93d;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(84, 100, 155, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 100, 155, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow-one {
  top: 80px;
  right: -260px;
  background: #335cff;
}

.page-glow-two {
  top: 780px;
  left: -360px;
  background: #6e32ff;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(151, 165, 211, 0.1);
  background: rgba(5, 6, 11, 0.78);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--max-width));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img,
.footer-brand img {
  width: 148px;
  height: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #d6dbeb;
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--line-strong);
  color: #fff;
  background: rgba(75, 112, 255, 0.1);
  outline: none;
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 470px;
  padding: 88px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 750px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(75, 112, 255, 0.28);
  border-radius: 999px;
  color: #bcc8ff;
  background: rgba(75, 112, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f8dff;
  box-shadow: 0 0 0 5px rgba(111, 141, 255, 0.12), 0 0 20px #4b70ff;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, var(--cyan), var(--blue) 48%, #a06cff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-meta span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #c5ccdf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 700;
}

.app-mark {
  position: relative;
  width: 300px;
  height: 300px;
  margin: auto;
  display: grid;
  place-items: center;
}

.app-mark::before,
.app-mark::after,
.app-mark-ring {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.app-mark::before {
  inset: 0;
  border: 1px solid rgba(75, 112, 255, 0.16);
  background: radial-gradient(circle, rgba(66, 93, 255, 0.18), transparent 62%);
}

.app-mark::after {
  inset: 35px;
  border: 1px dashed rgba(101, 129, 255, 0.25);
  animation: orbit 24s linear infinite;
}

.app-mark-ring {
  inset: 65px;
  border: 1px solid rgba(111, 141, 255, 0.16);
  box-shadow: inset 0 0 44px rgba(75, 112, 255, 0.1);
}

.app-mark img {
  position: relative;
  z-index: 2;
  width: 122px;
  filter: drop-shadow(0 22px 38px rgba(30, 58, 255, 0.4));
}

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

.video-section,
.steps-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.video-section {
  padding-top: 56px;
  border-top: 0;
}

.video-section .section-heading {
  align-items: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.video-section .section-heading > div {
  width: 100%;
  justify-content: center;
}

.video-section .section-heading > p {
  max-width: 620px;
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-number {
  display: grid;
  flex: 0 0 45px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(75, 112, 255, 0.28);
  border-radius: 9px;
  color: #94a8ff;
  background: rgba(75, 112, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(111, 141, 255, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(75, 112, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #111522, #070910 62%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
}

.video-shell::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.video-shell video {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
  object-fit: contain;
}

.video-shell iframe {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.video-shell.has-video video {
  display: block;
}

.video-placeholder {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  text-align: center;
}

.video-shell.has-video .video-placeholder {
  display: none;
}

.play-symbol {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(138, 158, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(82, 115, 255, 0.32), rgba(113, 70, 255, 0.18));
  box-shadow: 0 0 0 16px rgba(75, 112, 255, 0.055), 0 24px 50px rgba(0, 0, 0, 0.28);
}

.play-symbol span {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #fff;
}

.video-placeholder strong {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.video-placeholder p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.video-caption {
  margin: 16px 4px 0;
  color: #7f899f;
  font-size: 12px;
}

.video-caption span {
  margin-right: 6px;
  color: #5d80ff;
}

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

.downloader-code {
  max-width: 640px;
  margin: 0 auto 38px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 128, 30, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 111, 0, 0.12), transparent 45%),
    rgba(10, 12, 19, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.downloader-code img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.downloader-code figcaption {
  margin: 17px 8px 3px;
  color: #c7cddd;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.downloader-code figcaption strong {
  color: #ff9c47;
  font-size: 16px;
}

.step-card {
  position: relative;
  min-height: 286px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(18, 22, 35, 0.94), rgba(10, 12, 20, 0.95));
  transition: transform 180ms ease, border-color 180ms ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.step-index {
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(125, 144, 204, 0.12);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 112, 255, 0.24);
  border-radius: 14px;
  color: #91a6ff;
  background: rgba(75, 112, 255, 0.09);
  font-size: 24px;
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 11px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.step-card p strong {
  color: #dce2f4;
}

.help-card {
  margin: 20px 0 100px;
  padding: 30px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 201, 61, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 201, 61, 0.08), transparent 34%),
    rgba(16, 17, 23, 0.86);
}

.help-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 201, 61, 0.26);
  border-radius: 16px;
  color: var(--yellow);
  background: rgba(255, 201, 61, 0.08);
  font-size: 24px;
  font-weight: 900;
}

.help-card span {
  color: #f0c75f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-card h2 {
  margin: 6px 0 8px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.help-card p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.help-card > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 201, 61, 0.24);
  border-radius: 12px;
  color: #ffe39b;
  background: rgba(255, 201, 61, 0.07);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: 180ms ease;
}

.help-card > a:hover,
.help-card > a:focus-visible {
  border-color: rgba(255, 201, 61, 0.48);
  background: rgba(255, 201, 61, 0.12);
  outline: none;
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 9, 0.76);
}

.footer-inner,
.copyright {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.footer-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner > a:last-child {
  color: #aab8f5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-inner > a:last-child:hover {
  color: #fff;
}

.copyright {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(151, 165, 211, 0.08);
  color: #687087;
  font-size: 11px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
  }

  .app-mark {
    width: 235px;
    height: 235px;
  }

  .app-mark img {
    width: 96px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card {
    min-height: 250px;
  }

  .help-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .help-card > a {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  main,
  .footer-inner,
  .copyright {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .topbar-inner {
    height: 68px;
  }

  .brand img {
    width: 128px;
  }

  .back-link {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 62px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .app-mark {
    display: none;
  }

  .video-section,
  .steps-section {
    padding: 60px 0;
  }

  .video-section {
    padding-top: 42px;
  }

  .section-heading {
    margin-bottom: 26px;
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .section-heading > div {
    align-items: flex-start;
  }

  .section-heading > p {
    padding-left: 0;
  }

  .video-shell {
    border-radius: 16px;
  }

  .play-symbol {
    width: 68px;
    height: 68px;
    margin-bottom: 17px;
  }

  .play-symbol span {
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 17px;
  }

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

  .downloader-code {
    margin-bottom: 28px;
    padding: 10px;
    border-radius: 16px;
  }

  .downloader-code img {
    border-radius: 10px;
  }

  .downloader-code figcaption {
    margin: 14px 7px 6px;
    font-size: 13px;
  }

  .step-card {
    min-height: 0;
  }

  .step-icon {
    margin-bottom: 32px;
  }

  .help-card {
    margin-bottom: 70px;
    padding: 22px;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
  }

  .help-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .help-card > a {
    grid-column: 1 / -1;
  }

  .footer-inner {
    padding: 42px 0;
    grid-template-columns: 1fr;
    gap: 17px;
  }
}

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

  .app-mark::after {
    animation: none;
  }

  .step-card,
  .back-link,
  .help-card > a {
    transition: none;
  }
}
