:root {
  --bg: #05070c;
  --text: #f5f6fb;
  --muted: #a8afbd;
  --soft: rgba(231, 236, 246, 0.78);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.42);
  --violet: #a855f7;
  --violet-soft: rgba(168, 85, 247, 0.36);
  --green: #84e8b8;
  --panel: rgba(12, 16, 24, 0.68);
  --panel-strong: rgba(14, 18, 27, 0.78);
  --line: rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(34, 211, 238, 0.075), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(168, 85, 247, 0.068), transparent 30rem),
    linear-gradient(145deg, #05070c 0%, #0a0b11 48%, #030409 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  will-change: transform;
}

.noise,
.scanline,
.glitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.noise {
  opacity: 0.052;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
  transform: translateZ(0);
}

.scanline {
  height: 16vh;
  opacity: 0.038;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translate3d(0, -28vh, 0);
  animation: scan 7.5s linear infinite;
}

.glitch-overlay {
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(122, 220, 229, 0.22), transparent 18%),
    linear-gradient(90deg, transparent 0 9%, rgba(122, 220, 229, 0.16) 9.4% 9.8%, transparent 10.2% 58%, rgba(169, 139, 255, 0.12) 58.4% 58.9%, transparent 59.3%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.06) 8px, transparent 10px);
  mix-blend-mode: screen;
}

.glitch-overlay::before,
.glitch-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(122, 220, 229, 0.18) 18.2% 18.9%, transparent 19.2% 74%, rgba(255, 255, 255, 0.1) 74.2% 74.9%, transparent 75.2%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(169, 139, 255, 0.08) 19px, transparent 22px);
}

.glitch-overlay::after {
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.16), transparent 8%),
    linear-gradient(90deg, transparent, rgba(122, 220, 229, 0.18), transparent);
}

body.warping .glitch-overlay {
  animation: glitchFlash 920ms steps(2, end);
}

body.warping .glitch-overlay::before {
  animation: glitchSlice 920ms steps(2, end);
}

body.warping .glitch-overlay::after {
  animation: glitchCore 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-dot,
.cursor-ring,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(226, 242, 245, 0.78);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
  transform: translate3d(-40px, -40px, 0);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.018);
  transform: translate3d(-40px, -40px, 0);
  transition: width 170ms ease, height 170ms ease, border-color 170ms ease, background 170ms ease;
}

.trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  pointer-events: none;
  transform: translate3d(-40px, -40px, 0);
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring,
body.has-cursor .cursor-trail {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 46px;
  height: 46px;
  border-color: rgba(231, 236, 246, 0.34);
  background: rgba(255, 255, 255, 0.025);
}

body.cursor-down .cursor-ring {
  width: 26px;
  height: 26px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at center, rgba(122, 220, 229, 0.055), transparent 24rem),
    rgba(0, 0, 0, 0.84);
  transition: opacity 620ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1), visibility 720ms;
  will-change: opacity, transform;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, 0.35) 10px, transparent 12px);
  pointer-events: none;
}

.intro-field {
  position: absolute;
  inset: 7%;
  z-index: -1;
  opacity: 0.78;
  pointer-events: none;
}

.intro-field::before,
.intro-field::after {
  content: "";
  position: absolute;
  inset: 5% 14%;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(0deg);
  animation: orbitRing 14s linear infinite;
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.08);
}

.intro-field::after {
  inset: 18% 24%;
  border-color: rgba(168, 85, 247, 0.16);
  animation-duration: 18s;
  animation-direction: reverse;
  box-shadow: 0 0 52px rgba(168, 85, 247, 0.08);
}

.intro-field span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
  animation: driftNode 8s ease-in-out infinite;
}

.intro-field span:nth-child(1) {
  top: 18%;
  left: 22%;
}

.intro-field span:nth-child(2) {
  top: 28%;
  right: 19%;
  width: 6px;
  height: 6px;
  background: rgba(169, 139, 255, 0.52);
  animation-delay: -2s;
}

.intro-field span:nth-child(3) {
  right: 26%;
  bottom: 22%;
  width: 5px;
  height: 5px;
  animation-delay: -4s;
}

.intro-field span:nth-child(4) {
  bottom: 28%;
  left: 18%;
  width: 6px;
  height: 6px;
  background: rgba(132, 232, 184, 0.46);
  animation-delay: -5.5s;
}

.intro-field span:nth-child(5) {
  top: 48%;
  left: 12%;
  width: 4px;
  height: 4px;
  animation-delay: -1s;
}

.intro-field span:nth-child(6) {
  top: 50%;
  right: 12%;
  width: 4px;
  height: 4px;
  background: rgba(168, 85, 247, 0.52);
  animation-delay: -3s;
}

.intro-field span:nth-child(7) {
  top: 12%;
  left: 50%;
  width: 5px;
  height: 5px;
  animation-delay: -6s;
}

.intro-field span:nth-child(8) {
  bottom: 12%;
  left: 48%;
  width: 5px;
  height: 5px;
  background: rgba(132, 232, 184, 0.44);
  animation-delay: -7s;
}

.intro.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}

.intro-label {
  position: absolute;
  z-index: 1;
  color: rgba(231, 236, 246, 0.46);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.intro-label--top {
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
}

.intro-label--bottom {
  right: max(24px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
}

.intro-brand {
  color: rgba(245, 246, 251, 0.96);
  font-size: clamp(2.2rem, 7vw, 4.9rem);
  font-weight: 820;
  line-height: 0.88;
  text-shadow:
    0 0 28px rgba(34, 211, 238, 0.14),
    0 0 62px rgba(168, 85, 247, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.5);
}

.terminal-panel {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
    rgba(7, 9, 14, 0.76);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    0 0 62px rgba(34, 211, 238, 0.13),
    0 0 58px rgba(168, 85, 247, 0.06),
    inset 0 0 58px rgba(34, 211, 238, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px) saturate(118%);
  backdrop-filter: blur(8px) saturate(118%);
  overflow: hidden;
  contain: layout paint;
}

.terminal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.18), transparent 42%, rgba(168, 85, 247, 0.12), transparent);
  transform: translateX(-34%);
  animation: sheen 9s ease-in-out infinite;
  pointer-events: none;
}

.terminal-head,
.terminal-badges {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: rgba(231, 236, 246, 0.58);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.terminal-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 190px;
  padding: clamp(24px, 4vw, 34px);
  border: 0;
  border-radius: 0;
  color: rgba(241, 246, 250, 0.92);
  background: transparent;
  box-shadow: none;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.terminal__dot {
  display: block;
  width: 7px;
  height: 7px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(132, 232, 184, 0.48);
}

.terminal p {
  min-height: 126px;
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  line-height: 1.72;
  letter-spacing: 0;
  white-space: pre-line;
}

.terminal p::after {
  content: "█";
  display: inline-block;
  margin-left: 4px;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.72), 0 0 32px rgba(34, 211, 238, 0.24);
  animation: blink 620ms steps(2) infinite;
}

.terminal-badges {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.terminal-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  animation: badgeGlow 2.4s ease-in-out infinite;
}

.terminal-badges span:nth-child(2) {
  animation-delay: -0.7s;
}

.terminal-badges span:nth-child(3) {
  animation-delay: -1.4s;
}

.terminal-badges i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(132, 232, 184, 0.62);
}

.intro-counter {
  color: rgba(231, 236, 246, 0.72);
  font-size: 0.98rem;
  line-height: 1.3;
}

.intro-counter strong {
  color: white;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.2em;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.enter-button {
  display: inline-grid;
  grid-auto-flow: column;
  min-width: min(340px, calc(100vw - 56px));
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(168, 85, 247, 0.2)),
    rgba(12, 16, 24, 0.78);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.34),
    0 0 38px rgba(34, 211, 238, 0.12),
    0 0 40px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, background 180ms ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  will-change: transform, opacity;
}

.enter-button.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.enter-button:hover,
.enter-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(168, 85, 247, 0.22)),
    rgba(18, 25, 34, 0.9);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.38),
    0 0 62px rgba(34, 211, 238, 0.24),
    0 0 68px rgba(168, 85, 247, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translate3d(0, 0, 0) scale(1.035);
  outline: none;
}

.enter-button span {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.enter-arrow {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.intro-label--bottom {
  animation: softPulse 2.2s ease-in-out infinite;
}

.enter-button:hover .enter-arrow,
.enter-button:focus-visible .enter-arrow {
  transform: translateX(4px);
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.992);
  transition: opacity 640ms ease 260ms, transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 260ms;
  will-change: opacity, transform;
}

body.entered {
  overflow: auto;
}

body.entered .page {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body.warping #scene {
  animation: canvasWarp 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero {
  position: relative;
  display: grid;
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 372px);
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  margin: 0 auto;
  padding: 68px 0 54px;
  perspective: 1000px;
}

.hero-nebula {
  position: absolute;
  inset: 8% -10% 3%;
  z-index: -1;
  opacity: 0.72;
  background:
    radial-gradient(circle at 22% 42%, rgba(34, 211, 238, 0.12), transparent 20rem),
    radial-gradient(circle at 72% 34%, rgba(168, 85, 247, 0.13), transparent 24rem),
    conic-gradient(from 160deg at 48% 52%, transparent 0 18%, rgba(34, 211, 238, 0.075) 24%, transparent 34%, rgba(168, 85, 247, 0.07) 48%, transparent 62%);
  filter: blur(18px);
  transform: translate3d(0, 0, 0);
  animation: nebulaDrift 18s ease-in-out infinite;
  pointer-events: none;
}

.chat-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow:
    0 22px 68px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  contain: layout paint;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 9vh 12% auto 8%;
  height: 1px;
  opacity: 0.42;
  background: linear-gradient(90deg, transparent, var(--cyan-soft), rgba(255, 255, 255, 0.12), var(--violet-soft), transparent);
}

.glass {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
    var(--panel);
  box-shadow:
    0 22px 68px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px) saturate(112%);
  backdrop-filter: blur(6px) saturate(112%);
  will-change: transform;
  contain: paint;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

body.entered .hero .reveal,
.reveal.is-visible {
  animation: revealUp 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.entered .hero .signal.reveal {
  animation-delay: 180ms;
}

body.entered .hero .chat-stats.reveal {
  animation-delay: 80ms;
}

.section-heading.reveal.is-visible {
  animation-delay: 80ms;
}

.rule-card.is-visible:nth-child(1) {
  animation-delay: 140ms;
}

.rule-card.is-visible:nth-child(2) {
  animation-delay: 230ms;
}

.rule-card.is-visible:nth-child(3) {
  animation-delay: 320ms;
}

.hero__content {
  position: relative;
  max-width: 710px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  transform-style: preserve-3d;
  contain: layout paint;
}

.hero__content.glass {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.38),
    0 0 54px rgba(34, 211, 238, 0.1),
    0 0 68px rgba(168, 85, 247, 0.07),
    inset 0 0 54px rgba(34, 211, 238, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero__content::after {
  content: "";
  position: absolute;
  inset: auto 34px 30px 34px;
  height: 1px;
  opacity: 0.68;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
}

.chat-stats__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.chat-stats__meta strong {
  display: block;
  margin-bottom: 3px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
}

.chat-stats__meta p {
  margin: 0;
  color: rgba(231, 236, 246, 0.62);
  font-size: 0.86rem;
  line-height: 1.35;
}

.chat-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chat-stats__grid article {
  min-height: 78px;
  padding: 14px 15px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.055), rgba(168, 85, 247, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.chat-stats__grid span {
  display: block;
  margin-bottom: 9px;
  color: rgba(231, 236, 246, 0.56);
  font-size: 0.78rem;
}

.chat-stats__grid strong {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.55rem, 2.8vw, 2.18rem);
  line-height: 1;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.18);
}

.chat-stats__grid strong.stat-pulse {
  animation: statPulse 720ms ease;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(120deg, transparent, rgba(122, 220, 229, 0.11), transparent 46%),
    linear-gradient(260deg, transparent, rgba(169, 139, 255, 0.07), transparent 52%);
  transform: translateX(-30%);
  animation: sheen 10s ease-in-out infinite;
}

.hero__content > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(132, 232, 184, 0.92);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.9rem, 9.2vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(34, 211, 238, 0.13),
    0 0 58px rgba(168, 85, 247, 0.11);
  color: rgba(248, 250, 255, 0.98);
}

.kicker {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(245, 246, 251, 0.96);
  font-size: clamp(1.72rem, 3.9vw, 3rem);
  font-weight: 760;
  line-height: 1.05;
}

.subline {
  max-width: 580px;
  margin: 14px 0 0;
  color: rgba(34, 211, 238, 0.86);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  font-weight: 650;
  line-height: 1.45;
}

.lead {
  max-width: 570px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: clamp(1.02rem, 1.75vw, 1.12rem);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 16px;
  margin-top: 30px;
}

.telegram-button {
  position: relative;
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 8px;
  color: white;
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.15)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease, filter 190ms ease;
  will-change: transform;
}

.telegram-button::after {
  content: "";
  position: absolute;
  inset: -60% -24%;
  opacity: 0.28;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translate3d(-82%, 0, 0) rotate(12deg);
  transition: transform 480ms ease;
}

.telegram-button:hover,
.telegram-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(168, 85, 247, 0.22)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(34, 211, 238, 0.14),
    0 0 48px rgba(168, 85, 247, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.08);
  transform: translate3d(0, -3px, 0);
  outline: none;
}

.telegram-button:hover::after,
.telegram-button:focus-visible::after {
  transform: translate3d(82%, 0, 0) rotate(12deg);
}

.telegram-button__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  transition: transform 190ms ease;
}

.telegram-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.telegram-button:hover .telegram-button__icon,
.telegram-button:focus-visible .telegram-button__icon {
  transform: translate3d(3px, -2px, 0) rotate(-7deg);
}

.telegram-button span:last-child {
  position: relative;
  z-index: 1;
  font-weight: 760;
}

.cta-note {
  max-width: 250px;
  color: rgba(231, 236, 246, 0.62);
  font-size: 0.88rem;
  line-height: 1.35;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(231, 236, 246, 0.72);
  background: rgba(255, 255, 255, 0.036);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
}

.signal {
  position: relative;
  padding: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.signal::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 38%, rgba(168, 85, 247, 0.06));
  pointer-events: none;
}

.signal > * {
  position: relative;
  z-index: 1;
}

.signal-orbit {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 0;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
  animation: signalOrbit 12s linear infinite;
}

.signal-orbit::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.42);
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 22px;
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: border-color 180ms ease, background 180ms ease;
}

body.entered .scroll-cue {
  animation: revealUp 680ms cubic-bezier(0.22, 1, 0.36, 1) 360ms forwards;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  border-color: rgba(122, 220, 229, 0.28);
  background: rgba(122, 220, 229, 0.045);
  outline: none;
}

.scroll-cue span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(231, 236, 246, 0.68);
  animation: cueDot 1.65s ease-in-out infinite;
}

.signal__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(122, 220, 229, 0.86);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(132, 232, 184, 0.5);
  animation: pulse 1.9s ease-out infinite;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-card,
.rule-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.034);
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
  will-change: transform;
}

.benefit-card:hover,
.rule-card:hover {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), 0 0 28px rgba(34, 211, 238, 0.08);
  transform: translate3d(0, -4px, 0);
}

.benefit-card span,
.rule-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(34, 211, 238, 0.82);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.benefit-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
}

.benefit-card p,
.rule-card p {
  margin: 0;
  color: rgba(226, 232, 244, 0.7);
  line-height: 1.5;
}

.rules-section {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 82px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:last-child {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule-card {
  min-height: 186px;
  padding: 20px;
}

.rule-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.site-footer {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(231, 236, 246, 0.62);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: rgba(231, 236, 246, 0.72);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  outline: none;
}

@keyframes scan {
  to {
    transform: translate3d(0, 112vh, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes canvasWarp {
  0% {
    transform: translateZ(0) scale(1);
    opacity: 1;
  }
  48% {
    transform: translateZ(0) scale(1.045);
    opacity: 0.95;
  }
  100% {
    transform: translateZ(0) scale(1);
    opacity: 1;
  }
}

@keyframes sheen {
  0%,
  100% {
    transform: translateX(-36%);
  }
  50% {
    transform: translateX(14%);
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 14px rgba(132, 232, 184, 0), 0 0 12px rgba(132, 232, 184, 0.46);
  }
}

@keyframes badgeGlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    border-color: rgba(34, 211, 238, 0.22);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.08);
  }
}

@keyframes statPulse {
  0%,
  100% {
    color: white;
    text-shadow: 0 0 22px rgba(34, 211, 238, 0.18);
  }
  50% {
    color: var(--cyan);
    text-shadow: 0 0 32px rgba(34, 211, 238, 0.42), 0 0 42px rgba(168, 85, 247, 0.18);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.68;
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nebulaDrift {
  0%,
  100% {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5%, -1%, 0) scale(1.04);
  }
}

@keyframes signalOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glitchFlash {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  12% {
    opacity: 0.44;
    transform: translate3d(-10px, 0, 0);
  }
  24% {
    opacity: 0.18;
    transform: translate3d(9px, -1px, 0);
  }
  38% {
    opacity: 0.34;
    transform: translate3d(-5px, 1px, 0);
  }
  56% {
    opacity: 0.16;
    transform: translate3d(5px, 0, 0);
  }
  72% {
    opacity: 0.08;
    transform: translate3d(-2px, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes glitchSlice {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 0, 0);
  }
  18% {
    opacity: 0.72;
    clip-path: inset(12% 0 72% 0);
    transform: translate3d(14px, 0, 0);
  }
  34% {
    opacity: 0.34;
    clip-path: inset(64% 0 22% 0);
    transform: translate3d(-12px, 0, 0);
  }
  58% {
    opacity: 0.48;
    clip-path: inset(38% 0 48% 0);
    transform: translate3d(8px, 0, 0);
  }
}

@keyframes glitchCore {
  0%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
  30% {
    opacity: 0.36;
    transform: scaleX(1.08);
  }
  46% {
    opacity: 0.2;
    transform: scaleX(0.96);
  }
  62% {
    opacity: 0.28;
    transform: scaleX(1.04);
  }
}

@keyframes orbitRing {
  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes driftNode {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.18);
    opacity: 0.9;
  }
}

@keyframes cueDot {
  0%,
  100% {
    transform: translateY(-8px);
    opacity: 0.36;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.92;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    width: min(100% - 28px, 660px);
    gap: 14px;
    padding: 28px 0 22px;
  }

  .chat-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chat-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scroll-cue {
    display: none;
  }

  .signal {
    padding: 18px;
  }

  .benefit-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-card {
    padding: 14px;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .rule-card {
    min-height: auto;
  }

  .site-footer {
    width: min(100% - 28px, 660px);
    padding-bottom: 28px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.09), transparent 18rem),
      radial-gradient(circle at 100% 22%, rgba(168, 85, 247, 0.07), transparent 16rem),
      linear-gradient(160deg, #05070c 0%, #080a10 54%, #030409 100%);
  }

  .scanline {
    opacity: 0.022;
  }

  .noise {
    opacity: 0.04;
  }

  .hero-nebula {
    opacity: 0.36;
    filter: blur(4px);
    inset: 2% -26% 18%;
  }

  .glass,
  .terminal-panel {
    -webkit-backdrop-filter: blur(4px) saturate(108%);
    backdrop-filter: blur(4px) saturate(108%);
  }

  .terminal-panel {
    box-shadow:
      0 18px 58px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(34, 211, 238, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .hero {
    width: min(100% - 18px, 450px);
    gap: 10px;
    padding: 12px 0 22px;
  }

  .chat-stats {
    gap: 10px;
    padding: 12px;
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.3),
      0 0 24px rgba(34, 211, 238, 0.06);
  }

  .chat-stats__meta {
    gap: 9px;
  }

  .chat-stats__meta strong {
    font-size: 0.78rem;
  }

  .chat-stats__meta p {
    font-size: 0.75rem;
  }

  .chat-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .chat-stats__grid article {
    min-height: 60px;
    padding: 9px 8px;
  }

  .chat-stats__grid strong {
    font-size: clamp(1.05rem, 6vw, 1.28rem);
  }

  .chat-stats__grid span {
    margin-bottom: 7px;
    font-size: 0.7rem;
  }

  .intro-field {
    inset: 2%;
    opacity: 0.24;
  }

  .intro {
    gap: 9px;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .intro-label--top {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    font-size: 0.58rem;
  }

  .intro-label--bottom {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    font-size: 0.58rem;
  }

  .intro-brand {
    font-size: clamp(2rem, 13.5vw, 3.35rem);
    margin-top: 8px;
  }

  .terminal-panel {
    width: min(100%, 430px);
    border-color: rgba(34, 211, 238, 0.18);
  }

  .terminal-head,
  .terminal-badges {
    padding: 9px 11px;
    font-size: 0.6rem;
  }

  .terminal {
    min-height: 172px;
    padding: 14px;
  }

  .terminal p {
    min-height: 128px;
    font-size: clamp(0.72rem, 3.55vw, 0.86rem);
    line-height: 1.52;
  }

  .intro-counter {
    font-size: 0.82rem;
  }

  .intro-counter strong {
    font-size: 1.08em;
  }

  .hero__content {
    padding: 22px 16px 20px;
  }

  .hero__content.glass {
    box-shadow:
      0 18px 54px rgba(0, 0, 0, 0.34),
      0 0 32px rgba(34, 211, 238, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .hero__content::after {
    inset: auto 18px 22px 18px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.64rem;
  }

  h1 {
    font-size: clamp(2.62rem, 15.5vw, 4.2rem);
    line-height: 0.94;
  }

  .kicker {
    margin-top: 18px;
    font-size: clamp(1.2rem, 7.4vw, 1.72rem);
    line-height: 1.12;
  }

  .subline {
    margin-top: 11px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .lead {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .telegram-button {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
  }

  .telegram-button span:last-child {
    font-size: 0.94rem;
  }

  .cta-note {
    max-width: none;
    text-align: center;
    font-size: 0.82rem;
  }

  .hero-tags {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-tags span {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .signal {
    padding: 12px;
  }

  .signal-orbit {
    opacity: 0.46;
    width: 56px;
    height: 56px;
  }

  .signal__top {
    margin-bottom: 12px;
  }

  .benefit-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .benefit-card,
  .rule-card {
    padding: 12px;
  }

  .benefit-card strong {
    font-size: 0.96rem;
  }

  .benefit-card p,
  .rule-card p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .rules-section {
    width: min(100% - 18px, 450px);
    padding: 10px 0 42px;
  }

  .site-footer {
    width: min(100% - 20px, 440px);
    padding-bottom: 24px;
    font-size: 0.8rem;
    gap: 10px;
  }

  .site-footer nav {
    gap: 12px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .section-heading p:last-child {
    font-size: 0.94rem;
    line-height: 1.52;
  }
}

@media (max-width: 460px) {
  .intro {
    gap: 8px;
    justify-content: center;
  }

  .intro-brand {
    font-size: clamp(1.85rem, 13vw, 3rem);
  }

  .terminal {
    width: 100%;
    min-height: 164px;
    transform: none;
  }

  .terminal p {
    min-height: 122px;
    font-size: clamp(0.68rem, 3.35vw, 0.78rem);
    line-height: 1.48;
  }

  .terminal-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .terminal-badges {
    gap: 5px;
  }

  .terminal-badges span {
    padding: 4px 6px;
  }

  .enter-button {
    min-width: min(100% - 30px, 320px);
    min-height: 54px;
  }

  .intro-label--bottom {
    display: none;
  }

  .chat-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-stats__grid article {
    min-height: 56px;
    padding: 8px 6px;
  }

  .chat-stats__grid span {
    font-size: 0.64rem;
  }

  .chat-stats__grid strong {
    font-size: clamp(0.98rem, 7vw, 1.16rem);
  }
}

@media (pointer: coarse) {
  .glass,
  .hero__content,
  .signal {
    transform: none !important;
  }

  .intro-field::before,
  .intro-field::after,
  .signal-orbit {
    animation-duration: 28s;
  }

  .hero__content::before,
  .terminal-panel::before {
    animation-duration: 16s;
  }

  .telegram-button:hover,
  .telegram-button:focus-visible,
  .benefit-card:hover,
  .rule-card:hover {
    transform: none;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-trail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
