/*! Rewangono — Blue + Black hi-tech theme (Stitch-aligned) */
:root {
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --sky: #38bdf8;
  --black: #0a0f1c;
  --slate: #0f172a;
  --bg: #f8fafc;
  --tabbar-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
  scroll-padding-bottom: calc(var(--tabbar-h) + 16px);
}

.glass {
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Sticky header — dark blue/black like footer tabbar */
.site-header {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.35);
}

/* Circular logo crop (file PNG tidak diubah) */
.logo-orb {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  display: block;
}

.header-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  text-align: center;
  padding: 0 4px;
}

.header-spacer {
  width: 40px;
  height: 40px;
  justify-self: end;
}

.header-kicker {
  margin: 0;
  font-family: Geist, Inter, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #38bdf8;
  line-height: 1;
  text-align: center;
}

.header-tagline {
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #cbd5e1;
  text-align: center;
  max-width: 15.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .header-main {
    display: flex !important;
  }
  .header-copy,
  .header-spacer {
    display: none !important;
  }
}

.header-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.55), rgba(15, 23, 42, 0.98));
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  color: #94a3b8;
  font-family: Geist, Inter, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-company-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: logoPulse 1.8s ease-in-out infinite;
}

.sync-pulse {
  animation: logoPulse 1.6s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
    border-color: rgba(56, 189, 248, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
    border-color: rgba(96, 165, 250, 1);
  }
}

.flow-node {
  animation: floatY 4s ease-in-out infinite;
}
.flow-node:nth-child(2) { animation-delay: 0.4s; }
.flow-node:nth-child(3) { animation-delay: 0.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.pulse-dot { animation: pulse-dot 1.6s ease-in-out infinite; }

.hero-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
}

.package-card.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

/* ===== Gojek-style sticky mobile tab bar ===== */
.bottom-nav { display: none; }

@media (max-width: 1023.98px) {
  .has-mobile-tabbar {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    max-width: 100vw;
    min-height: var(--tabbar-h);
    margin: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #0f172a;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 -12px 36px rgba(2, 6, 23, 0.45);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 4px 2px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .bottom-nav-item .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  }

  .bottom-nav-label {
    font-family: Geist, Inter, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
  }

  .bottom-nav-item.active {
    color: #38bdf8;
    background: rgba(37, 99, 235, 0.2);
  }

  .bottom-nav-item.active .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
  }

  .bottom-nav-wa {
    position: relative;
    top: -16px;
    color: #38bdf8;
  }

  .bottom-nav-wa-btn {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border: 4px solid #0f172a;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  }

  .bottom-nav-wa-btn .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  }

  .bottom-nav-wa.active,
  .bottom-nav-wa:hover {
    background: transparent;
    color: #38bdf8;
  }
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 5rem;
    scroll-padding-bottom: 0;
  }
  .bottom-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-node, .pulse-dot { animation: none; }
}
