:root {
  --bg: #0a0d11;
  --bg-2: #10151b;
  --text: #eef1f4;
  --muted: #98a3af;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #c3e29b;
  --accent-ink: #14200c;
  --gl: #5f7f96;
  --vk: #c3e29b;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 13, 17, 0.85), rgba(10, 13, 17, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { border-radius: 8px; }
.masthead nav { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16, 21, 27, 0.7); backdrop-filter: blur(14px); }
.masthead nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); padding: 7px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.masthead nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.soon { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: 110px var(--gutter) 70px;
  background:
    radial-gradient(70% 60% at 78% 45%, rgba(67, 112, 214, 0.28), transparent 70%),
    radial-gradient(40% 40% at 92% 100%, rgba(195, 226, 155, 0.12), transparent 70%),
    var(--bg);
}
.hero-copy { position: relative; z-index: 3; width: min(520px, 100%); }

.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.lede { margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: #b4beca; max-width: 46ch; }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 30px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); width: fit-content; }
.stat b { display: block; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.45em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.stats-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; color: #6f7a86; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 650; font-size: 16px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.ghost { color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }
.req { margin: 16px 0 0; font-size: 13px; color: #75808c; }

/* the tilted launcher */
.stage {
  position: absolute; z-index: 1;
  left: 47vw; top: 50%; width: min(1120px, 92vw);
  transform: translateY(-50%);
  perspective: 2000px; perspective-origin: 0% 50%;
  pointer-events: none;
  --p: 0;
}
.rig {
  position: relative; transform-style: preserve-3d;
  transform:
    rotateY(calc(-26deg + var(--p) * 12deg))
    rotateX(calc(9deg - var(--p) * 5deg))
    rotateZ(calc(2.5deg - var(--p) * 1.5deg))
    translateY(calc(var(--p) * -30px));
  transform-origin: 0% 50%;
  will-change: transform;
}
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 70px 140px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 120px rgba(67, 112, 214, 0.25);
  background: #111;
}
.shot img { width: 100%; height: auto; }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}
.shot.back { position: absolute; width: 78%; left: 14%; top: 17%; transform: translateZ(-170px); opacity: 0.9; filter: saturate(0.9) brightness(0.72); }
.shot.front { transform: translateZ(0); }

.fade-left { position: absolute; z-index: 2; inset: 0 auto 0 0; width: min(100vw, calc(var(--gutter) + 740px)); background: linear-gradient(to right, var(--bg) 0%, rgba(10, 13, 17, 0.96) 52%, rgba(10, 13, 17, 0.84) 72%, rgba(10, 13, 17, 0.35) 88%, rgba(10, 13, 17, 0) 100%); pointer-events: none; }
.fade-bottom { position: absolute; z-index: 2; inset: auto 0 0 0; height: 140px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }

/* ---------- panels ---------- */
.panel {
  position: relative; overflow: hidden;
  padding: clamp(70px, 10vw, 140px) var(--gutter);
  min-height: 86svh; display: flex; align-items: center;
  border-top: 1px solid var(--line);
}
.panel .copy { position: relative; z-index: 3; width: min(500px, 100%); text-shadow: 0 1px 24px rgba(10, 13, 17, 0.9); }
.panel.reverse { justify-content: flex-end; }
.panel h2 { margin: 0; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.panel .sub { margin: 18px 0 0; color: #b4beca; max-width: 44ch; }
.panel ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.panel li { position: relative; padding-left: 22px; color: #cfd6dd; font-size: 16px; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 8px; height: 8px; background: var(--accent); }
.panel li b { color: var(--text); font-weight: 650; }

.panel .stage { left: auto; right: -14vw; width: min(980px, 88vw); }
.panel.reverse .stage { right: auto; left: -14vw; perspective-origin: 100% 50%; }
.panel.reverse .rig { transform-origin: 100% 50%;
  transform:
    rotateY(calc(26deg - var(--p) * 12deg))
    rotateX(calc(8deg - var(--p) * 4deg))
    rotateZ(calc(-2.5deg + var(--p) * 1.5deg)); }

.panel.reverse .fade-left { inset: 0 0 0 auto; background: linear-gradient(to left, var(--bg) 0%, rgba(10, 13, 17, 0.96) 52%, rgba(10, 13, 17, 0.84) 72%, rgba(10, 13, 17, 0.35) 88%, rgba(10, 13, 17, 0) 100%); }

/* ---------- benchmark ---------- */
.bench { margin-top: 30px; display: grid; gap: 22px; }
.bench h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; margin: 8px 0; font-size: 14px; color: var(--muted); }
.track { position: relative; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.bar { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-weight: 700; font-size: 14px; color: #0b1218; font-variant-numeric: tabular-nums; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bench.in .bar { transform: scaleX(1); }
.bar.gl { background: var(--gl); }
.bar.vk { background: var(--vk); }
.method { margin-top: 18px; font-size: 12.5px; color: #75808c; }

/* ---------- faq + footer ---------- */
.faq { padding: clamp(70px, 9vw, 120px) var(--gutter); border-top: 1px solid var(--line); background: var(--bg-2); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq h2 { margin: 0 0 28px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; font-weight: 800; }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }

footer { padding: 40px var(--gutter) 56px; color: #75808c; font-size: 13px; line-height: 1.6; text-align: center; }
footer p { margin: 0 auto 6px; max-width: 70ch; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .masthead { background: rgba(10, 13, 17, 0.88); backdrop-filter: blur(14px); }
  .masthead nav { display: none; }
  .hero { display: block; padding-top: 96px; padding-bottom: 0; min-height: 0; }
  .hero-copy { width: 100%; }
  .stage, .panel .stage, .panel.reverse .stage { position: relative; left: auto; right: auto; top: auto; transform: none; width: 150%; margin: 40px 0 0 -4%; perspective-origin: 0% 50%; }
  .panel.reverse .stage { margin: 40px 0 0 -46%; }
  .fade-left { display: none; }
  .panel, .panel.reverse { display: block; min-height: 0; padding-bottom: 0; }
  .panel .copy { width: 100%; }
  .panel { padding-bottom: 20px; }
  .stats { grid-template-columns: repeat(3, auto); gap: 8px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rig { transform: rotateY(-22deg) rotateX(7deg) rotateZ(2deg) !important; }
  .panel.reverse .rig { transform: rotateY(22deg) rotateX(6deg) rotateZ(-2deg) !important; }
  .bar { transform: scaleX(1); transition: none; }
}

/* ---------- privacy and terms ---------- */
.docpage .masthead { background: rgba(10, 13, 17, 0.9); backdrop-filter: blur(14px); }
.doc { max-width: 760px; margin: 0 auto; padding: 130px var(--gutter) 70px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; margin: 0; }
.doc .updated { margin: 8px 0 0; color: #75808c; font-size: 14px; }
.doc .lead { margin: 28px 0 0; font-size: 19px; color: #d6dde4; }
.doc h2 { margin: 44px 0 8px; font-size: 22px; letter-spacing: -0.015em; }
.doc p, .doc li { color: #b4beca; }
.doc ul { padding-left: 20px; display: grid; gap: 10px; }
.doc code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; color: #dfe6ec; }
.doc a, footer a { color: var(--accent); }
.doc b { color: var(--text); }
