:root {
  color-scheme: dark;
  --bg: #0e1119;
  --surface: #141924;
  --ink: #f7f8ff;
  --muted: #b5bdd1;
  --line: #303546;
  --blue: #345bff;
  --link: #a9bdff;
  --width: 1080px;
  --nav-offset: 6rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-offset); }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
p, dd { color: var(--muted); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
a { color: var(--link); text-underline-offset: .21em; }
a:hover { color: white; }
a:focus-visible, summary:focus-visible { outline: 2px solid #a4bcff; outline-offset: 4px; }
code {
  font: .9em/1.45 Consolas, "Liberation Mono", monospace;
  color: #cbd7ff;
  overflow-wrap: anywhere;
}

.wrap { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: -5rem; left: .75rem; z-index: 5; background: white; color: #101219; padding: .5rem .8rem; }
.skip:focus { top: .45rem; }
section[id] { scroll-margin-top: 1.5rem; }
::selection { background: #3f61bb; color: white; }

.site-header {
  position: fixed;
  inset: max(.85rem, env(safe-area-inset-top)) 0 auto;
  z-index: 3;
  pointer-events: none;
}
.top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 65px;
  width: min(var(--width), calc(100% - 2rem));
  padding: .5rem .8rem .5rem 1rem;
  border: 1px solid #a0b6ff35;
  border-radius: 1rem;
  background: #151b2a;
  box-shadow: 0 9px 26px #03061245;
  pointer-events: auto;
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .top {
    background: #101626c9;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }
}
.site-header + main { padding-top: var(--nav-offset); }
.landing-page main { padding-top: 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: white; text-decoration: none; letter-spacing: -.025em; font-weight: 740; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: clamp(.15rem, 1.05vw, .65rem); margin-left: auto; }
.nav > a:not(.button) {
  padding: .38rem .55rem;
  border-radius: .45rem;
  color: #c8cee0;
  font-size: .93rem;
  text-decoration: none;
}
.nav > a:not(.button):hover { color: white; background: #a3b7ff20; }
.nav-actions { display: flex; align-items: center; gap: .42rem; flex: none; }
.nav-actions .listing-link { background: #1a2339; border-color: #425274; white-space: nowrap; }
.nav-actions .listing-link:hover { background: #263455; border-color: #8099df; }


.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  min-height: 49px;
  padding: .73rem 1.15rem;
  background: var(--blue);
  border: 1px solid #6080ff;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .16s, border-color .16s;
}
.button:hover { background: #264ce6; border-color: #8aa2ff; }
.button.secondary { background: transparent; border-color: #505b7b; }
.button.secondary:hover { background: #ffffff10; border-color: #8696c4; }
.button img { width: 1.25rem; height: 1.25rem; flex: none; }
.button.small { min-height: 38px; padding: .45rem .75rem; font-size: .92rem; }
.button.small img { width: 1rem; height: 1rem; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  text-align: center;
  overflow: hidden;
  background: #141d38;
  border-bottom: 1px solid #303c61;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #0d152b2b 0%, #111a3438 53%, #141d38 100%),
    radial-gradient(ellipse at center, #141c3cfa 20%, #152149c9 51%, #15224e78 100%),
    url("rt-wallpaper.webp") center / cover;
}
.hero-inner {
  align-self: center;
  padding-block: calc(var(--nav-offset) + 1rem) 2.4rem;
}
.hero-logo {
  width: clamp(76px, 9vw, 96px);
  margin: 0 auto 1.3rem;
  border-radius: 22%;
  border: 1px solid #8295ff9e;
  box-shadow: 0 10px 32px #07102270;
}
.hero h1 {
  font-size: clamp(2.65rem, 6.2vw, 5.05rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.062em;
}
.hero h1 span { color: #a5baff; }
.hero p {
  max-width: 33rem;
  margin: 1.35rem auto 0;
  color: #c9d3eb;
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.hero .button { min-width: 120px; }
.hero-scroll {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 48px;
  height: 48px;
  margin-bottom: max(1.3rem, env(safe-area-inset-bottom));
  border: 1px solid #a6bcff65;
  border-radius: 50%;
  background: #1e2b54ac;
  color: #e5ecff;
}
.hero-scroll::before {
  content: "";
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.hero-scroll:hover { color: white; background: #314784; border-color: #a6bcff; }

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.split { display: grid; grid-template-columns: minmax(205px, .85fr) minmax(0, 1.55fr); gap: clamp(2rem, 5.5vw, 5rem); }
.section-intro p { max-width: 32rem; margin-top: .7rem; }
.surface { background: var(--surface); border-block: 1px solid #292e40; }
.rows > div {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(0, 1.4fr);
  gap: 1.2rem;
  padding-block: .95rem;
  border-top: 1px solid var(--line);
}
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 690; color: var(--ink); }
.rows dd { line-height: 1.55; }
.commands dt { font-weight: 600; }

.steps { margin: 0; padding-left: 1.75rem; }
.steps li { padding-left: .45rem; padding-bottom: .95rem; }
.steps li + li { padding-top: .95rem; border-top: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { color: var(--link); font-weight: 700; }
.steps h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 680;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 .48rem;
  height: .48rem;
  margin-inline: .25rem;
  border: solid var(--link);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease-in-out;
}
.faq details[open]:not(.is-closing) summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: var(--link); }
.faq-answer p { padding: 0 1.5rem 1.05rem 0; }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
.support { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.support .button { flex: none; }

.site-footer { background: #0c0e15; border-top: 1px solid #292e40; padding-block: 1.9rem 2.15rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.05rem; }
.foot p, .foot nav { font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.foot a[aria-current] { color: white; }

.legal-hero { padding-block: 3.1rem 2.4rem; background: #161f40; border-bottom: 1px solid #34457d; }
.legal-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.legal-hero p { max-width: 45rem; margin-top: .55rem; }
.legal-hero time { color: #c9d6ff; }
.policy-layout { display: grid; grid-template-columns: minmax(175px, 235px) minmax(0, 740px); gap: 2.5rem; padding-block: 2.65rem 4rem; }
.toc { position: sticky; top: var(--nav-offset); align-self: start; max-height: calc(100vh - var(--nav-offset) - 1.25rem); overflow-y: auto; padding-inline: 0 1rem; border-right: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: .6rem; }
.toc a { display: block; padding-block: .2rem; font-size: .94rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.policy section { padding-bottom: 1.35rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.policy section h2 { margin-bottom: .6rem; font-size: clamp(1.5rem, 4vw, 1.95rem); }
.policy p + p, .policy ul, .policy ol { margin-top: .7rem; }
.policy li { color: var(--muted); }
.policy li + li { margin-top: .35rem; }
.policy ol, .policy ul { padding-left: 1.4rem; }
.policy strong { color: var(--ink); }
.policy .callout { border-left: 3px solid var(--blue); padding: .25rem 0 .25rem 1rem; color: #d8e0f9; }

@media (max-width: 670px) {
  .wrap { width: calc(100% - 2rem); }
  :root { --nav-offset: 7.4rem; }
  .site-header { inset-block-start: max(.55rem, env(safe-area-inset-top)); }
  .top {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .45rem;
    padding: .5rem .65rem .35rem;
    width: calc(100% - 1rem);
  }
  .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: 0; flex-wrap: wrap; justify-content: space-between; margin: 0; }
  .nav > a:not(.button), .button.small { font-size: .87rem; }
  .nav > a:not(.button) { padding-inline: .3rem; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .split, .policy-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .support { align-items: flex-start; flex-direction: column; }
  .toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
}

@media (max-width: 435px) {
  .hero h1 { font-size: clamp(2.07rem, 9.3vw, 2.7rem); }
  .hero .button { min-width: 0; padding-inline: .95rem; }
  .rows > div { grid-template-columns: 1fr; gap: .15rem; }
  .nav-actions .button { padding-inline: .56rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

.landing-page .hero-logo { width: clamp(68px, 7vw, 88px); margin-bottom: 1.05rem; }
.landing-page .hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.65rem); text-wrap: balance; }
.landing-page .hero p { max-width: 31rem; margin-top: 1.15rem; text-wrap: pretty; }
.landing-page .actions { margin-top: 1.5rem; }
.features-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.45rem, 3.5vw, 2.35rem);
}
.features-header p { margin-top: .65rem; text-wrap: pretty; }
.section-link, .feature-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  min-height: 44px;
  font-weight: 660;
  text-decoration: none;
}
.section-link { flex: none; }
.section-link:is(:hover, :focus-visible), .feature-link:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.feature-row {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: .65rem;
  padding-block: 1.4rem 1rem;
  border-top: 1px solid var(--line);
}
.feature-row h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); text-wrap: balance; }
.feature-row p { max-width: 37ch; text-wrap: pretty; }
.feature-link { font-size: .93rem; }
.feature-link code { color: inherit; }
.feature-row:target { border-color: var(--link); }
.feature-row:target h3, .commands > div:target dt code { color: #a5baff; }
.commands > div[id] { scroll-margin-top: 1.5rem; }

@media (max-width: 900px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .features-header { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .feature-row { padding-block: 1.15rem .75rem; }
}

/* The banner's shortcut lands beneath the island without the extra section gap. */
#features { scroll-margin-top: 0; }

@media (max-height: 650px) {
  .hero-inner { padding-block: calc(var(--nav-offset) + .35rem) 1.15rem; }
  .hero-scroll { margin-bottom: max(.65rem, env(safe-area-inset-bottom)); }
}

.brand-name { transition: color .18s ease; }
.brand:hover .brand-name, .brand:focus-visible .brand-name { color: #a3c4ff; }
.hero .explore-button { background: #1d2b4e; border-color: #566b9d; }
.hero .explore-button:hover { background: #324986; border-color: #a7bdff; }
.hero-scroll {
  transition: opacity .24s ease, translate .24s ease, visibility 0s, background-color .16s, border-color .16s;
}
.hero-scroll.is-away {
  opacity: 0;
  translate: 0 8px;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0s, .24s;
}

.stats-strip {
  background: #131928;
  border-bottom: 1px solid #2a3550;
}
.stats-inner {
  padding-block: clamp(1.55rem, 4vw, 2.5rem);
}
.stats-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-counts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  gap: .45rem;
  padding-inline: clamp(.3rem, 2vw, 1.3rem);
}
.stats-counts > div + div { border-left: 1px solid #34405c; }
.stats-counts dt { color: #c3cdeb; font-size: .93rem; }
.stats-counts dd {
  color: #e9efff;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal-page .legal-hero {
  background: linear-gradient(105deg, #172544, #19274b 58%, #121a31);
  border-bottom-color: #374769;
}
.legal-masthead { padding-block: .45rem .35rem; }
.legal-masthead h1 { max-width: 48rem; letter-spacing: -.045em; }
.legal-masthead .policy-date { margin-top: .8rem; color: #acb8d4; font-size: .91rem; }
.policy-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.25rem; }
.policy-links a { color: #c9d8ff; font-weight: 650; text-decoration-color: #7289c3; }
.toc { border: 0; padding-right: 0; }
.toc > strong { font-size: .96rem; }
.toc-links { padding-left: .75rem; border-left: 1px solid #354469; }
.toc-links a { padding-block: .24rem; }
.policy section h2 { margin-bottom: .7rem; line-height: 1.22; }
.policy section:target h2 { color: #b4cbff; }
.policy p, .policy li { line-height: 1.72; }

@media (max-width: 670px) {
  .stats-counts dt { font-size: .78rem; line-height: 1.4; text-wrap: balance; }
  .toc { max-height: 11rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
  .legal-masthead { padding-block: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-name, .hero-scroll { transition: none; }
  .hero-scroll.is-away { translate: none; }
}

.install-masthead {
  display: grid;
  align-items: center;
  min-height: min(65svh, 38rem);
  background:
    linear-gradient(105deg, #172343f0, #152039f7 56%, #111827e8),
    url("rt-wallpaper.webp") center / cover;
  border-bottom: 1px solid #303d60;
  text-align: center;
}
.install-intro { padding-block: clamp(2.75rem, 8vw, 5rem); }
.install-logo { margin: 0 auto 1.3rem; border: 1px solid #8ca3ff90; border-radius: 17px; }
.install-intro .button, .hero .actions > .button:first-child { box-shadow: 0 6px 23px #09134167; }
.install-intro h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.3rem, 5.3vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.install-intro p { max-width: 27rem; margin: 1.05rem auto 0; text-wrap: pretty; }
.install-action { margin-top: 1.35rem; }


@media (prefers-reduced-motion: no-preference) {
  html[data-page-progress]::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: 12;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, #365dff, #9cbcff);
    transform-origin: left;
  }
  html[data-page-progress="loading"]::before {
    animation: page-progress .8s cubic-bezier(.12, .68, .22, 1) both;
  }
  html[data-page-progress="complete"]::before {
    animation: page-progress-complete .25s ease-out both;
  }
  @keyframes page-progress {
    from { transform: scaleX(.14); }
    to { transform: scaleX(.84); }
  }
  @keyframes page-progress-complete {
    from { transform: scaleX(.84); opacity: 1; }
    55% { transform: scaleX(1); opacity: 1; }
    to { transform: scaleX(1); opacity: 0; }
  }
}

.developer-section { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.developer-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.developer-list > li { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.developer-profile { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.3rem); }
.developer-profile img { flex: none; border: 1px solid #41527b; border-radius: 50%; background: var(--surface); }
.developer-profile h3 { font-size: 1.16rem; overflow-wrap: anywhere; }
.developer-profile p { margin-top: .24rem; }
.landing-page .support { border-top: 1px solid var(--line); }
.landing-page .foot nav { align-content: flex-start; row-gap: .55rem; }

.install-reasons {
  background: linear-gradient(105deg, #182547, #141b2d 74%);
}
.install-reasons-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2.5rem, 5.3vw, 4rem);
}
.install-reasons h2, .install-guide h2 { font-size: clamp(1.85rem, 4.5vw, 2.8rem); }
.install-reasons p { max-width: 37rem; margin-top: .6rem; }
.install-benefits { margin: .8rem 0 0; padding-left: 1.25rem; color: #d6e0f9; }
.install-benefits li::marker { color: #92abff; }
.install-reasons .button { justify-self: start; }
@media (max-width: 670px) {
  .install-reasons-inner { grid-template-columns: 1fr; }
}
