:root {
  --night: #031522;
  --night-deep: #010d16;
  --navy: #062d50;
  --blue: #0873b3;
  --cyan: #42b8e8;
  --yellow: #ffc83d;
  --paper: #f2ecd9;
  --paper-deep: #e7ddc1;
  --paper-ink: #082640;
  --ink: #f7fbff;
  --muted: #aebfcb;
  --line: rgba(100, 190, 238, 0.19);
  --shell: min(1180px, calc(100% - 40px));
  --header-shell: min(1780px, calc(100% - 34px));
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--night-deep);
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(10, 116, 177, 0.18), transparent 31rem),
    linear-gradient(180deg, #031725, var(--night-deep));
  color: var(--ink);
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
button, a { font: inherit; }
a { color: #0873b3; }
a:hover { color: #035f98; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: #04111a;
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* The same locked navigation bar is injected by site.js on every public page. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  min-height: 88px;
  border-top: 1px solid rgba(255, 200, 61, 0.22);
  border-bottom: 1px solid rgba(65, 175, 235, 0.3);
  background: rgba(2, 20, 34, 0.985);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}
.site-header:not([data-ready]) > * { visibility: hidden; }
.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: var(--header-shell);
  min-height: 87px;
  margin-inline: auto;
  gap: 14px;
}
.brand {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 9px;
  color: white;
  text-decoration: none;
}
.brand-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.42));
}
.header-wordmark {
  width: 142px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.main-nav a {
  padding: 12px clamp(5px, 0.42vw, 8px);
  color: #d7e2eb;
  font-size: clamp(0.66rem, 0.65vw, 0.78rem);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, transform 150ms ease;
}
.main-nav a::after {
  display: block;
  width: 0;
  height: 2px;
  margin: 7px auto -9px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  content: "";
  transition: width 160ms ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: white;
  outline: none;
  transform: translateY(-1px);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav .nav-app { color: #74cef3; }
.main-nav .nav-play { color: #ffd46a; }
.header-actions {
  display: flex;
  min-width: 122px;
  align-items: center;
  justify-content: flex-end;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  color: #7892a4;
  font-size: 0.69rem;
  font-weight: 900;
  cursor: pointer;
}
.language-switch > span.is-active { color: var(--yellow); }
.language-switch > i {
  position: relative;
  display: block;
  width: 34px;
  height: 19px;
  border: 1px solid rgba(89, 192, 245, 0.5);
  border-radius: 20px;
  background: #061e31;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}
.language-switch > i b {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.1);
  transition: transform 170ms ease;
}
.language-switch[aria-pressed="false"] > i b { transform: translateX(16px); }
.language-switch:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.menu-button { display: none; }

main {
  width: var(--shell);
  margin-inline: auto;
  padding-bottom: 84px;
}
.page-hero {
  max-width: 860px;
  padding: 70px 0 34px;
}
.eyebrow {
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.page-title,
.legal-content > h1 {
  margin: 0;
  color: #f7f3e7;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.03;
}
.page-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: #bdccd7;
  font-size: 1.05rem;
  line-height: 1.72;
}
.legal-layout { display: grid; }
.legal-content {
  width: min(100%, 980px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid rgba(73, 179, 234, 0.26);
  border-radius: 22px 7px 22px 7px;
  background:
    linear-gradient(rgba(79, 184, 237, 0.035) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(145deg, #062a46, #031b2e);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.34);
  color: #b8ccd8;
}
.legal-content > h1 {
  color: #e6b947;
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  text-shadow: none;
}
.legal-content h2 {
  margin: 2.15em 0 0.7em;
  color: #75c8ee;
  font-size: clamp(1.28rem, 2.6vw, 1.8rem);
  line-height: 1.25;
}
.legal-content h3 { margin: 1.7em 0 0.55em; color: #e2b447; }
.legal-content p,
.legal-content li {
  color: #b8ccd8;
  line-height: 1.72;
}
.legal-content strong { color: #e6c56f; }
.legal-content a { color: #70c9f0; }
.legal-content a:hover,
.legal-content a:focus-visible { color: #f0c65c; }
.legal-content ol,
.legal-content ul,
.simple-list { padding-left: 1.35rem; }
.legal-content nav,
.card {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(75, 178, 230, 0.2);
  border-radius: 16px 5px 16px 5px;
  background: rgba(1, 16, 28, 0.28);
}
.legal-content .card h2:first-child,
.card h2:first-child,
.card h3:first-child { margin-top: 0; }
.legal-content nav ul { columns: 2; gap: 34px; }
.legal-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.legal-content th,
.legal-content td {
  padding: 11px;
  border: 1px solid rgba(81, 176, 225, 0.22);
  text-align: left;
  vertical-align: top;
}
.legal-content th { background: rgba(8, 93, 142, 0.22); color: #e4bd57; }
.notice,
.note {
  padding: 14px 16px;
  border-left: 4px solid #0b79b3;
  border-radius: 3px 12px 12px 3px;
  background: rgba(8, 115, 179, 0.14);
  color: #b9cfda !important;
  line-height: 1.62;
}
.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.support-grid .card {
  margin-top: 0;
  border-color: rgba(90, 188, 236, 0.2);
  background: rgba(5, 42, 69, 0.72);
}
.support-grid .card h2,
.support-grid .card h3 { color: white; }
.support-grid .card p,
.support-grid .card li { color: #bdccd7; line-height: 1.7; }
.contact-card a.email {
  display: inline-block;
  margin: 8px 0 18px;
  overflow-wrap: anywhere;
  color: #78cff6;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 850;
}
.simple-list { line-height: 1.75; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid #0a679b;
  border-radius: 999px;
  background: #073b61;
  color: white;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover,
.button:focus-visible {
  color: white;
  outline: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.button-primary {
  border-color: rgba(255, 216, 105, 0.55);
  background: var(--yellow);
  color: #081b2c;
}
.button-primary:hover { color: #081b2c; }
.button-secondary,
.button.secondary { background: transparent; color: #07557f; }
.button-disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.download-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
  padding: clamp(25px, 4vw, 42px);
  border-color: rgba(89, 188, 238, 0.24);
  background: linear-gradient(145deg, rgba(6, 54, 91, 0.93), rgba(3, 28, 48, 0.96));
  color: white;
}
.download-card-light {
  background:
    linear-gradient(rgba(8, 76, 116, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 46px;
  color: var(--paper-ink);
}
.download-card h2,
.guide-card h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}
.download-card > p {
  margin: 18px 0 28px;
  color: #bdccd7;
  line-height: 1.72;
}
.download-card-light > p { color: #36586e; }
.download-card .cta-row { margin-top: auto; }
.download-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgba(86, 192, 244, 0.45);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 2rem;
}
.download-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  object-fit: contain;
}
.guide-card {
  margin-top: 22px;
  padding: clamp(26px, 4vw, 42px);
  border-color: rgba(89, 188, 238, 0.22);
  background: rgba(5, 42, 69, 0.76);
}
.guide-card > p {
  color: #bdccd7;
  line-height: 1.72;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.guide-steps article {
  padding: 20px;
  border: 1px solid rgba(89, 188, 238, .16);
  border-radius: 14px;
  background: rgba(2, 23, 39, .34);
}
.guide-steps b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(89, 188, 238, .38);
  border-radius: 50%;
  color: var(--yellow);
  font-size: .8rem;
}
.guide-steps h3,
.browser-guides h3 {
  margin: 17px 0 8px;
  color: white;
}
.guide-steps p,
.browser-guides p {
  margin: 0;
  color: #afc1cd;
  line-height: 1.65;
}
.browser-guides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 27px;
}
.browser-guides article {
  padding: 22px;
  border-left: 3px solid var(--yellow);
  border-radius: 4px 14px 14px 4px;
  background: rgba(2, 23, 39, .34);
}
.browser-guides h3 { margin-top: 0; }
.button-on-dark {
  border-color: rgba(91, 190, 240, .48);
  color: #86d3f5;
}
.button-on-dark:hover { color: white; }
.always-free {
  margin: 28px auto 0;
  padding: 21px 25px;
  border: 1px solid rgba(89, 188, 238, .17);
  border-radius: 15px;
  background: rgba(3, 34, 57, .62);
  color: #c4d3dc;
  line-height: 1.66;
  text-align: center;
}
.always-free strong { color: white; }
.support-install { margin-top: 22px; }

.site-footer {
  padding: 38px 0 46px;
  border-top: 1px solid rgba(97, 185, 234, 0.15);
  background: #010c14;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  width: var(--shell);
  margin-inline: auto;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .footer-icon { width: 48px; height: 48px; object-fit: contain; }
.footer-brand .footer-wordmark { width: 150px; max-height: 44px; object-fit: contain; object-position: left center; }
.footer-brand small { display: block; max-width: 430px; color: #8fa3b2; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}
.footer-links a {
  padding: 7px 0 8px;
  border-bottom: 1px solid rgba(255, 200, 61, 0.28);
  color: #e3b846;
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-links a:nth-child(even) {
  border-bottom-color: rgba(90, 194, 238, 0.3);
  color: #78c8ed;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  border-bottom-color: currentColor;
  color: #ffe39a;
  outline: none;
}
.footer-meta {
  grid-column: 1 / -1;
  color: #708896;
  font-size: 0.78rem;
  line-height: 1.58;
}

@media (max-width: 1450px) {
  .main-nav {
    position: absolute;
    z-index: 1100;
    top: 100%;
    right: 0;
    bottom: auto;
    left: auto;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    width: min(390px, 92vw);
    height: calc(100vh - 88px);
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 18px;
    border-left: 1px solid rgba(74, 180, 234, .24);
    background: rgba(2, 18, 31, .995);
    box-shadow: -22px 24px 55px rgba(0,0,0,.4);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(113, 190, 232, 0.1);
    font-size: 0.92rem;
  }
  .main-nav a::after { display: none; }
  .header-actions { gap: 7px; }
  .menu-button {
    display: inline-flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(77, 183, 237, .28);
    border-radius: 10px;
    background: rgba(7, 46, 77, .72);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
  }
  .menu-button span { font-size: .75rem; font-weight: 800; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 30px, 720px); --header-shell: calc(100% - 30px); }
  .support-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .legal-content nav ul { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 660px) {
  :root { --shell: calc(100% - 24px); --header-shell: calc(100% - 24px); }
  .site-header { min-height: 74px; }
  html { scroll-padding-top: 76px; }
  .header-shell { min-height: 74px; }
  .brand { min-width: 0; gap: 6px; }
  .brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .header-wordmark { width: 112px; }
  .header-actions { min-width: 0; }
  .language-switch { gap: 4px; padding-inline: 2px; font-size: 0.62rem; }
  .language-switch > i { width: 29px; height: 18px; }
  .language-switch > i b { width: 10px; height: 10px; }
  .language-switch[aria-pressed="false"] > i b { transform: translateX(12px); }
  .menu-button {
    width: auto;
    padding: 0 12px;
  }
  .menu-button span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .main-nav { top: 100%; height: calc(100vh - 74px); padding-inline: 18px; }
  main { padding-bottom: 62px; }
  .page-hero { padding-top: 48px; }
  .legal-content { padding: 24px 18px; border-radius: 16px 5px 16px 5px; }
  .legal-content nav,
  .card { padding: 18px 16px; }
  .guide-steps,
  .browser-guides { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .header-wordmark { width: 90px; }
  .header-shell { gap: 7px; }
  .header-actions { gap: 4px; }
  .language-switch { gap: 2px; font-size: .56rem; }
  .language-switch > i { width: 26px; }
  .language-switch[aria-pressed="false"] > i b { transform: translateX(8px); }
  .menu-button { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
