:root {
  --accent-rgb: 143, 92, 245;
  --bg: #0b0b11;
  --panel: #16161e;
  --panel-2: #1c1c27;
  --line: #272735;
  --line-2: #33334a;
  --text: #e9e9f2;
  --muted: #a0a0b8;
  --dim: #6c6c84;
  --v1: #c9b2ff;
  --v2: #8f5cf5;
  --v3: #5b6cff;
  --ok: #4ade80;
  --grad: linear-gradient(120deg, var(--v1) 0%, var(--v2) 45%, var(--v3) 100%);
  --f-sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v1); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--v1); outline-offset: 2px; }

code {
  font: 500 0.88em var(--f-mono);
  background: rgba(143, 92, 245, 0.12);
  color: var(--v1);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  white-space: nowrap;
}
kbd {
  display: inline-block;
  font: 600 0.78em var(--f-mono);
  padding: 0.15em 0.55em;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: var(--panel-2);
  color: var(--text);
  line-height: 1.4;
  vertical-align: 0.08em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.nw { white-space: nowrap; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Background */
.sky,
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sky {
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(91, 108, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 5% 10%, rgba(143, 92, 245, 0.14), transparent 60%),
    var(--bg);
}
.stars { width: 100%; height: 100%; }

/* Buttons and controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 700 15px/1 var(--f-sans);
  letter-spacing: 0.01em;
  transition: transform 0.12s, background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(120deg, #8f5cf5, #5b6cff) border-box;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary:hover { color: #fff; background: linear-gradient(120deg, #9b6dff, #6a79ff) border-box; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

.tg {
  position: relative;
  flex: none;
  width: 38px; height: 22px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #23232f;
  transition: background 0.2s, border-color 0.2s;
}
.tg::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #8b8ba3;
  transition: transform 0.2s, background 0.2s;
}
.tg.is-on { background: var(--v2) var(--grad); border-color: var(--v2); }
.tg.is-on::after { transform: translateX(16px); background: #fff; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #0e0e15;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: rgba(var(--accent-rgb), 0.25); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.5); }
.seg-lg { margin-top: 24px; }
.seg-lg button { padding: 9px 16px; font-size: 14px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--v2) 0, var(--v3) var(--p, 50%), #2a2a38 var(--p, 50%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(143, 92, 245, 0.45);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(143, 92, 245, 0.45);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(201, 178, 255, 0.6); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(22, 22, 30, 0.8);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.chip::before,
.veh-item::before {
  content: "";
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dim);
  transition: background 0.2s, box-shadow 0.2s;
}
.chip.is-on,
.veh-item.is-on { color: #fff; border-color: rgba(143, 92, 245, 0.6); background: rgba(143, 92, 245, 0.14); }
.chip.is-on::before,
.veh-item.is-on::before { background: var(--v1); box-shadow: 0 0 10px var(--v1); }

.dot, .ok-dot {
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* Nav */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: #fff; }
.brand-word { font: 800 17px var(--f-sans); letter-spacing: 0.32em; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.burger { display: none; }
.nav-lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; }
.nav-lang a { padding: 5px 9px; border-radius: 7px; color: var(--dim); font: 700 12px var(--f-sans); letter-spacing: 0.06em; transition: color 0.2s, background 0.2s; }
.nav-lang a:hover { color: var(--text); }
.nav-lang a.is-on { color: var(--text); background: rgba(var(--accent-rgb), 0.18); }

/* Hero */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 16px; overflow-x: clip; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-in { display: grid; justify-items: center; }
.hero-copy { max-width: 760px; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(22, 22, 30, 0.7);
  color: var(--muted);
  font: 600 13px var(--f-sans);
}
.hero h1 {
  margin: 22px 0;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 800;
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.lead { max-width: 600px; margin-inline: auto; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--dim); font-size: 13px; text-align: center; }

.hero-orbits {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: clamp(210px, 20vw, 250px);
  width: 0;
  height: 0;
  pointer-events: none;
}
.hero-orbits::before {
  content: "";
  position: absolute;
  left: -300px; top: -300px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 92, 245, 0.26), rgba(91, 108, 255, 0.08) 60%, transparent);
}
.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(143, 92, 245, 0.22);
  animation: orbSpin 40s linear infinite;
}
.o1 { left: -310px; top: -310px; width: 620px; height: 620px; animation-delay: -12s; }
.o2 { left: -450px; top: -450px; width: 900px; height: 900px; border-color: rgba(143, 92, 245, 0.14); animation-duration: 70s; animation-direction: reverse; animation-delay: -44s; }
.o3 { left: -610px; top: -610px; width: 1220px; height: 1220px; border-color: rgba(143, 92, 245, 0.08); animation-duration: 110s; animation-delay: -30s; }
.orb i {
  position: absolute;
  left: 50%; top: -5px;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--v1);
  box-shadow: 0 0 14px 4px rgba(201, 178, 255, 0.6);
}
.o2 i { top: -4px; width: 7px; height: 7px; margin-left: -3.5px; }
.o3 i { top: -3px; width: 6px; height: 6px; margin-left: -3px; opacity: 0.7; }
@keyframes orbSpin { to { transform: rotate(360deg); } }

.menu-demo { position: relative; margin-top: clamp(20px, 3vw, 36px); }
.menu-demo iframe {
  position: absolute;
  left: 0; top: 0;
  width: 982px; height: 692px;
  border: 0;
  background: transparent;
  transform-origin: 0 0;
}
.menu-demo.is-closed iframe { pointer-events: none; }
.stage-hint {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--dim);
  font-size: 14px;
}

/* Sections */
.section { position: relative; padding: clamp(44px, 6vw, 76px) 0; }
.sec-head { max-width: 680px; margin: 0 auto clamp(30px, 4vw, 44px); text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 14px 0 16px; text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-block;
  font: 700 12px var(--f-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--v1);
}

/* Features */
.frows { display: flex; flex-direction: column; gap: clamp(52px, 7vw, 92px); }
.frow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.frow-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.frow-flip .fr-text { order: 2; }

.feat-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(143, 92, 245, 0.14);
  color: var(--v1);
  font: 600 12px var(--f-mono);
}
.fr-text h3 { font-size: clamp(26px, 3vw, 38px); margin: 16px 0 14px; letter-spacing: -0.02em; text-wrap: balance; }
.fr-text > p { color: var(--muted); font-size: 16.5px; }
.fr-note {
  min-height: 3.2em;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--v2);
  color: #d4d4e4;
  font-size: 15px;
}
.fr-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.fr-list li { position: relative; padding-left: 28px; font-size: 15px; color: #d4d4e4; }
.fr-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(143, 92, 245, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23c9b2ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.fr-range { display: flex; align-items: center; gap: 14px; margin-top: 24px; max-width: 380px; }
.fr-range span { color: var(--muted); font-weight: 600; font-size: 14px; }
.fr-range input { flex: 1; min-width: 0; }
.fr-range output { width: 56px; text-align: right; font: 600 13px var(--f-mono); color: var(--v1); }
.fr-toggles { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.fr-tg { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.esp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.fr-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0d0c14;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(143, 92, 245, 0.5);
}
.fr-visual-tall {
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(91, 108, 255, 0.14), transparent 70%),
    radial-gradient(400px 260px at 0% 100%, rgba(143, 92, 245, 0.12), transparent 70%),
    #121219;
}
.scene, .fr-visual > canvas { width: 100%; height: 100%; display: block; }

.hud {
  position: absolute;
  left: 14px; top: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(11, 11, 17, 0.75);
  border: 1px solid var(--line-2);
  font: 600 12px var(--f-mono);
  color: var(--muted);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.hud-r { left: auto; right: 14px; }
.hud-legend { gap: 14px; }
.hud-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hud-legend i { width: 10px; height: 2px; border-radius: 2px; }
.lg-ghost { height: 10px !important; width: 10px !important; border-radius: 50% !important; background: rgba(255, 255, 255, 0.28); }
.hud-lamp { width: 8px; height: 8px; border-radius: 50%; background: #3a3a4a; transition: background 0.1s, box-shadow 0.1s; }
.hud.is-fire .hud-lamp { background: #ff6b8a; box-shadow: 0 0 10px #ff6b8a; }

/* Weapon profiles */
.wpn {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background:
    radial-gradient(500px 300px at 70% 30%, rgba(143, 92, 245, 0.18), transparent 70%),
    #121219;
}
.wpn-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.wpn-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.wpn-tabs button:hover { color: var(--text); }
.wpn-tabs button.is-on { background: rgba(143, 92, 245, 0.16); color: #fff; }
.wpn-tabs button.is-on::before {
  content: "";
  position: absolute;
  left: -10px; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad);
}
.wpn-stage { padding: clamp(18px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.wpn-art { display: flex; justify-content: center; padding: 4px 0 14px; }
.wpn-hud { position: relative; width: 128px; }
.wpn-hud img { display: block; width: 128px; height: 128px; }
.wpn-hud span {
  position: absolute;
  left: -40px; right: -40px; bottom: -12px;
  text-align: center;
  font: 800 20px/1 var(--f-sans);
  letter-spacing: 0.02em;
  color: #accbf1;
  -webkit-text-stroke: 4px #000;
  paint-order: stroke fill;
}
.wpn-art.is-swap .wpn-hud { animation: wpnIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes wpnIn { from { opacity: 0; transform: scale(0.92); } }
.wpn-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.wpn-meta b { font: 700 clamp(17px, 2vw, 21px) var(--f-sans); }
.wpn-mode {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(143, 92, 245, 0.4);
  background: rgba(143, 92, 245, 0.16);
  color: var(--v1);
  font: 600 12px var(--f-mono);
}
.wpn-stat { display: grid; grid-template-columns: 86px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.wpn-stat:last-child { grid-template-columns: 86px minmax(0, 1fr); }
.wpn-stat .bar { height: 6px; border-radius: 6px; background: #24242f; overflow: hidden; }
.wpn-stat .bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wpn-stat b { font: 600 13px var(--f-mono); color: var(--v1); text-align: right; }
.wpn-bones { display: flex; flex-wrap: wrap; gap: 4px; }
.wpn-bones span {
  padding: 2px 7px;
  border-radius: 5px;
  background: #1d1d28;
  color: var(--dim);
  font: 600 11.5px var(--f-sans);
}
.wpn-bones span.is-on { color: #fff; background: rgba(var(--accent-rgb), 0.3); }

/* Vehicle */
.veh { display: flex; align-items: center; padding: clamp(16px, 3vw, 28px); aspect-ratio: auto; }
.veh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.veh-label {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--dim);
  font: 700 11.5px var(--f-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.veh-label:first-child { margin-top: 0; }
.veh-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(22, 22, 30, 0.8);
  color: var(--muted);
  font: 600 13.5px var(--f-sans);
  text-align: left;
  transition: all 0.2s;
}

/* Quick menu */
.quick { outline: none; }
.quick:focus-visible { box-shadow: 0 0 0 2px var(--v1), 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.qm {
  position: absolute;
  left: 4%; top: 50%;
  width: 230px;
  transform: translateY(-50%);
  padding: 6px 6px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 20, 27, 0.94);
  color: var(--text);
  font: 400 13px var(--f-sans);
  user-select: none;
}
.qm-title {
  display: flex; align-items: center; gap: 7px;
  height: 26px;
  padding: 0 6px 4px;
  font-weight: 600;
  font-size: 14px;
}
.qm-title span { margin-left: auto; color: #8b8ba1; font-weight: 400; font-size: 12px; }
.qm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
  height: 23px;
  padding: 0 6px;
  border-radius: 7px;
  cursor: pointer;
}
.qm-row em { font-style: normal; color: #8b8ba1; font-size: 11px; }
.qm-row.is-sel { background: rgba(143, 92, 245, 0.16); color: #fff; }
.qm-sw {
  position: relative;
  width: 30px; height: 17px;
  border-radius: 9px;
  background: #262633;
  transition: background 0.14s;
}
.qm-sw::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #9a9ab0;
  transition: left 0.14s, background 0.14s;
}
.qm-sw.is-on { background: var(--v2); }
.qm-sw.is-on::after { left: 16px; background: #fff; }
.qm-keys { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.qm-keys button {
  min-width: 34px; height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  background: rgba(22, 22, 30, 0.85);
  color: var(--text);
  font: 600 13px var(--f-mono);
  transition: transform 0.06s, border-bottom-width 0.06s, background 0.1s;
}
.qm-keys button:hover { border-color: var(--v2); }
.qm-keys button.is-down { transform: translateY(2px); border-bottom-width: 1px; background: rgba(143, 92, 245, 0.35); }

/* Binds */
.binds { display: flex; flex-direction: column; }
.binds canvas { flex: 1; min-height: 0; }
.binds-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.binds-bar p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.keycap {
  flex: none;
  width: 56px; height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  border-bottom-width: 5px;
  background: linear-gradient(#2a2a38, #1f1f2a);
  color: #fff;
  font: 700 18px var(--f-mono);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.06s, border-bottom-width 0.06s, background 0.1s, border-color 0.1s;
}
.keycap.is-down {
  transform: translateY(3px);
  border-bottom-width: 2px;
  border-color: rgba(143, 92, 245, 0.7);
  background: linear-gradient(#33284f, #261e3c);
  color: var(--v1);
  box-shadow: inset 0 1px 0 rgba(201, 178, 255, 0.12);
}

/* Install */
.cards4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.c4 {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(143, 92, 245, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(28, 28, 39, 0.8), rgba(19, 19, 27, 0.8));
}
.c4-num {
  position: absolute;
  right: 24px; top: 18px;
  font: 800 84px/0.9 var(--f-sans);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(201, 178, 255, 0.34), rgba(143, 92, 245, 0.02) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.c4-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(143, 92, 245, 0.14);
  border: 1px solid rgba(143, 92, 245, 0.3);
}
.c4-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--v1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c4 h3 { font-size: 20px; margin: 20px 0 8px; }
.c4 p { color: var(--muted); font-size: 15px; }
.c4-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--dim); }
.c4-arr { color: var(--v1); }
.c4 .c4-note { margin-top: 10px; color: var(--dim); font-size: 13.5px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 19, 27, 0.7);
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] { border-color: rgba(143, 92, 245, 0.4); background: rgba(24, 22, 36, 0.85); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--v1); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq details p code { white-space: normal; }

/* Pricing */
.cta-sec { padding-top: 0; }
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: var(--panel);
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); }
.cta p { color: var(--muted); margin: 14px 0 26px; font-size: 17px; }
.cta-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font-size: 14px; }
.cta-facts span::before { content: "✓"; color: var(--v1); margin-right: 6px; }
.tariffs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tariffs a { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; padding: 18px 22px; color: var(--text); transition: background 0.15s; }
.tariffs a + a { border-top: 1px solid var(--line); }
.tariffs a:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.tariffs .t { font-weight: 600; }
.tariffs .t small { margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(143, 92, 245, 0.18); color: var(--v1); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.tariffs .p { font: 800 20px var(--f-sans); }
.tariffs .p span { color: var(--dim); font-size: 14px; font-weight: 600; margin-left: 3px; }
.tariffs svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s, stroke 0.15s; }
.tariffs a:hover svg { transform: translateX(3px); stroke: var(--v1); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); background: rgba(8, 8, 12, 0.6); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-brand p { color: var(--dim); font-size: 14px; margin-top: 10px; }
.foot-brand .brand-word { font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; color: var(--dim); font-size: 13px; }
.foot-legal p:first-child { max-width: 760px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-orbits { top: 190px; transform: scale(0.62); }
  .frow, .frow-flip { grid-template-columns: minmax(0, 1fr); }
  .frow-flip .fr-text { order: 0; }
  .fr-text { max-width: 640px; }
}

@media (max-width: 820px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .nav-in { gap: 12px; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: rgba(11, 11, 17, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .nav-links.is-open { display: flex; }
  .nav.is-open { background: rgba(11, 11, 17, 0.97); border-bottom-color: transparent; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-lang { margin-left: auto; }
  .burger {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 42px; height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: transparent;
  }
  .burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .brand-word { font-size: 14px; letter-spacing: 0.26em; }
  .nav-cta { display: none; }
  .menu-demo iframe { pointer-events: none; }
  .hero-note { display: none; }
  .fr-visual { aspect-ratio: 4 / 3.4; }
  .fr-visual-tall { aspect-ratio: auto; height: 380px; }
  .wpn { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; aspect-ratio: auto; }
  .wpn-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; scrollbar-width: none; }
  .wpn-tabs::-webkit-scrollbar { display: none; }
  .wpn-tabs button { flex: none; padding: 8px 12px; }
  .wpn-tabs button.is-on::before { left: 12px; right: 12px; top: auto; bottom: -8px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .hud-legend { top: auto; right: auto; left: 14px; bottom: 14px; }
  .veh-grid { grid-template-columns: minmax(0, 1fr); }
  .quick { aspect-ratio: 4 / 5; }
  .qm { left: 10px; top: 12px; transform: scale(0.82); transform-origin: top left; }
  .qm-keys { left: 10px; right: 10px; bottom: 10px; justify-content: center; flex-wrap: wrap; }
  .qm-keys button { min-width: 30px; height: 30px; font-size: 12px; }
  .cards4 { grid-template-columns: minmax(0, 1fr); }
  .c4-num { font-size: 68px; }
}

@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; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Cabinet */
.cab { min-height: 70vh; }
.cab-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(143, 92, 245, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(28, 28, 39, 0.8), rgba(19, 19, 27, 0.8));
}
.cab-label { font-weight: 600; font-size: 14px; color: var(--muted); }
.cab-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: 600 17px var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cab-input::placeholder { color: var(--dim); }
.cab-input:focus { outline: none; border-color: var(--v2); }
.cab-wide { width: 100%; }
.cab-center { text-align: center; }
.cab-muted { color: var(--dim); font-size: 14px; }
.cab-text { color: var(--muted); font-size: 15px; }
.cab-err { color: #ff8a8a; font-size: 14px; }
.cab-key { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 18px; }
.cab-copy { padding: 6px 12px; font-size: 13px; }
.cab-rows { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cab-rows > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cab-rows dt { color: var(--muted); }
.cab-rows dd { margin: 0; font-weight: 600; text-align: right; }
.cab-st--active { color: var(--ok); }
.cab-st--revoked, .cab-st--expired { color: #ff8a8a; }
/* key card and "what's new" side by side, one under the other on narrow screens */
.cab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
  align-items: start;
  gap: 24px;
}
.cab-grid--one { grid-template-columns: minmax(0, 520px); }
.cab-grid .cab-card { margin: 0; max-width: none; }
@media (max-width: 900px) {
  .cab-grid { grid-template-columns: minmax(0, 520px); }
}
.cab-news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cab-news-head h3 { font-size: 20px; }
/* HTML from the admin's rich-text editor */
.cab-notes > :first-child { margin-top: 0; }
.cab-notes > :last-child { margin-bottom: 0; }
.cab-notes p { margin: 0 0 10px; }
.cab-notes ul, .cab-notes ol { margin: 0 0 10px; padding-left: 22px; }
.cab-notes li { margin: 2px 0; }
.cab-notes strong, .cab-notes b { color: var(--text); }
.cab-notes a { color: rgb(var(--accent-rgb)); }
.cab-notes hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
