:root {
  --font-display: "Onest", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --acid: #c5ff3e;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
}

/* На десктопе прячем системный курсор */
@media (hover: hover) and (pointer: fine) {
  html.cursor-active, html.cursor-active * { cursor: none !important; }
}

/* ── HERO ───────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  user-select: none;
}
#bend-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#bend-container canvas { display: block; }
@media (min-width: 640px) {
  #bend-container { transform: translateY(7vh); }
}

/* ── Подпись внизу слева (typewriter) ───────────────────────────────── */
.hero-tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 50;
  padding: 0 1rem;
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero-tagline { bottom: 2.25rem; padding: 0 1.5rem; }
}
.hero-tagline__inner {
  display: none;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(13px, 2.05vw, 21px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.hero-tagline__links { display: none; }
@media (max-width: 639px) {
  .hero-tagline__inner { display: none; }
  .hero-tagline__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    pointer-events: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }
  .hero-tagline__links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
  }
  .hero-tagline__links a:hover,
  .hero-tagline__links a:active { color: var(--acid); }
}
.hero-tagline__caret {
  display: inline-block;
  width: 0.42em;
  height: 0.95em;
  margin-left: 0.18em;
  background: var(--acid);
  vertical-align: -0.1em;
  animation: tagline-caret 1s steps(1) infinite;
}
@keyframes tagline-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── Навигация ──────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.5rem 1rem 0.75rem;
}
@media (min-width: 640px) {
  nav { padding: 2.5rem 1.5rem 1rem; }
}
.nav-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: -0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
@media (min-width: 1024px) { .nav-menu { gap: 1.3rem; } }
.nav-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.75rem 0.6rem;
}
.nav-menu a:hover { color: var(--acid); }
@media (max-width: 639px) { .nav-menu { display: none; } }

.nav-logo img {
  height: 2.05rem;
  width: auto;
  display: block;
  animation: acid-glow-pulse 3.4s ease-in-out infinite;
  will-change: filter;
}
@media (min-width: 640px) { .nav-logo img { height: 2.6rem; } }

@keyframes acid-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 0.6px rgba(197,255,62,0.55)) drop-shadow(0 0 1.2px rgba(197,255,62,0.35));
  }
  50% {
    filter: drop-shadow(0 0 1.4px rgba(197,255,62,0.95)) drop-shadow(0 0 3px rgba(197,255,62,0.55));
  }
}

/* ── Лайм-шлейф (goo) ───────────────────────────────────────────────── */
#liquid {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  filter: url(#liquid-cursor-goo);
  mix-blend-mode: screen;
}
#liquid span {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
}

/* ── Кастомный курсор ───────────────────────────────────────────────── */
#cursor-dot, #cursor-ring {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
}
#cursor-dot {
  z-index: 9999;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 200ms ease;
}
#cursor-ring {
  z-index: 9998;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 200ms ease;
}
@media (hover: none) and (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── Кнопка гироскопа (iOS) ─────────────────────────────────────────── */
#gyro-btn {
  position: fixed;
  bottom: 1.5rem; right: 1rem;
  z-index: 9999;
  background: var(--acid);
  color: #000;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.75rem 1rem;
  box-shadow: 0 0 24px rgba(197,255,62,0.4);
  cursor: pointer;
}
