:root {
  --bg: #0c1324;
  --panel: #0f182b;
  --panel-strong: #111c32;
  --text: #e6eaf4;
  --muted: #99a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #0ea5e9;
  --accent-2: #fbbf24;
  --success: #34d399;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  --radius: 20px;
  --font: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.16), transparent 30%),
    linear-gradient(140deg, #0b1020 0%, #0c1426 60%, #0b1020 100%);
  padding: 48px 24px 32px;
  line-height: 1.6;
}

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

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.08), transparent 30%),
    radial-gradient(circle at 70% 10%, rgba(52, 211, 153, 0.08), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(251, 191, 36, 0.08), transparent 30%);
  filter: blur(40px);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero__text {
  padding: 32px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(10, 17, 33, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.is-preferred {
  box-shadow: 0 12px 30px rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.6);
}

.btn--solid {
  background: linear-gradient(130deg, #0ea5e9, #38bdf8);
  color: #0b1020;
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.35);
}

.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.4);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.hero__detected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}

.link {
  background: none;
  border: none;
  color: #7dd3fc;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.hero__card {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, #0f1a2e 0%, #0e1528 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__card::after {
  content: "";
  position: absolute;
  inset: -20% 20% auto auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent 60%);
  transform: rotate(25deg);
  opacity: 0.35;
}

.hero__logo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  opacity: 0.9;
}

@media (max-width: 720px) {
  .hero__logo {
    display: none;
  }
}

.hero__card-top {
  position: relative;
  z-index: 1;
}

.hero__card-title {
  margin: 8px 0 6px;
  font-size: 1.25rem;
}

.hero__card-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--primary {
  background: #0ea5e9;
}

.dot--secondary {
  background: #34d399;
}

.dot--muted {
  background: #7c85a4;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 14px;
}

.os-badge__glow {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8, rgba(14, 165, 233, 0.2));
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.7);
}

.os-badge__label {
  font-weight: 700;
  color: #a5f3fc;
}

.downloads .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 36px 0 18px;
}

.downloads h2 {
  margin: 4px 0;
  font-size: 1.6rem;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.download-card {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.download-card.is-active {
  background: var(--panel-strong);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.16);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.download-card[data-os="mac"] .icon img {
  filter: invert(100%) brightness(110%);
}

.label {
  font-weight: 700;
  margin: 0 0 2px;
}

.card-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
}

.actions--stacked {
  flex-direction: column;
  align-items: stretch;
}

.actions .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: normal;
  min-height: 52px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chip {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.14);
  color: #a5f3fc;
  border: 1px solid rgba(14, 165, 233, 0.35);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.download-card.is-active .chip {
  opacity: 1;
  transform: translateY(0);
}

.hint {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 32px;
  width: 100%;
  padding-top: 2px;
}

.steps {
  margin-top: 48px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 24, 46, 0.8);
  box-shadow: var(--shadow);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-weight: 800;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #facc15;
  font-size: 0.95em;
}

.footer {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer a {
  color: #7dd3fc;
}

@media (max-width: 720px) {
  body {
    padding: 28px 16px 48px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__detected {
    align-items: flex-start;
    flex-direction: column;
  }

  .downloads .section-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

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

@media (max-width: 1100px) and (min-width: 721px) {
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
