/* ═══════════════════════════════════════════════════════════════
   MEZBON AI — design system
   Deep-violet cinema · brand light: #3babff → #f4d7e5
   Type: Unbounded (RU display) · Montserrat (body) · Space Grotesk (latin/num)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #08040f;
  --bg-2: #0d0718;
  --surface: rgba(244, 215, 229, 0.04);
  --line: rgba(244, 215, 229, 0.12);

  --blue: #3babff;
  --pink: #f4d7e5;
  --violet: #8b5cf6;
  --lav: #a9b4f0;

  --text: #f6f3fb;
  --muted: #b3a8c7;

  --grad: linear-gradient(115deg, var(--blue) 0%, var(--lav) 48%, var(--pink) 100%);

  --font-display: "Unbounded", "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-lat: "Space Grotesk", "Montserrat", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(59, 171, 255, 0.35); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════ WAKE · пробуждение ═══════════ */

.wake {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.wake--done { opacity: 0; visibility: hidden; pointer-events: none; }

.wake__eyes { width: 130px; }
.wake__lids {
  transform-origin: 50% 50%;
  animation: wakeBlink 2.4s var(--ease) both;
}
@keyframes wakeBlink {
  0%   { transform: scaleY(0.04); }
  22%  { transform: scaleY(0.04); }
  36%  { transform: scaleY(1); }
  52%  { transform: scaleY(1); }
  58%  { transform: scaleY(0.08); }
  68%  { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}

.wake__word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  animation: wakeWordIn 0.5s var(--ease) both 0.3s;
}
@keyframes wakeWordIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ═══════════ GLOBAL CHROME ═══════════ */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  left: 0; top: 0;
  transform: translate(-400px, -400px);
  background: radial-gradient(circle,
    rgba(59, 171, 255, 0.07) 0%,
    rgba(139, 92, 246, 0.05) 35%,
    transparent 70%);
}

.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); }
  80% { transform: translate(4%, 2%); }
}

/* ═══════════ NAV ═══════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 140;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 4, 15, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-lat); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.nav__brand img { width: 38px; height: auto; }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.25s;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(8, 4, 15, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: grid; place-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 26px; text-align: center; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 400; font-size: 1.35rem;
}
.mobile-menu nav .btn { margin-top: 14px; }

/* ═══════════ BUTTONS ═══════════ */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 15px 34px;
  border-radius: 100px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  color: #061024;
  background: var(--grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  transition: background-position 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 8px 32px -8px rgba(59, 171, 255, 0.45);
  cursor: pointer;
  will-change: transform;
}
.btn:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 44px -8px rgba(244, 215, 229, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px rgba(59, 171, 255, 0.6);
}
.btn--small { min-height: 44px; padding: 10px 22px; font-size: 0.88rem; }
.btn--full { width: 100%; }

/* ═══════════ SECTION SCAFFOLD ═══════════ */

.section { padding: clamp(96px, 13vh, 170px) clamp(20px, 5vw, 72px); }

.section__head { max-width: 1160px; margin: 0 auto clamp(48px, 7vh, 88px); }

.section__label {
  font-family: var(--font-lat); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* reveal system */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ═══════════ HERO ═══════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 90px;
  overflow: hidden;
}

#particles { position: absolute; inset: 0; z-index: 0; }

.hero__aura {
  position: absolute; z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__aura--blue {
  width: 46vw; height: 46vw; min-width: 400px; min-height: 400px;
  left: -8%; top: -12%;
  background: radial-gradient(circle, rgba(59, 171, 255, 0.22), transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
.hero__aura--violet {
  width: 52vw; height: 52vw; min-width: 460px; min-height: 460px;
  left: 50%; top: 30%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.17), transparent 65%);
  animation: breathe 11s ease-in-out infinite 1.4s;
}
.hero__aura--pink {
  width: 42vw; height: 42vw; min-width: 380px; min-height: 380px;
  right: -10%; bottom: -8%;
  background: radial-gradient(circle, rgba(244, 215, 229, 0.13), transparent 65%);
  animation: breathe 10s ease-in-out infinite 2.6s;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(1) translateX(var(--bx, 0)); }
  50% { opacity: 1; transform: scale(1.12) translateX(var(--bx, 0)); }
}
.hero__aura--violet { --bx: -50%; }

.hero__inner { position: relative; z-index: 2; max-width: 980px; }

.hero__mascot {
  position: relative;
  width: clamp(150px, 17vw, 210px);
  margin: 0 auto 34px;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero__mascot svg {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 24px 60px rgba(59, 171, 255, 0.35));
}
.mascot__blink { transform-origin: 100px 79px; }
.mascot__blink.is-blinking { animation: blink 0.18s ease-in-out; }
@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.06); }
}
.mascot__pupil { transition: transform 0.18s ease-out; }

.hero__halo {
  position: absolute; inset: -34%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(59, 171, 255, 0.12), rgba(139, 92, 246, 0.05),
    rgba(244, 215, 229, 0.12), rgba(59, 171, 255, 0.12));
  filter: blur(28px);
  animation: haloSpin 14s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-lat); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(59, 171, 255, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(59, 171, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 171, 255, 0); }
}

.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.35rem, 7vw, 5.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 30px;
}
.hero__line { display: block; }
.hero__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 560px; margin: 0 auto 42px;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--muted);
  text-wrap: balance;
}

.hero__cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 54px;
}

.hero__wave {
  display: flex; gap: 5px; justify-content: center; align-items: flex-end;
  height: 34px;
}
.hero__wave span {
  width: 3px; border-radius: 3px;
  background: var(--grad);
  animation: wave 1.3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1ms);
}
.hero__wave span:nth-child(1)  { height: 32%; animation-delay: 0s; }
.hero__wave span:nth-child(2)  { height: 55%; animation-delay: 0.1s; }
.hero__wave span:nth-child(3)  { height: 78%; animation-delay: 0.2s; }
.hero__wave span:nth-child(4)  { height: 48%; animation-delay: 0.3s; }
.hero__wave span:nth-child(5)  { height: 92%; animation-delay: 0.4s; }
.hero__wave span:nth-child(6)  { height: 60%; animation-delay: 0.5s; }
.hero__wave span:nth-child(7)  { height: 100%; animation-delay: 0.6s; }
.hero__wave span:nth-child(8)  { height: 66%; animation-delay: 0.7s; }
.hero__wave span:nth-child(9)  { height: 88%; animation-delay: 0.8s; }
.hero__wave span:nth-child(10) { height: 44%; animation-delay: 0.9s; }
.hero__wave span:nth-child(11) { height: 72%; animation-delay: 1s; }
.hero__wave span:nth-child(12) { height: 52%; animation-delay: 1.1s; }
.hero__wave span:nth-child(13) { height: 84%; animation-delay: 1.2s; }
.hero__wave span:nth-child(14) { height: 40%; animation-delay: 1.3s; }
.hero__wave span:nth-child(15) { height: 62%; animation-delay: 1.4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 44px; height: 64px;
  display: grid; place-items: center;
}
.hero__scroll-line {
  width: 1.5px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--blue));
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════ MANIFESTO ═══════════ */

.manifesto {
  padding: clamp(110px, 18vh, 200px) clamp(20px, 6vw, 80px);
  background: linear-gradient(to bottom, var(--bg), var(--bg-2) 50%, var(--bg));
}
.manifesto__text {
  max-width: 1060px; margin: 0 auto;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.manifesto__text .w {
  opacity: 0.13;
  transition: opacity 0.5s var(--ease);
}
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text .w--accent.is-lit {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════ ABILITIES ═══════════ */

.abilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1280px; margin: 0 auto;
}

.card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 34px 28px 38px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my),
    rgba(59, 171, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: rgba(59, 171, 255, 0.35); }
.card:hover::before { opacity: 1; }

.card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.28rem; margin-bottom: 12px;
}
.card p { font-size: 0.93rem; color: var(--muted); }

.card__visual {
  height: 96px; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
}

/* voice bars */
.card__visual--voice { gap: 6px; align-items: flex-end; padding-bottom: 14px; }
.card__visual--voice span {
  width: 5px; border-radius: 4px;
  background: var(--grad);
  animation: wave 1.15s ease-in-out infinite;
}
.card__visual--voice span:nth-child(1) { height: 26%; animation-delay: 0s; }
.card__visual--voice span:nth-child(2) { height: 52%; animation-delay: 0.12s; }
.card__visual--voice span:nth-child(3) { height: 80%; animation-delay: 0.24s; }
.card__visual--voice span:nth-child(4) { height: 58%; animation-delay: 0.36s; }
.card__visual--voice span:nth-child(5) { height: 88%; animation-delay: 0.48s; }
.card__visual--voice span:nth-child(6) { height: 46%; animation-delay: 0.6s; }
.card__visual--voice span:nth-child(7) { height: 68%; animation-delay: 0.72s; }

/* iris */
.iris {
  position: relative;
  width: 78px; height: 78px; border-radius: 50%;
  border: 1.5px solid rgba(59, 171, 255, 0.4);
  overflow: hidden;
}
.iris__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(59, 171, 255, 0.5) 92%, transparent 100%);
  animation: irisSpin 3.2s linear infinite;
}
@keyframes irisSpin { to { transform: rotate(360deg); } }
.iris__core {
  position: absolute; inset: 26px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 22px rgba(59, 171, 255, 0.6);
}

/* mind graph */
.card__visual--mind svg { width: 120px; height: 80px; }
.mind-link { stroke: rgba(169, 180, 240, 0.28); stroke-width: 1.2; }
.mind-node {
  fill: var(--lav);
  animation: nodePulse 2.4s ease-in-out infinite;
  animation-delay: var(--nd, 0s);
  transform-origin: center;
  transform-box: fill-box;
}
.mind-node--core { fill: var(--blue); }
@keyframes nodePulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* serve rows */
.card__visual--serve { flex-direction: column; gap: 12px; align-items: stretch; padding: 0 8px; }
.serve-row {
  display: flex; align-items: center; gap: 10px;
  animation: serveIn 3.4s var(--ease) infinite;
  animation-delay: var(--sd, 0s);
}
.serve-row i {
  flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  position: relative;
}
.serve-row i::after {
  content: "";
  position: absolute; left: 5px; top: 5.5px;
  width: 7px; height: 4px;
  border-left: 2px solid #061024; border-bottom: 2px solid #061024;
  transform: rotate(-45deg);
}
.serve-row b { height: 7px; border-radius: 4px; background: rgba(179, 168, 199, 0.3); }
.serve-row:nth-child(1) b { width: 72%; }
.serve-row:nth-child(2) b { width: 88%; }
.serve-row:nth-child(3) b { width: 58%; }
@keyframes serveIn {
  0% { opacity: 0; transform: translateX(-10px); }
  16%, 84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(6px); }
}

/* ═══════════ LANGUAGES ═══════════ */

.languages { background: var(--bg-2); }

.languages__demo {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.languages__chips { display: flex; gap: 10px; margin-bottom: 38px; }
.chip {
  min-width: 58px; min-height: 44px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-lat); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1.5px solid var(--line);
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.chip:hover { color: var(--text); border-color: rgba(59, 171, 255, 0.5); }
.chip.is-active {
  color: #061024;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 24px -6px rgba(59, 171, 255, 0.5);
}

.languages__type {
  min-height: 3.2em;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 2.4rem);
  line-height: 1.3;
}
.caret {
  display: inline-block;
  width: 3px; height: 1em;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: var(--blue);
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.languages__note { margin-top: 30px; color: var(--muted); font-size: 0.95rem; }

/* ═══════════ HOW ═══════════ */

.how__track { max-width: 1280px; margin: 0 auto; position: relative; }

.how__progress {
  position: absolute; top: 24px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.how__progress i {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  list-style: none;
  padding-top: 64px;
}
.how__step { position: relative; }
.how__step::before {
  content: "";
  position: absolute; top: -47px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  box-shadow: 0 0 16px rgba(59, 171, 255, 0.5);
}
.how__num {
  font-family: var(--font-lat); font-weight: 700; font-size: 0.95rem;
  color: var(--blue);
  letter-spacing: 0.12em;
}
.how__step h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.18rem;
  margin: 12px 0 10px;
}
.how__step p { font-size: 0.92rem; color: var(--muted); }

/* ═══════════ KIOSK ═══════════ */

.kiosk { background: var(--bg-2); overflow: hidden; }

.kiosk__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
}

.kiosk__copy .section__head { margin-bottom: 40px; }

.kiosk__specs { list-style: none; display: grid; gap: 22px; }
.kiosk__specs li {
  display: grid; gap: 3px;
  padding-left: 22px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--blue), var(--pink)) 1;
}
.kiosk__specs b { font-weight: 600; font-size: 1.02rem; }
.kiosk__specs span { color: var(--muted); font-size: 0.9rem; }

.kiosk__stage {
  position: relative;
  display: grid; place-items: center;
  padding: 30px 0 46px;
  perspective: 1100px;
}

.kiosk__device {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.kiosk__screen {
  position: relative;
  width: clamp(220px, 24vw, 280px);
  aspect-ratio: 9 / 15.5;
  border-radius: 26px;
  background: linear-gradient(160deg, #120a24 0%, #0a0518 100%);
  border: 1.5px solid rgba(169, 180, 240, 0.25);
  box-shadow:
    0 0 0 6px rgba(13, 7, 24, 0.9),
    0 30px 80px -20px rgba(59, 171, 255, 0.35),
    inset 0 0 60px rgba(139, 92, 246, 0.08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  overflow: hidden;
}
.kiosk__face { width: 55%; }
.kiosk__face-blink { transform-origin: 60px 24px; }
.kiosk__face-blink.is-blinking { animation: blink 0.18s ease-in-out; }

.kiosk__hello {
  font-family: var(--font-lat); font-weight: 500;
  font-size: 0.95rem;
  color: var(--pink);
  letter-spacing: 0.04em;
}
.kiosk__wave { display: flex; gap: 4px; align-items: flex-end; height: 20px; }
.kiosk__wave span {
  width: 3px; border-radius: 3px;
  background: var(--blue);
  animation: wave 1.2s ease-in-out infinite;
}
.kiosk__wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.kiosk__wave span:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.kiosk__wave span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.kiosk__wave span:nth-child(4) { height: 65%; animation-delay: 0.45s; }
.kiosk__wave span:nth-child(5) { height: 45%; animation-delay: 0.6s; }

.kiosk__glare {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(246, 243, 251, 0.07) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: glare 6.5s ease-in-out infinite;
}
@keyframes glare {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

.kiosk__body {
  width: 34%; height: 90px;
  margin: -2px auto 0;
  background: linear-gradient(to bottom, #150d28, #0c0618);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.kiosk__base {
  width: 62%; height: 14px;
  margin: 0 auto;
  border-radius: 100px;
  background: linear-gradient(to bottom, #1a1130, #0c0618);
}
.kiosk__shadow {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59, 171, 255, 0.22), transparent 70%);
  filter: blur(12px);
}

/* ═══════════ METRICS ═══════════ */

.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1160px; margin: 0 auto;
  text-align: center;
}
.metric__value {
  font-family: var(--font-lat); font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.metric__label { color: var(--muted); font-size: 0.92rem; }

/* ═══════════ MARQUEE ═══════════ */

.cases { overflow: hidden; }
.cases .section__head { text-align: center; }

.marquee {
  display: grid; gap: 22px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row {
  display: flex; align-items: center; gap: 38px;
  width: max-content;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  white-space: nowrap;
}
.marquee__row i {
  font-style: normal; font-size: 0.6em;
  color: var(--blue);
  opacity: 0.6;
}
.marquee__row--a { animation: marqueeA 38s linear infinite; }
.marquee__row--b {
  animation: marqueeB 46s linear infinite;
  color: var(--muted);
}
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marqueeA { to { transform: translateX(-50%); } }
@keyframes marqueeB { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ═══════════ ORIGIN ═══════════ */

.origin {
  position: relative;
  text-align: center;
  padding-top: clamp(130px, 18vh, 210px);
  padding-bottom: clamp(130px, 18vh, 210px);
  overflow: hidden;
}

.origin__rings {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  pointer-events: none;
}
.origin__rings i {
  position: absolute; left: 50%; top: 50%;
  width: min(70vw, 900px); height: min(70vw, 900px);
  border-radius: 50%;
  border: 1px solid rgba(59, 171, 255, 0.25);
  transform: translate(-50%, -50%) scale(0);
  animation: ringPing 6s var(--ease) infinite;
}
.origin__rings i:nth-child(1) { animation-delay: 0s; }
.origin__rings i:nth-child(2) { animation-delay: 1.5s; }
.origin__rings i:nth-child(3) { animation-delay: 3s; }
.origin__rings i:nth-child(4) { animation-delay: 4.5s; }
@keyframes ringPing {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
.origin__dot {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 24px rgba(59, 171, 255, 0.9);
}

.origin__coords {
  position: relative;
  font-family: var(--font-lat); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 26px;
}
.origin__title {
  position: relative;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1.2;
  display: grid; gap: 6px;
}
.origin__world {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════ CONTACT ═══════════ */

.contact { background: var(--bg-2); }

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 7vw, 100px);
  max-width: 1160px; margin: 0 auto;
  align-items: start;
}

.contact__copy .section__title { margin-bottom: 20px; }
.contact__sub { color: var(--muted); max-width: 420px; margin-bottom: 38px; }

.contact__channels { list-style: none; display: grid; gap: 14px; }
.contact__channels a {
  font-family: var(--font-lat); font-weight: 500; font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.3s, color 0.3s;
}
.contact__channels a:hover { color: var(--blue); border-color: var(--blue); }

.contact__form {
  display: grid; gap: 22px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.field { display: grid; gap: 9px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input {
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: rgba(8, 4, 15, 0.6);
  color: var(--text);
  font: inherit; font-size: 0.96rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder { color: rgba(179, 168, 199, 0.58); }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 171, 255, 0.14);
}
.contact__hint { text-align: center; font-size: 0.85rem; color: var(--muted); }

/* ═══════════ FOOTER ═══════════ */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 5vw, 72px);
}
.footer__inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; gap: 14px;
  justify-items: center; text-align: center;
}
.footer__tag { color: var(--muted); font-size: 0.95rem; }
.footer__meta { color: rgba(179, 168, 199, 0.78); font-size: 0.82rem; }

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1024px) {
  .abilities__grid { grid-template-columns: repeat(2, 1fr); }
  .kiosk__layout { grid-template-columns: 1fr; }
  .kiosk__stage { order: -1; }
  .contact__layout { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 768px) {
  .how__progress { display: none; }
  .how__steps {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 0;
    padding-left: 30px;
    border-left: 2px solid var(--line);
  }
  .how__step::before { top: 4px; left: -39px; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .abilities__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .metrics__grid { gap: 32px 16px; }
}

/* short landscape phones: compact hero, no decorative extras */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero__mascot { width: 110px; margin-bottom: 20px; }
  .hero__title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
  .hero__wave, .hero__scroll { display: none; }
  .hero__cta { margin-bottom: 0; }
}

/* ═══════════ REDUCED MOTION ═══════════ */

@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;
  }
  .wake, .cursor-glow, #particles, .grain { display: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
  .marquee__row { animation: none; }
  .hero__mascot, .hero__aura, .hero__halo { animation: none; }
}
