/* ========== VARIABLES ========== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #8b5cf6;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a24;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* BG */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 55%
    );
  animation: backgroundShift 22s ease-in-out infinite;
}
@keyframes backgroundShift {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow);
}
.logo {
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.menu-toggle {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.menu-toggle:hover {
  background: var(--glass);
}
#site-nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
#site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
#site-nav a:hover {
  color: var(--text-primary);
}
#site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
  border-radius: 1px;
}
#site-nav a:hover::after {
  width: 100%;
}
.social {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.social svg {
  width: 1.15rem;
  fill: var(--text-secondary);
  transition: fill 0.3s ease;
}
.social:hover {
  transform: translateY(-2px);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.social:hover svg {
  fill: #fff;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}
.hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.4rem;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--text-secondary);
  margin: 0 auto 3rem;
  max-width: 640px;
  font-weight: 400;
}

.floating-elements {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.floating-card {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 1.2rem 1.4rem;
  animation: float 6s ease-in-out infinite;
  font-size: 0.95rem;
}
.floating-card:nth-child(1) {
  top: 22%;
  left: 10%;
  animation-delay: 0s;
}
.floating-card:nth-child(2) {
  top: 56%;
  right: 14%;
  animation-delay: 2s;
}
.floating-card:nth-child(3) {
  bottom: 28%;
  left: 20%;
  animation-delay: 4s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* BUTTONS */
.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.55s ease;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}
.btn.secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
}

/* PACKAGES */
.packages {
  max-width: 1220px;
  margin: 7rem auto;
  padding: 0 2rem;
  position: relative;
}
.packages h2 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.2rem 2.4rem;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all 0.45s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.card:hover::before {
  opacity: 1;
}
.card.highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.07));
}
.card.highlight::after {
  content: "POPULAR";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.28rem 0.75rem;
  border-radius: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}
.price {
  font-size: 2.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 0.2rem;
}
.card li {
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* FAQ */
.faq-grid details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  transition: all 0.35s ease;
}
.faq-grid details[open] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-dark), 0 8px 28px -10px rgba(0, 0, 0, 0.4);
}
.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-grid summary::-webkit-details-marker {
  display: none;
}
.faq-grid details p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FOOTER */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 6rem;
}
.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .header {
    padding: 1rem 1.2rem;
  }
  .menu-toggle {
    display: block;
  }
  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(22px);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 2rem 1.5rem;
    gap: 1.4rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }
  #site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .packages {
    margin: 4.5rem auto;
    padding: 0 1.1rem;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .floating-elements {
    display: none;
  }
}

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* UTIL */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.benefits {
  padding: 4rem 1rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.benefits h2 {
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.benefit-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .benefits-container {
    grid-template-columns: 1fr;
  }
}
