:root {
  color-scheme: dark;
  --background: #111214;
  --surface: #1b1c20;
  --text: #f6f8fc;
  --muted: #b7bbc4;
  --accent: #67caff;
  --button: linear-gradient(112deg, #345af4, #0878cf 84%, #0683cf);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; color: var(--text); background: var(--background); }
a { color: inherit; text-decoration: none; }
.inline-link { color: #8bd6ff; text-decoration: underline; text-underline-offset: .18em; }
.inline-link:hover { color: white; }
svg { width: 1.12em; height: 1.12em; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { color: white; background-color: #315db9; }
:focus-visible { outline: 2px solid #8bd6ff; outline-offset: 5px; }
.wrap { width: min(88%, 82rem); margin-inline: auto; }
.sr-only, .palette-radio {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip { position: fixed; z-index: 5; top: .65rem; left: 1rem; padding: .56rem .9rem; color: #101824; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; background: #161719; border-bottom: 1px solid #ffffff08; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.65rem; min-height: 4rem; }
.brand { display: inline-flex; gap: .58rem; align-items: center; color: #fff; font-size: 1.35rem; font-weight: 760; line-height: 1.2; letter-spacing: -.045em; text-transform: uppercase; }
.brand img { width: 1.65rem; height: 1.65rem; object-fit: contain; }
nav { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
nav a { display: flex; gap: .42rem; align-items: center; font-size: .98rem; font-weight: 550; }
nav a:hover, .footer-group a:hover { color: var(--accent); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.85rem; padding: .6rem 1.08rem;
  border-radius: .52rem; color: #fff; font-weight: 640; line-height: 1.23; transition: filter .17s, background .17s;
}
.primary { background: var(--button); }
.primary:hover { filter: brightness(1.14); }
.secondary { background: #2c2d31; }
.secondary:hover { background: #383a40; }
.nav-action { min-height: 2.55rem; font-size: .96rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #091119; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #07101894 0%, #070b1120 46%, transparent 64%), linear-gradient(0deg, var(--background), transparent 14%); }
.hero-inner { min-height: clamp(36rem, 81vh, 51rem); display: flex; align-items: center; }
.hero-copy { width: min(49%, 33rem); padding: 4.5rem 0 5.2rem; }
.platform { display: flex; align-items: center; gap: .6rem; color: #b8d9f0; font-size: .93rem; font-weight: 620; }
.platform svg { width: 1.2rem; height: 1.2rem; color: #8bd8ff; }
.platform span { color: #87a0b3; }
h1 { margin: .8rem 0 1.2rem; font-size: clamp(3.4rem, 4.8vw, 5.9rem); font-weight: 740; letter-spacing: -.065em; line-height: 1; }
.lead { max-width: 32rem; color: #e2e8ee; font-size: clamp(1.14rem, 1.52vw, 1.53rem); line-height: 1.48; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .62rem; margin-top: 2.3rem; }

.section { padding-block: clamp(3.6rem, 5.7vw, 6rem); }
h2 { max-width: 16ch; font-size: clamp(2rem, 3.2vw, 3.3rem); font-weight: 690; line-height: 1.09; letter-spacing: -.051em; }
h3 { font-size: 1.16rem; line-height: 1.26; font-weight: 670; letter-spacing: -.021em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.feature-intro, .tile { padding: clamp(1.35rem, 2.05vw, 2.1rem); }
.feature-intro { display: flex; flex-direction: column; justify-content: center; padding-left: 0; }
.feature-intro p, .demo-copy p, .requirements { max-width: 34rem; margin-top: .9rem; color: var(--muted); }
.tile { min-height: 12.7rem; background: var(--surface); border-radius: .65rem; }
.tile h3 { display: flex; align-items: center; gap: .6rem; }
.tile h3 svg { color: #8dd3ff; }
.tile p { margin-top: 1.15rem; color: #c9cdd6; }

.demo { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 5vw, 5.8rem); align-items: center; padding-top: .7rem; }
.appearance {
  position: relative; min-width: 0; padding: 0; margin: 0; border: 0;
  --sample: #769eff; --sample-bg: #111830; --sample-widget: #1b2543;
}
.palette-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .75rem; }
.palette-controls label {
  cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; padding: .37rem .74rem;
  border: 1px solid #3b3e45; border-radius: .44rem; color: #d2d8df; line-height: 1.4; font-size: .91rem;
}
.palette-controls label::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; }
label[for="cobalt"]::before { background: #769eff; }
label[for="glacier"]::before { background: #9cdeff; }
label[for="midnight"]::before { background: #ab91ff; }
#cobalt:checked ~ .palette-controls [for="cobalt"], #glacier:checked ~ .palette-controls [for="glacier"], #midnight:checked ~ .palette-controls [for="midnight"] {
  background: #2d3746; color: #fff; border-color: #65798c;
}
#cobalt:focus-visible ~ .palette-controls [for="cobalt"], #glacier:focus-visible ~ .palette-controls [for="glacier"], #midnight:focus-visible ~ .palette-controls [for="midnight"] { outline: 2px solid #99d6ff; outline-offset: 3px; }
#glacier:checked ~ .preview { --sample: #9cdeff; --sample-bg: #11202d; --sample-widget: #1b3041; }
#midnight:checked ~ .preview { --sample: #ab91ff; --sample-bg: #151228; --sample-widget: #221f39; }
.preview {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .7rem; padding: 1.1rem;
  min-height: clamp(15rem, 24vw, 21rem); overflow: hidden; border-radius: .7rem; background: linear-gradient(#080c1022, #080c103d), url("/media/hero.jpg") center / cover;
}
.hud-bar, .position, .hotkeys {
  border: 1px solid #ffffff24; background: var(--sample-bg); color: #f1f4fc; font-size: .84rem; font-weight: 600; border-radius: .5rem;
  box-shadow: 0 .25rem .8rem #0004; transition: background-color .3s;
}
.hud-bar, .position, .hotkeys b, .hotkeys div { display: flex; align-items: center; gap: .65rem; }
.hud-bar, .position { padding: .36rem .65rem; }
.hud-mark { width: 1.08rem; height: 1.08rem; background-color: var(--sample); mask: url("/media/mark.png") center / contain no-repeat; }
.hotkeys { min-width: 8rem; padding: .52rem .65rem; }
.hotkeys b svg, .position svg { color: var(--sample); transition: color .3s; }
.hotkeys div { justify-content: space-between; gap: .8rem; margin-top: .28rem; }
kbd { color: var(--sample); padding: .05rem .3rem; background: var(--sample-widget); border-radius: .2rem; font: inherit; font-size: .75rem; }
.position { position: absolute; bottom: 1.1rem; left: 1.1rem; }
.cross { position: absolute; top: 50%; left: 50%; width: .75rem; height: .75rem; transform: translate(-50%, -50%); }
.cross::before, .cross::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #f5faffc9; }
.cross::before { width: 100%; height: 1.5px; }
.cross::after { width: 1.5px; height: 100%; }

.start { background: #17181b; }
.start h2 { max-width: none; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem 2.2rem; margin: 2.3rem 0 0; }
.steps li { position: relative; counter-increment: step; padding-left: 2.95rem; }
.steps li::before { content: counter(step); position: absolute; top: -.15rem; left: 0; width: 2.14rem; line-height: 2.14rem; text-align: center; border-radius: .5rem; background: #232e45; color: #98caff; font-weight: 700; }
.steps p { margin-top: .5rem; color: var(--muted); }
code { font-size: .92em; color: #e5edff; }
footer { background: #101113; }
.footer-inner { display: grid; align-items: start; grid-template-columns: 1fr auto auto; gap: 1.7rem clamp(2rem, 6vw, 7rem); padding-block: 3rem; }
.footer-group { display: grid; gap: .35rem; }
.footer-group h3 { margin-bottom: .3rem; font-size: 1rem; }
.footer-group a { color: var(--muted); font-size: .94rem; }

@media (max-width: 56rem) {
  .hero-copy { width: min(52%, 31rem); }
  .hero-inner { min-height: 34rem; }
  .hero-image { object-position: 68% center; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 10.8rem; }
  .demo { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 2rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner { gap: .6rem; min-height: 3.7rem; }
  nav { gap: .7rem; }
  nav a { font-size: .91rem; }
  nav svg { display: none; }
  .nav-action { min-height: 2.36rem; padding: .45rem .75rem; }
  .hero-inner { align-items: flex-end; min-height: clamp(35rem, 78vh, 44rem); }
  .hero-image { object-position: 72% 10%; height: 78%; }
  .hero::before { background: linear-gradient(0deg, var(--background) 0%, #0b1118 18%, #0a1016e6 31%, #0a101685 50%, transparent 74%); }
  .hero-copy { width: 100%; max-width: 30rem; padding: 13rem 0 2.7rem; }
  .hero h1 { margin: .6rem 0 .8rem; font-size: clamp(2.9rem, 10vw, 4rem); }
  .actions { margin-top: 1.6rem; }
  .demo { grid-template-columns: 1fr; gap: 1.25rem; }
  .demo p { max-width: none; }
  .feature-grid { gap: .65rem; }
  .feature-intro { grid-column: 1 / -1; padding: 0 0 1.1rem; }
  .tile { padding: 1.25rem; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner .brand { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .header-inner { justify-content: space-between; }
  nav { display: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: auto; }
  .tile p { margin-top: .65rem; }
  .preview { padding: .8rem; }
  .position { bottom: .8rem; left: .8rem; }
  .hero-image { object-position: 75% top; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
