/* =========================================
   1. TOKENS
   Konsep: "amplop yang dibuka tengah malam"
   Ink plum gelap utk hero (kesan intim/spesial),
   krem hangat utk isi (kesan surat/kertas),
   coral utk aksi, gold utk kilau/bintang.
   ========================================= */
:root {
    --ink: #1D1330;
    --ink-soft: #2B1F45;
    --paper: #FFF8EE;
    --paper-dim: #F6EFE2;
    --text-dark: #221934;
    --text-muted: #6E6280;
    --coral: #FF6B54;
    --gold: #E8A94D;

    --font-display: 'Fraunces', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --container-width: 1120px;
    --radius-lg: 22px;
    --radius-sm: 12px;
    --transition: 0.25s ease;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
    background-color: var(--paper);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.3px; }
em { font-style: italic; color: var(--coral); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
.container { width: 92%; max-width: var(--container-width); margin: 0 auto; }
.text-center { text-align: center; }
a:focus-visible, button:focus-visible, .filter-btn:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

/* Reveal-on-scroll (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 248, 238, 0.92);
    backdrop-filter: blur(14px);
    z-index: 200;
    border-bottom: 1px solid rgba(29, 19, 48, 0.06);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.logo em { font-style: italic; color: var(--coral); }

.nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 32px; height: 24px; justify-content: center;
    padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 4px;
    padding: 10px 5% 20px;
    border-bottom: 1px solid rgba(29,19,48,0.06);
    display: none;
}
.nav-links.is-open { display: flex; }
.nav-links a { padding: 12px 6px; font-weight: 600; font-size: 15px; border-radius: 10px; }
.nav-links a:hover { background: var(--paper-dim); color: var(--coral); }
.nav-btn { background: var(--ink) !important; color: var(--paper) !important; text-align: center; margin-top: 6px; padding: 12px !important; border-radius: 30px; }

/* =========================================
   4. BUTTONS
   ========================================= */
.btn { display: inline-block; padding: 15px 28px; border-radius: 40px; font-weight: 700; font-size: 15px; transition: transform 0.2s, box-shadow 0.2s; text-align: center; }
.btn-primary { background: var(--coral); color: white; box-shadow: 0 10px 22px rgba(255, 107, 84, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(255, 107, 84, 0.4); }
.btn-white { background: var(--paper); color: var(--ink); box-shadow: 0 10px 22px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(29,19,48,0.18); color: var(--text-dark); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn svg { vertical-align: -3px; margin-right: 5px; }

/* =========================================
   5. HERO + AMPLOP (signature element)
   ========================================= */
.hero-section {
    background: var(--ink);
    color: var(--paper);
    padding: 44px 0 60px;
    position: relative;
}
.hero-section::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 34px;
    background: var(--paper);
    clip-path: polygon(0% 100%, 100% 100%, 100% 40%, 92% 100%, 84% 40%, 76% 100%, 68% 40%, 60% 100%, 52% 40%, 44% 100%, 36% 40%, 28% 100%, 20% 40%, 12% 100%, 4% 40%, 0% 100%);
}
.hero-grid { display: flex; flex-direction: column; gap: 36px; position: relative; z-index: 1; }
.hero-text { text-align: center; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); color: var(--gold); font-weight: 700; font-size: 12.5px; padding: 7px 16px; border-radius: 30px; margin-bottom: 18px; border: 1px solid rgba(232,169,77,0.3); }
.hero-text h1 { font-size: 34px; margin-bottom: 18px; color: var(--paper); }
.hero-text p { font-size: 16px; margin: 0 auto 28px; color: rgba(255,248,238,0.72); max-width: 480px; }
.hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-buttons .btn-outline { border-color: rgba(255,248,238,0.25); color: var(--paper); }
.hero-stats { margin-top: 20px; font-size: 13.5px; color: rgba(255,248,238,0.55); display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Amplop interaktif */
.envelope-wrap { display: flex; justify-content: center; }
.envelope { position: relative; width: 260px; height: 190px; cursor: pointer; }
.envelope-body {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #3A2A5C, #2B1F45);
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    overflow: hidden;
}
.envelope-flap {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    clip-path: polygon(0 0, 100% 0, 50% 55%);
    background: linear-gradient(200deg, #4A3670, #3A2A5C);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(.6,.2,.2,1);
    z-index: 3;
}
.envelope.is-open .envelope-flap { transform: rotateX(180deg); }
.envelope-card {
    position: absolute; left: 50%; bottom: 10px; width: 78%; height: 72%;
    background: var(--paper);
    border-radius: 10px;
    transform: translate(-50%, 12%) scale(0.92);
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1) 0.15s;
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 14px; text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.envelope.is-open .envelope-card { transform: translate(-50%, -18%) scale(1); }
.envelope-card .heart { font-size: 26px; }
.envelope-card p { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--ink); line-height: 1.4; }
.envelope-hint { text-align: center; font-size: 12.5px; color: rgba(255,248,238,0.5); margin-top: 16px; }

/* =========================================
   6. PAIN POINTS
   ========================================= */
.pain-section { background-color: var(--paper); padding: 60px 0 40px; }
.section-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.section-header h2 { font-size: 28px; margin-bottom: 12px; }
.section-header p.section-sub { color: var(--text-muted); font-size: 15.5px; max-width: 520px; margin: 0 auto; }
.section-header { margin-bottom: 36px; }

.pain-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
.pain-card { background: var(--paper-dim); padding: 26px; border-radius: var(--radius-lg); text-align: left; }
.pain-icon { font-size: 32px; margin-bottom: 12px; }
.pain-card h4 { font-size: 17px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.pain-card p { font-size: 14.5px; color: var(--text-muted); }

.solution-box { background: var(--ink); color: var(--paper); padding: 28px; border-radius: var(--radius-lg); max-width: 700px; margin: 0 auto; }
.solution-box h3 { font-size: 21px; margin-bottom: 8px; color: var(--gold); }
.solution-box p { color: rgba(255,248,238,0.75); font-size: 15px; }

/* =========================================
   7. STEPS
   ========================================= */
.steps-section { padding: 64px 0; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.step-card { text-align: left; border-left: 2px solid rgba(29,19,48,0.08); padding-left: 20px; }
.step-number { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--coral); font-weight: 600; margin-bottom: 8px; display: block; }
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--text-muted); }

/* =========================================
   8. TESTIMONI
   ========================================= */
.testi-section { padding: 60px 0; background: var(--paper-dim); }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testi-card { background: var(--paper); padding: 30px; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(29,19,48,0.05); }
.stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { font-size: 15.5px; font-weight: 500; line-height: 1.6; margin-bottom: 16px; font-family: var(--font-display); font-style: italic; }
.testi-name { font-size: 13.5px; color: var(--text-muted); font-weight: 700; }

/* =========================================
   9. FAQ
   ========================================= */
.faq-section { padding: 60px 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--paper-dim); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--text-dark); }
.faq-question .icon { font-size: 20px; color: var(--coral); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-muted); }

/* =========================================
   10. CTA BANNER
   ========================================= */
.cta-banner { background: var(--ink); color: white; padding: 50px 26px; border-radius: 28px; text-align: center; margin: 0 0 60px; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -40%; right: -20%; width: 70%; height: 200%; background: radial-gradient(circle, var(--coral), transparent 70%); opacity: 0.25; filter: blur(60px); z-index: 0; }
.cta-banner * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 26px; margin-bottom: 14px; color: var(--paper); }
.cta-banner p { font-size: 15.5px; margin-bottom: 28px; color: rgba(255,248,238,0.7); }

/* =========================================
   11. FOOTER
   ========================================= */
.footer { padding: 36px 0 90px; border-top: 1px solid rgba(29,19,48,0.06); background: var(--paper); }
.footer-logo { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.footer p { color: var(--text-muted); font-size: 13.5px; }
.footer-privacy { font-size: 12px; margin-top: 10px; max-width: 480px; margin-left: auto; margin-right: auto; opacity: 0.8; }

/* =========================================
   12. STICKY WHATSAPP BUTTON
   ========================================= */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 300;
    display: flex; align-items: center; gap: 8px;
    background: #25D366; color: white; font-weight: 700; font-size: 14px;
    padding: 13px 18px; border-radius: 50px;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float span.wa-label { display: none; }

/* =========================================
   13. KATALOG PAGE
   ========================================= */
.katalog-page { padding: 36px 0 60px; }
.katalog-header { margin-bottom: 28px; }
.katalog-header h1 { font-size: 30px; margin-bottom: 10px; }
.katalog-header p { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto; }

.filter-menu { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 26px; scrollbar-width: none; }
.filter-menu::-webkit-scrollbar { display: none; }
.filter-btn { flex-shrink: 0; padding: 10px 18px; border-radius: 30px; font-size: 13.5px; font-weight: 700; background: var(--paper-dim); color: var(--text-muted); transition: var(--transition); }
.filter-btn.active { background: var(--ink); color: var(--paper); }

.katalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.product-card { background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 8px 24px rgba(29,19,48,0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(29,19,48,0.1); }
.product-card.is-hidden { display: none; }
.product-img { position: relative; aspect-ratio: 4/3; }
.img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--ink-soft), var(--ink));
    color: rgba(255,248,238,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; text-align: center; padding: 10px;
}
.badge { position: absolute; top: 8px; left: 8px; background: var(--coral); color: white; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 20px; z-index: 2; }
.product-info { padding: 14px; }
.category-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.product-info h3 { font-size: 15px; margin-bottom: 5px; line-height: 1.3; }
.price { font-family: var(--font-body); font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.product-actions { display: flex; flex-direction: column; gap: 6px; }
.product-actions .btn { width: 100%; }
.btn-sm { padding: 9px 10px; font-size: 12px; }

.katalog-empty { text-align: center; padding: 40px 0; color: var(--text-muted); display: none; }
.katalog-empty.is-visible { display: block; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 30px 0 10px; }
.page-btn {
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: 10px; font-weight: 700; font-size: 14px;
    background: var(--paper-dim); color: var(--text-dark);
    transition: var(--transition);
}
.page-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.page-btn.active { background: var(--coral); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =========================================
   14. RESPONSIVE (TABLET & LAPTOP, mobile-first)
   ========================================= */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav-links {
        position: static; display: flex; flex-direction: row; align-items: center;
        gap: 28px; padding: 0; border: none; background: none; width: auto;
    }
    .nav-links a { padding: 8px 4px; }
    .nav-btn { margin-top: 0; padding: 10px 22px !important; }

    .hero-section { padding: 90px 0 90px; }
    .hero-grid { flex-direction: row; align-items: center; gap: 50px; }
    .hero-text { flex: 1.15; text-align: left; }
    .hero-text h1 { font-size: 48px; }
    .hero-text p { margin-left: 0; }
    .hero-buttons { flex-direction: row; align-items: center; justify-content: flex-start; }
    .hero-stats { justify-content: flex-start; }
    .envelope-wrap { flex: 1; }
    .envelope { width: 320px; height: 230px; }

    .pain-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .katalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .product-info { padding: 20px; }
    .product-info h3 { font-size: 18px; margin-bottom: 6px; }
    .price { font-size: 16px; margin-bottom: 16px; }
    .product-actions { gap: 8px; }
    .btn-sm { padding: 10px 18px; font-size: 13px; }
    .img-placeholder { font-size: 13px; padding: 16px; }
    .badge { top: 10px; left: 10px; font-size: 11px; padding: 5px 10px; }

    .section-header h2 { font-size: 34px; }
    .wa-float span.wa-label { display: inline; }
}

@media (min-width: 1024px) {
    .katalog-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-text h1 { font-size: 54px; }
}
