/* ────────────────────────────────────────────
   Base & Reset helpers
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ────────────────────────────────────────────
   Reveal on scroll
──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1),
              transform .55s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ────────────────────────────────────────────
   Hero
──────────────────────────────────────────── */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
}

/* ────────────────────────────────────────────
   Navbar
──────────────────────────────────────────── */
#site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 #e2e8f0, 0 4px 24px rgba(15,20,40,.06);
}
#site-header.scrolled .nav-link { color: #475569; }
#site-header.scrolled .nav-link:hover { color: #1f3c88; }
#site-header.scrolled .btn-primary { /* keeps brand color */ }
#site-header.scrolled #logo-text { color: #0f172a; }
#site-header.scrolled #logo-img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(94%) saturate(751%) hue-rotate(206deg) brightness(90%) contrast(95%);
}
#site-header.scrolled .ham { background-color: #1e293b; }
#site-header.scrolled .btn-ghost {
  color: #475569;
  border-color: #cbd5e1;
}
#site-header.scrolled .btn-ghost:hover { background: #f1f5f9; color: #1e293b; }

/* Logo default state (dark hero) */
#logo-img { filter: brightness(0) invert(1); }

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: .375rem .75rem;
  border-radius: .5rem;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }

.mob-nav-link {
  display: block;
  font-size: .9375rem;
  font-weight: 500;
  color: #475569;
  padding: .625rem .75rem;
  border-radius: .625rem;
  transition: color .2s, background .2s;
}
.mob-nav-link:hover { background: #f1f5f9; color: #1e293b; }

/* hamburger open state */
.ham { display: block; width: 24px; height: 1.5px; border-radius: 2px; transition: all .3s; }
#navToggle[aria-expanded="true"] .ham:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
#navToggle[aria-expanded="true"] .ham:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
#navToggle[aria-expanded="true"] .ham:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
  width: 24px;
}

/* ────────────────────────────────────────────
   Buttons
──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 2.625rem;
  padding: 0 1.25rem;
  background: #1f3c88;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: .75rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #142a62;
  box-shadow: 0 4px 18px rgba(31,60,136,.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 2.625rem;
  padding: 0 1.25rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .75rem;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.625rem;
  padding: 0 1.25rem;
  color: #1f3c88;
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid #1f3c88;
  border-radius: .75rem;
  transition: background .2s, color .2s;
}
.btn-outline-brand:hover { background: #1f3c88; color: #fff; }

/* ────────────────────────────────────────────
   Typography helpers
──────────────────────────────────────────── */
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1f3c88;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #0f172a;
}

.section-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ────────────────────────────────────────────
   Feature rows (mengapa section)
──────────────────────────────────────────── */
.feature-row {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  transition: box-shadow .25s, border-color .25s;
}
.feature-row:hover {
  box-shadow: 0 4px 24px rgba(15,20,40,.08);
  border-color: #e2e8f0;
}
.feature-row-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────
   Process cards
──────────────────────────────────────────── */
.process-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: box-shadow .25s, transform .25s;
}
.process-card:hover {
  box-shadow: 0 8px 32px rgba(15,20,40,.08);
  transform: translateY(-2px);
}
.process-step {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #1f3c88;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ────────────────────────────────────────────
   Service cards v2
──────────────────────────────────────────── */
.service-card-v2 {
  position: relative;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: box-shadow .25s, border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.service-card-v2:hover {
  box-shadow: 0 12px 40px rgba(15,20,40,.1);
  border-color: #e2e8f0;
  transform: translateY(-3px);
}
.service-num {
  font-size: .75rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: .05em;
}

/* ────────────────────────────────────────────
   Pricing cards
──────────────────────────────────────────── */
.pricing-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.pricing-card:hover {
  box-shadow: 0 12px 40px rgba(15,20,40,.1);
  transform: translateY(-2px);
}
.pricing-card--pro {
  border-color: #1f3c88;
  box-shadow: 0 0 0 4px rgba(31,60,136,.06);
}

.pricing-li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: #475569;
}

/* ────────────────────────────────────────────
   Index cards
──────────────────────────────────────────── */
.index-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: box-shadow .25s, border-color .25s, transform .2s;
}
.index-card:hover {
  box-shadow: 0 8px 30px rgba(15,20,40,.08);
  border-color: #e2e8f0;
  transform: translateY(-2px);
}

/* ────────────────────────────────────────────
   FAQ accordion
──────────────────────────────────────────── */
.faq-item {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] {
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(15,20,40,.07);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: .9375rem;
  color: #1e293b;
  cursor: pointer;
  gap: 1rem;
  transition: background .15s;
}
.faq-q:hover { background: #f8fafc; }
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform .3s;
}
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.25rem 1.125rem;
  font-size: .875rem;
  color: #64748b;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  padding-top: .875rem;
  margin-top: 0;
}

/* ────────────────────────────────────────────
   Contact form
──────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .625rem .875rem;
  font-size: .9375rem;
  border: 1.5px solid #e5e7eb;
  border-radius: .625rem;
  background: #f9fafb;
  color: #111827;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1f3c88;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,60,136,.1);
}
.form-group textarea { resize: vertical; min-height: 7rem; }

/* ────────────────────────────────────────────
   Footer links
──────────────────────────────────────────── */
.footer-link {
  color: #94a3b8;
  font-size: .875rem;
  transition: color .2s;
}
.footer-link:hover { color: #fff; }

/* ────────────────────────────────────────────
   Shadows (custom)
──────────────────────────────────────────── */
.shadow-card  { box-shadow: 0 2px 12px rgba(15,20,40,.07); }
.shadow-soft  { box-shadow: 0 8px 32px rgba(15,20,40,.10); }
.shadow-glow  { box-shadow: 0 0 48px rgba(31,60,136,.2); }

/* ────────────────────────────────────────────
   Smooth counter
──────────────────────────────────────────── */
.counter { font-variant-numeric: tabular-nums; }
