:root {
  color-scheme: dark;
  --page: #0d1214;
  --surface: #151b1e;
  --surface-strong: #1b2326;
  --line: #2b363a;
  --text: #f1f4f2;
  --muted: #a9b5b7;
  --quiet: #7f8c8f;
  --green: #63c989;
  --green-dark: #173a28;
  --blue: #78aeca;
  --red: #d85b68;
  --gold: #d6ad62;
  --header-line: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(13, 18, 20, 0.92);
  --store-border: #478663;
  --store-bg: #1a3425;
  --store-text: #dff5e7;
  --field-hover: #49595e;
  --hero-bg: #101719;
  --hero-overlay: rgba(16, 23, 25, 0.83);
  --hero-overlay-mobile: rgba(12, 18, 20, 0.72);
  --hero-shadow: rgba(0, 0, 0, 0.48);
  --copy-strong: #c9d2d3;
  --primary-border: #5fc987;
  --primary-text: #0d2115;
  --signal-bg: #12191b;
  --feature-bg: #131b1d;
  --image-shadow: rgba(0, 0, 0, 0.3);
  --privacy-border: #345441;
  --privacy-bg: #112219;
  --privacy-line: #2d4937;
  --privacy-text: #b8c9bf;
  --privacy-strong: #eef5f0;
  --companion-border: #426b52;
  --companion-bg: #17231d;
  --companion-hover: #1a2a21;
  --footer-bg: #090d0f;
  --document-bg: #0b1012;
  --document-shadow: rgba(0, 0, 0, 0.2);
  --notice-bg: #20221d;
  --notice-text: #d6d1bd;
  --menu-shadow: rgba(0, 0, 0, 0.34);
  --theme-swatch-light: #f4f7f6;
  --theme-swatch-dark: #151b1e;
  --content: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f4f7f6;
  --surface: #ffffff;
  --surface-strong: #e9efed;
  --line: #cbd7d2;
  --text: #18211f;
  --muted: #52615d;
  --quiet: #6e7d79;
  --green: #167a46;
  --green-dark: #dcefe4;
  --blue: #3d7690;
  --red: #b74352;
  --gold: #976917;
  --header-line: rgba(23, 39, 34, 0.12);
  --header-bg: rgba(249, 252, 251, 0.94);
  --store-border: #4c9369;
  --store-bg: #e3f2e8;
  --store-text: #145a35;
  --field-hover: #7c918b;
  --hero-bg: #e7eeec;
  --hero-overlay: rgba(244, 247, 246, 0.91);
  --hero-overlay-mobile: rgba(244, 247, 246, 0.84);
  --hero-shadow: rgba(28, 43, 38, 0.22);
  --copy-strong: #43524f;
  --primary-border: #167a46;
  --primary-text: #ffffff;
  --signal-bg: #edf2f0;
  --feature-bg: #e9efed;
  --image-shadow: rgba(30, 45, 40, 0.16);
  --privacy-border: #8eb89c;
  --privacy-bg: #e2f1e7;
  --privacy-line: #b8d5c1;
  --privacy-text: #42584a;
  --privacy-strong: #1b3325;
  --companion-border: #84aa91;
  --companion-bg: #edf7f0;
  --companion-hover: #e4f1e8;
  --footer-bg: #e8eeec;
  --document-bg: #eef3f1;
  --document-shadow: rgba(30, 45, 40, 0.12);
  --notice-bg: #fff7df;
  --notice-text: #66521a;
  --menu-shadow: rgba(30, 45, 40, 0.2);
  --theme-swatch-light: #ffffff;
  --theme-swatch-dark: #18211f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--page);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--content), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.nav-install {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 180px;
  padding: 9px 13px;
  border: 1px solid var(--store-border);
  border-radius: 7px;
  background: var(--store-bg);
  color: var(--store-text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-install-short {
  display: none;
}

.language-picker {
  position: relative;
  flex: 0 0 auto;
}

.language-picker::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--quiet);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  content: "";
}

.language-picker::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  width: 2px;
  height: 14px;
  border-inline: 1px solid var(--quiet);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  content: "";
}

.language-select {
  width: 156px;
  height: 38px;
  padding: 0 30px 0 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  appearance: none;
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-select:hover {
  border-color: var(--field-hover);
}

.language-select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.theme-picker {
  position: relative;
  flex: 0 0 auto;
}

.theme-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.theme-button:hover,
.theme-button[aria-expanded="true"] {
  border-color: var(--field-hover);
  color: var(--text);
}

.theme-button:focus-visible,
.theme-option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.theme-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
  transition: transform 160ms ease;
}

.theme-picker[data-theme-effective="light"] .theme-icon {
  transform: rotate(180deg);
}

.theme-picker[data-theme-preference="auto"] .theme-icon::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 5px;
  height: 5px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.theme-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 164px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 14px 34px var(--menu-shadow);
}

.theme-option {
  position: relative;
  width: 100%;
  min-height: 36px;
  padding: 7px 30px 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.theme-option:hover,
.theme-option[aria-checked="true"] {
  background: var(--surface-strong);
  color: var(--text);
}

.theme-option[aria-checked="true"]::after {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  transform: rotate(45deg);
}

.theme-swatch {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.theme-swatch.auto {
  background: linear-gradient(90deg, var(--theme-swatch-light) 0 50%, var(--theme-swatch-dark) 50%);
}

.theme-swatch.light {
  background: var(--theme-swatch-light);
}

.theme-swatch.dark {
  background: var(--theme-swatch-dark);
}

.hero {
  position: relative;
  min-height: 680px;
  max-height: 780px;
  height: calc(100svh - 94px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--hero-bg);
}

.hero::after {
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--hero-overlay);
  content: "";
}

.hero-art {
  position: absolute;
  top: 30px;
  right: max(7vw, calc((100vw - var(--content)) / 2));
  width: 405px;
  height: 746px;
  background-image: url("assets/hero-player.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 30px 45px var(--hero-shadow));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 112px;
}

.hero-content > * {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 62px;
  line-height: 1.02;
}

.hero-copy {
  margin: 26px 0 0;
  color: var(--copy-strong);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--primary-border);
  background: var(--green);
  color: var(--primary-text);
}

.button.secondary {
  background: var(--surface-strong);
  color: var(--text);
}

.button:hover,
.nav-install:hover {
  filter: brightness(1.08);
}

.hero-note {
  margin-top: 16px;
  color: var(--quiet);
  font-size: 13px;
}

.signal-band {
  border-bottom: 1px solid var(--line);
  background: var(--signal-bg);
}

.signal-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-inner div {
  min-width: 0;
  padding: 25px 22px;
  border-left: 1px solid var(--line);
}

.signal-inner div:last-child {
  border-right: 1px solid var(--line);
}

.signal-inner strong,
.signal-inner span {
  display: block;
}

.signal-inner strong {
  font-size: 14px;
}

.signal-inner span {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 12px;
}

.section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.control-section {
  padding: 108px 0 100px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.section-heading > p:last-child,
.feature-copy > p,
.companion > div > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.wide-showcase {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 75px var(--image-shadow);
}

.showcase-grid {
  padding-bottom: 110px;
  display: grid;
  gap: 24px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 44px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.showcase-card.reverse {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
}

.showcase-card.reverse img {
  grid-column: 2;
  grid-row: 1;
}

.showcase-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.showcase-card h2 {
  font-size: 30px;
}

.showcase-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.feature-band {
  border-block: 1px solid var(--line);
  background: var(--feature-bg);
}

.feature-layout {
  padding: 96px 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 64px;
}

.feature-layout img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--copy-strong);
  font-size: 14px;
}

.feature-list li::before {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.details-grid {
  padding: 100px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.details-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-mark {
  display: block;
  width: 22px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
}

.detail-mark.green { background: var(--green); }
.detail-mark.blue { background: var(--blue); }
.detail-mark.red { background: var(--red); }
.detail-mark.gold { background: var(--gold); }

.details-grid h3 {
  margin: 0;
  font-size: 18px;
}

.details-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.privacy-band {
  border-block: 1px solid var(--privacy-border);
  background: var(--privacy-bg);
}

.privacy-layout {
  padding: 90px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.privacy-points p {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--privacy-line);
  color: var(--privacy-text);
}

.privacy-points strong {
  color: var(--privacy-strong);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-weight: 650;
  text-decoration: none;
}

.companion {
  padding: 105px 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 64px;
}

.companion-downloads {
  max-width: 460px;
  margin-top: 30px;
}

.companion-store {
  display: block;
  min-height: 68px;
  padding: 12px 15px;
  border: 1px solid var(--companion-border);
  border-radius: 7px;
  background: var(--companion-bg);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.companion-store:hover {
  border-color: var(--green);
  background: var(--companion-hover);
}

.companion-store-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.companion-option-name,
.companion-option-meta {
  display: block;
}

.companion-option-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.companion-option-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.companion-recommended {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.companion-portable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 2px 0;
  border-top: 1px solid var(--line);
}

.companion-portable-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.companion-portable-links a {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.companion-portable-links a:last-child {
  color: var(--muted);
}

.companion-portable-links a:hover {
  color: var(--text);
}

.companion img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-brand {
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  gap: 22px;
}

.footer-inner > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
}

.document-page {
  background: var(--document-bg);
}

.document-main {
  width: min(940px, calc(100% - 40px));
  min-height: calc(100svh - 238px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.document-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 70px var(--document-shadow);
}

.document-card h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.05;
}

.document-card h2 {
  margin: 34px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.document-card p,
.document-card li {
  color: var(--muted);
}

.document-card p {
  margin: 0 0 14px;
}

.document-card ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.document-card li {
  margin: 7px 0;
}

.document-card strong {
  color: var(--text);
}

.document-card a:not(.button) {
  color: var(--green);
}

.document-intro,
.document-meta {
  margin-top: 14px !important;
  font-size: 17px;
}

.document-meta {
  font-size: 14px;
}

.translation-note {
  margin: 26px 0 !important;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--notice-bg);
  color: var(--notice-text) !important;
  font-size: 13px;
}

.support-item {
  padding: 24px 0 22px;
  border-top: 1px solid var(--line);
}

.support-item:first-of-type {
  margin-top: 38px;
}

.support-item h2 {
  margin-top: 0;
}

.support-item p:last-child {
  margin-bottom: 0;
}

.document-actions {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.document-actions .text-link {
  margin-top: 0;
}

@media (max-width: 960px) {
  .hero::after {
    inset: 0 38% 0 0;
  }

  .hero-art {
    right: -50px;
    opacity: 0.72;
  }

  .hero-content > * {
    max-width: 540px;
  }

  h1 {
    font-size: 52px;
  }

  .showcase-card,
  .showcase-card.reverse,
  .feature-layout,
  .privacy-layout,
  .companion {
    grid-template-columns: 1fr;
  }

  .showcase-card.reverse img {
    grid-column: auto;
    grid-row: auto;
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .nav-wrap,
  .section,
  .signal-inner,
  .hero-content,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .nav-wrap {
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-install {
    max-width: none;
    padding-inline: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-install-full {
    display: none;
  }

  .nav-install-short {
    display: inline;
  }

  .language-select {
    width: 132px;
  }

  .hero {
    min-height: 650px;
    height: calc(100svh - 78px);
  }

  .hero::after {
    inset: 0;
    background: var(--hero-overlay-mobile);
  }

  .hero-art {
    top: 120px;
    right: -120px;
    width: 330px;
    height: 608px;
    opacity: 0.32;
  }

  .hero-content {
    padding-top: 88px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    width: 100%;
    max-width: 470px;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 330px;
  }

  .signal-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-inner div:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .signal-inner div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .control-section,
  .details-grid,
  .companion {
    padding-block: 72px;
  }

  .companion-downloads {
    max-width: none;
  }

  .companion-portable {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .showcase-grid {
    padding-bottom: 72px;
  }

  .showcase-card {
    gap: 26px;
    padding: 14px;
  }

  .feature-layout,
  .privacy-layout {
    padding-block: 72px;
    gap: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-inner > p {
    grid-column: auto;
  }

  .document-main {
    width: calc(100% - 28px);
    padding-block: 42px 68px;
  }

  .document-card {
    padding: 24px 20px 28px;
  }
}

@media (max-width: 470px) {
  .brand span {
    display: none;
  }

  .theme-menu {
    right: auto;
    left: 0;
  }

  .language-select {
    width: 118px;
  }

  .nav-install {
    min-width: 58px;
  }
}

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

  .theme-icon {
    transition: none;
  }
}
