:root {
  --cream: #fff8f8;
  --warm: #f5e8e8;
  --gold: #c8a020;
  --gold-light: #e0b830;
  --dark: #7a1010;
  --red-deep: #5a0a0a;
  --muted: #9b6b6b;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--dark);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* Navbar */
.navbar {
  background: var(--red-deep);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 160, 32, 0.25);
}

/* Navbar brand text */
.navbar-brand {
  color: var(--cream);
}

/* Nav links */
.nav-link {
  color: #fff8f8;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link:hover::after {
  width: 100%;
}

/* Navbar logo */
.navbar-logo {
  border-radius: 9999px;
  border: 2px solid rgba(200, 160, 32, 0.35);
  padding: 2px;
}

/* Mobile menu navbar */
.navbar-mobile {
  background: var(--red-deep);
  border-top: 1px solid rgba(200, 160, 32, 0.2);
}
.nav-link-mobile {
  color: #fff8f8;
  transition: color 0.2s ease;
}
.nav-link-mobile:hover {
  color: var(--gold);
}

/* Mobile menu toggle button */
.navbar-toggle {
  color: var(--cream);
}

/* Hero decorative lines */
.ruled-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Stats counter */
.stat-card {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

/* Feature cards */
.feature-card {
  background: white;
  border: 1px solid rgba(184, 146, 74, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  border-color: rgba(184, 146, 74, 0.3);
  box-shadow: 0 8px 32px -8px rgba(184, 146, 74, 0.15);
  transform: translateY(-2px);
}

/* Paket cards */
.paket-card {
  background: white;
  border: 1px solid #e8e0d4;
  transition: all 0.25s ease;
}
.paket-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px -12px rgba(184, 146, 74, 0.2);
  transform: translateY(-3px);
}

/* CTA Button */
.btn-primary {
  background: var(--dark);
  color: var(--cream);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(184, 146, 74, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--dark);
  color: var(--dark);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--cream);
}

/* Decorative number */
.big-number {
  font-family: "Playfair Display", serif;
  font-size: 8rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 146, 74, 0.2);
}

/* Testimonial quote mark */
.quote-mark {
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.3;
}

/* Mobile menu */
#mobile-menu {
  transition: all 0.2s ease;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
.fade-in-delay-1 {
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}
.fade-in-delay-2 {
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}
.fade-in-delay-3 {
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

/* Diagonal section divider */
.diagonal-top {
  clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0% 100%);
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVENESS — max-width 768px
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Navbar ── */
  .navbar {
    position: fixed;
    width: 100%;
  }
  .navbar > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  /* ── Hero Section ── */
  .hero-section {
    min-height: unset !important;
    padding: 5rem 1.25rem 2.5rem !important;
  }
  .hero-section img {
    max-width: 100% !important;
    max-height: 260px !important;
  }
  .hero-section h1 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  /* ── Section padding ganti py-24 jadi lebih kecil ── */
  section.py-24,
  section[class*="py-24"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* ── Section header margin ── */
  .text-center.mb-16 {
    margin-bottom: 2rem;
  }
  .text-center.mb-14 {
    margin-bottom: 1.75rem;
  }

  /* ── Section headings ── */
  section h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  /* ── Feature cards ── */
  .feature-card {
    padding: 1.25rem !important;
  }

  /* ── Paket cards ── */
  .paket-card {
    width: 100%;
  }

  /* ── YouTube CTA button ── */
  #video .text-center a {
    width: 100%;
    justify-content: center;
  }

  /* ── Kelas Fleksibel cards ── */
  #kelas .feature-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem !important;
  }

  /* ── CTA Section ── */
  .cta-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .cta-section h2 {
    font-size: 2rem !important;
  }

  /* ── Footer ── */
  footer {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }
  footer .grid {
    gap: 2rem;
  }

  /* ── FAQ ── */
  .faq-btn {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }
  .faq-btn span {
    font-size: 0.875rem !important;
  }

  /* ── Hero trust badges ── */
  .hero-trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* ── CTA buttons hero ── */
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Section inner padding ── */
  section > div.max-w-6xl,
  section > div.max-w-3xl {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* ── Video cards ── */
  #video .grid {
    gap: 1rem;
  }

  /* ── Paket section ── */
  #paket .grid {
    gap: 1rem;
  }

  /* ── Features grid ── */
  #fitur .grid {
    gap: 1rem;
  }

  /* ── Kelas grid ── */
  #kelas .grid {
    gap: 1rem;
  }
}

/* ══════════════════════════════════════
   EXTRA SMALL — max-width 480px
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  section h2 {
    font-size: 1.5rem !important;
  }

  .hero-section h1 {
    font-size: 1.5rem !important;
  }

  .hero-section img {
    max-height: 200px !important;
  }

  /* FAQ font size */
  .faq-btn span {
    font-size: 0.8125rem !important;
  }

  /* CTA big heading */
  section[style*="#5a0a0a"] h2 {
    font-size: 1.75rem !important;
  }
}
