/* ==========================================================
   MKDOCS NUCLEAR OVERRIDES & QUICKSTART STYLES
   ========================================================== */
.md-header { display: none !important; } 
.md-footer { display: none !important; } 
.md-main { padding-top: 0 !important; }  
.md-grid { max-width: 100% !important; padding: 0 !important; margin: 0 !important; } 
.md-main__inner { margin: 0 !important; padding: 0 !important; }
.md-content { padding: 0 !important; }
body, html { background-color: #0a0a0f !important; } 

/* SEO HACK: Invisible text strictly for AI Bots and Screen Readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ─── RESET & WRAPPER ─── */
.landing-wrapper {
  --bg: #0a0a0f;
  --bg-card: #111119;
  --bg-3: #13131e;
  --border: rgba(130, 100, 255, 0.22);
  --border-hover: rgba(130, 100, 255, 0.45);
  --purple-dim: #7c5cbf;
  --purple-mid: #9d7de8;
  --purple-bright: #b89af5;
  --purple-soft: rgba(155, 120, 240, 0.08);
  --text-primary: #f0eff7;
  --text-secondary: #8e8ca8;
  --text-tertiary: #5a5870;
  --text-accent: #b89af5;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Playfair Display', serif;

  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0; width: 100%;
  overflow-x: hidden;
}

.landing-wrapper a { text-decoration: none; }
.landing-wrapper * { box-sizing: border-box; }

/* ─── SCROLL ANIMATION CLASSES ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.25s; }
.stagger-3 { transition-delay: 0.4s; }

/* ─── NAVBAR ─── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1005;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 17px;
  color: var(--text-primary); letter-spacing: -0.02em;
  position: relative;
  z-index: 1006;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; }

/* ─── MOBILE HAMBURGER MENU ─── */
.mobile-menu-btn {
  display: none; 
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  position: relative;
  z-index: 1006; 
}
.mobile-menu-btn svg { width: 100%; height: 100%; pointer-events: none; }

.line-top, .line-mid, .line-bot {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.mobile-menu-btn.is-active .line-mid { opacity: 0; }
.mobile-menu-btn.is-active .line-top { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.is-active .line-bot { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-overlay a {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.mobile-menu-overlay.is-open a { transform: translateY(0); opacity: 1; }
.mobile-menu-overlay.is-open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.is-open a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.is-open a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.is-open a:nth-child(4) { transition-delay: 0.4s; }

/* ─── SECTIONS & HERO ─── */
.landing-wrapper section { padding: 80px 48px; max-width: 960px; margin: 0 auto; }
.hero { padding-top: 140px; padding-bottom: 20px; text-align: center; }
.hero h1 {
  font-family: var(--sans); font-size: clamp(36px, 5vw, 56px);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.04em;
  color: var(--text-primary); margin-bottom: 8px; border: none; background: none;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px); color: var(--text-secondary);
  font-weight: 300; max-width: 600px; margin: 16px auto 32px; line-height: 1.75;
}

/* ─── SEO SEMANTIC HEADERS ─── */
h2.code-section-title { 
  font-family: var(--sans); font-size: 24px; font-weight: 500; 
  color: var(--text-primary); margin: 40px 0 16px 0; 
  border-bottom: 1px solid var(--border); padding-bottom: 8px; background: none; 
}
h2.code-section-title:first-child { margin-top: 0; }

h3.install-card-title {
  font-size: 16px; font-weight: 500; margin: 0 0 4px 0; padding: 0; border: none; background: none;
}

/* ─── INSTALLATION CARDS ─── */
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.install-card { 
  background: var(--bg-card); border: 1px solid var(--border); 
  border-radius: 12px; padding: 24px; text-align: left;
  display: flex; flex-direction: column; transition: all 0.2s ease;
}
.install-card code { 
  display: block; background: var(--bg-3); padding: 12px 16px; border-radius: 8px; 
  font-family: var(--mono); font-size: 13px; color: var(--text-accent); 
  margin-top: auto; border: 1px solid var(--border); 
}

/* ─── MODULAR INSTALL BOX ─── */
.modular-box {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 60px; text-align: left;
}
.modular-box h3 { margin: 0 0 6px 0; font-size: 15px; font-weight: 500; color: var(--text-primary); border: none; background: none; padding: 0; }
.modular-box ul {
  list-style-type: none; padding: 0; margin: 16px 0;
}
.modular-box li {
  margin-bottom: 10px; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 12px;
}
.modular-box code {
  background: var(--bg-card); padding: 6px 12px; border-radius: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--text-accent);
  border: 1px solid var(--border);
}

/* ─── CUSTOM CODE WINDOW UI ─── */
.code-block { background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-align: left; margin-bottom: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.code-dots { display: flex; gap: 6px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.code-lang { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.05em; text-transform: uppercase;}
.code-body { padding: 8px 20px; position: relative;}

/* FIX: MENGHAPUS .md-typeset KARENA ELEMENT ITU SUDAH DIBYPASS DI JINJA2 */
.code-body pre { margin: 0 !important; background: transparent !important; border: none !important; padding: 10px 0 !important;}
.code-body code { background: transparent !important; font-family: var(--mono) !important; font-size: 13.5px;}

.code-body .md-clipboard {
  color: var(--text-secondary) !important;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px; right: 20px; top: 15px;
}

/* ─── BEAUTIFUL BOTTOM NAVIGATION CARDS ─── */
.next-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.next-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  transition: all 0.25s ease; height: 100%; display: flex; flex-direction: column; text-align: left;
}
.next-icon { font-size: 22px; margin-bottom: 12px; }
.next-title { font-weight: 500; color: var(--text-primary); font-size: 16px; margin: 0 0 6px 0; border: none; background: none; padding: 0; }
.next-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.next-card.highlight { background: var(--purple-soft); border-color: var(--border-hover); }
.next-card.highlight .next-title { color: var(--text-accent); }

/* ─── FOOTER ─── */
.custom-footer { border-top: 1px solid var(--border); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); background: var(--bg); margin-top: 60px;}
.custom-footer .logo-small { font-family: var(--sans); font-weight: 600; color: var(--text-secondary); font-size: 13px; }
.custom-footer .footer-links { display: flex; gap: 28px; }
.custom-footer .footer-links a { color: var(--text-tertiary); transition: color 0.2s; font-weight: 500; }

/* ─── CUSTOM BACK TO TOP BUTTON ─── */
.back-to-top-btn {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg-card); color: var(--text-accent);
  border: 1px solid var(--border-hover); box-shadow: 0 4px 14px rgba(10, 10, 15, 0.8);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); z-index: 1000;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn svg { width: 20px; height: 20px; }

/* =======================================================
   ONLY ENABLE HOVER EFFECTS FOR MOUSE DEVICES
   ======================================================= */
@media (hover: hover) {
  .nav-links a:hover { color: var(--text-primary); }
  .install-card:hover { border-color: var(--border-hover); background: var(--bg-3); }
  .code-body .md-clipboard:hover { color: var(--text-accent) !important; border-color: var(--border-hover) !important; }
  .next-card:hover { background: var(--bg-3); border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.4); }
  .custom-footer .footer-links a:hover { color: var(--text-secondary); }
  .back-to-top-btn:hover { background: var(--purple-soft); border-color: var(--purple-bright); transform: translateY(-3px); }
}

.animate-up { animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-card code {
  white-space: pre-wrap !important;
  word-break: break-all !important; 
  overflow-wrap: break-word !important;
}

.modular-box p code {
  display: inline-block !important;
  margin: 4px 2px;
  white-space: nowrap !important;
  word-break: normal !important;
}

.code-block { max-width: 100%; }
.code-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.code-body pre {
  min-width: min-content;
}

@media (max-width: 900px) {
  .landing-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  
  .landing-wrapper section { padding: 80px 24px; }
  .hero { padding-top: 110px; padding-bottom: 0px; }
  .install-grid { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
  .modular-box li { flex-direction: column; align-items: flex-start; gap: 8px; }
  
  .install-card code {
    font-size: 11.5px !important;
    padding: 10px 12px !important;
  }
  .modular-box code {
    font-size: 11.5px !important;
    padding: 4px 8px !important;
  }
  
  /* UKURAN FONT CODE BLOCK BENAR-BENAR MENGECIL SEKARANG! */
  .code-body pre,
  .code-body code {
    font-size: 10.5px !important; 
    line-height: 1.5 !important;
  }
  
  .custom-footer { flex-direction: column; gap: 20px; text-align: center; }
  .back-to-top-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}