@font-face { font-family: "Russo One"; src: url("/assets/fonts/RussoOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Play"; src: url("/assets/fonts/Play-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Play"; src: url("/assets/fonts/Play-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-solid: #0e1428;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --dim: #a3aed0;
  --muted: #6b7699;
  --accent: #4573ff;
  --accent-2: #7da2ff;
  --cyan: #40d9ff;
  --orange: #ff8c59;
  --violet: #bf80ff;
  --good: #4df29a;
  --warn: #ffbf4d;
  --radius: 14px;
  --max: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Play", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, .display { font-family: "Russo One", "Play", sans-serif; font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 7, 15, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: "Russo One"; font-size: 19px; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--dim); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang a { padding: 4px 10px; font-size: 13px; color: var(--dim); font-weight: 700; }
.lang a.on { background: var(--accent); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 14px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh; margin-top: -64px; padding: 64px 0 56px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; cursor: crosshair; }
.hero::after { /* keeps the text readable over the 3D floor */
  content: ""; position: absolute; inset: 40% 0 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 13, 18, 0), rgba(11, 13, 18, 0.72) 55%, var(--bg));
}
.hero-fallback { position: absolute; left: 50%; top: 14%; width: min(380px, 70vw); transform: translateX(-50%); z-index: -1; opacity: 0.92; }
.hero.is-3d .hero-fallback { display: none; }
.hero-content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.hero-content a, .hero-content .btn { pointer-events: auto; }
.status { margin: 0; font-size: 14px; color: #c9b27a; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); margin: 12px 0 12px; }
.hero h1 span { color: var(--accent-2); }
.hero .lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--dim); max-width: 38em; }
.hero .cta { justify-content: center; }
.hero .facts { justify-content: center; }
.hint {
  position: absolute; right: 24px; bottom: 22px; margin: 0; font-size: 13px; color: var(--muted);
  transition: opacity .6s ease; pointer-events: none;
}
.hero:not(.is-3d) .hint, .hero.shot .hint { opacity: 0; }.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  transition: border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: rgba(200, 210, 255, 0.5); color: #fff; }
.btn.primary { background: #3d63e6; border-color: #3d63e6; }
.btn.primary:hover { background: #4a70f0; }
.btn.soon { cursor: default; opacity: 0.85; }
.btn.soon:hover { background: #3d63e6; }
.btn small { font-weight: 400; color: var(--dim); font-size: 13px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-family: "Russo One"; font-weight: 400; font-size: 22px; display: block; line-height: 1.1; }

/* ---------------------------------------------------------------- sections */
section { padding: 88px 0; position: relative; }
section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.sub { color: var(--dim); max-width: 44em; margin-bottom: 36px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--radius); padding: 22px 22px 20px;
  position: relative; overflow: hidden;
}
.card::before { content: ""; display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--c, var(--accent)); opacity: 0.8; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15.5px; margin: 0; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--dim); font-size: 15px; }

/* feature list: two columns, hairline separators */
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.spec { padding: 22px 0 20px; border-top: 1px solid var(--line); }
.spec h3 { font-family: "Play", sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.spec p { color: var(--dim); margin: 0; font-size: 16px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; color: var(--dim); font-size: 14px; }

/* scenario table */
.scen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.scen .row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.scen .name { font-weight: 700; }
.tag { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.9; }
.tag.tracking { color: var(--cyan); } .tag.clicking { color: var(--orange); } .tag.switching { color: var(--violet); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.dots i.on { background: var(--good); } .dots.d3 i.on { background: var(--warn); } .dots.d4 i.on, .dots.d5 i.on { background: #ff5966; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* rooms */
.rooms { display: flex; flex-wrap: wrap; gap: 10px; }
.room { padding: 10px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.room i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); position: relative; }
.step .when { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin: 6px 0 8px; }
.step p { color: var(--dim); font-size: 15px; margin: 0; }
.step.now { border-color: rgba(255, 191, 77, 0.4); }
.step.now .when { color: var(--warn); }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 18px; margin-bottom: 10px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--dim); display: flex; justify-content: space-between; gap: 16px; }
.list li:last-child { border-bottom: none; }
.list li b { color: var(--text); font-weight: 700; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-family: "Russo One"; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 20px 16px; color: var(--dim); }
details .a p:last-child { margin: 0; }

/* docs (SDK, privacy) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 880px; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--dim); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.doc pre { background: #070b18; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; color: #cfd8ff; line-height: 1.5; }
.doc code { color: #cfd8ff; background: rgba(110, 140, 255, 0.1); padding: 1px 6px; border-radius: 5px; }
.doc pre code { background: none; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; white-space: nowrap; }
.doc td { color: var(--dim); }
.doc td:first-child code { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--dim); }
.toc a:hover { color: #fff; border-color: var(--accent-2); }
.callout { border: 1px solid rgba(255, 191, 77, 0.35); background: rgba(255, 191, 77, 0.07); border-radius: 12px; padding: 14px 18px; color: var(--text); margin: 18px 0; }
.updated { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer h4 { font-family: "Russo One"; font-weight: 400; color: var(--text); font-size: 15px; margin: 0 0 10px; }
footer a { color: var(--dim); display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
footer .small { margin-top: 14px; font-size: 13px; line-height: 1.5; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf .code { font-family: "Russo One"; font-size: clamp(80px, 16vw, 160px); color: var(--accent-2); line-height: 1; }

/* ---------------------------------------------------------------- scroll animations */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 40; background: linear-gradient(90deg, #3d63e6, #7da2ff); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
html.js-anim .rv-item { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.rv-item { transition: opacity .8s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 70ms), transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 70ms), filter .8s ease calc(var(--i, 0) * 70ms); }
html.js-anim .rv-item.in { opacity: 1; transform: none; filter: none; }
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
html.js-anim .words .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 70ms); }
html.js-anim .words.in .w > span { transform: none; }
html.js-anim .kicker, html.js-anim .sub, html.js-anim .note { opacity: 0; transform: translateY(14px); transition: opacity .8s ease .1s, transform .8s cubic-bezier(.2,.7,.2,1) .1s; }
html.js-anim .kicker.in, html.js-anim .sub.in, html.js-anim .note.in { opacity: 1; transform: none; }
.hero-content > * { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-content > :nth-child(1) { animation-delay: .9s; } .hero-content > :nth-child(2) { animation-delay: 1.0s; }
.hero-content > :nth-child(3) { animation-delay: 1.12s; } .hero-content > :nth-child(4) { animation-delay: 1.24s; } .hero-content > :nth-child(5) { animation-delay: 1.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-content { will-change: transform, opacity; }

/* docs (SDK, FAQ, privacy): quick and light, made for reading */
html.js-anim .doc .rv-item { transform: translateY(8px); filter: none; transition: opacity .25s ease, transform .3s ease; transition-delay: 0s; }
html.js-anim .doc .words .w > span { transition-duration: .45s; transition-delay: calc(var(--i, 0) * 30ms); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .rv-item, html.js-anim .kicker, html.js-anim .sub, html.js-anim .note { opacity: 1; transform: none; filter: none; }
  html.js-anim .words .w > span { transform: none; }
  .hero-content > * { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }

}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {

  .cards { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .scen { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: rgba(5, 7, 15, 0.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang { margin-top: 12px; align-self: flex-start; }
  .hero { padding-bottom: 40px; }
  .hint { display: none; }
  section { padding: 64px 0; }
  .cards, .road, .gallery { grid-template-columns: 1fr; }
  .scen .row { grid-template-columns: 1fr auto; }
  .scen .dots { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
}
