html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background: #050507;
  color: #e4e4e7;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a {
  overflow-wrap: break-word;
}
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#navbar {
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#navbar .glass,
#navbar.glass {
  background: rgba(15, 15, 18, 0.85);
}
.glass {
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-strong {
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  background: rgba(24, 24, 27, 0.7);
  border-color: rgba(88, 101, 242, 0.3);
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px -10px rgba(88, 101, 242, 0.15),
    0 0 30px rgba(88, 101, 242, 0.05);
}
.gradient-text {
  background: linear-gradient(135deg, #5865f2 0%, #a855f7 50%, #3b82f6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
.btn-primary {
  background: linear-gradient(135deg, #5865f2 0%, #7e88f6 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}
.nav-link {
  position: relative;
  color: #a1a1aa;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5865f2;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  width: 100%;
}
.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #5865f2, #a855f7, #3b82f6);
  transform: translateX(-50%);
}
.timeline-dot {
  position: absolute;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #5865f2;
  border: 3px solid #050507;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}
.timeline-card {
  margin-left: 44px;
}
@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
  }
  .timeline-dot {
    left: 50%;
  }
  .timeline-card {
    margin-left: 0;
  }
}
.timeline-dot.completed {
  background: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}
.timeline-dot.in-progress {
  background: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
}
.accordion-content.open {
  max-height: 500px;
  opacity: 1;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-icon.open {
  transform: rotate(180deg);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  width: min(100%, 64rem);
  max-height: min(90dvh, 56rem);
  margin: 0 !important;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh !important;
    border-radius: 1.25rem 1.25rem 0 0;
    padding-right: 0;
  }
  #modal-body {
    padding: 1.5rem 1rem;
  }
  #modal-body h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  #modal-body h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  #modal-body h4 {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
}
.modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.stat-number {
  font-variant-numeric: tabular-nums;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f12;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  max-width: 100vw;
  max-height: 100vh;
}
@keyframes discordPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.placeholder-img {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52525b;
  font-size: 0.875rem;
}
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(88, 101, 242, 0.3),
    transparent
  );
}
@media (max-width: 768px) {
  .mobile-menu {
    width: min(100%, 22rem);
  }
  footer .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .glass-card {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .hero-orb {
    filter: blur(60px);
  }
  #hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  #hero .hero-scroll-indicator {
    display: none;
  }
}
