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

html,
body {
  height: 100%;
}

body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -20%, #0b1030 0%, #060818 55%, #03040c 100%);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- particle canvas ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- gradient blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}

.b1 {
  width: 55vmax;
  height: 55vmax;
  top: -18vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.b2 {
  width: 50vmax;
  height: 50vmax;
  bottom: -16vmax;
  right: -10vmax;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}

.b3 {
  width: 34vmax;
  height: 34vmax;
  top: 30%;
  left: 55%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 65%);
  animation: drift3 38s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(10vmax, 8vmax) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-9vmax, -6vmax) scale(1.1); }
}
@keyframes drift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, -7vmax) scale(1.2); }
}

/* ---------- faint server grid ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 78%);
  animation: gridpulse 7s ease-in-out infinite alternate;
}

@keyframes gridpulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* ---------- vignette ---------- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(2, 4, 12, 0.85) 100%);
}

/* ---------- drifting clouds ---------- */
.clouds {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  opacity: 0.09;
  filter: blur(1.5px) drop-shadow(0 0 26px rgba(139, 92, 246, 0.35));
}

.c1 {
  width: min(320px, 38vw);
  top: 14%;
  animation: cloudmove 64s linear infinite;
}

.c2 {
  width: min(220px, 26vw);
  top: 58%;
  opacity: 0.06;
  animation: cloudmove 88s linear infinite;
  animation-delay: -38s;
}

.c3 {
  width: min(150px, 18vw);
  top: 36%;
  opacity: 0.08;
  animation: cloudmove 52s linear infinite;
  animation-delay: -20s;
}

@keyframes cloudmove {
  from { transform: translateX(-30vw); }
  to   { transform: translateX(115vw); }
}

/* ---------- social menu ---------- */
.social-menu {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.social-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.25), inset 0 0 14px rgba(56, 189, 248, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.social-btn svg {
  width: 26px;
  height: 26px;
}

.yt-frame {
  transition: stroke-dashoffset 0.4s ease;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45), 0 0 24px rgba(56, 189, 248, 0.35);
}

.social-btn:hover .yt-frame {
  stroke: url(#ytgrad);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.9));
}

.social-btn:hover .yt-play {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 1));
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.4) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- TT badge ---------- */
.tt-badge {
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 10;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.3s ease;
}

.tt-badge:hover {
  opacity: 0.6;
}

.tt-badge:active {
  opacity: 0.4;
}

.tt-badge.open {
  opacity: 1;
}

.tt-badge:focus-visible,
.social-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 3px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
