:root {
  --bg: #0d0a14;
  --surface: #171122;
  --surface-2: #21172f;
  --text: #f8f5ff;
  --muted: #b9afc9;
  --accent: #8f5cff;
  --accent-hover: #a978ff;
  --border: #32263f;
  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(143,92,255,.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13,10,20,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; font-weight: 800; }
.brand-mark {
  width: 132px;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  image-rendering: auto;
  filter: drop-shadow(0 10px 24px rgba(143,92,255,.22));
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--muted); font-weight: 650; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: white;
  border-radius: 10px;
  padding: .55rem .75rem;
}

.hero { padding: 7rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: .4rem .75rem;
  border-radius: 999px;
  color: #d9c8ff;
  background: rgba(143,92,255,.14);
  border: 1px solid rgba(143,92,255,.32);
  font-size: .9rem;
  font-weight: 750;
}
h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.2rem); letter-spacing: -.055em; margin: 1.2rem 0; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.15rem;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary {
  background: rgba(143,92,255,.08);
  border-color: rgba(143,92,255,.58);
  color: #eadfff;
  box-shadow: inset 0 0 0 1px rgba(143,92,255,.05);
}
.button.secondary:hover {
  background: rgba(143,92,255,.16);
  border-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(143,92,255,.16);
}
.platforms { margin-top: 1.3rem; color: var(--muted); font-size: .95rem; }

.mockup {
  min-height: 380px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.mockup-window {
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: #100b18;
  overflow: hidden;
}
.mockup-bar {
  height: 42px;
  background: #1d1428;
  border-bottom: 1px solid var(--border);
}
.mockup-content {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
}
.mock-nav, .mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.mock-nav { min-height: 270px; }
.mock-stack { display: grid; gap: 1rem; }
.mock-card { min-height: 120px; }
.mock-card.accent { border-color: rgba(143,92,255,.62); box-shadow: inset 0 0 0 1px rgba(143,92,255,.14); }

.section { padding: 4.5rem 0; }
.section-head { max-width: 700px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .meta { font-size: .9rem; color: #d9c8ff; margin-bottom: .55rem; }
.card-link { display: inline-block; margin-top: 1rem; color: #bd9cff; font-weight: 800; }

.version-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.version {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.version span { display: block; color: var(--muted); font-size: .9rem; }
.version strong { font-size: 1.45rem; }

.page-hero { padding: 5rem 0 2.5rem; }
.page-hero p { max-width: 48rem; color: var(--muted); font-size: 1.1rem; }

.notice {
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: rgba(143,92,255,.10);
  border: 1px solid rgba(143,92,255,.32);
}
.download-list { display: grid; gap: 1rem; }
.download-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.download-row p { margin: .2rem 0 0; color: var(--muted); }
.badge {
  display: inline-flex;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
}
.construction {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
}
.construction-box {
  max-width: 620px;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.construction-icon { font-size: 3rem; }

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 1rem; right: 1rem; top: 66px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #140d1d;
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .nav-links.open { display: flex; }
  .hero-grid, .grid.two, .grid.three, .version-strip, .download-row { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
  .mockup-content { grid-template-columns: 1fr; }
  .mock-nav { min-height: 90px; }
}

::selection {
  background: rgba(143,92,255,.38);
  color: white;
}

body {
  background:
    radial-gradient(circle at 85% 0%, rgba(143,92,255,.20), transparent 30rem),
    radial-gradient(circle at 12% 22%, rgba(92,46,170,.13), transparent 24rem),
    linear-gradient(180deg, #0d0a14 0%, #100b18 48%, #0d0a14 100%);
}

.hero h1,
.page-hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #e4d7ff 62%, #b88fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links .download-link,
.button.primary {
  box-shadow: 0 10px 28px rgba(143,92,255,.22);
}

.button,
.nav-links .download-link,
.card,
.version,
.download-row {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card:hover,
.version:hover,
.download-row:hover {
  transform: translateY(-3px);
  border-color: rgba(143,92,255,.48);
  box-shadow: 0 18px 42px rgba(6,2,12,.30);
}

.mockup {
  background:
    radial-gradient(circle at 78% 10%, rgba(143,92,255,.18), transparent 15rem),
    linear-gradient(145deg, rgba(255,255,255,.045), transparent),
    #171122;
}


.nav-links a.active {
  color: #ffffff;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a978ff, #7f4ce8);
  box-shadow: 0 0 12px rgba(143,92,255,.45);
}

.hero-grid.hero-single {
  grid-template-columns: 1fr;
}
.hero-grid.hero-single > div:first-child {
  max-width: 760px;
}

.release-version {
  display: block;
  min-height: 1.7em;
}


/* Homepage hero refinement */
.brand-mark {
  width: 170px;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}

.hero {
  padding: 5.5rem 0 3.25rem;
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: minmax(360px, .82fr) minmax(540px, 1.35fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: min(100%, 510px);
  height: auto;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 18px 38px rgba(143,92,255,.16));
}

.hero-copy .eyebrow {
  margin-bottom: 1rem;
}

.hero-copy .lead {
  margin-top: 0;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin-right: min(-8vw, -5rem);
  filter: drop-shadow(0 32px 70px rgba(0,0,0,.38));
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -4% -8% 8%;
  z-index: -1;
  background: radial-gradient(circle at 42% 46%, rgba(143,92,255,.19), transparent 65%);
  filter: blur(28px);
}

.hero-visual img {
  width: 100%;
  min-width: 720px;
  border-radius: 15px;
  border: 1px solid rgba(169,120,255,.22);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 72%, transparent 100%);
}

.latest-release-section {
  padding: .4rem 0 0;
}

.latest-release-line {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  color: var(--muted);
  font-size: .98rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23,17,34,.76);
  transition: border-color .18s ease, transform .18s ease, color .18s ease;
}

.latest-release-line:hover {
  color: var(--text);
  border-color: rgba(143,92,255,.5);
  transform: translateY(-1px);
}

.latest-release-line strong {
  color: #d9c8ff;
}

.release-arrow {
  color: var(--accent-hover);
}

.product-overview {
  padding-top: 3.5rem;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    margin-right: -10rem;
    margin-top: 1rem;
  }

  .hero-visual img {
    min-width: 900px;
    max-width: none;
  }
}

@media (max-width: 820px) {
  .brand-mark {
    width: 142px;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-logo {
    width: min(100%, 390px);
  }

  .hero-visual {
    margin-right: -14rem;
  }

  .hero-visual img {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    margin-right: -16rem;
  }

  .hero-visual img {
    min-width: 650px;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 92%);
    mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 92%);
  }

  .latest-release-line {
    border-radius: 15px;
    flex-wrap: wrap;
  }
}


/* Prevent oversized hero artwork from creating horizontal scrolling. */
.hero,
.hero-grid,
.hero-visual {
  min-width: 0;
}
body {
  overflow-x: hidden;
}

@media (max-width: 820px) {
  .actions {
    align-items: stretch;
  }

  .hero-visual {
    width: 100%;
    margin: 1.5rem 0 0;
    overflow: hidden;
    border-radius: 20px;
  }

  .hero-visual img {
    width: 125%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }

  .hero-visual {
    margin-right: 0;
  }

  .hero-visual img {
    width: 145%;
    min-width: 0;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 68%, transparent 100%);
  }
}


/* Downloads page */
.downloads-hero { padding-bottom: 1rem; }
.downloads-section { padding-top: 1.5rem; }
.downloads-group-title { margin: 0 0 1.25rem; font-size: 1.8rem; }
.downloads-group-title.mobile-title { margin-top: 3.5rem; }
.download-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.mobile-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
.download-tile {
  min-height: 330px;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(181,139,255,.06), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.download-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(143,92,255,.48);
  box-shadow: 0 18px 42px rgba(6,2,12,.30);
}
.download-tile h3 { margin: 1rem 0 .35rem; font-size: 1.5rem; }
.download-tile p { color: var(--muted); margin: 0 0 .5rem; }
.download-tile .button { width: 100%; margin-top: auto; }
.tile-note { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.platform-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #c8aaff;
  filter: drop-shadow(0 12px 24px rgba(143,92,255,.25));
}
.windows-icon { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; transform: perspective(160px) rotateY(-5deg); }
.windows-icon span { display:block; width:100%; height:100%; background: linear-gradient(145deg,#c5a8ff,#8755ed); border-radius: 2px; }
.linux-icon { font-size: 72px; line-height: 1; }
.apple-icon { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif; font-size: 86px; line-height: 1; }
.android-icon { position: relative; display:block; }
.android-head { position:absolute; left:18px; top:19px; width:56px; height:34px; border-radius: 28px 28px 8px 8px; background: linear-gradient(145deg,#c5a8ff,#8755ed); }
.android-head::before, .android-head::after { content:""; position:absolute; top:-11px; width:3px; height:18px; background:#ad83ff; border-radius:2px; }
.android-head::before { left:12px; transform:rotate(-28deg); }
.android-head::after { right:12px; transform:rotate(28deg); }
.android-body { position:absolute; left:18px; top:57px; width:56px; height:25px; border-radius:5px 5px 12px 12px; background: linear-gradient(145deg,#c5a8ff,#8755ed); }
.disabled-button { background: rgba(143,92,255,.16); border:1px solid rgba(143,92,255,.28); color:#c9b3f5; cursor:default; }
.download-status { min-height: 1.5rem; margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) {
  .download-tiles, .mobile-downloads { grid-template-columns: 1fr; max-width: none; }
  .download-tile { min-height: 300px; }
}

.platform-logo-img {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto;
  color: #f8f5ff;
  object-fit: contain;
}



.platform-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon .platform-logo-img {
  width: 76px;
  height: 76px;
  margin: 0;
  object-fit: contain;
  display: block;
}

.windows-icon .platform-logo-img {
  width: 92px;
  height: 92px;
}

/* Updates */
.updates-grid .card {
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.updates-grid .card:hover,
.updates-grid .card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(143,92,255,.72);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
  outline: none;
}

.updates-status {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0;
}

.update-modal[hidden] {
  display: none;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.update-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,3,9,.78);
  backdrop-filter: blur(8px);
}

.update-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(82vh, 900px);
  overflow-y: auto;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent),
    var(--surface);
  border: 1px solid rgba(143,92,255,.48);
  border-radius: 22px;
  box-shadow: 0 34px 100px rgba(0,0,0,.58);
}

.update-modal-card h2 {
  margin: .65rem 3rem 1.25rem 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.update-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.update-modal-close:hover,
.update-modal-close:focus-visible {
  border-color: var(--accent);
  background: rgba(143,92,255,.18);
  outline: none;
}

.update-modal-content {
  color: var(--muted);
}

.update-modal-content p {
  margin: 0 0 1rem;
}

.update-modal-content p:last-child {
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .update-modal {
    padding: .75rem;
  }

  .update-modal-card {
    max-height: 90vh;
    padding: 1.5rem;
    border-radius: 18px;
  }
}


/* Light and dark appearance toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: .15rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(143,92,255,.08);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(143,92,255,.16);
  border-color: var(--accent);
  outline: none;
}

.theme-toggle-icon {
  width: 1.1rem;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1fb;
  --surface: #ffffff;
  --surface-2: #eee7f8;
  --text: #20172c;
  --muted: #675c73;
  --accent: #7544df;
  --accent-hover: #6332ce;
  --border: #d9cde8;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(117,68,223,.13), transparent 28rem),
    var(--bg);
}

html[data-theme="light"] .site-header {
  background: rgba(245,241,251,.9);
  border-bottom-color: rgba(55,37,75,.1);
}

html[data-theme="light"] .brand-mark {
  filter: drop-shadow(0 8px 20px rgba(117,68,223,.12));
}

html[data-theme="light"] .menu-toggle {
  color: var(--text);
}

html[data-theme="light"] .eyebrow {
  color: #5f32c3;
  background: rgba(117,68,223,.09);
  border-color: rgba(117,68,223,.25);
}

html[data-theme="light"] .button.secondary {
  background: rgba(117,68,223,.07);
  border-color: rgba(117,68,223,.45);
  color: #5b2dbb;
}

html[data-theme="light"] .button.secondary:hover {
  background: rgba(117,68,223,.13);
  color: #4e20ac;
}

html[data-theme="light"] .card {
  background:
    linear-gradient(180deg, rgba(117,68,223,.025), transparent),
    var(--surface);
  box-shadow: 0 18px 45px rgba(55,37,75,.08);
}

html[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 14px 32px rgba(117,68,223,.09));
}

html[data-theme="light"] .hero-visual {
  filter: drop-shadow(0 22px 48px rgba(72,45,119,.12));
}

html[data-theme="light"] .hero-visual::before {
  background: radial-gradient(circle at 42% 46%, rgba(117,68,223,.13), transparent 65%);
  filter: blur(26px);
}

html[data-theme="light"] .hero-visual img {
  border-color: rgba(117,68,223,.22);
  box-shadow: 0 18px 44px rgba(72,45,119,.08);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 74%, rgba(0,0,0,.08) 94%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 74%, rgba(0,0,0,.08) 94%, transparent 100%);
}

html[data-theme="light"] .latest-release-line,
html[data-theme="light"] .version,
html[data-theme="light"] .download-card,
html[data-theme="light"] .platform-card,
html[data-theme="light"] .download-tile {
  box-shadow: 0 15px 38px rgba(55,37,75,.07);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(55,37,75,.1);
}

html[data-theme="light"] .update-modal-backdrop {
  background: rgba(35,25,47,.48);
}

html[data-theme="light"] .update-modal-card {
  background:
    linear-gradient(180deg, rgba(117,68,223,.025), transparent),
    var(--surface);
  box-shadow: 0 34px 100px rgba(35,25,47,.25);
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 100%;
    justify-content: center;
    margin: .25rem 0 0;
  }
}

/* Light-mode contrast and header-control refinements */
.nav {
  position: relative;
}

.theme-toggle {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  margin-left: .35rem;
}

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

html[data-theme="light"] body,
html[data-theme="light"] p,
html[data-theme="light"] .lead,
html[data-theme="light"] .platforms,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .card p,
html[data-theme="light"] .version span,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .updates-status,
html[data-theme="light"] .update-modal-content {
  color: #51485c;
}

html[data-theme="light"] .nav-links a {
  color: #62586d;
}

html[data-theme="light"] .nav-links a:hover {
  color: #2a1f35;
}

html[data-theme="light"] .nav-links a.active {
  color: #5b2dbb;
}

html[data-theme="light"] .nav-links a.active::after {
  background: linear-gradient(90deg, #7644df, #5b2dbb);
  box-shadow: 0 0 10px rgba(91,45,187,.28);
}

html[data-theme="light"] .card .meta,
html[data-theme="light"] .meta {
  color: #6233c5;
}

html[data-theme="light"] .card-link,
html[data-theme="light"] .release-arrow {
  color: #5b2dbb;
}

html[data-theme="light"] .card-link:hover {
  color: #431b99;
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] h1,
html[data-theme="light"] h2 {
  background: linear-gradient(180deg, #24172f 0%, #4d287f 58%, #6736c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] h3 {
  color: #281d33;
}

html[data-theme="light"] .latest-release-line {
  background: rgba(255,255,255,.9);
  color: #51485c;
  border-color: #d8cce8;
  box-shadow: 0 12px 28px rgba(55,37,75,.08);
}

html[data-theme="light"] .latest-release-line:hover {
  color: #24172f;
  border-color: rgba(117,68,223,.45);
  background: #ffffff;
}

html[data-theme="light"] .latest-release-line strong {
  color: #5b2dbb;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,.82);
  border-color: #d4c7e5;
  color: #4b2b74;
  box-shadow: 0 8px 20px rgba(55,37,75,.08);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  background: #ffffff;
  border-color: #8c61e6;
  color: #32155f;
}

html[data-theme="light"] .menu-toggle {
  background: rgba(255,255,255,.8);
  border-color: #d4c7e5;
  color: #2d2138;
}

html[data-theme="light"] .button.secondary,
html[data-theme="light"] .update-modal-close {
  color: #4f279f;
}

html[data-theme="light"] .update-modal-close {
  background: #f6f1fc;
  border-color: #d7cae8;
}

html[data-theme="light"] .update-modal-close:hover,
html[data-theme="light"] .update-modal-close:focus-visible {
  background: #eee6f8;
  color: #35136d;
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    margin: 0 0 0 auto;
  }

  html[data-theme="light"] .nav-links {
    background: #ffffff;
    border-color: #d8cce8;
    box-shadow: 0 18px 40px rgba(55,37,75,.12);
  }
}

/* Mobile-only header controls */
.mobile-header-controls {
  display: none;
}

.theme-toggle-mobile {
  display: none;
}

@media (max-width: 760px) {
  .mobile-header-controls {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
  }

  .mobile-header-controls .theme-toggle-mobile {
    display: inline-flex;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .nav-links .theme-toggle {
    display: none;
  }

  .menu-toggle {
    margin: 0;
  }
}

