:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  --page: #101013;
  --surface: #19191e;
  --line: #35353f;
  --ink: #f9fafc;
  --muted: #bdbdc8;
  --accent: #f43b53;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

[id] { scroll-margin-top: 24px; }

.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 10px 14px;
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  min-height: 76px;
  padding: 12px clamp(24px, 2.8vw, 56px);
}

.brand { display: inline-flex; flex: none; }
.brand img { display: block; object-fit: contain; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px clamp(16px, 2.65vw, 42px);
}

.site-nav a {
  font-size: .97rem;
  font-weight: 450;
  text-decoration: none;
}

.site-nav .header-cta {
  padding: 9px 20px;
  border: 1px solid #aaaab7;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover,
.footer-nav a:hover,
.text-link:hover { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 550px;
  place-items: center;
  overflow: clip;
  padding-block: 70px;
  text-align: center;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 50% auto auto 50%;
  width: min(92%, 960px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at center, #1010137d 0%, transparent 65%);
  pointer-events: none;
  content: "";
}

.hero-copy { max-width: 1060px; }

.hero h1 {
  font-size: clamp(1.875rem, 7.15vw, 5.65rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.058em;
}

.hero .hero-download {
  width: min(100%, 340px);
  margin-top: clamp(28px, 4.5vw, 58px);
}

.hero-hosting {
  display: grid;
  gap: 2px;
  margin: 18px 0 0;
  padding: 0;
  color: #f4cca5;
  list-style: none;
  font-size: .98rem;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  text-underline-offset: 4px;
  font-size: .9rem;
}

.section { padding-block: 64px; }

.platforms {
  border-block: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -.046em;
}

.platform-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 860px);
  min-inline-size: 0;
  margin: 32px auto 0;
  padding: 0;
  border: 0;
}

.platform-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 158px;
  gap: 5px;
  padding: 14px 6px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
}

.platform-windows {
  --platform-color: #25b7ef;
  --icon-filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(1675%) hue-rotate(159deg) brightness(101%) contrast(87%);
}

.platform-web {
  --platform-color: #ffd26d;
  --icon-filter: brightness(0) saturate(100%) invert(90%) sepia(24%) saturate(1014%) hue-rotate(331deg) brightness(103%);
}

.platform-macos {
  --platform-color: #f9fafc;
  --icon-filter: brightness(0) invert(1);
}

.platform-android {
  --platform-color: #38dd87;
  --icon-filter: brightness(0) saturate(100%) invert(76%) sepia(75%) saturate(452%) hue-rotate(89deg) brightness(96%);
}

.platform-linux {
  --platform-color: #ffc37a;
  --icon-filter: brightness(0) saturate(100%) invert(82%) sepia(58%) saturate(548%) hue-rotate(322deg) brightness(105%);
}

.platform-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
  object-fit: contain;
  filter: brightness(0) invert(.48);
}

.platform-option:hover { background: #222229; }

.platform-option:has(input:focus-visible) {
  outline: 2px solid var(--platform-color);
  outline-offset: 3px;
}

.platform-option:has(input:checked) {
  border-color: var(--line);
  background: #232329;
}

.platform-option:has(input:checked) .platform-icon { filter: var(--icon-filter); }
.platform-option:has(input:checked) .platform-name {
  color: #26abff;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.platform-name {
  font-size: 1.13rem;
  font-weight: 650;
}

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

.download-action { margin-top: 28px; }

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 365px);
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  background: #c9013b;
  font-weight: 750;
  text-decoration: none;
}

.download-button:hover { background: #b00034; }

.download-symbol {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-bottom: 1.5px solid currentColor;
}

.download-symbol::before,
.download-symbol::after {
  content: "";
  position: absolute;
  left: 50%;
}

.download-symbol::before {
  top: 0;
  height: 9px;
  border-left: 1.5px solid currentColor;
  transform: translateX(-50%);
}

.download-symbol::after {
  top: 4px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.platform-notes {
  display: grid;
  gap: 18px;
  max-width: 670px;
  margin: 28px auto 0;
}

.platform-notes h3 { font-size: 1rem; }

.platform-notes p,
.footer-brand p,
.footer-nav a { color: var(--muted); }

.platform-notes p { margin-top: 4px; }

.site-footer {
  padding-block: clamp(56px, 6.8vw, 116px);
  border-top: 1px solid var(--line);
  background: #0f0f12;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(175px, 1.05fr) minmax(0, 3.3fr);
  align-items: start;
  gap: 36px clamp(34px, 5vw, 68px);
}

.footer-brand p {
  margin-top: 10px;
  font-size: .9rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 20px;
}

.footer-group h2 { font-size: 1rem; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-social a:hover { color: var(--accent); }

.footer-group ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  color: var(--muted);
  font-size: .94rem;
}

.footer-group a { text-decoration: none; }

.privacy-icon {
  margin-inline-end: 6px;
  vertical-align: -3px;
}

@media (max-width: 880px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 12px 22px; }
  .site-nav { column-gap: 15px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding-inline: 16px; flex-wrap: wrap; }
  .site-nav { margin-left: auto; }
  .site-nav a { font-size: .9rem; }
  .site-nav .header-cta { padding: 6px 12px; }
  .hero { min-height: 390px; padding-block: 50px; }
  .hero-art { width: max(110%, 485px); }
  .section { padding-block: 48px; }
  .platform-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-icon { width: 57px; height: 57px; }
  .platform-option { min-height: 132px; }
  .platform-name { font-size: 1rem; }
  .platform-detail { font-size: .85rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-block: 40px 48px; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 32px); }
  .site-nav { gap: 8px 12px; }
  .platform-picker { gap: 4px; }
  .desktop-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
