/* ============================================================
   NAVIGATION (Clean Pill Header Matching Reference Layout)
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999998;
  padding: 20px 0;
  transition: padding 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
}

.nav.scrolled {
  padding: 13px 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav__wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.nav__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  z-index: 10;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-mark img {
  height: 36px !important; /* Mengatur tinggi logo agar pas di navbar */
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

.nav__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.nav__link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--grey-78);
  letter-spacing: -0.01em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-c8);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: dotPulse 2.2s ease-in-out infinite;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black-00);
  background: var(--white);
  padding: 9px 20px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--white-e8);
  transform: translateY(-1px);
}

/* Mobile Toggle & Drawer */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

.nav__bar {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

.nav__toggle.open .nav__bar:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__toggle.open .nav__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open .nav__bar:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav__mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 999997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

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

.nav__mobile .nav__link {
  font-size: var(--text-2xl);
  font-weight: 600;
}

/* ============================================================
   PAGE TRANSITION & MAIN REVEAL
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-power);
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

main {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  animation: mainSafetyReveal 0.1s linear 1.2s forwards;
}

body.page-ready main {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

body.page-leaving main {
  opacity: 0;
  transform: translateY(-14px);
}

@keyframes mainSafetyReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SPLASH SCREEN (First Visit Only)
   ============================================================ */
html.skip-splash .splash {
  display: none !important;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-78);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0;
}

.splash-status {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
}

.splash-track {
  width: clamp(180px, 26vw, 320px);
  height: 1px;
  background: var(--grey-24);
  position: relative;
  overflow: hidden;
}

.splash-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.12s linear;
}

.splash-pct {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey-78);
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}

.splash.exit {
  animation: splashExit 0.65s var(--ease-sharp) forwards;
}

@keyframes splashExit {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--sp-4xl) 0 var(--sp-xl);
  background: rgba(8, 8, 8, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-md);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--grey-78);
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: var(--sp-xl);
}

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

.footer-soc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--grey-9a);
  font-size: 0.9rem;
  transition: all 0.25s var(--ease-out);
}

.footer-soc:hover {
  border-color: var(--white);
  color: var(--black-00);
  background: var(--white);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.footer-col-link {
  display: block;
  font-size: var(--text-sm);
  color: var(--grey-78);
  padding: 5px 0;
  transition: color 0.2s, transform 0.2s;
}

.footer-col-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--glass-border);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--grey-55);
  letter-spacing: 0.02em;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey-78);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}