html {
  scroll-behavior: smooth; /* KUNCI AGAR SCROLL HALUS */
}

/* Tambahkan padding-top pada target scroll agar tidak ketutup Navbar Sticky */
section[id] {
  scroll-margin-top: 80px;
}

:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --success: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #f8fafc;
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden; /* Mencegah scroll horizontal akibat animasi blob */
}

/* UTILITIES */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}
a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}
.logo-box {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 24px;
}
.nav-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-menu a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--dark);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}
.btn-nav:hover {
  transform: translateY(-2px);
}

/* HERO SECTION - PADAT & HIDUP */
.hero {
  padding: 80px 0;
  background: radial-gradient(circle at top right, #dbeafe 0%, transparent 40%);
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Badge Animasi */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  margin-bottom: 20px;
}
.dot-blink {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s infinite; /* ANIMASI BLINK */
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 15px;
  color: var(--dark);
}
.text-gradient {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 450px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.btn-hero {
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
}

.trusted-by {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatars {
  display: flex;
}
.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-left: -8px;
}
.av:first-child {
  margin-left: 0;
}
.trusted-by small {
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- HERO VISUAL (ANIMATED WIDGET) --- */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.mockup-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5);

  /* Posisi awal miring */
  transform: rotate(-3deg) translateY(0);
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  z-index: 10;

  /* ANIMASI FLOAT (Melayang) */
  animation: float 6s ease-in-out infinite;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.r {
  background: #ef4444;
}
.y {
  background: #f59e0b;
}
.g {
  background: #22c55e;
}
.mockup-title {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
}

.row-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.mono {
  font-family: "JetBrains Mono", monospace;
}
.success {
  color: var(--success);
}
.divider {
  height: 1px;
  background: #e2e8f0;
  margin: 15px 0;
  border-top: 1px dashed #cbd5e1;
}
.total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}

.stamp {
  position: absolute;
  bottom: 30px;
  right: 20px;
  border: 3px solid #22c55e;
  color: #22c55e;
  padding: 5px 10px;
  font-weight: 900;
  opacity: 0.2;
  transform: rotate(-15deg);
  font-size: 1.5rem;
}

/* Badge yang menempel di kartu */
.float-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--success);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
  z-index: 12;
  animation: float 6s ease-in-out infinite reverse; /* Gerak berlawanan arah kartu */
}

/* Background Blobs (Animasi Denyut) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
  opacity: 0.7;
}
.b1 {
  width: 250px;
  height: 250px;
  background: #bfdbfe;
  top: -40px;
  right: -40px;
  animation: pulse 8s infinite alternate; /* Animasi Pulse */
}
.b2 {
  width: 200px;
  height: 200px;
  background: #ddd6fe;
  bottom: -40px;
  left: -20px;
  animation: pulse 8s infinite alternate-reverse;
}

/* SECTIONS COMMON */
section {
  padding: 80px 0;
}
.section-head {
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--gray);
  font-size: 1.1rem;
}
.text-center {
  text-align: center;
}

/* COMPARISON GRID */
.section-dark {
  background: #1e293b;
  color: white;
}
.section-dark .section-head p {
  color: #94a3b8;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.bento-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  transition: transform 0.2s;
}
.bento-box:hover {
  transform: translateY(-5px);
}
.bento-box.good {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.box-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.box-icon.red {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.box-icon.blue {
  background: #22c55e;
  color: white;
}

.bento-box h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}
.bento-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bento-box li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
  display: flex;
  gap: 10px;
}

/* STEPS GRID */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
  margin-bottom: 10px;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* FEATURE BENTO GRID (Padat) */
.section-features {
  background: white;
}
.feature-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 160px); /* Tinggi Fixed */
  gap: 15px;
}
.fb-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s;
}
.fb-item:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

/* Item Utama (Besar) */
.fb-item.main {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--dark);
  color: white;
  border: none;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}
.fb-item.main h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  z-index: 2;
}
.fb-item.main p {
  color: #94a3b8;
  font-size: 1.1rem;
  z-index: 2;
  position: relative;
}

/* Grafik Animasi (Bar Chart) */
.mini-graph {
  margin-top: auto;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 10px;
}
.bar {
  width: 30%;
  background: var(--primary);
  border-radius: 6px 6px 0 0;
  opacity: 0.8;
}
.bar-1 {
  height: 40%;
  animation: grow 2s infinite alternate ease-in-out;
}
.bar-2 {
  height: 70%;
  animation: grow 2.5s infinite alternate ease-in-out 0.5s;
}
.bar-3 {
  height: 55%;
  animation: grow 3s infinite alternate ease-in-out 1s;
}

.icon-wrap {
  color: var(--primary);
  margin-bottom: 10px;
}
.fb-item h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.fb-item p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: white;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-left strong {
  font-size: 1.5rem;
  display: block;
}
.f-left p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}
.f-right {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- KEYFRAMES ANIMATION (Yang Bikin Hidup) --- */

@keyframes float {
  0% {
    transform: translateY(0px) rotate(-3deg);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  } /* Naik sedikit & putar */
  100% {
    transform: translateY(0px) rotate(-3deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes grow {
  0% {
    transform: scaleY(0.8);
  }
  100% {
    transform: scaleY(1.2);
  }
}

/* --- FAQ SECTION --- */
.small-container {
  max-width: 700px;
  margin: 0 auto;
} /* Lebih sempit agar fokus */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Menghilangkan panah default browser yang jelek */
.faq-item summary {
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Menambahkan ikon + kustom */
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray);
  transition: transform 0.2s;
}

/* Saat dibuka */
.faq-item[open] summary::after {
  transform: rotate(45deg); /* Berubah jadi X */
  color: var(--primary);
}
.faq-item[open] summary {
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.faq-body p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- FINAL CTA SECTION --- */
.cta-section {
  padding: 80px 0;
}
.cta-box {
  background: var(--primary); /* Latar Biru Utama */
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 24px;
  padding: 60px 20px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.4);
  position: relative;
  overflow: hidden;
}

/* Hiasan background abstrak di CTA */
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.cta-box::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}
.cta-box p {
  font-size: 1.2rem;
  color: #bfdbfe;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

/* Tombol Putih khusus CTA */
.btn-white {
  background: white;
  color: var(--primary);
  position: relative;
  z-index: 2;
}
.btn-white:hover {
  background: #f8fafc;
  color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .cta-box h2 {
    font-size: 1.8rem;
  }
  .cta-box p {
    font-size: 1rem;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    align-items: center;
  }

  /* Di HP, animasi berat dimatikan/disederhanakan biar tidak lemot */
  .hero-visual {
    display: none;
  }

  h1 {
    font-size: 2.2rem;
  }
  .comparison-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .fb-item.main {
    grid-column: span 1;
    grid-row: auto;
    min-height: 200px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
