/* ==========================================================================
   Learning With Badri — Hero beranda mode terang (gaya Mainframe)
   Video layar penuh yang digeser dengan gerakan mouse, teks mengetik, dan
   tombol pill. Hanya tampil saat <html data-theme="light">.
   Breakpoint: sm 640px, md 768px.
   ========================================================================== */

.mf-nav, .mf-menu, .mf-hero, .mf-video { display: none; }
html[data-theme="light"] .lx-nav,
html[data-theme="light"] .lx-hero { display: none; }
html[data-theme="light"] .mf-nav { display: flex; }
html[data-theme="light"] .mf-menu { display: flex; }
html[data-theme="light"] .mf-hero { display: flex; }
html[data-theme="light"] .mf-video { display: block; }

/* Bagian di bawah hero menutupi video */
html[data-theme="light"] .lx-root main > .section,
html[data-theme="light"] .lx-root .site-footer { position: relative; z-index: 2; background: #ffffff; }
html[data-theme="light"] .lx-root .cta-band { background: #f5f5f5; border-color: rgba(0, 0, 0, 0.08); }

/* --- Video latar --- */
.mf-video {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  background: #ffffff;
}

/* --- Navigasi --- */
.mf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  justify-content: space-between; align-items: center;
  padding: 16px 20px; color: #000;
  font-family: var(--font-ui);
}
.mf-logo { display: flex; align-items: center; gap: 12px; color: #000; text-decoration: none; }
.mf-logo svg { width: 30px; height: 23px; flex-shrink: 0; }
.mf-logo-text { font-family: var(--font-heading); font-size: 21px; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.mf-logo-star { font-size: 25px; line-height: 1; letter-spacing: -0.02em; user-select: none; }

.mf-links { display: none; font-size: 23px; color: #000; }
.mf-links a, .mf-cta { color: #000; text-decoration: none; transition: opacity 150ms ease; }
.mf-links a:hover, .mf-cta:hover { opacity: 0.6; }
.mf-actions { display: flex; align-items: center; gap: 16px; }
.mf-cta { display: none; font-size: 23px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.mf-nav .theme-toggle { color: #000; border-color: rgba(0, 0, 0, 0.25); background: rgba(255, 255, 255, 0.6); }
.mf-nav .theme-toggle:hover { background: #000; color: #fff; }

.mf-burger {
  display: flex; flex-direction: column; gap: 5px; padding: 8px 2px;
  background: none; border: 0; cursor: pointer;
}
.mf-burger span { display: block; width: 24px; height: 2px; background: #000; transition: transform 300ms ease, opacity 300ms ease; }
.mf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mf-menu {
  position: fixed; inset: 0; z-index: 9;
  flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px;
  padding-inline: 32px;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.mf-menu.is-open { opacity: 1; pointer-events: auto; }
.mf-menu a { font-size: 32px; font-weight: 500; color: #000; text-decoration: none; }
.mf-menu a.mf-menu-cta { text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 640px) {
  .mf-nav { padding: 20px 32px; }
  .mf-logo-text { font-size: 26px; }
  .mf-logo-star { font-size: 30px; }
  .mf-logo svg { width: 36px; height: 28px; }
}
@media (min-width: 1100px) {   /* menu butuh ruang; di bawah ini pakai hamburger */
  .mf-links { display: flex; }
  .mf-cta { display: inline; }
  .mf-burger { display: none; }
  html[data-theme="light"] .mf-menu { display: none; }
}

/* --- Hero --- */
.mf-hero {
  position: relative; z-index: 1;
  height: 100vh; height: 100dvh;
  flex-direction: column; justify-content: flex-end;
  padding: 0 20px 48px; overflow: hidden;
}
.mf-content { position: relative; z-index: 10; max-width: 36rem; }

.mf-intro {
  pointer-events: none; user-select: none;
  margin-bottom: 20px;
  font-size: clamp(18px, 4vw, 26px); line-height: 1.3; font-weight: 400; color: #000;
  filter: blur(4px);
}
.mf-type {
  margin-bottom: 20px; min-height: 54px;
  font-size: clamp(18px, 4vw, 26px); line-height: 1.35; font-weight: 400; color: #000;
}
.mf-cursor {
  display: inline-block; width: 2px; height: 1.1em; background: #000;
  vertical-align: middle; margin-left: 2px;
  animation: mf-blink 1s step-end infinite;
}
@keyframes mf-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.mf-pills {
  display: flex; flex-wrap: wrap; row-gap: 4px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mf-pills.is-visible { opacity: 1; transform: translateY(0); }
.mf-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 9999px;
  font-family: inherit; font-size: 13px; line-height: 1.6; white-space: nowrap;
  padding: 0.3em 16px; margin: 0 0.2em 0.4em;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.mf-pill:hover { background: #000; color: #fff; }
.mf-pill--outline { gap: 8px; color: #fff; background: transparent; border-color: #fff; }
.mf-pill--outline:hover { background: #fff; color: #000; }
.mf-pill--outline u { text-underline-offset: 1px; }
.mf-pill--outline svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (min-width: 640px) {
  .mf-hero { padding-inline: 32px; }
  .mf-intro, .mf-type { margin-bottom: 24px; }
  .mf-pill { font-size: 15px; padding-inline: 20px; }
  .mf-pill--outline { gap: 12px; }
}
@media (min-width: 768px) {
  .mf-hero { justify-content: center; padding: 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-cursor { animation: none; }
  .mf-pills { transition: none; }
}
