:root {
  color-scheme: dark;
  --bg-start: #0f172a;
  --bg-end: #1e1b4b;
  --card-bg: rgba(15, 23, 42, 0.7);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-end), var(--bg-start));
  background-size: 140% 140%;
  color: var(--text);
  animation: bgShift 14s ease-in-out infinite;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

body::before {
  width: 28vw;
  height: 28vw;
  min-width: 180px;
  min-height: 180px;
  top: -6vw;
  right: -4vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 70%);
  animation: floatBodyGlow 10s ease-in-out infinite;
}

body::after {
  width: 26vw;
  height: 26vw;
  min-width: 160px;
  min-height: 160px;
  bottom: -8vw;
  left: -4vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24), transparent 72%);
  animation: floatBodyGlow 12s ease-in-out infinite reverse;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.card {
  position: relative;
  overflow: hidden;
  width: min(680px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.25rem;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  animation: cardFade 0.8s ease-out;
}

.visual {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
}

.glow-one {
  width: 180px;
  height: 180px;
  top: -70px;
  right: -40px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.8), transparent 70%);
  animation: floatGlow 6s ease-in-out infinite;
}

.glow-two {
  width: 140px;
  height: 140px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.75), transparent 70%);
  animation: floatGlow 7.5s ease-in-out infinite reverse;
}

.glow-three {
  width: 120px;
  height: 120px;
  top: 45%;
  right: 38%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.55), transparent 72%);
  animation: driftGlow 10s ease-in-out infinite;
}

.top-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.top-nav-link {
  position: relative;
  overflow: hidden;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.5);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.top-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(125, 211, 252, 0.5);
}

.top-nav-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(125, 211, 252, 0));
  transform: translateX(-110%);
  transition: transform 0.35s ease;
}

.top-nav-link:hover::after,
.top-nav-link:focus-visible::after {
  transform: translateX(0);
}

.top-nav-link.active {
  color: #082f49;
  background: linear-gradient(120deg, #22d3ee, #67e8f9);
  border-color: transparent;
}

.badge {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #082f49;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.intro {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.highlight {
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  text-align: center;
}

.highlight span {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.highlight p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.95rem;
}

.meta p {
  margin: 0;
}

.timeline {
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.timeline-item {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid rgba(34, 211, 238, 0.75);
  background: rgba(15, 23, 42, 0.35);
  border-radius: 0 0.7rem 0.7rem 0;
  color: #cbd5e1;
  animation: slideIn 0.5s ease both;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
}

.loader-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #67e8f9;
  animation: loaderPulse 1.1s ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.loading-text {
  margin-left: 0.2rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.channel-link {
  margin: 1rem 0 0;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.channel-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: rgba(8, 145, 178, 0.2);
  color: #bae6fd;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: pulseButton 2.6s ease-in-out infinite;
}

.channel-button:hover {
  transform: translateY(-1px) scale(1.02);
  background: rgba(14, 165, 233, 0.24);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.32);
}

.channel-button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.social-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: #67e8f9;
}

.channel-button-youtube {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(153, 27, 27, 0.24);
}

.channel-button-youtube .social-icon svg {
  fill: #fca5a5;
}

.channel-button-discord {
  border-color: rgba(129, 140, 248, 0.58);
  background: rgba(49, 46, 129, 0.28);
}

.channel-button-discord .social-icon svg {
  fill: #c7d2fe;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.07);
  }
}

@keyframes pulseButton {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(14, 165, 233, 0.2);
  }
  50% {
    box-shadow: 0 0 0.9rem rgba(14, 165, 233, 0.42);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.75);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

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

@keyframes driftGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, -8px, 0);
  }
}

@keyframes floatBodyGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 14px, 0) scale(1.08);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 620px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}
