@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== Design tokens ===== */
:root {
  --gap: 16px;
  --slate-900: #1e2430; --slate-700: #3c495e; --slate-500: #5c6c82; --slate-100: #f0f3f7;
  --accent-peach: #dfbead; --accent-sand: #c7b5a3; --accent-sage: #95b3aa;
  --ink: #1a202c; --muted: #718096; --paper: #ffffff; --bg-body: #edf2f7; --line: #e2e8f0;
  --shadow-hover: 0 8px 24px -10px rgba(30, 36, 48, 0.12);
  --radius-pill: 999px;
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-offset: 88px;
}

body.dark-theme {
  --slate-900: #ffffff; --slate-700: #a0aec0; --slate-500: #718096; --slate-100: #2a3441;
  --ink: #f0f3f7; --muted: #a0aec0; --paper: #1e2430; --bg-body: #0f131a; --line: #2d3748;
  --shadow-hover: 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}

/* ===== Base ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-offset); }
html, body { margin: 0; padding: 0; background: var(--bg-body); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; overflow-x: clip; }

/* Konten terdorong mengikuti tinggi navbar asli (--nav-push diisi oleh JS).
   Tanpa transition: ResizeObserver sudah mengikuti animasi navbar frame demi frame. */
body {
    padding-top: var(--nav-push, var(--nav-offset));
}

button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--slate-700); outline-offset: 2px; }

/* ===== Typography & Headers (GLOBAL) ===== */
.lp-section { max-width: 1020px; margin: 0 auto; padding: 0 32px; }
.lp-eyebrow { font-size: 14px; font-weight: 600; color: var(--slate-500); margin-bottom: 8px; }
.lp-section-head { max-width: 620px; margin: 0 0 36px; }
.lp-section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; color: var(--slate-900); line-height: 1.2; }
.lp-section-sub { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ===== Buttons (GLOBAL) ===== */
.lp-btn-primary, .lp-btn-secondary, .lp-btn-white { --btn-icon-size: 16px; }
.lp-btn-primary svg, .lp-btn-secondary svg, .lp-btn-white svg { width: var(--btn-icon-size); height: var(--btn-icon-size); flex: none; }
.lp-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--slate-900); color: var(--paper); font-weight: 600; font-size: 14.5px; padding: 11px 22px; border-radius: var(--radius-pill); text-decoration: none; transition: background 0.2s var(--ease-fluid), transform 0.2s var(--ease-fluid); }
.lp-btn-primary:hover { background: var(--slate-700); transform: translateY(-1px); }
.lp-btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--slate-900); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; padding: 11px 22px; border-radius: var(--radius-pill); text-decoration: none; transition: background 0.2s var(--ease-fluid), transform 0.2s var(--ease-fluid); }
.lp-btn-secondary:hover { background: var(--slate-100); transform: translateY(-1px); }

/* ==== Loading & Empty States (GLOBAL) ==== */
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.3; } }
.lp-skel { border-radius: 14px; background: var(--slate-100); animation: pulse 1.4s infinite; }
.lp-empty-msg { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--muted); font-size: 14px; }
.lp-blur-text { filter: blur(4px); user-select: none; display: inline-block; }

/* ===== Transisi Tema ===== */
.no-transitions, .no-transitions * { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; display: block; pointer-events: none; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ===== NAVBAR (Apple Glassmorphism Style) ===== */
.lp-nav { 
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; 
    width: calc(100% - 28px); max-width: 1120px; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 12px 20px; 
    background: color-mix(in srgb, var(--paper) 72%, transparent); 
    backdrop-filter: blur(24px) saturate(180%); 
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); 
    border-radius: 22px; 
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.2); 
    transition: border-radius 0.3s var(--ease-fluid); 
}
.lp-nav__logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; color: var(--slate-900); text-decoration: none; position: relative; z-index: 2; flex: none; }
.lp-nav__logo-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--slate-900); color: var(--paper); display: flex; align-items: center; justify-content: center; }
.lp-nav__logo-icon svg { width: 18px; height: 18px; }

/* --- Menu Desktop Rata Tengah & Anti-Bentrok --- */
.lp-nav__links { 
    list-style: none; display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0;
}
.lp-nav__links > li { display: flex; align-items: center; gap: 6px; }

/* --- Garis Pemisah (Separator) Desktop Memudar di Ujung --- */
.lp-nav__links > li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px; 
    height: 18px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--slate-500) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.35;
    margin: 0 2px;
}

/* --- Highlight Hover --- */
.lp-nav__links > li > a, .lp-dropdown-trigger { 
    color: var(--slate-700); text-decoration: none; font-size: 14px; font-weight: 500; 
    padding: 8px 12px; border-radius: 12px; transition: all 0.2s var(--ease-fluid);
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    white-space: nowrap;
}
.lp-nav__links > li > a:hover, .lp-dropdown:hover .lp-dropdown-trigger { 
    color: var(--slate-900); 
    background: var(--slate-100); 
}

/* --- Animasi Lembut Dropdown Desktop --- */
.lp-dropdown { position: relative; } 
.lp-dropdown-trigger svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-fluid); }
.lp-dropdown:hover .lp-dropdown-trigger svg { transform: rotate(180deg); }

.lp-dropdown-menu { 
    position: absolute; top: calc(100% + 12px); left: 50%; 
    background: color-mix(in srgb, var(--paper) 92%, transparent); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-width: 200px; 
    box-shadow: 0 16px 36px -10px rgba(0,0,0,0.16), inset 0 1px 0 0 rgba(255,255,255,0.15); 
    list-style: none; margin: 0; z-index: 10;
    opacity: 0; visibility: hidden; transform-origin: top center;
    transform: translateX(-50%) translateY(8px) scale(0.97);
    filter: blur(2px);
    transition: all 0.3s var(--ease-fluid); 
}
.lp-dropdown-menu::before {
    content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px; background: var(--paper); border-top: 1px solid var(--line); border-left: 1px solid var(--line); z-index: 1;
}
.lp-dropdown:hover .lp-dropdown-menu { 
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0);
}
.lp-dropdown-menu li { margin: 0; display: block; position: relative; z-index: 2; }
.lp-dropdown-menu li::after { display: none !important; }
.lp-dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--slate-700); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all 0.2s var(--ease-fluid); }
.lp-dropdown-menu a:hover { background: var(--slate-100); color: var(--slate-900); transform: translateX(4px); }

/* --- Mobile Menu & Dropdown (Push Down Style) --- */
.lp-nav__hamburger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--slate-900); align-items: center; justify-content: center; cursor: pointer; flex: none; }
.lp-nav__hamburger svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease-fluid); }
.lp-nav__hamburger[aria-expanded="true"] svg { transform: rotate(90deg); }

.lp-nav-menu { 
    position: static; 
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 10px; 
    display: flex; flex-direction: column; overflow-y: auto; pointer-events: none; 
    max-height: 0; 
    opacity: 0; 
    transform: translateY(-4px); 
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
}
/* Tinggi menu hanya dibatasi tinggi layar (bukan angka tetap),
   jadi semua item tampil penuh; scroll muncul hanya jika layar memang tidak muat. */
.lp-nav-menu.is-open { 
    max-height: calc(100dvh - var(--nav-offset) - 24px); 
    opacity: 1; 
    pointer-events: auto; 
    transform: translateY(0); 
    margin-top: 12px;
    padding-bottom: 8px;
}

.lp-nav-menu > a, .lp-mobile-dropdown { 
    position: relative;
}
.lp-nav-menu > a:not(:last-child)::after, .lp-mobile-dropdown:not(:last-child)::after { 
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, var(--line) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.6;
}

.lp-nav-menu > a { padding: 12px 14px; border-radius: 10px; color: var(--slate-900); text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background 0.2s var(--ease-fluid); margin: 2px 0; display: block; }
.lp-nav-menu > a:hover { background: color-mix(in srgb, var(--slate-100) 60%, transparent); }

.lp-mobile-dropdown-trigger { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; color: var(--slate-900); font-weight: 500; font-size: 14.5px; cursor: pointer; margin: 2px 0; }
.lp-mobile-dropdown-trigger svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-fluid); }

.lp-mobile-dropdown-menu { 
    display: flex; flex-direction: column; margin: 0 8px 6px 8px; border-left: 2px solid var(--accent-sage); 
    max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; padding: 0; 
    transition: all 0.3s var(--ease-fluid);
}
.lp-mobile-dropdown-menu a { 
    position: relative;
    padding: 10px 14px; border-radius: 8px; color: var(--slate-700); text-decoration: none; font-size: 14px; display: block;
}
.lp-mobile-dropdown-menu a:not(:last-child)::after {
    content: ""; position: absolute; bottom: 0; left: 10px; right: 10px; height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, var(--line) 50%, rgba(0,0,0,0) 100%); opacity: 0.4;
}
.lp-mobile-dropdown-menu a:hover { background: color-mix(in srgb, var(--slate-100) 60%, transparent); color: var(--slate-900); }

.lp-mobile-dropdown.is-open .lp-mobile-dropdown-menu { 
    max-height: 300px; opacity: 1; visibility: visible; padding: 4px 0 4px 12px;
}
.lp-mobile-dropdown.is-open .lp-mobile-dropdown-trigger svg { transform: rotate(180deg); }

@media (max-width: 1024px) { 
    .lp-nav { flex-wrap: wrap; } 
    .lp-nav__links { display: none; }
    .lp-nav__hamburger { display: flex; }
}

/* ===== Tombol Tema ===== */
.lp-theme-float { position: fixed; left: 20px; bottom: 20px; z-index: 55; width: 46px; height: 46px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--paper); color: var(--slate-700); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-hover); transition: background 0.2s var(--ease-fluid), transform 0.2s var(--ease-fluid); }
.lp-theme-float:hover { background: var(--slate-100); transform: translateY(-2px); }
.lp-theme-float svg { width: 19px; height: 19px; }

/* ===== FOOTER (Full Width, Rich Grid, & Ambient Glow Animation) ===== */
footer { 
    width: 100%;
    padding: 48px 0 20px; 
    background: #12161f; 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    color: #93a0b3; 
    position: relative;
    overflow: hidden;
}

/* Efek Pendar Cahaya Lembut (Ambient Glow) di Background Footer */
footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 160px;
    background: radial-gradient(circle, rgba(149, 179, 170, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: footerGlow 10s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { transform: translateX(-50%) scale(0.85); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 0.8; }
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}
.lp-footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.lp-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lp-footer-col ul li a {
    color: #93a0b3;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s var(--ease-fluid);
}
.lp-footer-col ul li a:hover {
    color: #ffffff;
}
.lp-footer-logo { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-family: 'Space Grotesk', sans-serif; 
    font-weight: 600; 
    font-size: 17px; 
    color: #ffffff; 
    text-decoration: none; 
    margin-bottom: 8px; 
}
.lp-footer-logo-icon { 
    width: 28px; 
    height: 28px; 
    border-radius: 8px; 
    background: #ffffff; 
    color: #12161f; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.lp-footer-logo-icon svg { width: 15px; height: 15px; }
.lp-footer-desc { 
    font-size: 13px; 
    color: #7c879a; 
    line-height: 1.5; 
    margin: 0 0 12px; 
    max-width: 280px; 
}
.social-icons {
    display: flex;
    gap: 8px;
}
.social-icons a {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    color: #c3cbd8;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.2s var(--ease-fluid);
}
.social-icons a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    transform: translateY(-2px);
}
.social-icons a svg {
    width: 15px;
    height: 15px;
}
.footer-bottom-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom p {
    margin: 0;
    font-size: 12.5px;
    color: #5f6b7d;
}
.scroll-top {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s var(--ease-fluid);
}
.scroll-top:hover {
    background: rgba(255, 255, 255, 0.15); transform: translateY(-3px);
}
.scroll-top svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    footer {
        padding: 32px 16px 16px;
    }
    .lp-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 10px;
        margin-bottom: 20px;
        text-align: left;
    }
    .lp-footer-brand-col {
        grid-column: span 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .lp-footer-desc {
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
        font-size: 12px;
    }
    .social-icons {
        justify-content: center;
    }
    .lp-footer-col h4 {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .lp-footer-col ul li a, .lp-footer-col span {
        font-size: 11.5px;
    }
    .lp-footer-col ul {
        gap: 4px;
    }
    .footer-bottom-flex {
        grid-column: span 3;
        padding-top: 12px;
    }
    .footer-bottom p {
        font-size: 11px;
    }
    .scroll-top {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }
    .scroll-top svg {
        width: 13px;
        height: 13px;
    }
}

/* ===== RESPONSIVE (Layout Umum) ===== */
@media (max-width: 900px) {
  :root { --nav-offset: 78px; }
  .lp-nav { border-radius: 16px; padding: 10px 14px 10px 18px; width: calc(100% - 24px); }
}
@media (max-width: 560px) {
  :root { --nav-offset: 70px; }
  body { font-size: 15px; }
  .lp-nav { top: 10px; padding: 8px 10px 8px 16px; border-radius: 16px; }
  .lp-nav__logo { font-size: 16px; }
  .lp-nav__logo-icon { width: 28px; height: 28px; border-radius: 8px; }
  .lp-nav__logo-icon svg { width: 14px; height: 14px; }
  .lp-nav__hamburger { width: 34px; height: 34px; border-radius: 10px; }
  .lp-theme-float { left: 14px; bottom: 14px; width: 42px; height: 42px; }
  .lp-section { padding: 0 18px; }
}

/* ===== MODAL KONTAK ADMIN ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 19, 26, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.modal-content {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    width: 100%; max-width: 380px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700; color: var(--slate-900);
    margin: 0 0 6px;
}
.modal-sub {
    font-size: 13.5px; color: var(--muted); margin: 0 0 20px;
}
.modal-options {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px;
}
.modal-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 12px; font-weight: 600; font-size: 14px;
    text-decoration: none; transition: transform 0.2s var(--ease-fluid), opacity 0.2s;
}
.modal-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-wa { background: #25d366; color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.btn-tg { background: #0088cc; color: #fff; }

.modal-close {
    width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--bg-body); color: var(--slate-700); font-weight: 600; font-size: 14px;
    cursor: pointer; transition: background 0.2s;
}
.modal-close:hover { background: var(--line); }