:root {
  color-scheme: dark;
  --page: #141020;
  --hero: #171124;
  --surface: #1e172e;
  --line: #392f4e;
  --text: #f7f2fc;
  --muted: #c0b5d0;
  --lavender: #c7adff;
  --ink: #211735;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #ecd7ff; outline-offset: 5px; }
[id] { scroll-margin-top: 1.5rem; }

.shell {
  width: min(72rem, calc(100% - 4.5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.45rem;
  background: var(--text);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { background: #151021; border-bottom: 1px solid #2e253f; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.045em;
}
nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.55rem); }
nav a, .quiet-link { color: var(--muted); font-size: 0.9375rem; }
nav a:hover, .quiet-link:hover { color: var(--text); }
nav .nav-download { color: var(--lavender); font-weight: 620; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid #32263f;
  background: radial-gradient(ellipse at 75% 52%, #302047 0%, #1a132b 47%, #171124 74%);
}
.hero-inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 32.25rem;
  padding-block: 1.4rem;
}
.hero-copy { position: relative; z-index: 1; padding: 2.45rem 0 2.8rem; }
h1 {
  font-size: clamp(3.35rem, 7vw, 6.2rem);
  letter-spacing: -0.077em;
  line-height: 0.99;
  font-weight: 690;
}
h1 span { color: var(--lavender); }
.intro {
  max-width: 25rem;
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.9rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.62rem;
  padding: 0.7rem 1.05rem;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.925rem;
  font-weight: 650;
  text-align: center;
  transition: background-color 140ms, border-color 140ms;
}
.button-primary { background: var(--lavender); color: var(--ink); }
.button-primary:hover { background: #dcc7ff; }
.button-secondary { background: #251a36; border-color: #5b4678; color: var(--text); }
.button-secondary:hover, .button-compact:hover { background: #39264f; border-color: #8a6cb3; }

.hero-art {
  justify-self: center;
  width: min(100%, 32.3rem);
  position: relative;
  margin-inline: 0.1rem -0.6rem;
}
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 93%, transparent 100%);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.15rem;
  background: linear-gradient(0deg, #1a132b 0%, transparent 14%, transparent 93%, #1a132b 100%);
  pointer-events: none;
}

.platform-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}
.platform-windows { display: inline-grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: 0.095em; }
.platform-windows i { background: currentColor; border-radius: 0.025em; }
.platform-android i {
  position: absolute;
  inset: 0.3em 0 0.06em;
  border-radius: 0.85em 0.85em 0.23em 0.23em;
  background: currentColor;
}
.platform-android::before, .platform-android::after {
  content: "";
  position: absolute;
  top: 0.08em;
  width: 0.075em;
  height: 0.37em;
  background: currentColor;
  border-radius: 0.1em;
  transform: rotate(-27deg);
  left: 0.18em;
}
.platform-android::after { left: auto; right: 0.18em; transform: rotate(27deg); }
.platform-android i::before, .platform-android i::after {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0.24em;
  width: 0.1em;
  height: 0.1em;
  border-radius: 50%;
  background: #251a36;
}
.platform-android i::after { right: 0.24em; left: auto; }

.downloads { padding: 3.55rem 0 3.35rem; }
h2 { font-size: clamp(1.7rem, 3.7vw, 2.25rem); line-height: 1.13; letter-spacing: -0.048em; font-weight: 670; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 0.75rem 1rem; }
.quiet-link { text-decoration: underline; text-underline-offset: 0.24em; }
.release-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.25rem; }
.release {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  min-height: 6.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.release-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border-radius: 0.61rem;
  background: #362649;
  color: var(--lavender);
  font-size: 1.3rem;
}
.release-content h3 { font-size: 1.14rem; font-weight: 650; line-height: 1.35; }
.release-content h3 span {
  margin-inline-start: 0.28rem;
  color: var(--lavender);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.release-content p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.button-compact { min-height: 2.55rem; padding: 0.45rem 0.75rem; border-color: #695184; background: #2a203a; }
.install-help { margin-top: 1.2rem; }
details { border-bottom: 1px solid #352b44; }
summary { cursor: pointer; padding-block: 0.8rem; color: var(--text); font-size: 0.98rem; }
summary::marker { color: var(--lavender); }
details p { max-width: 51rem; color: var(--muted); padding: 0 0 1rem 1.05rem; }

.features { padding-bottom: 3.6rem; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.15rem;
  border-block: 1px solid var(--line);
}
.feature-list article { padding: 1.1rem 1.45rem 1.1rem 0; }
.feature-list article + article { border-left: 1px solid var(--line); padding-left: 1.45rem; }
.feature-list h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.075rem; line-height: 1.3; }
.feature-list p { margin-top: 0.55rem; color: var(--muted); font-size: 0.985rem; }
.feature-mark { color: var(--lavender); width: 1.1rem; font-size: 1.25rem; font-weight: 650; flex: 0 0 auto; }
.voice-mark { display: flex; height: 1rem; align-items: center; justify-content: space-between; }
.voice-mark i { width: 2px; height: 50%; background: currentColor; border-radius: 1rem; }
.voice-mark i:nth-child(2), .voice-mark i:nth-child(4) { height: 77%; }
.voice-mark i:nth-child(3) { height: 100%; }
.game-mark { display: grid; grid-template-columns: repeat(2, 0.36rem); gap: 0.16rem; }
.game-mark i { width: 0.36rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.site-footer { background: #110e1c; border-top: 1px solid #2e253f; }
.footer-brand { font-size: 1.13rem; }
.footer-inner p { color: var(--muted); font-size: 0.875rem; }

@media (max-width: 61rem) {
  .release { grid-template-columns: auto minmax(0, 1fr); }
  .release .button { grid-column: 1 / -1; }
  .hero-inner { min-height: 28rem; }
}

@media (max-width: 46rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 3.8rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 0 0.85rem; }
  .hero-copy { padding-block: 2.45rem 0; }
  h1 { font-size: clamp(3.1rem, 11vw, 5rem); }
  .intro { margin-top: 1.15rem; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-art { width: min(85%, 24rem); margin: 1rem auto 0; }
  .downloads { padding-block: 2.5rem; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list article { padding-inline: 0; }
  .feature-list article + article { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .features { padding-bottom: 2.45rem; }
}

@media (max-width: 31rem) {
  nav { gap: 0.8rem; }
  nav a { font-size: 0.875rem; }
  .brand { gap: 0.35rem; }
  .hero-actions .button { flex: 1 0 100%; }
  .hero-art { width: min(94%, 20rem); }
  .section-heading { display: grid; align-items: start; }
  .release-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
