@import url('./fonts/fonts.css');

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #020617;
  color: #f8fafc;
}

.cdn-homepage {
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  background-color: #020617;
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

.cdn-homepage section {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

@media (max-width: 640px) {
  .cdn-homepage section {
    contain-intrinsic-size: 600px;
  }
}

.cdn-header {
  background-color: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cdn-header.is-scrolled {
  background-color: rgba(2, 6, 23, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cdn-perf * {
  animation: none !important;
}

.cdn-perf .glass-panel,
.cdn-perf [class*="backdrop-blur"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cdn-perf [class*="blur-"] {
  filter: none !important;
}

.cdn-perf .cdn-header {
  background-color: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-outline {
  border: 1px solid rgba(11, 211, 231, 0.45);
  box-shadow: 0 0 12px rgba(11, 211, 231, 0.25);
}

.text-glow {
  color: #06b6d4 !important;
  text-shadow: 0 0 5px rgb(6 182 212);
}

.cta-glow {
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cta-glow:hover {
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.45), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, #0bd3e7, #399afc);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(11, 211, 231, 0.28), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.nav-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 38px rgba(11, 211, 231, 0.35), 0 8px 20px rgba(0, 0, 0, 0.28);
}

.nav-cta:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 20px rgba(11, 211, 231, 0.25), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.logo-wrap {
  width: 120px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.logo-wrap:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 26px rgba(11, 211, 231, 0.25);
}

.site-logo {
  width: 96px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(11, 211, 231, 0.35));
}

.world-map-container svg {
  width: 100%;
  height: 100%;
}

.map-unselected {
  fill: #1e293b;
  stroke: #3b82f6;
  stroke-width: 0.5px;
  transition: all 0.3s ease;
}

.map-selected {
  fill: #06b6d4;
  stroke: #fff;
  stroke-width: 1px;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.map-unselected:hover {
  fill: #334155;
  cursor: pointer;
}

.map-selected:hover {
  cursor: pointer;
  opacity: 0.9;
}

.copy-icon.hidden,
.copy-success.hidden {
  display: none;
}

.mobile-menu {
  background-color: #020617;
  opacity: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: max-height 200ms ease, opacity 200ms ease;
}

.hero-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 0 0;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  animation: hero-grid-drift 28s linear infinite;
}

.hero-rings {
  animation: hero-rings-spin 100s linear infinite;
}

.hero-cta-primary {
  background-color: #fff;
  color: #020617;
}

@keyframes hero-grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 50px 50px, 50px 50px;
  }
}

@keyframes hero-rings-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
