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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #34274f;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(105, 43, 212, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 97, 113, 0.08) 0%,
      transparent 55%
    );
  min-height: 100vh;
  color: white;
  line-height: 1.6;
}

/* Container classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-x-12 > * + * {
  margin-left: 3rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Spacing utilities */
.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pt-20 {
  padding-top: 5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

/* Sizing utilities */
.w-2 {
  width: 0.5rem;
}

.w-5 {
  width: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-96 {
  width: 24rem;
}

.w-full {
  width: 100%;
}

.h-2 {
  height: 0.5rem;
}

.h-5 {
  height: 1.25rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-96 {
  height: 24rem;
}

.min-h-screen {
  min-height: 100vh;
}

/* Text utilities */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-green-400 {
  color: #34d399;
}

.text-orange-400 {
  color: #fb923c;
}

.text-blue-400 {
  color: #60a5fa;
}

.text-red-400 {
  color: #f87171;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Background utilities */
.bg-primary {
  background-color: #692bd4;
}

.bg-primary-light {
  background-color: #ff6171;
}

.bg-green-400 {
  background-color: #34d399;
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

/* Position utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-1\/3 {
  top: 33.333333%;
}

.top-2\/3 {
  top: 66.666667%;
}

.left-1\/4 {
  left: 25%;
}

.right-1\/4 {
  right: 25%;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Display utilities */
.hidden {
  display: none;
}

.inline-flex {
  display: inline-flex;
}

.block {
  display: block;
}

/* Opacity utilities */
.opacity-5 {
  opacity: 0.05;
}

.opacity-60 {
  opacity: 0.6;
}

/* Filter utilities */
.blur-3xl {
  filter: blur(64px);
}

/* Transform utilities */
.scale-105:hover {
  transform: scale(1.05);
}

.scale-110:hover {
  transform: scale(1.1);
}

/* Transition utilities */
.transition-all {
  transition: all 0.15s ease-in-out;
}

.transition-colors {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.transition-transform {
  transition: transform 0.15s ease-in-out;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Custom styles */
.navbar-blur {
  background: rgba(54, 40, 82, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-ultra-dark {
  background: rgba(54, 40, 82, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(105, 43, 212, 0.2);
}

.glass-card {
  background: rgba(54, 40, 82, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
  background: rgba(54, 40, 82, 0.9);
  box-shadow: 0 6px 24px rgba(105, 43, 212, 0.25);
}

.text-gradient-animated {
  background: linear-gradient(135deg, #692bd4, #ff6171, #692bd4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #692bd4, #ff6171);
  border: 1px solid rgba(105, 43, 212, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: white;
  background-clip: padding-box;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #692bd4, #ff6171);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(105, 43, 212, 0.35);
  color: white;
  background-clip: padding-box;
}

.btn-secondary {
  background: rgba(54, 40, 82, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: white;
  background-clip: padding-box;
}

.btn-secondary:hover {
  background: rgba(54, 40, 82, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(105, 43, 212, 0.25);
  transform: translateY(-1px);
  color: white;
  background-clip: padding-box;
}

.status-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #34d399;
}

.feature-icon {
  background: rgba(105, 43, 212, 0.2);
  transition: background-color 0.3s ease;
}

.glass-card:hover .feature-icon {
  background: rgba(105, 43, 212, 0.3);
}

.game-icon-orange {
  background: rgba(251, 146, 60, 0.2);
}

.game-icon-blue {
  background: rgba(96, 165, 250, 0.2);
}

.game-icon-red {
  background: rgba(248, 113, 113, 0.2);
}

.game-icon-green {
  background: rgba(52, 211, 153, 0.2);
}

/* Logo styles */
.logo-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.logo-link {
  text-decoration: none;
  transition: none !important;
}

.logo-link:hover {
  color: inherit !important;
  background: transparent !important;
}

/* Readability on dark foreground surfaces */
.glass-card .text-gray-500,
.glass-ultra-dark .text-gray-500 {
  color: #cbd5e1;
}

.glass-card .text-gray-600,
.glass-ultra-dark .text-gray-600 {
  color: #a8b1c4;
}

/* Mobile menu button fixes */
.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-slide-up-delay-1 {
  animation: slideUp 0.6s ease-out 0.1s both;
}

.animate-slide-up-delay-2 {
  animation: slideUp 0.6s ease-out 0.2s both;
}

.animate-slide-up-delay-3 {
  animation: slideUp 0.6s ease-out 0.3s both;
}

.float-delay-3 {
  animation: float 6s ease-in-out infinite 3s;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .container-sm {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  /* Navbar mobile fixes */
  nav .container-sm {
    padding: 0 0.5rem;
  }

  .navbar-blur {
    margin: 0 0.5rem;
    padding: 0.75rem 1rem;
    width: calc(100% - 1rem);
    box-sizing: border-box;
  }

  /* Mobile centering fixes */
  .text-center {
    text-align: center !important;
  }

  #home {
    height: 100vh;
    min-height: unset;
    padding-top: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
  }

  #home .relative.z-10 {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  /* Trusted by section mobile centering */
  .trusted-by-mobile {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    padding: 0 1rem;
  }

  .trusted-by-mobile > * {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
  }

  .trusted-by-mobile > * + * {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .trusted-by-mobile > .flex.items-center {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem;
  }

  .trusted-by-mobile > .flex.items-center > span {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
    text-align: center;
  }

  /* Grid fixes */
  .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  .grid-cols-4 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: center;
  }

  /* Typography scaling */
  .text-5xl {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }

  .text-4xl {
    font-size: 2rem !important;
    line-height: 1.1;
  }

  .text-2xl {
    font-size: 1.5rem !important;
  }

  .text-xl {
    font-size: 1.25rem !important;
  }

  /* Flex mobile utilities */
  .flex-col-mobile {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    gap: 1rem !important;
  }

  .flex-col-mobile > * {
    width: 100%;
    max-width: 300px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Visibility utilities */
  .hidden-mobile {
    display: none !important;
  }

  .block-mobile {
    display: block !important;
  }

  /* Spacing adjustments */
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .p-12 {
    padding: 2rem;
  }

  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gap-8 {
    gap: 1.5rem;
  }

  .gap-6 {
    gap: 1rem;
  }

  /* Stats section mobile */
  #stats .grid-cols-4 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
    justify-items: center;
  }

  #stats .text-center {
    width: 100%;
    text-align: center;
  }

  .counter {
    font-size: 2rem !important;
  }

  /* Button fixes */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* CTA Section mobile centering */
  .glass-card {
    text-align: center;
    margin: 0 auto;
  }

  .glass-card .flex-col-mobile {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* Features and Games sections mobile centering */
  .grid {
    justify-items: center;
    width: 100%;
  }

  .grid .glass-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Games section specific */
  #games .grid-cols-4 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: center;
  }

  #games .glass-card {
    width: 100%;
    max-width: 200px;
  }

  /* Mobile menu positioning */
  #mobileMenu {
    width: 100%;
    box-sizing: border-box;
  }

  #mobileMenu .container-sm {
    padding: 0 1rem;
  }

  /* Prevent horizontal scrolling */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  #mobileMenu button {
    max-width: unset; /* remove the forced 100% cap */
    display: inline-flex; /* allow proper flex centering */
  }

  /* Fix any overflow issues */
  section {
    overflow-x: hidden;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none !important;
  }

  .flex-desktop {
    display: flex !important;
  }

  .block-mobile {
    display: none !important;
  }

  .hidden-mobile {
    display: flex !important;
  }
}

.footer-link,
.footer-link:visited,
.footer-link:hover,
.footer-link:active {
  color: #e6e6e6;
  text-decoration: none;
}

/* Animation für Ein-/Ausblenden */
.nav-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav-visible {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

a.no-underline {
  text-decoration: none !important;
}

/* Footer contrast overrides for readability on dark backgrounds */
footer .text-gray-500,
footer .text-gray-600 {
  color: #cbd5e1;
}
