@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #02040c;
  --fg: #f4f6ff;
  --fg2: rgb(233 238 255 / 0.74);
  --fg3: rgb(233 238 255 / 0.5);
  --line: rgb(255 255 255 / 0.13);
  --card: linear-gradient(140deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.035));
  --tint: rgb(5 9 26 / 0.45);
  --hi: rgb(255 255 255 / 0.28);
  --shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  --bar: rgb(4 7 20 / 0.5);
  --word: linear-gradient(180deg, #ffffff 15%, rgb(190 210 255 / 0.78));
  --a1: 79 139 255;
  --a2: 122 92 255;
  --a3: 255 95 208;
  --ok: 52 211 153;
  --hp: 0;
  --sp: 0;
  --sl: 0;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #eef2fc;
  --fg: #0d1226;
  --fg2: rgb(20 26 52 / 0.76);
  --fg3: rgb(20 26 52 / 0.52);
  --line: rgb(20 30 70 / 0.13);
  --card: linear-gradient(140deg, rgb(255 255 255 / 0.82), rgb(255 255 255 / 0.5));
  --tint: transparent;
  --hi: rgb(255 255 255 / 0.95);
  --shadow: 0 30px 50px -30px rgb(40 60 140 / 0.38);
  --bar: rgb(244 247 255 / 0.72);
  --word: linear-gradient(180deg, #0d1226 20%, #2f3f86);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss03'; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
code { font-family: 'Cascadia Code', Consolas, ui-monospace, monospace; font-size: 0.92em; }
:focus-visible { outline: 2px solid rgb(var(--a1)); outline-offset: 3px; border-radius: 8px; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: overlay;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 45%, transparent 50%, rgb(0 0 10 / 0.62));
}
:root[data-theme='light'] .vignette { mix-blend-mode: normal; background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgb(90 110 180 / 0.22)); }
main, .footer, .topbar { position: relative; z-index: 2; }

.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin: 0; }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px;
  border: 0; border-radius: 15px; font: inherit; font-size: 15px; font-weight: 600; color: var(--fg); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--card); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line), 0 8px 20px -10px rgb(0 0 0 / 0.5);
  transition: transform 0.15s ease-out, filter 0.2s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-xl { height: 66px; padding: 0 38px; font-size: 19px; border-radius: 22px; }
.btn-primary {
  color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.3), transparent 55%), linear-gradient(135deg, rgb(var(--a1)), rgb(var(--a2)) 60%, rgb(var(--a3)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 18px 40px -14px rgb(var(--a1) / 0.85);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.45), transparent); animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 13px; cursor: pointer; color: var(--fg);
  background: var(--card); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line); transition: transform 0.15s, filter 0.2s;
}
.icon-btn:hover { filter: brightness(1.2); }
.icon-btn:active { transform: scale(0.94); }
:root[data-theme='dark'] .i-moon, :root[data-theme='light'] .i-sun { display: none; }

/* topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(4vw, 20px); transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.topbar.scrolled { background: var(--bar); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand b { color: rgb(var(--a1)); }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a { padding: 8px 14px; border-radius: 12px; text-decoration: none; font-size: 14.5px; font-weight: 550; color: var(--fg2); transition: background 0.2s, color 0.2s; }
.topbar nav a:hover { color: var(--fg); background: var(--card); }
.actions { display: flex; align-items: center; gap: 10px; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 96px 24px 72px; }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px; will-change: transform, opacity, filter;
  transform: translateY(calc(var(--hp) * -80px)) scale(calc(1 - var(--hp) * 0.08));
  opacity: calc(1 - var(--hp) * 1.6); filter: blur(calc(var(--hp) * 12px));
}
.wordmark {
  margin: 4px 0 0; font-size: clamp(76px, 17vw, 230px); font-weight: 720; letter-spacing: -0.055em; line-height: 0.92;
  background: var(--word); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 50px rgb(var(--a1) / 0.4));
}
.wordmark span { background: linear-gradient(135deg, rgb(var(--a1)), rgb(var(--a3))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0; max-width: 620px; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; color: var(--fg2); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 14px; }
.meta { margin: 0; font-size: 14px; color: var(--fg3); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--fg3);
  opacity: calc(1 - var(--hp) * 4);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--fg2); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }

/* features / stage */
.features { position: relative; }
.steps { position: relative; z-index: 3; width: min(40vw, 540px); margin-left: max(6vw, 28px); }
.step {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0.22; transform: translateX(-16px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step.active { opacity: 1; transform: none; }
.num { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: rgb(var(--a1)); }
.step h2 { margin: 0; font-size: clamp(32px, 3.8vw, 56px); font-weight: 680; letter-spacing: -0.035em; line-height: 1.04; }
.step p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.62; color: var(--fg2); }
.step code { padding: 2px 7px; border-radius: 7px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 580; color: var(--fg2);
  background: var(--card); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

.stage {
  position: fixed; z-index: 1; right: max(3vw, 20px); top: 50%; width: min(54vw, 900px); pointer-events: none; will-change: transform, opacity;
  opacity: calc(var(--sp) * (1 - var(--sl)));
  transform: perspective(1600px) translateY(-50%) translate3d(calc((1 - var(--sp)) * 20vw + var(--sl) * 10vw), 0, 0)
    rotateY(calc(-10deg + var(--sp) * 4deg + var(--ry, 0) * 3deg)) rotateX(calc(var(--rx, 0) * -2.5deg)) scale(calc(0.8 + var(--sp) * 0.2));
}
.window {
  overflow: hidden; border-radius: 24px; background: var(--tint);
  box-shadow: 0 60px 120px -30px rgb(0 0 0 / 0.75), 0 0 0 1px var(--line), 0 0 110px -24px rgb(var(--a1) / 0.55), inset 0 1px 0 var(--hi);
}
:root[data-theme='light'] .window { box-shadow: 0 50px 100px -30px rgb(40 60 140 / 0.45), 0 0 0 1px var(--line), 0 0 90px -30px rgb(var(--a1) / 0.5); }
.window-bar { display: flex; justify-content: flex-end; align-items: center; height: 30px; padding: 0 14px; background: linear-gradient(180deg, rgb(255 255 255 / 0.1), transparent); }
.w-ctl i { display: inline-block; width: 9px; height: 9px; margin-left: 18px; border: 1.5px solid var(--fg3); border-radius: 2px; }
.w-ctl i:first-child { height: 0; border-width: 1.5px 0 0; border-radius: 0; }
.shots { position: relative; aspect-ratio: 1620 / 1140; background: var(--tint); }
.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); filter: blur(12px);
  transition: opacity 0.7s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
}
.shot.on { opacity: 1; transform: none; filter: none; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.4s; }
.dots i.on { width: 30px; background: linear-gradient(90deg, rgb(var(--a1)), rgb(var(--a3))); }

/* sections */
.section { padding: 130px 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(820px, calc(100% - 48px)); }
.center { text-align: center; }
.section-title { margin: 0 0 52px; text-align: center; font-size: clamp(32px, 4.6vw, 60px); font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; }
.card, .faq details, .hash, .facts li {
  background: var(--card), var(--tint); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line), var(--shadow);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; border-radius: 28px; }
.card .num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; color: #fff; font-size: 16px; letter-spacing: 0; background: linear-gradient(135deg, rgb(var(--a1)), rgb(var(--a2))); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5); }
.card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--fg2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 22px; }
.facts b { font-size: 16px; }
.facts span { font-size: 13.5px; color: var(--fg3); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 20px; padding: 0 24px; transition: background 0.3s; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 28px 20px 0; position: relative; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: rgb(var(--a1)); transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--fg2); animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }
.hash { margin-top: 32px; padding: 22px 24px; border-radius: 22px; }
.hash-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.hash code { min-width: 0; overflow-wrap: anywhere; font-size: 13px; color: var(--fg2); user-select: all; }
.final .lead { margin: -24px auto 32px; }
.final .btn { margin-bottom: 18px; }
.footer { padding: 36px 0 44px; font-size: 13.5px; color: var(--fg3); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 28px; border-top: 1px solid var(--line); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

.not-found .nf { position: relative; z-index: 2; min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.not-found { background: radial-gradient(90% 70% at 50% 30%, rgb(var(--a1) / 0.25), transparent 70%), var(--bg); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal 0.85s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes reveal { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .hero-inner { transform: none; opacity: 1; filter: none; }
  .scroll-cue { opacity: 1; }
  .stage {
    position: sticky; top: 56px; right: auto; z-index: 4; width: auto; margin: 0 14px; padding: 10px 0 18px; opacity: 1; transform: none;
    background: linear-gradient(var(--bg) 78%, transparent);
  }
  .window { border-radius: 16px; }
  .steps { width: auto; margin: 0 22px; }
  .step { min-height: 78vh; opacity: 0.35; transform: none; }
  .cards, .facts { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px 0; }
  .hash-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .faq details, .hash, .facts li, .topbar.scrolled, .chips li { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
