* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: #0B0F1A;
  color: #F0F0F5;
}

.gradient-text {
  background: linear-gradient(135deg, #00F5A0, #00D9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, #00F5A0, #00D9FF);
  color: #0B0F1A;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 245, 160, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid #00F5A0;
  color: #00F5A0;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(0, 245, 160, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.2);
}

:focus-visible {
  outline: 2px solid #00F5A0;
  outline-offset: 2px;
}

::selection {
  background: rgba(0, 245, 160, 0.3);
}

section[id] {
  scroll-margin-top: 5rem;
}

#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00F5A0, #00D9FF);
  color: #0B0F1A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.25);
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top:hover {
  box-shadow: 0 4px 30px rgba(0, 245, 160, 0.5);
  transform: translateY(-2px);
}

#scroll-top:active {
  transform: translateY(0);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 31, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #1E2235;
  padding: 12px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8B8FA3;
  margin: 0;
}

.cookie-banner-link {
  color: #00F5A0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cookie-banner-link:hover {
  color: #00D9FF;
}

.cookie-banner-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #00F5A0, #00D9FF);
  color: #0B0F1A;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}

.cookie-banner-btn:hover {
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.4);
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6B7094;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #8B8FA3;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #00F5A0;
}

.breadcrumbs span {
  color: #6B7094;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 12px 16px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

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

  .cookie-banner-btn {
    width: 100%;
    padding: 10px 20px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .hero-glow,
  .cookie-banner,
  #scroll-top,
  .btn-primary,
  .btn-outline {
    display: none !important;
  }

  .gradient-text {
    -webkit-text-fill-color: #000;
    background: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  img {
    max-width: 100%;
  }
}
