
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background: #020311;
  overflow-x: hidden;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(120, 180, 255, 0.5), transparent 60%),
              radial-gradient(circle at bottom, rgba(150, 80, 255, 0.3), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #020311 80%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 1.5rem;
}

.title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 0.8rem;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.4s ease forwards;
}

.subtitle {
  font-size: clamp(1rem, 2.3vw, 1.4rem);
  margin-top: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #d8e4ff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.8s ease forwards;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5c9dff, #9b6bff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2.1s ease forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #7eb6ff, #b18dff);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  margin: auto;
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  animation: scrollPulse 1.6s ease-in-out infinite;
}

/* Sections */

.section {
  padding: 72px 20px;
  background: radial-gradient(circle at top, #070822, #020311 55%);
  text-align: center;
}

.section:nth-of-type(even) {
  background: radial-gradient(circle at bottom, #05051a, #020311 55%);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #cad5ff;
}

/* Cards */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 32px;
}

.card {
  background: linear-gradient(145deg, rgba(16, 24, 56, 0.95), rgba(10, 8, 40, 0.98));
  padding: 22px 22px 26px;
  width: min(300px, 100%);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(122, 153, 255, 0.4);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(135, 206, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #e2e6ff;
}

.card:hover {
  transform: translateY(-8px) rotate3d(1, -1, 0, 6deg);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.7);
  border-color: rgba(194, 219, 255, 0.8);
}

.card:hover::before {
  opacity: 1;
}

/* Highlight section */

.highlight {
  position: relative;
}

.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(140, 190, 255, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(28px);
    opacity: 0;
  }
}

/* Responsive */

@media (max-width: 768px) {
  .cards {
    gap: 18px;
  }

  .card {
    width: 100%;
  }

  .section {
    padding: 60px 18px;
  }
}

@media (max-width: 480px) {
  .title {
    letter-spacing: 0.4rem;
  }

  .subtitle {
    line-height: 1.5;
  }
}
