/* --- VARIABLES --- */
:root {
  --primary: #00d2ff;
  --secondary: #3a7bd5;
  --dark-bg: #0f0c29;
  --darker-bg: #050414; /* FIXED: Variabel ini sebelumnya hilang */
  --dark-card: #24243e;
  --text-color: #333;
  --gradient-blue: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --gradient-glow: linear-gradient(to right, #00d2ff, #945eff);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  color: var(--text-color);
  overflow-x: hidden;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}

/* --- UTILITIES --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.text-center {
  text-align: center;
}
.text-white {
  color: white !important;
}
.section {
  padding: 80px 0;
  position: relative;
}
.mt-2 {
  margin-top: 10px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-blue);
  color: white;
}
.btn-primary.glow {
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(0, 210, 255, 0.7);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
}
.btn-outline:hover {
  background: white;
  color: var(--secondary);
  border-color: white;
}
.btn-outline-dark {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--secondary);
  color: white;
}
.full-width {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 20px;
}

/* --- NAVBAR (Sticky & Glassmorphism) --- */
.navbar {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(15, 12, 41, 0.95);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}
.logo span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
}
.btn-nav {
  background: var(--gradient-blue);
  padding: 8px 25px !important;
  color: white !important;
  border-radius: 30px;
}
.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  color: white;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.hero-text {
  flex: 1;
  max-width: 600px;
}
.badge-new {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--primary);
}
.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-text h1 span {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 15px;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.hero-image img {
  max-width: 100%;
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.floating-anim {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Wave Logic */
.wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.wave-top-tengah {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  /* transform: rotate(180deg); */
  z-index: 1;
  background-color: var(--darker-bg);
}

/* --- FEATURES --- */
.features {
  background: #fff;
  z-index: 2;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1a1a2e;
}
.text-white h2 {
  color: white;
}
.section-header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}
.text-white p {
  color: rgba(255, 255, 255, 0.7);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.feature-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
}
.gradient-1 {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  border-radius: 10px;
}
.gradient-2 {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}
.gradient-3 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* --- PRICING (FIXED) --- */
.pricing {
  /* FIXED: Menggunakan background solid gelap agar aman, ditambah gradient halus */
  background-color: var(--darker-bg);
  background-image: linear-gradient(
    to bottom,
    var(--darker-bg),
    var(--dark-bg)
  );

  /* FIXED: Padding disesuaikan agar wave terlihat bagus */
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
}

.pricing .container {
  position: relative;
  z-index: 2; /* Agar konten di atas wave */
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.pricing-card {
  background: white;
  width: 320px;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: 0.3s;
}
.pricing-card:hover {
  transform: translateY(-5px);
}
.pricing-card.popular {
  transform: scale(1.05);
  border: 4px solid var(--primary); /* Dipertebal sedikit */
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
  z-index: 3;
}
.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-blue);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.card-header h3 {
  font-size: 1.8rem;
  color: #1a1a2e;
}
.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 20px 0;
}
.feature-list {
  text-align: left;
  margin-bottom: 30px;
}
.feature-list li {
  margin-bottom: 12px;
  color: #555;
  font-size: 0.95rem;
}
.feature-list li i {
  color: #2ecc71;
  margin-right: 10px;
}
.feature-list li.disabled {
  color: #ccc;
}
.feature-list li.disabled i {
  color: #e74c3c;
}

/* --- FAQ SECTION --- */
.faq-section {
  background: #f9f9f9;
}
.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
}
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1a1a2e;
  transition: 0.3s;
}
.faq-question:hover {
  background: #f0f4f8;
}
.faq-question i {
  transition: transform 0.3s;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--secondary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}
.faq-answer p {
  padding-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}

/* --- CTA & FOOTER --- */
.cta-final {
  background: white;
}
.footer {
  background: #0f0c29;
  color: #aaa;
  padding: 60px 0 20px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}
.footer-logo .logo {
  font-size: 2rem;
}
.footer-social a {
  color: white;
  margin-left: 20px;
  font-size: 1.2rem;
  transition: 0.3s;
}
.footer-social a:hover {
  color: var(--primary);
}
.footer-bottom p {
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  .hero-text {
    margin-bottom: 50px;
  }
  .hero-btns {
    justify-content: center;
  }
  .pricing-card.popular {
    transform: scale(1);
    margin: 20px 0;
  }
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    background: rgba(15, 12, 41, 0.98); /* Lebih solid di mobile */
    width: 70%;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s;
    z-index: 999;
  }
  .nav-links.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}
