/* ==========================================================================
   Paradox Club — Landing (cyberpunk + art-deco + holograms)
   Inspired by /Черновик, adapted to brand palette.
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* landing = один экран, без прокрутки */
}

body {
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow: hidden;
}

/* =========================================================
   Interactive guide (assistant + steps)
   ========================================================= */
.guide {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: none;
  pointer-events: none;
}

.guide.active {
  display: block;
  pointer-events: auto;
}

.guideOverlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg-overlay) 70%, transparent);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.assistantFace {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 230px;
  z-index: 2;
  color: rgba(168, 85, 247, 0.95);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.assistantFace img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(236, 72, 153, 0.45)) drop-shadow(0 0 40px rgba(34, 211, 238, 0.35))
    drop-shadow(0 0 60px rgba(168, 85, 247, 0.3)) brightness(1.15) contrast(1.1);
  animation: headFloatImg 4s ease-in-out infinite;
}

.faceEye {
  position: absolute;
  top: 45.3%;
  width: 24px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(120, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
  transform-origin: center;
  animation: eyeBlink 6.2s infinite;
}

.faceEye::after {
  content: "";
  position: absolute;
  inset: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.eye-left {
  left: 37.7%;
}
.eye-right {
  left: 57.7%;
  animation-delay: 0.2s;
}

.faceMouth {
  position: absolute;
  top: 68.75%;
  left: 50%;
  width: 36px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(236, 72, 153, 0.8);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.35);
  transform-origin: center;
  transform: translateX(-50%);
}

.assistantFace.speaking .faceMouth {
  animation: mouthTalk 0.6s ease-in-out;
}

@keyframes eyeBlink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.15);
  }
  96% {
    transform: scaleY(1);
  }
}

@keyframes mouthTalk {
  0% {
    transform: scaleY(1);
  }
  35% {
    transform: scaleY(1.6);
  }
  70% {
    transform: scaleY(0.9);
  }
  100% {
    transform: scaleY(1);
  }
}

.faceScanlines {
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(120, 255, 255, 0.15) 3px,
    rgba(120, 255, 255, 0.15) 4px
  );
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: scanMove 2.6s linear infinite;
}

.faceGlow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.2) 40%, transparent 70%);
  opacity: 1;
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
  filter: blur(20px);
}

@keyframes headFloatImg {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes scanMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 18px;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

.speechBubble {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 320px), calc(-50% - 20px)) translate3d(0, 16px, 0) scale(0.96);
  width: min(480px, calc(100vw - 60px));
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-primary) 65%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.speechBubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 32px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--bg-primary) 65%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
}

.guide.active .speechBubble {
  opacity: 1;
  transform: translate(calc(-50% - 320px), calc(-50% - 20px)) scale(1);
}

.speechClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.speechClose:hover {
  border-color: color-mix(in srgb, var(--text-primary) 28%, transparent);
  background: color-mix(in srgb, var(--text-primary) 14%, transparent);
  transform: scale(1.05);
}

.speechText {
  padding: 24px 24px 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.speechText strong {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.speechActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 24px 20px;
}

.guideBtn {
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.guideBtn:hover {
  border-color: color-mix(in srgb, var(--text-primary) 28%, transparent);
  background: color-mix(in srgb, var(--text-primary) 14%, transparent);
  transform: translateY(-1px);
}

.guideBtn:active {
  transform: translateY(0);
}

.guideBtn.primary {
  border-color: color-mix(in srgb, var(--cyan) 35%, transparent);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  color: var(--cyan);
  font-weight: 600;
}

.guideBtn.primary:hover {
  border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
}

/* =========================================================
   Welcome screen (first visit): greeting + language picker
   ========================================================= */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 18px;
  background:
    radial-gradient(900px 500px at 20% 20%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, color-mix(in srgb, var(--violet) 18%, transparent), transparent 60%),
    color-mix(in srgb, var(--bg-overlay) 78%, transparent);
  backdrop-filter: blur(10px);
}

.welcome.active {
  display: flex;
}

.welcomeTop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-primary) 28%, transparent);
  backdrop-filter: blur(10px);
}

.welcomeBrand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.4px;
  color: color-mix(in srgb, var(--cyan) 70%, white 30%);
}

.welcomeSkip {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
}

.welcomeSkip:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.welcomeTitle {
  position: relative;
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 0.4px;
}

.welcomeSubtitle {
  position: relative;
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.welcomeCenter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 16px 24px;
}

.langGrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 92px));
  gap: 10px;
  padding: 0;
  justify-content: center;
}

.langBtn {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  background: color-mix(in srgb, var(--bg-primary) 28%, transparent);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.6px;
  backdrop-filter: blur(10px);
}

.langBtn:hover {
  transform: translateY(-1px);
}

.langBtn.active {
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

/* Цвета кнопок языков */
.langBtn.lang-en {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.16);
}
.langBtn.lang-ru {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.16);
}
.langBtn.lang-ua {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.16);
}
.langBtn.lang-pl {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.14);
}
.langBtn.lang-by {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
}

.langBtn.lang-en.active {
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.28);
}
.langBtn.lang-ru.active {
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.28);
}
.langBtn.lang-ua.active {
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.28);
}
.langBtn.lang-pl.active {
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.24);
}
.langBtn.lang-by.active {
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.24);
}

.welcomeHint {
  position: relative;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

@media (max-width: 800px) {
  .speechBubble {
    transform: translate(-50%, calc(-50% + 160px)) translate3d(0, 16px, 0) scale(0.96);
    width: min(90vw, 480px);
  }

  .guide.active .speechBubble {
    transform: translate(-50%, calc(-50% + 160px)) scale(1);
  }

  .speechBubble::after {
    top: -6px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%) rotate(45deg);
    border-top: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .langGrid {
    grid-template-columns: repeat(3, minmax(0, 92px));
  }
}

/* =========================================================
   Terminal-guide (onboarding): “чат-терминал” поверх лендинга
   ========================================================= */
.terminalGuide {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: color-mix(in srgb, var(--bg-overlay) 70%, transparent);
}

.terminalGuide.active {
  display: flex;
}

.terminalFrame {
  width: min(820px, calc(100vw - 36px));
  max-height: min(72vh, 720px);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(3, 6, 18, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

.terminalFrame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.05) 2px,
    rgba(0, 255, 255, 0.05) 3px
  );
  opacity: 0.35;
  pointer-events: none;
}

.terminalTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

.terminalTitle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: color-mix(in srgb, var(--cyan) 70%, white 30%);
}

.terminalClose {
  width: 36px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.terminalClose:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.terminalBody {
  padding: 12px 12px 10px;
  overflow: auto;
  max-height: min(52vh, 520px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(215, 255, 250, 0.92);
}

.terminalLine {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.terminalLine .prompt {
  color: color-mix(in srgb, var(--cyan) 80%, white 20%);
  font-weight: 900;
}

.terminalLine .muted {
  color: var(--text-secondary);
}

.terminalActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-color);
}

.termBtn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.termBtn:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.termBtn.primary {
  border-color: color-mix(in srgb, var(--cyan) 35%, var(--border-color));
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
}

.termBtn.primary:hover {
  background: color-mix(in srgb, var(--cyan) 22%, transparent);
}

/* Подсветка элементов UI, куда “тыкать” */
.uiHighlight {
  outline: 2px solid color-mix(in srgb, var(--cyan) 85%, transparent);
  outline-offset: 4px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cyan) 35%, transparent),
    0 0 26px color-mix(in srgb, var(--cyan) 20%, transparent);
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Background video */
.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(0deg, transparent 1px, rgba(30, 30, 30, 0.35) 1px),
    linear-gradient(90deg, transparent 1px, rgba(30, 30, 30, 0.35) 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.35; /* как в Черновик 3 — мелкая сетка */
  mix-blend-mode: overlay;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 280ms ease;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 700px at 15% 20%, color-mix(in srgb, var(--violet) 28%, transparent), transparent),
    radial-gradient(1200px 700px at 85% 25%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent),
    radial-gradient(1200px 700px at 70% 85%, color-mix(in srgb, var(--pink) 18%, transparent), transparent),
    var(--bg-overlay);
}

.holo-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 1), transparent 70%);
}

/* link-like buttons used in micro-footer */
.link-like {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.link-like:hover {
  text-decoration: underline;
}

/* Hologram dock (prevents overlap, feels like app UI) */
.holo-dock {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* Shell-like dock (simplified) */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-primary) 35%, transparent);
  backdrop-filter: blur(10px);
}

.dockIcon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  color: var(--text-primary);
  cursor: pointer;
}

.dockIcon:hover {
  background: color-mix(in srgb, var(--text-primary) 9%, transparent);
}

.dockIcon.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.dockIcon.locked:hover {
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
}

.dockIcon svg {
  width: 26px;
  height: 26px;
}

/* Hologram buttons inside dock */
.login-hologram,
.switch-hologram {
  position: static;
  cursor: pointer;
  opacity: 0;
  animation: hologramFadeIn 1.2s ease-out forwards;
}

@keyframes hologramFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hologram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hologram-frame {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--violet) 55%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--violet) 12%, transparent),
    color-mix(in srgb, var(--violet) 6%, transparent)
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 22px color-mix(in srgb, var(--violet) 22%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--violet) 12%, transparent);
  animation: hologramPulse 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes hologramPulse {
  0%,
  100% {
    box-shadow:
      0 0 22px color-mix(in srgb, var(--violet) 22%, transparent),
      inset 0 0 24px color-mix(in srgb, var(--violet) 12%, transparent);
    border-color: color-mix(in srgb, var(--violet) 55%, transparent);
  }
  50% {
    box-shadow:
      0 0 30px color-mix(in srgb, var(--violet) 34%, transparent),
      inset 0 0 34px color-mix(in srgb, var(--violet) 18%, transparent);
    border-color: color-mix(in srgb, var(--violet) 70%, transparent);
  }
}

.hologram-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  margin-top: 0;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--violet) 55%, transparent));
  animation: hologramFloat 4s ease-in-out infinite;
}

@keyframes hologramFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--violet) 55%, transparent));
  }
  50% {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--violet) 70%, transparent));
  }
}

.hologram-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    color-mix(in srgb, var(--violet) 6%, transparent) 2px,
    color-mix(in srgb, var(--violet) 6%, transparent) 4px
  );
  opacity: 0.9;
  z-index: 1;
  animation: scanlineMove 2s linear infinite;
  pointer-events: none;
}

.hologram-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 16%, transparent), transparent 60%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hologram-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: color-mix(in srgb, var(--violet) 85%, white 15%);
  text-transform: uppercase;
  text-shadow: 0 0 10px color-mix(in srgb, var(--violet) 30%, transparent);
  animation: textGlow 2s ease-in-out infinite;
}

.hologram-text {
  max-width: 92px;
  text-align: center;
  word-break: break-word;
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 10px color-mix(in srgb, var(--violet) 30%, transparent);
  }
  50% {
    text-shadow:
      0 0 12px color-mix(in srgb, var(--violet) 42%, transparent),
      0 0 22px color-mix(in srgb, var(--violet) 20%, transparent);
  }
}

/* Hover boost (holo feel) */
.login-hologram:hover .hologram-frame,
.switch-hologram:hover .hologram-frame {
  animation: hologramPulse 1s ease-in-out infinite;
  transform: scale(1.06);
}

.login-hologram:hover .hologram-logo,
.switch-hologram:hover .hologram-logo {
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--cyan) 26%, transparent));
}

/* Switch hologram: green tone like "go to platform" */
.switch-hologram .hologram-frame {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow:
    0 0 22px rgba(0, 255, 136, 0.18),
    inset 0 0 24px rgba(0, 255, 136, 0.1);
}
.switch-hologram .hologram-glow {
  background: radial-gradient(circle, rgba(0, 255, 136, 0.22), transparent 60%);
}
.switch-hologram .hologram-text {
  color: rgba(0, 255, 136, 0.9);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.login-hologram.logged-in .hologram-frame {
  border-color: rgba(0, 255, 136, 0.75);
  box-shadow:
    0 0 28px rgba(0, 255, 136, 0.22),
    inset 0 0 24px rgba(0, 255, 136, 0.12);
  animation: loggedInPulse 2s ease-in-out infinite;
}

@keyframes loggedInPulse {
  0%,
  100% {
    box-shadow:
      0 0 28px rgba(0, 255, 136, 0.22),
      inset 0 0 24px rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.7);
  }
  50% {
    box-shadow:
      0 0 36px rgba(0, 255, 136, 0.34),
      inset 0 0 34px rgba(0, 255, 136, 0.18);
    border-color: rgba(0, 255, 136, 0.92);
  }
}

.login-hologram.logged-in .hologram-text {
  color: rgba(0, 255, 136, 0.95);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
  animation: loggedInTextGlow 2s ease-in-out infinite;
}

@keyframes loggedInTextGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
  }
  50% {
    text-shadow:
      0 0 14px rgba(0, 255, 136, 0.55),
      0 0 26px rgba(0, 255, 136, 0.25);
  }
}

/* Make dock stack on small widths */
@media (max-width: 520px) {
  .holo-dock {
    flex-direction: column;
    gap: 10px;
  }
}
/* Reduce heavy motion for performance */
@media (prefers-reduced-motion: reduce) {
  .ticker-items {
    animation: none !important;
  }
  .hologram-scanlines {
    animation: none !important;
  }
}

/* Personal cabinet modal (Черновик 3 inspired, minimal) */
.personal-cabinet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

.personal-cabinet.active {
  display: block;
}

.cabinet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.cabinet-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--violet) 35%, transparent);
  background: var(--panel-strong);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  padding: 22px 22px 18px;
}

.cabinet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
}

.cabinet-header {
  padding-right: 54px;
}

.cabinet-title {
  margin: 0;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.cabinet-subtitle {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.wallet-options {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.wallet-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
}

.wallet-button:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);
}

.dev-mode-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  color: var(--text-secondary);
}

.dev-mode-divider::before,
.dev-mode-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--text-primary) 14%, transparent);
}

.wallet-info {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
}

.wallet-address-line {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wallet-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.wallet-address-expand {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 20%, transparent);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.wallet-disconnect {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  background: rgba(255, 80, 80, 0.12);
  color: rgba(255, 230, 230, 0.95);
  cursor: pointer;
}

/* Main */
.main-content {
  position: relative;
  z-index: 10;
  height: 100vh;
  overflow: hidden;
  padding-top: 0;
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 110px; /* место под голограммы сверху и dock снизу */
  overflow: hidden;
}

.hero-content {
  max-width: 1050px;
  width: 100%;
  text-align: center;
}

/* If viewport is short, hide secondary blocks to keep "no scroll" guarantee */
@media (max-height: 780px) {
  .micro-footer {
    display: none;
  }

  .hero-title {
    font-size: clamp(30px, 5vw, 54px);
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 16px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px color-mix(in srgb, var(--cyan) 35%, transparent);
}

.hero-title {
  font-size: clamp(36px, 5.6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}

.title-highlight {
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 220% 220%;
}

.hero-tagline {
  display: inline-block;
  margin-top: 0;
  margin-top: 6px;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.55);
}

.hero-meta {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.55);
}

/* Выбор языка под заголовком */
.langInline {
  margin-top: 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.hero-start {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--violet) 16%, transparent),
    color-mix(in srgb, var(--cyan) 16%, transparent)
  );
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.35),
    0 0 26px color-mix(in srgb, var(--cyan) 18%, transparent);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.hero-start::after {
  content: "";
  position: absolute;
  inset: -50% -30%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hero-start:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cyan) 70%, transparent);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 32px color-mix(in srgb, var(--cyan) 26%, transparent);
}

.hero-start:hover::after {
  opacity: 0.6;
}

.hero-start:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--cyan) 80%, transparent);
  outline-offset: 3px;
}

.start-reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: startReveal 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1200ms;
}

@keyframes startReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.langPill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  background: color-mix(in srgb, var(--bg-primary) 22%, transparent);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.8px;
  backdrop-filter: blur(10px);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.langPill:hover {
  transform: translateY(-1px);
}

.langPill.active {
  transform: translateY(-1px);
}

.langPill.lang-en {
  border-color: rgba(56, 189, 248, 0.55);
}
.langPill.lang-ru {
  border-color: rgba(168, 85, 247, 0.55);
}
.langPill.lang-ua {
  border-color: rgba(34, 197, 94, 0.55);
}
.langPill.lang-pl {
  border-color: rgba(239, 68, 68, 0.55);
}
.langPill.lang-by {
  border-color: rgba(245, 158, 11, 0.55);
}

.langPill.lang-en.active {
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.12);
}
.langPill.lang-ru.active {
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.26);
  background: rgba(168, 85, 247, 0.12);
}
.langPill.lang-ua.active {
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
}
.langPill.lang-pl.active {
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.1);
}
.langPill.lang-by.active {
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.1);
}

/* Плавное градиентное появление заголовка (по строкам) */
.title-reveal {
  opacity: 0;
  display: inline-block;
  transform: translate3d(0, 14px, 0);
  backface-visibility: hidden;
  animation:
    titleReveal 1500ms cubic-bezier(0.16, 1, 0.3, 1) both,
    gradientShift 4200ms ease-in-out infinite;
  animation-delay: 0ms, 1500ms; /* перелив включаем после появления */
  will-change: transform, opacity;
}

.tagline-reveal {
  opacity: 0;
  display: inline-block;
  transform: translate3d(0, 14px, 0);
  backface-visibility: hidden;
  animation: subReveal 1500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 680ms;
  will-change: transform, opacity;
}

.meta-reveal {
  opacity: 0;
  display: inline-block;
  transform: translate3d(0, 14px, 0);
  backface-visibility: hidden;
  animation: subReveal 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 980ms;
  will-change: transform, opacity;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes subReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-description {
  margin: 0 auto 26px;
  max-width: 760px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 0;
}

.btn-hero {
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--violet) 22%, transparent),
    color-mix(in srgb, var(--cyan) 18%, transparent)
  );
  color: var(--text-primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--cyan) 20%, transparent),
    0 0 48px color-mix(in srgb, var(--violet) 16%, transparent);
}

.arrow {
  display: inline-block;
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-secondary);
  font-weight: 650;
  transition:
    background 150ms ease,
    transform 150ms ease;
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.hero-features {
  margin: 16px auto 0;
  width: min(980px, 92vw);
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

.micro-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.micro-footer a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.muted-link {
  opacity: 0.9;
}

.feature-item {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  background: var(--widget);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  min-width: 0;
  flex: 1 1 0;
  max-width: 320px;
  text-align: left;
}

.feature-item:hover {
  transform: translateY(-1px);
  background: var(--widget-hover);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.28),
    0 0 24px color-mix(in srgb, var(--cyan) 10%, transparent);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  background: rgba(255, 255, 255, 0.05);
}

.feature-vault:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--cyan) 12%, transparent);
}
.feature-academy:hover {
  border-color: color-mix(in srgb, var(--pink) 45%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--pink) 12%, transparent);
}
.feature-agora:hover {
  border-color: color-mix(in srgb, var(--yellow) 55%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--yellow) 10%, transparent);
}

.feature-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}
.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-text {
  min-width: 0;
}

@media (max-width: 1200px) {
  .speechBubble {
    transform: translate(calc(-50% - 280px), calc(-50% - 20px)) translate3d(0, 16px, 0) scale(0.96);
    width: min(420px, calc(100vw - 60px));
  }

  .guide.active .speechBubble {
    transform: translate(calc(-50% - 280px), calc(-50% - 20px)) scale(1);
  }
}

@media (max-width: 900px) {
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  .feature-item {
    width: min(520px, 92vw);
    max-width: none;
  }
}

@media (max-height: 780px) {
  .feature-desc {
    display: none;
  }
}

/* Info sections */
.info-section,
.how-section {
  padding: 80px 24px;
}

.info-container {
  max-width: 1050px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.4px;
  text-align: center;
  margin: 0 0 34px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.info-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  text-align: left;
}
.info-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cyan) 26%, transparent);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.28),
    0 0 22px color-mix(in srgb, var(--cyan) 10%, transparent);
}
.info-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}
.info-card-title {
  margin: 0 0 8px;
  font-weight: 900;
}
.info-card-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.step {
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
}
.step-title {
  font-weight: 900;
}
.step-text {
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-primary) 35%, transparent);
}
.footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}
.footer-text {
  font-weight: 900;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Modal (video selector) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200; /* выше голограмм/меню */
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-overlay) 100%, transparent);
  backdrop-filter: blur(6px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  width: min(760px, 92vw);
  max-height: min(84vh, 760px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--violet) 26%, rgba(255, 255, 255, 0.12));
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
}

.modal-panel {
  transform: translateY(8px) scale(0.98);
  opacity: 0.98;
  border-color: color-mix(in srgb, var(--accent-2) 20%, var(--border-color));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 60px color-mix(in srgb, var(--violet) 10%, transparent);
}

.modal-overlay.active .modal-panel {
  transform: translateY(0) scale(1);
}

.panel-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 150ms ease,
    transform 150ms ease,
    border-color 150ms ease;
}
.tab-btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent-color) 55%, transparent);
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
}

.panel-section {
  display: none;
}
.panel-section.active {
  display: block;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
}
.modal-title {
  font-weight: 900;
}
.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--violet) 30%, rgba(255, 255, 255, 0.14));
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}
.modal-close:hover {
  border-color: color-mix(in srgb, var(--cyan) 40%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 0 22px color-mix(in srgb, var(--cyan) 14%, transparent);
  background: var(--surface-hover);
}

.modal-close svg,
.cabinet-close svg {
  width: 20px;
  height: 20px;
}
.modal-body {
  padding: 14px 16px;
  overflow: auto;
}

/* Cabinet inherits same "dark glass" */
.cabinet-container {
  border: 1px solid color-mix(in srgb, var(--violet) 26%, rgba(255, 255, 255, 0.12));
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.video-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.video-option {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  padding: 14px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  text-align: left;
}
.video-option:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--cyan) 14%, transparent);
}
.video-option.active {
  border-color: color-mix(in srgb, var(--violet) 58%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--violet) 16%, transparent);
}
.video-option .name {
  font-weight: 900;
}
.video-option .desc {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .nav-link {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav-container {
    padding: 0 14px;
  }
  .hero-section {
    padding-top: 70px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
