:root {
  color-scheme: dark;
  --paper: #f3f5ed;
  --muted: #9ba49e;
  --lime: #c6f343;
  --lime-bright: #d8ff64;
  --surface: #171e1a;
  --line: rgba(232, 239, 230, 0.16);
  font-family:
    Inter, "SF Pro Display", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 48%, rgba(153, 194, 59, 0.13), transparent 25rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #0b100d;
  background-size: auto, 44px 44px, 44px 44px, auto;
}

body::before,
body::after {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(820px, 74vw);
  aspect-ratio: 3.15 / 1;
  border: 1px solid rgba(198, 243, 67, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg);
}

body::after {
  width: min(690px, 62vw);
  border-color: rgba(198, 243, 67, 0.045);
}

header {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 34px 40px;
}

.title {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.title-mark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  width: 31px;
  height: 31px;
  padding: 6px;
  border: 1px solid rgba(198, 243, 67, 0.55);
  border-radius: 7px;
  background: rgba(198, 243, 67, 0.06);
  box-shadow: inset 0 0 16px rgba(198, 243, 67, 0.04);
  transform: skewX(-6deg);
}

.title-mark span {
  width: 4px;
  border-radius: 1px 1px 0 0;
  background: var(--lime);
}

.title-mark span:nth-child(1) {
  height: 8px;
}

.title-mark span:nth-child(2) {
  height: 17px;
}

.title-mark span:nth-child(3) {
  height: 12px;
}

.title-text {
  font-size: 1.2rem;
  font-weight: 790;
  letter-spacing: -0.045em;
}

.title-text > span {
  color: var(--lime);
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: 120px 32px 64px;
  place-items: center;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 380px));
  gap: 16px;
}

.download {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 42px;
  gap: 18px;
  align-items: center;
  min-height: 126px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 55%),
    rgba(20, 28, 23, 0.92);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.025);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.download::before {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
  transition: transform 300ms ease;
}

.download:hover {
  border-color: rgba(198, 243, 67, 0.48);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(198, 243, 67, 0.08);
  transform: translateY(-5px);
}

.download:hover::before {
  transform: scale(1.14);
}

.download:focus-visible {
  outline: 3px solid rgba(198, 243, 67, 0.45);
  outline-offset: 4px;
}

.download.mac {
  border-color: rgba(198, 243, 67, 0.34);
  background:
    linear-gradient(145deg, rgba(198, 243, 67, 0.13), transparent 57%),
    rgba(24, 33, 27, 0.94);
}

.platform-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.mac .platform-icon {
  border-color: rgba(198, 243, 67, 0.28);
  color: var(--lime);
  background: rgba(198, 243, 67, 0.075);
}

.platform-icon svg {
  width: 25px;
  fill: currentColor;
}

.platform-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.platform-copy strong {
  font-size: 1.08rem;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.platform-copy small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 520;
  letter-spacing: 0.015em;
}

.arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.arrow svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.download:hover .arrow {
  color: #11170e;
  background: var(--lime);
  transform: translateY(2px);
}

@media (max-width: 840px) {
  body {
    overflow: auto;
  }

  body::before,
  body::after {
    width: 110vw;
  }

  header {
    padding: 25px 24px;
  }

  main {
    padding: 110px 18px 45px;
  }

  .downloads {
    grid-template-columns: minmax(0, 380px);
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .download {
    grid-template-columns: 50px 1fr 36px;
    gap: 14px;
    min-height: 112px;
    padding: 20px;
  }

  .platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .platform-copy strong {
    font-size: 0.98rem;
  }

  .arrow {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download,
  .download::before,
  .arrow {
    transition: none;
  }
}
