/*
  PT Ammana Fintek Syariah
  Cleaned CSS based on TemplateMo 622 Clearwave
*/

:root {
  --bg: #F5FAF8;
  --bg-alt: #EDF6F2;
  --surface: #F7FBFA;
  --surface-2: #FFFFFF;
  --brand-blue: #1E78C8;
  --brand-green: #3BA55D;
  --brand-grad: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  --accent: #1F8A54;
  --accent-mid: #2AA06A;
  --accent-light: #63C08A;
  --accent-ghost: rgba(31, 138, 84, 0.08);
  --accent-border: rgba(31, 138, 84, 0.16);
  --warn: #FFC66B;
  --warn-border: rgba(255, 198, 107, 0.35);
  --text-1: #0D1E1C;
  --text-2: #3A5C58;
  --text-3: #6B8C88;
  --border: rgba(13, 30, 28, 0.08);
  --shadow-sm: 0 2px 12px rgba(13, 30, 28, 0.06);
  --silk: cubic-bezier(0.16, 1, 0.3, 1);
  --silk-dur: 0.8s;
  --radius: 16px;
  --radius-lg: 24px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── UTILITY ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-grad);
  border-radius: 50%;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-1);
}

.section-title em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 520px;
  margin-top: 16px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--silk), transform 0.7s var(--silk);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding var(--silk-dur) var(--silk), background var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(245, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  padding: 7px 16px;
  border-radius: 100px;
  background: transparent;
  transition: color 0.4s var(--silk), background 0.4s var(--silk), box-shadow 0.4s var(--silk);
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-ghost);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  background-size: 160% 100%;
  background-position: 0 0;
  padding: 11px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(31, 138, 84, 0.28);
  transition: background-position var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
}

.btn-primary:hover {
  background-position: 90% 0;
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(30, 120, 200, 0.32);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 11px 24px;
  border-radius: 100px;
  transition: color 0.4s var(--silk), border-color 0.4s var(--silk), box-shadow 0.4s var(--silk), transform var(--silk-dur) var(--silk);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 14px 32px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.4s var(--silk);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--silk);
  overflow-y: auto;
  padding: 96px 32px 48px;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-logo {
  height: 36px;
  width: auto;
  margin-bottom: 36px;
}

.mobile-menu a:not(.mobile-cta) {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--silk), transform 0.5s var(--silk), color 0.3s;
}

.mobile-menu a:not(.mobile-cta):first-of-type { border-top: 1px solid var(--border); }
.mobile-menu.open a:not(.mobile-cta) { opacity: 1; transform: none; }
.mobile-menu a:not(.mobile-cta):hover { color: var(--accent); }

.mobile-menu .mobile-cta {
  margin-top: 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 14px 40px;
}

/* ── HERO ── */
.hero-section {
  position: relative;
  padding: 190px 0 110px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 340px at 18% 8%, rgba(30, 120, 200, 0.10), transparent 70%),
    radial-gradient(640px 340px at 82% 14%, rgba(59, 165, 93, 0.10), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--accent-border);
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-1);
  margin-top: 28px;
}

.hero-title em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 580px;
  margin: 20px auto 0;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FEATURES ── */
.features-section {
  padding: 20px 0 120px;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header .section-sub {
  margin: 16px auto 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--silk), box-shadow 0.5s var(--silk), border-color 0.5s var(--silk);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 30, 28, 0.10);
  border-color: var(--accent-border);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(31, 138, 84, 0.28);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.feature-desc {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 10px;
}

/* ── STATS ── */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.stats-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 56px 32px;
}

.stat-card {
  padding: 12px 48px;
  text-align: center;
  align-self: center;
}

.stat-divider {
  width: 1px;
  background: var(--border);
}

.stat-rule {
  width: 32px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
  margin: 0 auto 24px;
  transition: width 0.5s var(--silk);
}

.stat-card:hover .stat-rule { width: 56px; }

.stat-value {
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-value .stat-num,
.stat-value .stat-suffix {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat-suffix {
  font-size: 55%;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.stat-sublabel {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── FAQ ── */
.faq-section {
  padding: 100px 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar .section-sub {
  margin-top: 16px;
  margin-bottom: 32px;
}

.faq-toggle-all {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
}

.faq-toggle-all:hover { opacity: 0.75; }

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
  transition: color 0.3s;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--accent);
  outline: none;
}

.faq-question:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-ghost);
  border-radius: 8px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 400;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.faq-item.open .faq-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--silk);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-2);
  padding-bottom: 0;
  transition: padding-bottom 0.5s var(--silk);
}

.faq-item.open .faq-answer-inner {
  padding-bottom: 20px;
}

.faq-link {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.faq-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.faq-link svg { flex-shrink: 0; }

/* ── CTA / DISCLAIMER ── */
.cta-section {
  padding: 100px 0;
}

.cta-inner {
  background: var(--text-1);
  border-radius: var(--radius-lg);
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 198, 107, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid var(--warn-border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cta-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 28px;
}

.cta-list {
  counter-reset: item;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-list li {
  counter-increment: item;
  position: relative;
  padding: 18px 20px 18px 58px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: background 0.4s var(--silk), border-color 0.4s var(--silk);
}

.cta-list li:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.cta-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 21px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--warn);
}

/* ── FOOTER ── */
.footer {
  background: var(--text-1);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.96;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
  max-width: 560px;
  margin-bottom: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s, border-color 0.3s;
}

.footer-link:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-sidebar {
    position: static;
  }

  .cta-inner {
    padding: 56px 40px;
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-section {
    padding: 150px 0 80px;
  }

  .features-section {
    padding: 0 0 80px;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 19px;
  }

  .cta-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .stats-band {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 28px 0;
  }

  .stat-card {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .faq-section,
  .cta-section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
