:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header Mobile-First */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.site-header-bar .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.site-brand strong {
  font-size: 1.15rem;
  line-height: 1.2;
  display: block;
  letter-spacing: -0.01em;
}

.site-brand__tagline {
  display: block;
  font-size: 0.84rem;
  opacity: 0.92;
  margin-top: 2px;
}

.site-pages-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  opacity: 0.9;
  transition: background 0.15s, opacity 0.15s;
}

.page-nav-link:hover,
.page-nav-link.is-active {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.site-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  min-height: 38px;
  padding: 6px 12px;
}

.main-shell {
  margin-top: 16px;
}

/* Sistem Layout Modular (Mobile-First: 1 kolom di HP, 2 kolom di desktop) */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 18px 0 36px;
}

.slot-zone {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Styling Modul */
.mod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.mod-title {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.mod-banner {
  background: var(--accent);
  color: #111827;
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mod-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  text-align: center;
}

.mod-banner__badge {
  background: #111827;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.mod-banner__cta {
  font-weight: 800;
  text-decoration: underline;
}

/* Hero Konversi Tinggi */
.mod-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.mod-hero__trust {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.mod-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.mod-hero__subtitle {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 1rem;
}

.mod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mod-hero__secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.mod-hero__media img {
  border-radius: calc(var(--radius) - 4px);
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* Katalog Produk / Layanan */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.catalog-item {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.catalog-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.catalog-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.catalog-item__head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.catalog-item__price {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.catalog-item__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-item__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mod-caption,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.mod-richtext__body p {
  margin: 0 0 10px;
}

.mod-richtext__body p:last-child {
  margin-bottom: 0;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.social-pill--wa {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 84px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-wa-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Sticky Mobile Bottom CTA Bar */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.12);
}

.mobile-sticky-cta__btn {
  width: 100%;
}

/* Breakpoints Desktop (Mobile-First progressive enhancement) */
@media (min-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .mod-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
  }
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 780px) {
  .site-header-bar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .mod-card {
    padding: 26px;
  }
  .layout-grid[data-layout="with-sidebar"] {
    grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
    align-items: start;
  }
  .site-footer {
    padding-bottom: 36px;
  }
  .mobile-sticky-cta {
    display: none !important;
  }
}
