@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Geist, system-ui, sans-serif;
  background: #0b1017;
  color: #f4f7f9;
  --muted: #a3b0bf;
  --mint: #9ef3d7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 68% 20%, #141f2a 0%, transparent 52%);
}

main {
  width: min(1080px, calc(100% - 96px));
  margin: 0 auto;
  padding-bottom: 90px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 39vw, 440px);
}

.intro { z-index: 1; }

.app-icon {
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 28px #0005;
}

h1 {
  margin: 19px 0 8px;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 660;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.9vw, 1.25rem);
  line-height: 1.5;
}

.hero-art {
  position: absolute;
  inset: 50% -2% auto auto;
  transform: translateY(-50%);
  width: min(60%, 605px);
  height: auto;
  mask-image: radial-gradient(ellipse 71% 68%, #000 33%, transparent 75%);
}

.platform-group + .platform-group { margin-top: 33px; }

h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
  letter-spacing: .012em;
}

h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #27313e;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: flex;
  align-items: center;
  min-height: 88px;
  height: 100%;
  gap: 13px;
  padding: 15px;
  border: 1px solid #293745;
  border-radius: 15px;
  background: linear-gradient(135deg, #151e29, #111921);
  color: inherit;
  text-decoration: none;
}

.platform.available { transition: border-color .18s; }
.platform.available:hover { border-color: #63b59f; }
.platform.available:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.platform.unavailable { border-color: #222d3a; background: #101720; }

.platform-icon {
  flex: 0 0 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid #2f4052;
  border-radius: 11px;
  color: #e2eaf2;
  background: #1a2633;
}

.unavailable .platform-icon {
  border-color: #293540;
  color: #a6b2c0;
  background: #161f29;
}

.glyph, .action::after {
  display: block;
  width: 19px;
  height: 19px;
  background-color: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

.glyph-ubuntu { --icon: url("/assets/ubuntu.png"); }
.glyph-macos { --icon: url("/assets/apple.png"); }
.glyph-windows { --icon: url("/assets/windows.png"); }
.glyph-ios { --icon: url("/assets/phone.png"); }
.glyph-android { --icon: url("/assets/android2.png"); }

.platform-text { display: grid; gap: 4px; }
.platform-name { font-size: 1rem; font-weight: 620; line-height: 1.2; }

.platform-details {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.action {
  display: grid;
  margin-left: auto;
  flex: 0 0 33px;
  height: 33px;
  place-items: center;
  border-radius: 50%;
  background: #203b38;
  color: var(--mint);
  transition: background-color .18s, color .18s;
}

.available:hover .action, .available:focus-visible .action {
  background: var(--mint);
  color: #10221e;
}

.action::after { content: ""; width: 14px; height: 14px; }
.download { --icon: url("/assets/download.png"); }
.external { --icon: url("/assets/arrow-up-right.png"); }

@media (max-width: 850px) {
  main { width: calc(100% - 64px); }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { background: radial-gradient(ellipse at 70% 10%, #141f2a 0%, transparent 51%); }
  main { width: calc(100% - 40px); padding-bottom: 48px; }
  .hero { flex-direction: column-reverse; text-align: center; min-height: 0; padding-bottom: 35px; }
  .hero-art { position: relative; inset: auto; transform: none; width: min(100%, 375px); margin: -8px 0 -36px; }
  .app-icon { width: 47px; height: 47px; margin: 0 auto; border-radius: 12px; }
  h1 { margin-top: 14px; }
  .platforms { grid-template-columns: 1fr; gap: 8px; }
  .platform { min-height: 69px; padding: 11px 13px; }
  .platform-group + .platform-group { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform.available, .action { transition: none; }
}
