/* --- VARIABLES & THEME --- */
:root {
  --primary: #ec4899;
  --primary-dark: #be185d;
  --primary-light: #fbcfe8;
  --bg-main: #fff1f2;

  --text-dark: #111827;
  --text-gray: #4b5563;
  --surface: #ffffff;

  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 12px;
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg-main) 0%, #ffffff 100%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
.nav-brand {
  font-family: "Space Grotesk", sans-serif;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
}
.logo-svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem 1rem;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.highlight {
  background: linear-gradient(90deg, var(--primary) 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.4);
  transition: 0.2s;
}
.btn-hero:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(190, 24, 93, 0.6);
}
.secure-badge {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-gray);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px 12px;
  border-radius: 20px;
}

/* --- FLOATING ELEMENTS --- */
.gravity-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.floater {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatAnim 6s ease-in-out infinite;
  will-change: transform;
}
.card-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  width: 120px;
  height: 140px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  padding: 15px;
  gap: 12px;
}
.card-solid {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4);
}
.card-solid .stat {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box svg {
  width: 28px;
  height: 28px;
}
.icon-box.pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--primary);
}
.icon-box.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}
.icon-box.green {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.floater small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.circle {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.c1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(251, 207, 232, 0.6) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
}
.c2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(252, 231, 243, 0.8) 0%,
    transparent 70%
  );
  bottom: 50px;
  left: -100px;
}

/* Posisi Awal */
.p1 {
  top: 15%;
  left: 10%;
  transform: rotate(-10deg);
}
.p2 {
  top: 20%;
  right: 12%;
  transform: rotate(5deg);
}
.p3 {
  bottom: 20%;
  left: 15%;
  transform: rotate(8deg);
}
.p4 {
  bottom: 15%;
  right: 10%;
  transform: rotate(-5deg);
}

/* --- FEATURES SECTION --- */
.features {
  position: relative;
  background: white;
  padding: 6rem 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  z-index: 20;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.02);
  margin-top: -2rem;
}
.feature-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 2rem;
  width: 320px;
  text-align: left;
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}
.f-icon {
  width: 60px;
  height: 60px;
  background: #fdf2f8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* --- PRICING SECTION --- */
.pricing {
  padding: 6rem 1rem;
  background: #fafafa;
  text-align: center;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.section-header p {
  margin-bottom: 3rem;
  color: var(--text-gray);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 2.5rem;
  /* PERBAIKAN: Gunakan 100% dengan max-width agar responsif */
  width: 100%;
  max-width: 340px;
  text-align: left;
  position: relative;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.15);
  transform: scale(1.05);
  z-index: 2;
}
.price-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.price-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 10px 0;
}
.period {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 400;
}
.price-features {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.price-features li.disabled {
  color: #9ca3af;
  text-decoration: line-through;
}
.check-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.x-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d1d5db;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-price-outline {
  display: block;
  text-align: center;
  padding: 0.8rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}
.btn-price-outline:hover {
  background: #fff1f2;
}
.btn-price-solid {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.btn-price-solid:hover {
  background: var(--primary-dark);
}

/* --- FOOTER --- */
.main-footer {
  background: white;
  border-top: 1px solid #f3f4f6;
  padding: 4rem 1rem 2rem 1rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  max-width: 300px;
}
.footer-brand h4 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-gray);
}
.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.95rem;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 2rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* --- LEGAL PAGE STYLES --- */
.legal-header {
  padding-top: 8rem;
  padding-bottom: 2rem;
  text-align: center;
}
.legal-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.legal-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid white;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.15);
  position: relative;
  z-index: 10;
}
.legal-content h2 {
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.last-updated {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-top: -0.5rem;
}

/* --- PROMO SECTION (Signa / ECS Group) --- */
.promo-section {
  padding: 2rem 1.5rem 6rem 1.5rem; /* Padding bawah lebih besar agar tidak mepet footer */
  display: flex;
  justify-content: center;
  background: #fafafa; /* Menyambung dari section pricing */
}

.promo-card {
  background: #0f172a; /* Warna Dark Navy Premium */
  width: 100%;
  max-width: 1000px;
  border-radius: 24px;
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  color: white;
}

/* Background Decoration (Glow effect) */
.promo-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.promo-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.promo-badge {
  background: #fbbf24; /* Gold */
  color: #451a03;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.promo-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.text-gold {
  color: #fbbf24;
}

.promo-content p {
  color: #94a3b8; /* Slate Gray untuk teks di background gelap */
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.btn-promo {
  background: #fbbf24;
  color: #0f172a;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}

.btn-promo:hover {
  background: #f59e0b;
  transform: translateY(-3px);
}

/* Visual Icon Kanan */
.promo-visual {
  position: relative;
  z-index: 1;
  padding-right: 2rem;
}

.signa-icon {
  width: 180px;
  height: 180px;
  stroke: #fbbf24;
  opacity: 0.1; /* Transparan artistik */
  transform: rotate(-15deg);
  transition: 0.5s ease;
}

.promo-card:hover .signa-icon {
  opacity: 0.3;
  transform: rotate(0deg) scale(1.1);
}

/* RESPONSIVE MOBILE (Fix Layout) */
@media (max-width: 768px) {
  .promo-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    text-align: left;
  }

  .promo-content h2 {
    font-size: 2rem;
  }

  .promo-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .promo-visual {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 0;
  }

  .signa-icon {
    width: 120px;
    height: 120px;
  }

  .btn-promo {
    width: 100%;
    justify-content: center;
  }
}

/* --- ANIMATIONS --- */
@keyframes floatAnim {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES (FIXES) --- */

@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  .hero-section {
    padding-top: 5rem;
  }
  .p1 {
    left: 2%;
    top: 10%;
    scale: 0.8;
  }
  .p2 {
    right: 2%;
    top: 15%;
    scale: 0.8;
  }
}

/* MOBILE FIX (768px and below) */
@media (max-width: 768px) {
  /* Navbar: Sembunyikan menu di HP */
  .navbar {
    padding: 1rem;
  }
  .nav-links {
    display: none;
  }

  /* Hero Text: Kecilkan agar muat */
  h1 {
    font-size: 2.5rem;
    padding: 0 10px;
  }
  p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .hero-section {
    padding-top: 7rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  /* Elemen Melayang: Sembunyikan sebagian, sisanya atur ulang */
  .p1,
  .p4 {
    display: none;
  }
  .p2 {
    top: 12%;
    right: 5%;
    scale: 0.7;
    opacity: 0.8;
  }
  .p3 {
    bottom: 10%;
    left: 5%;
    scale: 0.7;
    opacity: 0.8;
  }

  /* Pricing: Stack Vertikal (Rapi) */
  .pricing {
    padding: 4rem 1.5rem;
  }
  .pricing-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  /* Kartu Harga: Fluid Width */
  .price-card {
    width: 100%;
    max-width: 100%; /* Biarkan mengisi container */
  }
  .price-card.popular {
    transform: none;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
  }
  .price-card.popular:hover {
    transform: none;
  } /* Matikan efek hover di HP */

  /* Feature Cards */
  .feature-card {
    width: 100%;
  }

  /* Footer: Center Align */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .footer-brand,
  .footer-links {
    width: 100%;
    max-width: 100%;
  }
  .footer-links ul {
    text-align: center;
  }

  /* Legal Page Padding */
  .legal-container {
    padding: 1.5rem;
    margin: 0 1rem 4rem 1rem;
  }
  .legal-header h1 {
    font-size: 2rem;
  }
}
