:root {
  --bg: #03070d;
  --panel: rgba(9, 18, 29, 0.88);
  --panel-strong: rgba(15, 29, 44, 0.94);
  --line: rgba(107, 158, 199, 0.22);
  --text: #f7f9fc;
  --muted: #aeb7c5;
  --cyan: #2dddf5;
  --pink: #f34cc6;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(45, 221, 245, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(243, 76, 198, 0.13), transparent 24rem),
    linear-gradient(180deg, #03070d 0%, #050a12 48%, #02050a 100%);
}

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

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

.download-page {
  min-height: 100vh;
  overflow: hidden;
}

.download-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 11, 0.94);
}

.brand img {
  width: 168px;
  height: auto;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #f6f8fc;
  font-size: 14px;
  font-weight: 800;
}

.download-hero {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 28px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 74px clamp(18px, 4vw, 60px) 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 5vw, 5.7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-copy p {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
}

.primary-download {
  display: inline-grid;
  align-content: center;
  min-width: min(100%, 342px);
  min-height: 72px;
  margin-top: 34px;
  padding: 12px 26px;
  border-radius: 7px;
  background: linear-gradient(100deg, #28d9ef 0%, #57d7f4 34%, #f34cc6 100%);
  box-shadow: 0 24px 54px rgba(40, 217, 239, 0.18);
  color: #040810;
}

.primary-download span {
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.primary-download small {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.78;
}

.hero-preview {
  position: relative;
  min-height: 420px;
}

.hero-preview img {
  width: min(900px, 78vw);
  max-width: none;
  margin-top: 8px;
  border: 1px solid rgba(130, 146, 170, 0.2);
  border-radius: 18px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
  transform: perspective(1400px) rotateY(-7deg) rotateX(1deg);
  transform-origin: left center;
}

.platform-section,
.security-note {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.platform-section {
  padding: 40px 0 68px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.security-note h2 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.1;
}

.section-heading p,
.security-note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  display: grid;
  align-content: start;
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 25, 39, 0.82), rgba(5, 12, 20, 0.92));
  color: inherit;
  cursor: default;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

a.platform-card {
  cursor: pointer;
}

.platform-card span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-card strong {
  margin-top: 28px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
}

.platform-card em {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.platform-card-active {
  border-color: rgba(45, 221, 245, 0.62);
  background:
    linear-gradient(180deg, rgba(18, 43, 60, 0.92), rgba(21, 14, 35, 0.92));
  box-shadow: 0 26px 90px rgba(45, 221, 245, 0.14);
  transition: transform 160ms ease, border-color 160ms ease;
}

.platform-card-active:hover {
  transform: translateY(-2px);
}

.platform-card-active em {
  color: #4ce6f8;
}

.platform-card:disabled {
  opacity: 0.58;
}

.security-note {
  margin-bottom: 54px;
  padding: 28px;
  border: 1px solid rgba(107, 158, 199, 0.2);
  border-radius: 8px;
  background: rgba(9, 18, 29, 0.74);
}

@media (max-width: 980px) {
  .download-hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-preview {
    min-height: 0;
  }

  .hero-preview img {
    width: 100%;
    transform: none;
  }

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

@media (max-width: 640px) {
  .download-header {
    align-items: flex-start;
    gap: 14px;
    min-height: 88px;
    flex-direction: column;
  }

  .brand img {
    width: 148px;
  }

  .home-link {
    min-height: 34px;
    font-size: 13px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .primary-download {
    width: 100%;
  }

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

  .platform-card {
    min-height: 138px;
  }
}
