@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700&display=swap');

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

html, body {
  width: 100%; height: 100%;
  font-family: 'League Spartan', sans-serif;
  background: #000E26;
  overflow-x: hidden;
  position: relative;
}

#bg3d {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; 
}

#scene-wrapper {
  position: relative; 
  z-index: 2;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.topbar {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(0,14,38,0.9); z-index: 3;
}

.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
}

.logo { font-size: 1.75rem; color: #E6F2FF; }

.btn.nav-btn {
  background: #E6F2FF; color: #001F4D; font-weight: 700;
  padding: .5rem 1rem; border-radius: 4px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
}

.btn.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

main { padding-top: 80px; }

.section {
  min-height: 50vh; /* Mindre afstand mellem sektioner */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; opacity: 0; transform: translateY(40px) scale(0.98);
}

.section.visible {
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity 1.8s ease, transform 1.8s ease;
}

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

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.hero h2 {
  font-size: 2.8rem; margin-bottom: 1rem;
  background: linear-gradient(90deg,#00D4FF,#0066CC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p { font-size: 1.1rem; margin-bottom: 2rem; color: #E6F2FF; }

.btn.hero-btn {
  background: #0066CC; color: #E6F2FF;
  padding: .75rem 2rem; border-radius: 50px; text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
}

.btn.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.grid {
  display: grid; gap: 1.5rem;
}

.features .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  width: 90%; margin: 0 auto;
}

.pricing .grid {
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  width: 90%; margin: 0 auto;
}

.card, .price-card {
  background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform .6s ease, box-shadow .6s ease;
}

.card:hover, .price-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.card .icon, .price-card h3 {
  color: #00D4FF; margin-bottom: .5rem;
}

.card p, .card h3, .card .icon {
  color: #FFFFFF;
}

.card p, .price-card p, .price-card .price {
  color: #E6F2FF;
}

.price-card .price {
  font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem;
}

.cta h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #E6F2FF; }

.btn.cta-btn {
  background: #004080; color: #E6F2FF;
  padding: .75rem 2rem; border-radius: 50px;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
}

.btn.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.footer {
  background: rgba(0,14,38,0.9); color: #E6F2FF; padding: 3rem 0 1rem;
  text-align: center;
}

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 2rem; width: 90%; margin: 0 auto 2rem;
}

.footer a {
  color: rgba(230,242,255,0.8); text-decoration: none;
  transition: color .3s;
}

.footer a:hover { color: #00D4FF; }

.footer-bottom { font-size: .9rem; opacity: .6; }

/* Popup */
.popup-overlay {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: #001f4d; color: #E6F2FF;
  padding: 2rem; max-width: 500px;
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  text-align: left; position: relative;
}

.popup-content h3 { margin-top: 0; font-size: 1.5rem; }
.popup-content p { margin-top: 1rem; line-height: 1.6; }

.close-popup {
  position: absolute; top: 12px; right: 16px;
  font-size: 1.5rem; cursor: pointer; color: #00D4FF;
}

/* RESPONSIVE */
@media(max-width: 600px) {
  .hero h2 { font-size: 2rem; }
  .cta h2 { font-size: 1.6rem; }
  .btn.hero-btn, .btn.cta-btn { padding: .6rem 1.5rem; }
}
