:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #f7f6f2;
  background: #161719;
  --muted: #c0c2c6;
  --line: #383b40;
  --accent: #d5e4b8;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section { scroll-margin-top: 1.5rem; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

.site-header { background: inherit; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding-block: 1.3rem;
}
.brand { display: block; width: 105px; flex: 0 0 auto; }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; }
nav a { color: var(--muted); font-size: .925rem; }
nav a:hover, nav .current { color: #fff; text-decoration: underline; text-underline-offset: .35em; }

.header-inner {
  justify-content: flex-start;
  gap: clamp(1.5rem, 3vw, 4.5rem);
  padding: .9rem clamp(1rem, 2vw, 3rem);
}
.header-inner .brand { width: 96px; }
.header-inner nav a { color: inherit; font-size: 1rem; }
.header-actions { display: flex; gap: .65rem; margin-inline-start: auto; white-space: nowrap; }
.header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #242629;
  font-weight: 600;
}
.header-actions .trial { background: #f7f6f2; border-color: #f7f6f2; color: #161719; }
.header-actions a:hover { text-decoration: underline; text-underline-offset: .2em; }

.intro { padding-top: clamp(3rem, 8vw, 6rem); text-align: center; }
h1, h2, p { margin: 0; }
h1 {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.06em;
}
h2 { font-size: clamp(1.25rem, 2.7vw, 1.85rem); line-height: 1.15; letter-spacing: -.03em; }
p { color: var(--muted); line-height: 1.6; }
.download-panel, .app-list {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.desktop-image, .card > img {
  width: min(100%, 22rem);
  height: auto;
  margin-inline: auto;
  border-radius: .65rem;
}
.download-content {
  max-width: 36rem;
  margin: 1.5rem auto 0;
}
.download-content p, .card-content p, .info-grid p { margin-top: .7rem; }
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  padding: 0;
  margin: 1rem 0 1.4rem;
  list-style: none;
}
.platforms li {
  padding: .3rem .65rem;
  border: 1px solid #51545a;
  border-radius: 999px;
  color: var(--muted);
  font-size: .875rem;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid #62656b;
  border-radius: .65rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
}
button:disabled { color: var(--muted); }
.primary {
  scroll-margin-top: 35vh;
  padding-inline: 1.65rem;
  border-color: var(--accent);
  background: var(--accent);
  color: #1c2315;
}
.primary:hover { background: #e6efcf; }
.primary:target { outline: 2px solid var(--accent); outline-offset: 5px; }

.app-list {
  --section-gap: clamp(4.5rem, 9vw, 10rem);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  margin-top: var(--section-gap);
}
.card-content { padding-top: 1.5rem; }
.card-content > .button, .actions, .store-badges { margin-top: 1rem; }
.actions, .store-badges { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.actions a:hover { background: #26292d; }
.store-badges img:first-child { width: 125px; }
.store-badges img:last-child { width: 155px; }
.ecosystem { padding: 2rem 1rem; border-top: 1px solid var(--line); }
.ecosystem .card-content { padding-top: 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 3rem;
}
.info-grid h2 { font-size: 1.2rem; }
.site-footer { background: #303030; }
.footer-inner {
  width: min(87%, 2400px);
  margin-inline: auto;
  padding: clamp(2rem, 3vw, 4rem) 0 1.65rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.25rem;
}
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.footer-column a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-player {
  margin-top: 2rem;
  min-height: 52px;
  padding-inline: 2.2rem;
  border: 0;
  background: #0b0b0b;
  text-transform: uppercase;
}
.footer-socials { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 1.5rem; align-content: flex-start; }
.payments {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: clamp(3rem, 6vw, 9rem);
  padding-bottom: .95rem;
  border-bottom: 1px solid #666;
}
.payments img { width: 40px; height: auto; object-fit: contain; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.15rem;
}
.footer-copyright { color: #b0b0b0; font-size: .875rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.75rem;
  padding: 0;
  margin: .4rem 0 0;
  font-size: .875rem;
  list-style: none;
}
.footer-region {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .9rem;
  border-radius: .35rem;
  background: #141414;
  font-size: .875rem;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-socials { justify-content: flex-start; }
}
@media (max-width: 440px) {
  .footer-columns { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .header-inner { gap: .85rem 1rem; }
  .header-inner nav { order: 1; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .info-grid { grid-template-columns: 1fr; }
  .primary { width: 100%; }
}
