:root {
  --background: #15181A;
  --text: #CACACA;
  --white: #FFFFFF;
  --accent: #0DBBE2;
  --card-radius: 24px;
  --content-width: 782px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font: 500 24px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.page-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(21, 24, 26, .96);
  transition: opacity .18s ease, visibility .18s ease;
  pointer-events: none;
}

.page-loader.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.loader-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(13, 187, 226, .25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

main {
  width: min(var(--content-width), calc(100% - 24px));
  margin: 0 auto;
  padding: 92px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 44px;
  margin-bottom: 55px;
}

.brand {
  color: var(--text);
  font-size: 64px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.platform-name {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 48px;
  line-height: 1.08;
  text-align: right;
}

.steps {
  display: grid;
  gap: 27px;
}

.step {
  display: grid;
  gap: 13px;
}

.step-label {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.step-card {
  min-height: 392px;
  padding: 24px 28px 24px 35px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(218px, 42%);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: var(--card-radius);
  color: var(--white);
}

.step-copy {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.step-copy small {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.step-media {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-media img {
  width: auto;
  max-width: 100%;
  max-height: 344px;
  display: block;
  border-radius: 14px;
  object-fit: contain;
}

.step-media.landscape {
  grid-column: 1 / -1;
}

.step-media.landscape img {
  width: 100%;
  max-height: none;
}

.step-card.landscape-card {
  grid-template-columns: 1fr;
  align-content: center;
}

.step-card.landscape-card .step-copy {
  max-width: 620px;
}

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

.download-button {
  width: 100%;
  min-height: 52px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 24px;
  outline: none;
  color: var(--white);
  background: var(--accent);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.download-button:hover {
  color: var(--accent);
  background: transparent;
}

.download-button:active { transform: translateY(1px); }

@media (hover: hover) and (pointer: fine) {
  .download-button:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
  }
}

@media (max-width: 640px) {
  main {
    width: calc(100% - 24px);
    padding: 34px 0 42px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .brand { font-size: clamp(42px, 13vw, 56px); }
  h1 { font-size: 20px; }

  .platform-name {
    margin: 0;
    font-size: 24px;
    text-align: left;
  }

  .steps { gap: 24px; }
  .step { gap: 10px; }
  .step-label { font-size: 18px; }

  .step-card,
  .download-card,
  .step-card.landscape-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .step-copy { font-size: 20px; }

  .step-media,
  .step-media.landscape {
    grid-column: auto;
    width: 100%;
  }

  .step-media img {
    width: auto;
    max-width: 100%;
    max-height: none;
  }

  .step-media:not(.landscape) img {
    width: min(100%, 290px);
  }

  .download-button {
    min-height: 50px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-spinner { animation-duration: 1.6s; }
  .download-button { transition: none; }
}
