/* Header tetap di atas dan hero video penuh layar. */
:root { --head-h: 3.75rem; }

/* --- Header --- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-head.scrolled,
.site-head.solid {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--glass-line);
}

/* Di atas video, teks header putih sampai halaman digulir */
body.over-video .site-head:not(.scrolled):not(.solid) { color: var(--hero-ink); }

.site-head-in {
  max-width: 64rem;
  margin-inline: auto;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-head .brand { margin-right: auto; }

.nav {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  top: calc(var(--head-h) + env(safe-area-inset-top, 0px));
  padding: 0.5rem;
  border-radius: 1.2rem;
  background: var(--header-bg);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

.site-head.open .nav { display: flex; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 0.8rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover { background: var(--glass-strong); }
.nav a[aria-current="page"] { font-weight: 700; }

.head-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 0.85rem/1 var(--font-body);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px -10px rgba(46, 99, 219, 0.8);
}

.head-cta:hover { filter: brightness(1.08); }

.menu-btn {
  appearance: none;
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: inherit;
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  margin-left: -0.5rem;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.menu-btn span:nth-child(1) { transform: translateY(-4px); }
.menu-btn span:nth-child(2) { transform: translateY(4px); }
.site-head.open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
.site-head.open .menu-btn span:nth-child(2) { transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: calc(50% - 50vw);
  padding: calc(var(--head-h) + 2rem) 1.25rem 7rem;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--ink);
  --h-muted: var(--muted);
}

.hero.has-video {
  color: var(--hero-ink);
  --h-muted: var(--hero-muted);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(60rem 34rem at 50% 28%, rgba(46, 99, 219, 0.3), transparent 68%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lapisan gelap tipis agar teks terbaca di atas video, hanya bila ada video */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero.has-video .hero-shade {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 26%),
    var(--hero-scrim);
}

/* Bayangan di bawah: hero memudar ke warna halaman */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 94%);
}

.hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}

.hero-brand {
  font-size: clamp(3.2rem, 15vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.hero-brand .dot { width: 0.3em; height: 0.3em; margin-inline: 0.04em; }

.hero-tag {
  margin-top: 1.1rem;
  max-width: 26rem;
  color: var(--h-muted);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-cta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px -12px rgba(46, 99, 219, 0.85);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.hero-btn:hover { filter: brightness(1.08); }
.hero-btn:active { transform: translateY(1px); }

.hero-btn.ghost {
  background: var(--glass-strong);
  color: inherit;
  border-color: var(--glass-hi);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (min-width: 52rem) {
  .nav {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav a { min-height: 2.5rem; padding: 0 0.9rem; color: inherit; opacity: 0.88; }
  .nav a:hover { opacity: 1; background: var(--glass); }
  .site-head .brand { margin-right: 1rem; }
  .nav { margin-right: auto; }
  .menu-btn { display: none; }
}

/* Di atas video, tombol kedua berupa kaca terang berteks putih */
.hero.has-video .hero-btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--hero-ink);
}
