/* arsbay.com — v4, «dark-tech constellation».
 * Правило номер один: светится только созвездие и его отражения. Всё остальное матовое.
 * Правило номер два: стекло только там, где под ним есть сцена.
 * Правило номер три: палитра эмблемы — фиолет #7d3ff2 → циан #5df3f8 на сине-чёрном. */

/* ---------- шрифты, локально, без обращений к Google ---------- */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("public/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("public/fonts/unbounded-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("public/fonts/intertight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("public/fonts/intertight-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("public/fonts/jbmono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("public/fonts/jbmono-latin.woff2") format("woff2");
  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 {
  --void: #04060c;
  --deep: #0a1220;
  --glass: rgba(255, 255, 255, 0.04);
  --edge: rgba(255, 255, 255, 0.1);
  --ice: #e8edf5;
  --mute: #7c8798;
  --core: #5df3f8;
  --pulse: #7d3ff2;

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 78rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* угол бегущего блика по рамке карточек */
@property --beam {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* атмосфера всей страницы: два холодных сияния и зерно поверх */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(125, 63, 242, 0.16), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(125, 63, 242, 0.1), transparent 60%),
    radial-gradient(46rem 40rem at 110% 75%, rgba(93, 243, 248, 0.06), transparent 60%),
    radial-gradient(70rem 50rem at 50% 110%, rgba(88, 44, 160, 0.14), transparent 65%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pulse) 10%, var(--core) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* акцентная строка заголовка: градиентное подчёркивание, которое дышит */
h1 em {
  position: relative;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: -0.14em;
  height: 0.075em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pulse), var(--core));
  box-shadow: 0 0 14px rgba(93, 243, 248, 0.45);
  transform-origin: left;
  animation: underlineflow 3.2s ease-in-out infinite;
}
@keyframes underlineflow {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.65;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

a {
  color: inherit;
}

::selection {
  background: rgba(93, 243, 248, 0.25);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--deep);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
}

/* ---------- полоса прочтения ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--core), var(--pulse));
  box-shadow: 0 0 12px rgba(93, 243, 248, 0.6);
}

/* ---------- курсор ---------- */

.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    mix-blend-mode: screen;
  }
  .cursor__dot,
  .cursor__ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-100px, -100px);
  }
  .cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--core);
    box-shadow: 0 0 10px rgba(93, 243, 248, 0.9);
  }
  .cursor__ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(93, 243, 248, 0.35);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
      border-color 0.25s;
  }
  .cursor.is-link .cursor__ring {
    width: 58px;
    height: 58px;
    border-color: rgba(125, 63, 242, 0.7);
  }
}

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s,
    padding 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--edge);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav__mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__emblem {
  height: 1.7rem;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(125, 63, 242, 0.45));
}
.nav__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--core);
  box-shadow: 0 0 10px var(--core);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}
/* Бургер. До 640px пункты меню прятались без замены — на телефоне
 * навигации не оставалось вовсе, только скролл на 8800px. */
.burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--glass);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--ice);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.9rem);
  font-size: 0.95rem;
}
.nav__links a {
  text-decoration: none;
  color: var(--mute);
  transition: color 0.25s;
}
.nav__links a:hover {
  color: var(--ice);
}
.nav__cta {
  color: var(--ice) !important;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--glass);
  transition: border-color 0.25s, box-shadow 0.25s !important;
}
.nav__cta:hover {
  border-color: rgba(93, 243, 248, 0.5);
  box-shadow: 0 0 18px rgba(93, 243, 248, 0.18);
}
.lang {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mute);
  background: none;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.lang:hover {
  color: var(--ice);
  border-color: rgba(93, 243, 248, 0.5);
}

/* ---------- общие атомы ---------- */

.kicker {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--core);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--core), transparent);
}

.lede {
  color: var(--mute);
  max-width: 38rem; /* 44rem давало 84 знака в строке; норма — 45-75 */
  margin: 1.5rem 0 0;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--edge);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-core,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  will-change: transform;
}
.btn-core {
  background: linear-gradient(110deg, var(--core), var(--pulse));
  color: #04070c;
  font-weight: 600;
  box-shadow: 0 0 26px rgba(93, 243, 248, 0.28), 0 0 60px rgba(125, 63, 242, 0.14);
  transition: box-shadow 0.3s, filter 0.3s;
}
.btn-core:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 34px rgba(93, 243, 248, 0.42), 0 0 80px rgba(125, 63, 242, 0.22);
}
.btn-ghost {
  border: 1px solid var(--edge);
  color: var(--ice);
  background: var(--glass);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(125, 63, 242, 0.55);
  box-shadow: 0 0 22px rgba(125, 63, 242, 0.16);
}

/* ---------- появление при скролле ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .module.reveal[data-side="right"] {
  transform: translate(46px, 30px);
}
.js .module.reveal[data-side="left"] {
  transform: translate(-46px, 30px);
}
.js .module.reveal.in {
  transform: none;
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 7rem var(--pad) 5rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* перспективный пол — намёк на 3D-пространство под ядром */
.hero__grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -4%;
  height: 46%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 63, 242, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 63, 242, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  animation: gridrun 3.2s linear infinite;
}
@keyframes gridrun {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 56px;
  }
}
.hero__glow {
  position: absolute;
  left: 62%;
  top: 50%;
  width: 44rem;
  height: 44rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(93, 243, 248, 0.13), rgba(125, 63, 242, 0.07) 45%, transparent 70%);
}
.hero__hud {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(124, 135, 152, 0.75);
  pointer-events: none;
}
.hero__hud--tl {
  top: 5.2rem;
  left: var(--pad);
}
.hero__hud--tr {
  top: 5.2rem;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(93, 243, 248, 0.8);
}
.hero__hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--core);
  box-shadow: 0 0 8px var(--core);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero__hud--bl {
  bottom: 2.2rem;
  left: var(--pad);
}
.hero__panel {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}
.hero__panel h1 {
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
}
.hero__lede {
  color: var(--mute);
  margin: 1.75rem 0 0;
  max-width: 32rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* чипы со своими цифрами: 12 проектов · 6 модулей · 3 сервера */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.chip b {
  font-weight: 400;
  color: var(--core);
  text-shadow: 0 0 12px rgba(93, 243, 248, 0.5);
}

/* ---------- терминал в первом экране ---------- */

.term {
  position: relative;
  z-index: 2;
  flex: 0 1 24rem;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(125, 63, 242, 0.08);
  overflow: hidden;
  animation: termfloat 7s ease-in-out infinite;
}
@keyframes termfloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.02);
}
.term__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.term__bar i:first-child {
  background: rgba(125, 63, 242, 0.55);
}
.term__bar i:nth-child(2) {
  background: rgba(93, 243, 248, 0.45);
}
.term__bar span {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.term__body {
  padding: 1rem 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.9;
}
.term__line {
  margin: 0;
  color: var(--ice);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.55em;
}
.term__line--out {
  color: var(--mute);
}
.term__line--ok {
  color: var(--core);
}
.term__prompt {
  color: var(--pulse);
  margin-right: 0.5rem;
}
.term__caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--core);
  box-shadow: 0 0 10px rgba(93, 243, 248, 0.7);
  animation: caretblink 1s steps(2, start) infinite;
}
@keyframes caretblink {
  50% {
    opacity: 0;
  }
}
/* до старта печати строка приглашения спрятана — её покажет main.js */
.js .term__line--idle {
  visibility: hidden;
}
.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  animation: hintfloat 2.6s ease-in-out infinite;
}
@keyframes hintfloat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* ---------- бегущая строка ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.015);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--mute);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- модули ---------- */

.modules {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.modules__intro h2,
.studio__intro h2,
.registry__intro h2,
.price__intro h2,
.how__intro h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  max-width: 46rem;
}
.modules__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.module {
  position: relative;
  padding: 2rem 2rem 1.75rem;
  overflow: hidden;
}
.module[data-side="left"] {
  margin-top: 3rem;
}
/* бегущий блик по рамке при наведении */
.module::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(
    from var(--beam),
    transparent 0 68%,
    var(--core) 84%,
    var(--pulse) 92%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
  animation: beam 4.5s linear infinite;
  pointer-events: none;
}
.module:hover::before {
  opacity: 1;
}
@keyframes beam {
  to {
    --beam: 360deg;
  }
}
.module__no {
  position: absolute;
  top: 0.4rem;
  right: 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.module__icon {
  display: inline-flex;
  width: 2.9rem;
  height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(93, 243, 248, 0.06);
  color: var(--core);
  margin-bottom: 1.25rem;
}
.module__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.module h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.module p {
  margin: 0;
  color: var(--mute);
}
.module__proof {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px dashed var(--edge);
  font-size: 0.92rem;
}
.module__proof a {
  color: var(--core);
  text-decoration: none;
  border-bottom: 1px solid rgba(93, 243, 248, 0.35);
  transition: border-color 0.25s, text-shadow 0.25s;
}
.module__proof a:hover {
  border-bottom-color: var(--core);
  text-shadow: 0 0 14px rgba(93, 243, 248, 0.5);
}
.module__proof span {
  display: block;
  margin-top: 0.25rem;
  color: var(--mute);
  font-size: 0.86rem;
}

/* ---------- студия генерации ---------- */

.studio {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.studio__glow {
  position: absolute;
  top: 8%;
  right: -12%;
  width: 36rem;
  height: 36rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(125, 63, 242, 0.12), transparent 65%);
}
.studio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  perspective: 1200px;
}
.shot {
  padding: 1rem 1rem 1.25rem;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s;
  will-change: transform;
}
.shot:hover {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(93, 243, 248, 0.1);
}
.shot__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform: translateZ(30px);
}
.shot__media img,
.shot__media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 567;
  object-fit: cover;
}
/* статичные кадры тоже живые: медленный дрейф и зум */
.shot__media--drift img {
  animation: kenburns 16s ease-in-out infinite alternate;
}
.shot:nth-child(4) .shot__media--drift img {
  animation-duration: 20s;
  animation-delay: -7s;
}
@keyframes kenburns {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.14) translate(-2.5%, -2%);
  }
}
.shot__shine {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.shot:hover .shot__shine {
  left: 120%;
}
.shot__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.68);
  border: 1px solid var(--edge);
  color: var(--core);
  backdrop-filter: blur(6px);
}
.shot h3 {
  font-size: 1.02rem;
  margin: 1rem 0 0.25rem;
  transform: translateZ(20px);
}
.shot__stack {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mute);
  transform: translateZ(14px);
}
.studio__note {
  margin: 2rem 0 0;
  color: var(--mute);
  font-size: 0.92rem;
  max-width: 40rem;
}

/* ---------- цифры ---------- */

.domain {
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background:
    radial-gradient(50rem 26rem at 20% 50%, rgba(93, 243, 248, 0.05), transparent 60%),
    rgba(255, 255, 255, 0.012);
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad);
}
.domain__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.domain h2 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}
.tick {
  display: inline-block;
  min-width: 2ch;
  background: linear-gradient(100deg, var(--core), var(--pulse));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.domain__text {
  color: var(--mute);
  margin: 0 0 1.5rem;
}
.domain__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.domain__list li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  border-bottom: 1px dashed var(--edge);
}
.domain__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid var(--core);
  box-shadow: 0 0 8px rgba(93, 243, 248, 0.45) inset;
}

/* ---------- реестр ---------- */

.registry {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.filter {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mute);
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.filter i {
  font-style: normal;
  opacity: 0.55;
  margin-left: 0.25rem;
}
.filter:hover {
  color: var(--ice);
  border-color: rgba(93, 243, 248, 0.4);
}
.filter.is-on {
  color: #04070c;
  background: linear-gradient(110deg, var(--core), var(--pulse));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(93, 243, 248, 0.3);
}
.filters__status {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--mute);
  min-height: 1.2em;
  margin: 0.75rem 0 0;
}
.registry__scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
}
.registry table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.registry th {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--edge);
}
.registry td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  font-size: 0.95rem;
}
.registry tbody tr {
  transition: background 0.25s, opacity 0.35s, transform 0.35s;
}
.registry tbody tr:hover {
  background: rgba(93, 243, 248, 0.045);
}
.registry tbody tr[hidden] {
  display: none;
}
.t-name {
  font-weight: 600;
  white-space: nowrap;
}
.t-stack {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.state--live {
  color: #6df0c0;
}
.state--live::before {
  background: #6df0c0;
  box-shadow: 0 0 8px #6df0c0;
  animation: pulse 2s ease-in-out infinite;
}
.state--wip {
  color: var(--core);
}
.state--wip::before {
  background: var(--core);
  box-shadow: 0 0 8px var(--core);
}
.state--done {
  color: var(--mute);
}
.state--done::before {
  background: var(--mute);
}

/* ---------- как работаем ---------- */

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.how__steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.how__steps li {
  position: relative;
  padding-top: 1.5rem;
}
.how__steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 1.2rem;
  height: 1px;
  background: var(--edge);
}
.how__steps li::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--core);
  box-shadow: 0 0 10px rgba(93, 243, 248, 0.5);
}
.how__steps span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--core);
  letter-spacing: 0.2em;
}
.how__steps h3 {
  font-size: 1.12rem;
  margin: 0.5rem 0 0.5rem;
}
.how__steps p {
  margin: 0;
  color: var(--mute);
  font-size: 0.93rem;
}
.how__note {
  margin: 2.5rem 0 0;
  color: var(--mute);
  font-size: 0.95rem;
  border-left: 2px solid var(--pulse);
  padding-left: 1rem;
  max-width: 40rem;
}

/* ---------- цены ---------- */

.price {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}
.tier {
  position: relative;
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.tier:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 34px rgba(93, 243, 248, 0.09);
}
.tier--mid {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(20, 26, 38, 0.92), rgba(14, 17, 25, 0.92)) padding-box,
    linear-gradient(140deg, var(--core), var(--pulse)) border-box;
  box-shadow: 0 0 34px rgba(125, 63, 242, 0.14);
}
.tier h3 {
  font-size: 1.25rem;
}
.tier__rate {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.7rem;
  margin: 1rem 0 1.25rem;
  background: linear-gradient(100deg, var(--core), var(--pulse));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tier li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--mute);
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.tier li:last-child {
  border-bottom: 0;
}
.tier li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--core);
}

/* ---------- контакт ---------- */

.contact {
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.contact__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.4rem, 4vw, 4rem);
  overflow: hidden;
}
.contact__inner h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
}
.contact__inner .lede {
  margin-left: auto;
  margin-right: auto;
}
/* три орбиты с летящими частицами — эхо ядра из первого экрана */
.contact__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact__orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(93, 243, 248, 0.1);
  animation: orbitspin linear infinite;
}
.contact__orbit i:nth-child(1) {
  width: 26rem;
  height: 26rem;
  margin: -13rem 0 0 -13rem;
  animation-duration: 26s;
}
.contact__orbit i:nth-child(2) {
  width: 38rem;
  height: 38rem;
  margin: -19rem 0 0 -19rem;
  border-color: rgba(125, 63, 242, 0.09);
  animation-duration: 40s;
  animation-direction: reverse;
}
.contact__orbit i:nth-child(3) {
  width: 52rem;
  height: 52rem;
  margin: -26rem 0 0 -26rem;
  animation-duration: 55s;
}
.contact__orbit i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--core);
  box-shadow: 0 0 12px var(--core);
}
.contact__orbit i:nth-child(2)::after {
  background: var(--pulse);
  box-shadow: 0 0 12px var(--pulse);
}
@keyframes orbitspin {
  to {
    transform: rotate(360deg);
  }
}
.contact__links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ---------- подвал ---------- */

.foot {
  border-top: 1px solid var(--edge);
  background:
    radial-gradient(40rem 14rem at 50% 120%, rgba(125, 63, 242, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.012);
}
.foot__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  padding: clamp(2.6rem, 5vw, 4rem) var(--pad);
}
.foot__brand .nav__mark {
  font-size: 1.1rem;
}
.foot__brand p {
  margin: 1rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
  max-width: 16rem;
}
.foot__col h4 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--core);
}
.foot__col a {
  display: block;
  width: fit-content;
  text-decoration: none;
  color: var(--mute);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  transition: color 0.25s, text-shadow 0.25s;
}
.foot__col a:hover {
  color: var(--ice);
  text-shadow: 0 0 14px rgba(93, 243, 248, 0.4);
}
.foot__status p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--edge);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mute);
}
.foot__status p:last-child {
  border-bottom: 0;
}
.foot__status i {
  font-style: normal;
  letter-spacing: 0.12em;
  color: var(--ice);
}
.foot__status i.ok {
  color: #6df0c0;
  text-shadow: 0 0 10px rgba(109, 240, 192, 0.5);
}
.foot__status i.ok::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #6df0c0;
  box-shadow: 0 0 8px #6df0c0;
  animation: pulse 2s ease-in-out infinite;
}
.foot__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.2rem var(--pad) 1.6rem;
  border-top: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mute);
}

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .studio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how__steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
  .foot__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .modules__grid,
  .tiers,
  .domain__inner {
    grid-template-columns: 1fr;
  }
  .module[data-side="left"] {
    margin-top: 0;
  }
  /* мобильный hero: созвездие сверху, под ним заголовок и терминал */
  .hero {
    display: block;
    padding: 0 var(--pad) 5rem;
  }
  .hero__canvas {
    inset: 0 0 auto 0;
    height: 62svh;
  }
  .hero__glow {
    left: 50%;
    top: 31%;
  }
  .hero__panel {
    margin-top: 42svh;
  }
  .term {
    margin-top: 2rem;
  }
  .hero__hud--tl,
  .hero__hud--bl {
    display: none;
  }
}
@media (max-width: 640px) {
  .burger {
    display: block;
    order: 2;
  }
  /* Пункты уезжают в выпадающую панель под шапкой, а не исчезают. */
  .nav__links {
    position: absolute;
    top: 100%;
    right: var(--pad);
    left: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--edge);
    border-radius: 18px;
    background: rgba(7, 8, 11, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s, transform 0.24s var(--ease-out);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a,
  .nav__links .lang {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1rem;
  }
  .nav__links .nav__cta,
  .nav__links .lang {
    justify-content: center;
    margin-top: 0.5rem;
  }
  .studio__grid,
  .how__steps {
    grid-template-columns: 1fr;
  }
  .hero__panel {
    max-width: none;
  }
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- меньше движения ---------- */

@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;
  }
  .marquee__track {
    animation: none;
  }
  .cursor {
    display: none !important;
  }
}
