/* ===== AXION — космічно-нанотехнологічний лендинг ===== */

:root {
  --bg: #03040c;
  --bg-soft: #070a18;
  --cyan: #35e6ff;
  --violet: #8b5cff;
  --magenta: #ff4fd8;
  --gold: #ffd479;
  --text: #eaf0ff;
  --muted: #8b93b5;
  --line: rgba(120, 150, 255, 0.14);
  --glass: rgba(10, 15, 33, 0.8); /* щільніше — текст карток читається поверх яскравого графіка */
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* м'яке космічне світіння у фоні позаду 3D */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(53, 230, 255, 0.10), transparent 55%),
    radial-gradient(90% 70% at 100% 20%, rgba(139, 92, 255, 0.10), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(255, 79, 216, 0.08), transparent 55%);
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3, .eyebrow, .btn, .nav__logo, .footer__logo {
  font-family: "Space Grotesk", sans-serif;
}

/* ===== 3D полотно ===== */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* легка зернистість зверху для «фільмового» вигляду */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 3; }
/* розкидані до збірки літери-кубики виходять за край — без цього iOS/Android
   розкладали сторінку ширшою за екран (шапка стискалась, кнопка в ній не ховалась) */
html { overflow-x: hidden; }
main, .footer { overflow-x: clip; }

/* ===== Прелоадер ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5.5vh, 56px);
}
.preloader__inner {
  display: flex;
  align-items: baseline;
  line-height: 1; /* без зайвого «повітря» під літерами — відступ до кнопки задає лише gap */
}
.preloader__brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(58px, 16vw, 124px);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* розрядка додає порожнечу після «N» — компенсуємо, щоб назва стояла рівно по центру */
  background: linear-gradient(120deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  isolation: isolate;
}
/* неонове світіння в тон кнопці «Увійти»: розмита копія напису позаду */
.preloader__brand::before {
  content: "AXION";
  position: absolute;
  inset: 0;
  z-index: -1;
  color: rgba(80, 200, 255, 0.55);
  -webkit-text-fill-color: rgba(80, 200, 255, 0.55);
  filter: blur(22px);
  pointer-events: none;
}
.preloader__count {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(20px, 4vw, 34px);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  /* лічильник «висить» праворуч і не займає місця — назва завжди точно по центру */
  flex: 0 0 0;
  min-width: 0;
  position: relative;
  left: 18px;
  white-space: nowrap;
}
.preloader__stage {
  display: grid;
  justify-items: center;
  align-items: start;
}
.preloader__stage > * { grid-area: 1 / 1; }
.preloader__bar {
  width: min(280px, 60vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}
/* екран входу: лічильник і смуга гаснуть, з'являються кнопки */
.preloader__count,
.preloader__bar {
  transition: opacity 0.5s var(--ease);
}
.preloader.is-ready .preloader__count,
.preloader.is-ready .preloader__bar {
  opacity: 0;
}
.preloader__enter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease) 0.15s, transform 0.7s var(--ease) 0.15s, visibility 0.7s;
}
.preloader.is-ready .preloader__enter {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* ===== Кнопка входу: неонова рамка, що біжить по контуру, «ядро» з сонаром, відблиск ===== */
@property --enter-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.enter-btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 9px 36px 9px 9px;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translate(var(--mx), var(--my));
  box-shadow: 0 0 22px rgba(53, 230, 255, 0.22), 0 0 46px rgba(139, 92, 255, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.4s;
}
/* рамка: обертальний конічний градієнт лежить під кнопкою і визирає лише смужкою 1.5px по контуру
   (без масок — вони нестабільні на мобільних). Світіння — тінь точно по формі овалу. */
.enter-btn::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--enter-angle), var(--cyan), var(--violet), var(--magenta), rgba(53, 230, 255, 0.15) 55%, var(--cyan));
  animation: enter-spin 3.2s linear infinite;
  z-index: -2;
}
@keyframes enter-spin { to { --enter-angle: 360deg; } }
/* темна підкладка в межах овалу; всередині неї розходяться хвилі «сонара» (обрізані овалом) */
.enter-btn__fx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #070a18;
  overflow: hidden;
  z-index: -1;
}
.enter-btn__fx::before,
.enter-btn__fx::after {
  content: "";
  position: absolute;
  left: calc(9px + 22px); /* центр «ядра» */
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 1px solid rgba(53, 230, 255, 0.55);
  animation: enter-sonar 2.6s var(--ease) infinite;
}
.enter-btn__fx::after { animation-delay: 1.3s; }
@keyframes enter-sonar {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(4.2); opacity: 0; }
}

.enter-btn__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: #04060f;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(53, 230, 255, 0.4);
  transition: transform 0.4s var(--ease);
}
.enter-btn__core svg { margin-left: 2px; }

/* напис з відблиском, що пробігає */
.enter-btn__label {
  margin-right: -0.32em; /* компенсуємо розрядку після останньої літери */
  background: linear-gradient(100deg, #eaf0ff 0 40%, #7ff2ff 50%, #eaf0ff 60% 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: enter-sheen 3.2s ease-in-out infinite;
}
@keyframes enter-sheen {
  0%, 35% { background-position: 100% 0; }
  70%, 100% { background-position: 0 0; }
}

.enter-btn:hover, .enter-btn:focus-visible {
  box-shadow: 0 0 28px rgba(53, 230, 255, 0.4), 0 0 60px rgba(139, 92, 255, 0.3);
}
.enter-btn:hover .enter-btn__core { transform: scale(1.08) rotate(-8deg); }
.enter-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.enter-btn:active { transform: translate(var(--mx), var(--my)) scale(0.96); }

/* клік: світловий імпульс розлітається від кнопки, поки заставка гасне */
.enter-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 40px rgba(53, 230, 255, 0.6), inset 0 0 30px rgba(139, 92, 255, 0.5);
  pointer-events: none;
  animation: enter-burst 0.9s var(--ease) forwards;
}
@keyframes enter-burst {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(9); opacity: 0; }
}
.preloader__mute {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: color 0.25s;
}
.preloader__mute:hover { color: var(--text); }

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

/* ===== Навігація ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: padding 0.4s var(--ease), background 0.4s;
}
.nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(3, 4, 12, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
}
.nav__logo span, .footer__logo span { color: var(--cyan); }
.nav__links {
  display: flex;
  gap: 34px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }
.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* кнопка звуку: «еквалайзер», танцює коли музика грає */
.sound {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s;
}
.sound:hover { border-color: rgba(53, 230, 255, 0.5); }
.sound i {
  display: block;
  width: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--muted);
  transition: height 0.3s, background 0.3s;
}
.sound.is-on i {
  background: var(--cyan);
  animation: eq 0.9s ease-in-out infinite alternate;
}
.sound.is-on i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.sound.is-on i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.sound.is-on i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* перемикач мови EN / UA */
.lang {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
}
/* бігунок активної мови: плавно їде між EN і UA */
.lang::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 46px;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  box-shadow: 0 0 16px rgba(53, 230, 255, 0.45);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
html[lang="uk"] .lang::before { transform: translateX(46px); }
/* комета світла по контуру перемикача */
.lang::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--live-angle), transparent 0 60%, var(--cyan) 78%, var(--magenta) 92%, transparent);
  -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;
  animation: live-spin 4s linear infinite;
  pointer-events: none;
}
.lang__btn {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 100px;
  width: 46px;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s, background 0.25s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: #04060f; }

/* ===== Кнопки ===== */
.btn {
  --pad-y: 15px;
  --pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn--sm { --pad-y: 10px; --pad-x: 22px; font-size: 13px; }
.btn--lg { --pad-y: 19px; --pad-x: 46px; font-size: 17px; }
.btn--full { width: 100%; }
.btn--primary {
  background:
    linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%) 200% 0 / 250% 100% no-repeat,
    linear-gradient(120deg, var(--cyan), var(--violet));
  color: #04060f;
  box-shadow: 0 0 22px rgba(53, 230, 255, 0.18);
  animation: btn-sheen 4.5s ease-in-out infinite;
}
@keyframes btn-sheen {
  0%, 45% { background-position: 200% 0, 0 0; }
  85%, 100% { background-position: -100% 0, 0 0; }
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(53, 230, 255, 0.35);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 230, 255, 0.5);
  box-shadow: 0 8px 30px rgba(53, 230, 255, 0.12);
}

/* ===== Загальна сітка секцій ===== */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 60px);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.eyebrow.center { text-align: center; }
.section__title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section__title.center { text-align: center; margin-bottom: 60px; }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__title {
  /* невидимий заголовок лише тримає місце під слово з атомів — висота під більше слово */
  font-size: clamp(100px, 26vw, 290px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #9fb2ff 60%, rgba(159, 178, 255, 0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(53, 230, 255, 0.25));
}
.hero__sub {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
}
.hero__sub b { color: var(--text); font-weight: 500; }
/* графік проходить прямо під описом — темна плашка тримає текст читабельним */
.hero__sub {
  max-width: 640px;
  padding: 18px 26px;
  border-radius: 18px;
  background: rgba(3, 4, 12, 0.6);
  color: #b9c1dc;
}
/* текст першого екрана лежить поверх 3D-графіка — тінь тримає його читабельним */
.hero .eyebrow, .hero__sub {
  text-shadow: 0 0 2px rgba(3, 4, 12, 0.9), 0 2px 16px rgba(3, 4, 12, 0.95);
}
.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-hint i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--cyan);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { top: -50%; } 100% { top: 100%; }
}

/* ===== MANIFESTO ===== */
.manifesto { text-align: center; padding-block: clamp(120px, 20vh, 240px); }
.manifesto__line {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(34px, 7vw, 90px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.manifesto__line--accent {
  --grad: linear-gradient(120deg, var(--cyan), var(--magenta));
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto__sub {
  max-width: 620px;
  margin: 34px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
}
.step__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(53, 230, 255, 0.35);
  border-radius: 100px;
  background: rgba(53, 230, 255, 0.06);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.step__num::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 230, 255, 0.6), 0 0 10px var(--cyan); }
  50% { box-shadow: 0 0 0 6px rgba(53, 230, 255, 0), 0 0 14px var(--cyan); }
}
.step h3 { font-size: 24px; font-weight: 600; margin: 18px 0 12px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== STATS ===== */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-block: 1px solid var(--line);
  padding-block: 50px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ===== FEATURES ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  transition: translate 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card:hover {
  translate: 0 -6px;
  border-color: rgba(53, 230, 255, 0.4);
  box-shadow: 0 20px 60px rgba(53, 230, 255, 0.10);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid rgba(53, 230, 255, 0.35);
  background: linear-gradient(135deg, rgba(53, 230, 255, 0.14), rgba(139, 92, 255, 0.12));
  box-shadow: 0 0 22px rgba(53, 230, 255, 0.15), inset 0 0 14px rgba(53, 230, 255, 0.1);
  font-size: 24px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(53, 230, 255, 0.7);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.card:hover .card__icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 30px rgba(53, 230, 255, 0.35), inset 0 0 18px rgba(53, 230, 255, 0.2);
}
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== INTERACTIVE CORE ===== */
.core { min-height: 100svh; display: flex; align-items: center; }
.core__text { max-width: 460px; }
.core__text p { color: var(--muted); font-size: 17px; }
.core__text p b { color: var(--text); }
.core__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 230, 255, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(53, 230, 255, 0); }
}

/* ===== PRICING ===== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
}
.plan--featured {
  border-color: rgba(53, 230, 255, 0.5);
  background: linear-gradient(180deg, rgba(53, 230, 255, 0.08), rgba(139, 92, 255, 0.05));
  box-shadow: 0 30px 80px rgba(53, 230, 255, 0.12);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: #04060f;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
}
.plan__name { font-size: 22px; font-weight: 600; }
.plan__price {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 15px;
}
.plan__price span {
  font-size: 46px;
  font-weight: 700;
  color: var(--text);
}
.plan__price .plan__per { font-size: inherit; font-weight: inherit; color: inherit; }
.plan__list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.plan__list li {
  padding: 11px 0 11px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.plan__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ===== CTA ===== */
.cta { text-align: center; padding-block: clamp(120px, 22vh, 260px); }
.cta__title {
  font-size: clamp(40px, 9vw, 110px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
  --grad: linear-gradient(180deg, #fff, #9fb2ff);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== FOOTER ===== */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.footer__logo { font-size: 22px; font-weight: 700; letter-spacing: 0.14em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: var(--text); }
.footer__disclaimer { color: var(--muted); font-size: 12px; max-width: 720px; opacity: 0.7; }
.footer__copy { color: var(--muted); font-size: 13px; margin-top: 16px; opacity: 0.6; }

/* ===== Заглушки для ще не заповнених даних (content/project.js) ===== */
.todo {
  display: inline-block;
  padding: 0 0.35em;
  border: 1px dashed rgba(255, 181, 71, 0.7);
  border-radius: 6px;
  color: #ffb547;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
a.is-todo {
  opacity: 0.55;
  cursor: not-allowed;
  outline: 1px dashed rgba(255, 181, 71, 0.7);
  outline-offset: 3px;
}
a.is-todo:hover { transform: none; box-shadow: none; }

/* ===== Загальне: підзаголовок секції ===== */
.section__title--tight.center { margin-bottom: 20px; }
.section__lead {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}
.step p b, .card p b { color: var(--text); font-weight: 500; }

/* ===== Параметри стратегії ===== */
.params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.param {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
}
.param dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.param dd {
  margin-top: 12px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.param__note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ===== Результати (цифри — лише на Binance) ===== */
.results__box {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 64px);
  text-align: center;
  border: 1px solid rgba(53, 230, 255, 0.35);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(53, 230, 255, 0.07), rgba(139, 92, 255, 0.04)), rgba(8, 12, 28, 0.82);
  box-shadow: 0 30px 80px rgba(53, 230, 255, 0.08);
}
.results__text { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); margin-bottom: 32px; }
.results__note { margin-top: 20px; font-size: 13px; color: var(--muted); opacity: 0.85; }

/* ===== Як почати ===== */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.start__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.start__note {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Ризики ===== */
.card--risk { border-color: rgba(255, 70, 110, 0.25); }
.card--risk h3::before { content: "!"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 12px; border-radius: 50%; font-size: 14px; color: #ff466e; border: 1px solid rgba(255, 70, 110, 0.5); vertical-align: 3px; }
.card--risk:hover { border-color: rgba(255, 70, 110, 0.5); box-shadow: 0 20px 60px rgba(255, 70, 110, 0.08); }
.risks__more { margin-top: 36px; text-align: center; }
.risks__more a, .legal a { color: var(--cyan); text-underline-offset: 4px; }

/* ===== Словник ===== */
.terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.term { padding: 24px 0; border-bottom: 1px solid var(--line); }
.term dt {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.term dd { color: var(--muted); font-size: 15px; }

/* ===== FAQ ===== */
.faq__list { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 500; }
.faq__item p { padding: 0 0 26px; color: var(--muted); font-size: 15px; max-width: 700px; }

/* ===== Фінальний заклик ===== */
.cta__note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ===== Юридичні сторінки ===== */
.legal {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
  padding: 140px clamp(20px, 5vw, 40px) 80px;
}
.legal__back { display: inline-block; margin-bottom: 36px; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal__back:hover { color: var(--text); }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; line-height: 1.15; margin-bottom: 12px; }
.legal__updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: #c5cbe3; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 22px; }
.legal li + li { margin-top: 8px; }
.legal--page .nav { background: rgba(3, 4, 12, 0.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }

@media (max-width: 1100px) {
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Кнопки, що ведуть на Binance (.btn--bn) =====
   Темна капсула з неоновою рамкою, що обертається (градієнт рамки — шар border-box під
   заливкою padding-box, без масок), ліворуч «ядро» з живими свічками, праворуч стрілка ↗.
   Без логотипа Binance — щоб не створювати враження офіційного партнерства. */
@property --bn-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.btn.btn--bn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 6px 7px 6px 6px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#070a18, #070a18) padding-box,
    conic-gradient(from var(--bn-angle), var(--cyan), var(--violet), var(--magenta), rgba(53, 230, 255, 0.15) 62%, var(--cyan)) border-box;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 0 20px rgba(53, 230, 255, 0.18), 0 0 44px rgba(139, 92, 255, 0.12);
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease), box-shadow 0.4s;
  animation: bn-spin 4s linear infinite;
}
@keyframes bn-spin { to { --bn-angle: 360deg; } }
.btn.btn--bn:hover {
  transform: translate(var(--mx), calc(var(--my) - 2px));
  box-shadow: 0 0 28px rgba(53, 230, 255, 0.38), 0 0 64px rgba(139, 92, 255, 0.28);
}
.btn.btn--bn:hover { animation-duration: 1.8s; }
/* відблиск, що пробігає по капсулі */
.btn.btn--bn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.13) 50%, transparent 60%) 200% 0 / 250% 100% no-repeat;
  animation: bn-sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bn-sheen {
  0%, 40% { background-position: 200% 0; }
  80%, 100% { background-position: -100% 0; }
}

/* «ядро» з трьома свічками, що «дихають», — живий ринок */
.bn__core {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 16px rgba(53, 230, 255, 0.45);
  transition: transform 0.4s var(--ease);
}
.btn--bn:hover .bn__core { transform: rotate(-10deg) scale(1.06); }
.bn__candles {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}
.bn__candles i {
  width: 3.5px;
  height: 100%;
  border-radius: 1.5px;
  background: #04060f;
  transform-origin: bottom;
  animation: bn-candle 1.3s ease-in-out infinite alternate;
}
.bn__candles i:nth-child(1) { animation-delay: -0.2s; }
.bn__candles i:nth-child(2) { animation-delay: -0.9s; animation-duration: 1.1s; }
.bn__candles i:nth-child(3) { animation-delay: -0.5s; animation-duration: 1.5s; }
@keyframes bn-candle {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.bn__label { white-space: nowrap; }

/* стрілка ↗ у кружечку: при наведенні «вилітає» і залітає знову */
.bn__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #9ff5ff;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.btn--bn:hover .bn__arrow {
  background: rgba(53, 230, 255, 0.14);
  border-color: rgba(53, 230, 255, 0.5);
}
.btn--bn:hover .bn__arrow svg { animation: bn-arrow 0.6s var(--ease); }
@keyframes bn-arrow {
  0% { transform: translate(0, 0); }
  45% { transform: translate(140%, -140%); }
  46% { transform: translate(-140%, 140%); }
  100% { transform: translate(0, 0); }
}

/* хвиля від місця натискання */
.bn__ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 245, 255, 0.55), rgba(53, 230, 255, 0) 70%);
  pointer-events: none;
  animation: bn-ripple 0.7s var(--ease) forwards;
}
@keyframes bn-ripple {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(18); opacity: 0; }
}

/* варіанти: спокійніша (контурне ядро), велика, компактна в шапці */
.btn--ghost.btn--bn {
  background:
    linear-gradient(#070a18, #070a18) padding-box,
    conic-gradient(from var(--bn-angle), rgba(53, 230, 255, 0.7), rgba(139, 92, 255, 0.5), rgba(53, 230, 255, 0.12) 60%, rgba(53, 230, 255, 0.7)) border-box;
  box-shadow: none;
}
.btn--ghost.btn--bn .bn__core {
  background: rgba(53, 230, 255, 0.08);
  border: 1px solid rgba(53, 230, 255, 0.45);
  box-shadow: none;
}
.btn--ghost.btn--bn .bn__candles i { background: var(--cyan); }
.btn--lg.btn--bn { gap: 18px; padding: 7px 8px 7px 7px; }
.btn--lg.btn--bn .bn__core { width: 48px; height: 48px; }
.btn--lg.btn--bn .bn__candles { height: 20px; gap: 3px; }
.btn--lg.btn--bn .bn__candles i { width: 4.5px; }
.btn--lg.btn--bn .bn__arrow { width: 40px; height: 40px; }
.btn--sm.btn--bn { gap: 10px; padding: 4px 18px 4px 4px; }
.btn--sm.btn--bn .bn__core { width: 28px; height: 28px; }
.btn--sm.btn--bn .bn__candles { height: 12px; gap: 2px; }
.btn--sm.btn--bn .bn__candles i { width: 2.5px; }
/* пунктир заглушки не має зливатися з рамкою */
.btn.is-todo { outline-offset: 5px; }

/* ===== «Живі» блоки (клас .live додає main.js) =====
   ::before — «комета» світла, що біжить по контуру (видно лише рамку завдяки масці);
   крутиться тільки поки блок на екрані (.is-live), щоб не вантажити телефон.
   ::after — м'яка пляма світла, що йде за курсором (--px/--py з main.js). */
@property --live-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.live {
  position: relative;
  isolation: isolate;
}
.live::before,
.live::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
.live::before {
  inset: -1px;
  padding: 1px;
  background: conic-gradient(from var(--live-angle),
    transparent 0 58%, var(--live-c1, var(--cyan)) 74%, var(--live-c2, var(--violet)) 86%, var(--live-c3, var(--magenta)) 94%, transparent);
  -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.8s;
}
.live.is-live::before,
.live:hover::before {
  opacity: 1;
  animation: live-spin 5s linear infinite;
}
.live:hover::before { animation-duration: 2.6s; }
@keyframes live-spin { to { --live-angle: 360deg; } }
.live::after {
  inset: 0;
  background: radial-gradient(380px circle at var(--px, 50%) var(--py, 0%), rgba(53, 230, 255, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.live:hover::after { opacity: 1; }
/* ризики — червоно-фіолетова комета */
.card--risk.live { --live-c1: #ff466e; --live-c2: var(--magenta); --live-c3: var(--violet); }
/* блок «Результати» — комета яскравіша й завжди в русі, поки видно */
.results__box.live::before { padding: 1.5px; inset: -1.5px; }

/* FAQ: відкрите питання позначає градієнтна смуга, наведене — підсвічується */
.faq__item { position: relative; }
.faq__item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 12px rgba(53, 230, 255, 0.6);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.faq__item[open]::before { transform: scaleY(1); }
.faq__item summary h3 { transition: color 0.3s; }
.faq__item summary:hover h3, .faq__item[open] summary h3 { color: #9ff5ff; }

/* словник: термін підсвічується при наведенні */
.term dt { transition: color 0.3s, text-shadow 0.3s; }
.term:hover dt { color: #9ff5ff; text-shadow: 0 0 14px rgba(53, 230, 255, 0.5); }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .steps, .cards, .plans, .terms { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr; }
  .nav__right { gap: 8px; }
  .nav__right .btn--sm { --pad-x: 16px; }
  /* кнопка входу не ширша за назву AXION */
  .enter-btn { gap: 17px; padding: 7px 28px 7px 7px; font-size: 13px; }
  .enter-btn__core { width: 38px; height: 38px; }
  .enter-btn__fx::before, .enter-btn__fx::after { left: calc(7px + 19px); width: 38px; height: 38px; margin: -19px 0 0 -19px; }
}
@media (max-width: 520px) {
  /* кнопки першого екрана й «Як почати» — однакової ширини, одна під одною */
  .hero__cta, .start__cta {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin-inline: auto;
    gap: 14px;
  }
  .hero__cta .btn--bn .bn__label, .start__cta .btn--bn .bn__label { flex: 1; text-align: center; }
  .hero__sub { padding: 14px 16px; }
}
/* на телефоні чи низькому екрані підказка «гортайте» налазить на кнопки — ховаємо */
@media (max-width: 520px), (max-height: 720px) {
  .scroll-hint { display: none; }
}
@media (max-width: 420px) {
  /* на вузьких телефонах у шапці лишаємо звук + мову, CTA є в hero */
  .nav__right .btn--sm { display: none; }
}

/* Space Grotesk не має кирилиці — для української беремо схожий геометричний Manrope */
html[lang="uk"] h1, html[lang="uk"] h2, html[lang="uk"] h3,
html[lang="uk"] .eyebrow, html[lang="uk"] .btn, html[lang="uk"] .plan__price,
html[lang="uk"] .param dd, html[lang="uk"] .term dt, html[lang="uk"] .enter-btn {
  font-family: "Manrope", "Space Grotesk", sans-serif;
}

/* ===== 3D cube-assemble text ===== */
.cube-host {
  perspective: 900px;
}
/* слово з літер-кубиків: не рветься при переносі, 3D-перспектива береться від заголовка */
.cube-word {
  display: inline-block;
  white-space: nowrap;
  transform-style: preserve-3d;
}
.cube {
  display: inline-block;
}

/* DOM-назва прихована — її малюють частинки (атоми) у WebGL, місце під неї лишається */
.hero__title {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* градієнтні заголовки: переносимо градієнт на кожен кубик, щоб текст був видимим */
.hero__title .cube,
.manifesto__line--accent .cube,
.cta__title .cube {
  background: var(--grad, inherit);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* коли заголовок розбитий на кубики, градієнт малює кожна літера сама.
   Маска background-clip:text на самому заголовку з 3D-повернутими літерами в Chrome
   малює «привидів» — літери стопкою одна на одній біля лівого краю */
.manifesto__line--accent.cube-host,
.cta__title.cube-host {
  background: none;
}

/* неонове підсвічування заголовків (успадковується кубиками) — як у графіка */
.glow-text {
  text-shadow: 0 0 7px rgba(53, 230, 255, 0.45), 0 0 16px rgba(53, 230, 255, 0.24);
}

/* running shimmer on gradient text */
.manifesto__line--accent,
.stat__num,
.preloader__brand {
  background-size: 220% auto;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after, .core__hint, .glow-text, .sound.is-on i,
  .manifesto__line--accent, .stat__num, .preloader__brand,
  .enter-btn::before, .enter-btn__fx::before, .enter-btn__fx::after, .enter-btn__label,
  .live::before, .btn--primary, .step__num::before, .lang::after,
  .btn.btn--bn, .btn.btn--bn::after, .bn__candles i {
    animation: none;
  }
}
