/* MuaraHub marketing site — brand tokens from NEW_IDENTITY.md / marketing_branding.md */
:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --teal: #22D3C5;
  --teal-dark: #0F8F84;
  --amber: #F5A623;
  --amber-dark: #C9820F;
  --off-white: #FAFAF8;
  --ink: #14213D;
  --gray-600: #5B6472;
  --gray-300: #D8DCE3;
  --gray-100: #F2F3F5;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  --max-width: 1120px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--gray-600); }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Language toggle: default shows Indonesian, hides English */
.lang-en { display: none; }
[data-lang="en"] .lang-en { display: inline; }
[data-lang="en"] .lang-id { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.site-nav a:hover { color: var(--teal-dark); }

.lang-toggle {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--gray-300); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid transparent;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 120% at 20% 0%, var(--navy-2) 0%, var(--navy) 60%);
  color: #fff;
  padding: 80px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(250, 250, 248, 0.82);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.hero-trust {
  font-size: 0.9rem;
  color: rgba(250, 250, 248, 0.65);
  margin: 0;
}

.hero-art { opacity: 0.95; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark p, .section-dark .step p { color: rgba(250, 250, 248, 0.75); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 16px;
}
.section-title-sm {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.section-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-navy { background: var(--navy); color: var(--teal); }
.icon-teal { background: rgba(34, 211, 197, 0.14); color: var(--teal-dark); }

.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { color: #fff; font-size: 1.1rem; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  padding: 32px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.trust-item span { font-size: 0.88rem; color: var(--gray-600); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card-popular {
  border-color: var(--amber);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.1rem; margin-bottom: 12px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price .amount { font-size: 2rem; font-weight: 800; color: var(--navy); }
.price .period { font-size: 0.95rem; color: var(--gray-600); }

.price-desc { font-size: 0.92rem; margin-bottom: 20px; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}
.price-features li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
  border-top: 1px solid var(--gray-100);
}
.price-features li:first-child { border-top: none; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.price-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 32px;
}

/* ---------- Enterprise callout ---------- */
.section-enterprise {
  background: var(--navy-2);
  color: #fff;
  padding: 56px 0;
}
.section-enterprise p { color: rgba(250, 250, 248, 0.78); margin: 0; }
.enterprise-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.enterprise-inner > div { max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal-dark);
  margin-left: 16px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 140%);
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.section-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: #fff; }
.section-cta p { color: rgba(250, 250, 248, 0.85); font-size: 1.05rem; }
.section-cta .hero-actions { justify-content: center; }
.section-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(250, 250, 248, 0.75);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; max-width: 260px; }

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: rgba(250, 250, 248, 0.75);
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-popular { transform: none; }
  .trust-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-300);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { width: 100%; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 240px; margin: 0 auto; }

  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }

  .enterprise-inner { flex-direction: column; align-items: flex-start; }
}
