/* ===================================================================
   Hayaati — situs resmi
   Warna diambil persis dari aplikasi (ColorUtils):
   ungu p500 #8154FE / p600 #6D2AF6 / p50 #F4F2FF / p100 #EBE8FF
   netral dark950 #181A20 / dark600 #535E76 / dark100 #ECEEF2
   emas gold1 #9B702F / gold2 #F2BD6D
   =================================================================== */
:root {
  --p50: #f4f2ff;
  --p100: #ebe8ff;
  --p200: #dad4ff;
  --p400: #9f85ff;
  --p500: #8154fe;
  --p600: #6d2af6;
  --p800: #5219be;
  --p950: #290c69;
  --dark50: #f6f7f9;
  --dark100: #eceef2;
  --dark400: #8793a9;
  --dark500: #68758f;
  --dark600: #535e76;
  --dark800: #3b4151;
  --dark950: #181a20;
  --gold1: #9b702f;
  --gold2: #f2bd6d;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(24, 26, 32, 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  color: var(--dark950);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Bahasa: html[data-lang] menentukan teks yang tampil ---------- */
[data-lang="id"] .i-en,
[data-lang="en"] .i-id {
  display: none !important;
}

/* ============================ SPLASH ============================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(160deg, var(--p600), var(--p950));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#splash.hide {
  opacity: 0;
  visibility: hidden;
}

#splash img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  animation: splashPulse 1.2s ease-in-out infinite;
}

#splash .splash-name {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

#splash .splash-bar {
  width: 120px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

#splash .splash-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: var(--white);
  animation: splashSlide 1s ease-in-out infinite;
}

@keyframes splashPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes splashSlide {
  0% {
    margin-left: -40%;
  }
  100% {
    margin-left: 100%;
  }
}

/* ============================ HEADER ============================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 5vw, 48px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(24, 26, 32, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

header.scrolled .brand,
header.inner .brand {
  color: var(--dark950);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(24, 26, 32, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}

header.scrolled .nav-links,
header.inner .nav-links {
  color: var(--dark600);
}

.nav-links a:hover {
  opacity: 0.75;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.lang-switch {
  display: flex;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 5px 12px;
  cursor: pointer;
  font: inherit;
}

.lang-switch button.active {
  background: var(--white);
  color: var(--p600);
}

header.scrolled .lang-switch button.active,
header.inner .lang-switch button.active {
  background: var(--p600);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--p600);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--p500), var(--p600));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(109, 42, 246, 0.35);
}

.btn-small {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* menu mobile */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 6px;
}

header .menu-btn {
  color: var(--white);
}

header.scrolled .menu-btn,
header.inner .menu-btn {
  color: var(--dark950);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 62px;
  left: 12px;
  right: 12px;
  z-index: 890;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(24, 26, 32, 0.18);
  padding: 10px;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--dark800);
}

.mobile-nav a:active {
  background: var(--p50);
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(160deg, var(--p500) 0%, var(--p600) 45%, var(--p950) 100%);
  overflow: hidden;
  color: var(--white);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: var(--p400);
  top: -120px;
  left: -120px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: var(--gold2);
  bottom: -140px;
  right: -100px;
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold2), #ffe9c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 22px auto 34px;
  max-width: 560px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 64px);
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
}

.hero-stats .stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================ SECTIONS ============================ */
section {
  padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 48px);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 60px);
}

.sec-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--p600);
  margin-bottom: 12px;
}

.sec-head h2 {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.sec-head p {
  margin-top: 14px;
  color: var(--dark600);
  font-size: 15.5px;
}

.alt {
  background: var(--dark50);
}

/* fitur */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--dark100);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--p50);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card p {
  color: var(--dark600);
  font-size: 14.5px;
}

/* blok fitur besar (blur / ustadz / safety) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: clamp(48px, 7vw, 84px);
}

.feature-row.flip .feature-art {
  order: 2;
}

.feature-art {
  border-radius: 28px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  background: linear-gradient(150deg, var(--p100), var(--p200));
}

.feature-art.goldish {
  background: linear-gradient(150deg, #fdf3dd, var(--gold2));
}

.feature-copy .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--p600);
  margin-bottom: 10px;
}

.feature-copy h3 {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 14px;
}

.feature-copy p {
  color: var(--dark600);
  font-size: 15.5px;
}

.feature-copy ul {
  margin-top: 16px;
  list-style: none;
}

.feature-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--dark800);
  font-size: 14.5px;
  font-weight: 500;
}

.feature-copy li::before {
  content: "✓";
  color: var(--p600);
  font-weight: 800;
  flex-shrink: 0;
}

/* paket */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--dark100);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.plan.featured {
  border-color: var(--gold2);
  background: linear-gradient(175deg, #fffdf8, var(--white) 40%);
}

.plan .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold2), var(--gold1));
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan h3 {
  font-size: 20px;
  font-weight: 800;
}

.plan .tier-sub {
  color: var(--dark500);
  font-size: 13.5px;
  margin: 6px 0 18px;
}

.plan ul {
  list-style: none;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 14px;
  color: var(--dark800);
}

.plan li::before {
  content: "✓";
  font-weight: 800;
  color: var(--p600);
  flex-shrink: 0;
}

.plan.featured li::before {
  color: var(--gold1);
}

.plan .btn {
  margin-top: 22px;
  width: 100%;
}

.plan-note {
  text-align: center;
  color: var(--dark500);
  font-size: 13px;
  margin-top: 22px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--dark100);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: var(--p600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--dark600);
  font-size: 14.5px;
}

/* CTA bawah */
.cta-final {
  background: linear-gradient(150deg, var(--p600), var(--p950));
  border-radius: 32px;
  text-align: center;
  color: var(--white);
  padding: clamp(48px, 8vw, 80px) 24px;
}

.cta-final h2 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta-final p {
  margin: 14px auto 30px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
}

/* footer */
footer {
  background: var(--dark950);
  color: var(--dark400);
  padding: 56px clamp(16px, 5vw, 48px) 32px;
}

.foot-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}

.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
}

footer a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

footer a:hover {
  color: var(--white);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: background 0.2s ease;
}

.socials a:hover {
  background: var(--p600);
}

.socials svg {
  width: 19px;
  height: 19px;
  fill: #cfd6e4;
}

.foot-bottom {
  max-width: 1080px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ================= HALAMAN LEGAL (privacy / terms) ================= */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 130px 20px 80px;
}

.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--dark500);
  font-size: 13.5px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  color: var(--dark600);
  font-size: 15px;
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 22px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row.flip .feature-art {
    order: 0;
  }

  .feature-art {
    min-height: 200px;
    font-size: 64px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .nav-desktop .nav-links,
  .nav-desktop .btn:not(.btn-keep) {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

/* Layar sangat sempit (<=400px): rapatkan header supaya logo + saklar
   bahasa + tombol tetap muat satu baris tanpa terpotong. */
@media (max-width: 400px) {
  header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    font-size: 18px;
    gap: 7px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .lang-switch button {
    padding: 4px 9px;
  }

  .btn-keep {
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
