:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --wa: #25d366;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.landing-page { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.container-lg { width: min(1200px, 94%); margin: 0 auto; }

/* Navbar */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.landing-nav .nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 0; gap: 1rem;
}
.landing-nav .brand {
    font-size: 1.35rem; font-weight: 800; color: var(--text);
}
.landing-nav .brand span,
.footer-brand .brand span { color: var(--primary); }
.nav-toggler {
    display: none; border: none; background: transparent; cursor: pointer; padding: .5rem;
}
.nav-toggler span {
    display: block; width: 22px; height: 2px; background: var(--text);
    margin: 5px 0; transition: .2s;
}
.nav-collapse { display: flex; align-items: center; gap: 1.5rem; flex: 1; justify-content: center; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { font-weight: 700; }
.nav-cta { margin-left: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1.5rem; border-radius: 8px; border: none; cursor: pointer;
    font-weight: 600; font-family: inherit; font-size: .95rem; transition: .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: #fff; color: var(--text); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: #ecfdf5; color: #047857; border: 1.5px solid #a7f3d0; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }

/* Hero */
.hero-section { padding: 7rem 0 4rem; background: linear-gradient(180deg, #f0f7ff 0%, #fff 60%); }
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; line-height: 1.15;
    margin-bottom: 1.25rem; color: var(--text);
}
.hero-content h1 .highlight { color: var(--primary); }
.hero-rotate {
    display: inline-block; position: relative; min-width: 8ch; color: var(--primary);
}
.hero-rotate span {
    position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(8px);
    transition: opacity .4s, transform .4s; white-space: nowrap;
}
.hero-rotate span.active { position: relative; opacity: 1; transform: translateY(0); }
.hero-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.75rem; max-width: 520px; }
.hero-content p strong { color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero-note { font-size: .85rem; color: var(--text-muted); font-style: italic; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.phone-mockup {
    width: 200px; border-radius: 28px; padding: 10px;
    background: #1e293b; box-shadow: var(--shadow), 0 20px 50px rgba(37,99,235,.15);
    position: absolute; transition: transform .3s;
}
.phone-mockup .screen {
    border-radius: 20px; overflow: hidden; aspect-ratio: 9/19;
    background: linear-gradient(160deg, #fce7f3, #dbeafe);
}
.phone-mockup .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-mockup.center { width: 230px; z-index: 3; transform: translateY(-10px); }
.phone-mockup.left { left: 5%; z-index: 1; transform: rotate(-8deg) scale(.88); opacity: .85; }
.phone-mockup.right { right: 5%; z-index: 2; transform: rotate(8deg) scale(.92); opacity: .9; }

/* Categories */
.categories {
    padding: 1.5rem 0 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 72px;
}
.cat-row { display: flex; align-items: center; gap: .5rem; }
.cat-scroll-wrap { flex: 1; overflow: hidden; }
.cat-scroll {
    display: flex; gap: .65rem; overflow-x: auto; padding: .25rem .15rem .5rem;
    scroll-behavior: smooth; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-arrow {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; color: var(--text-muted);
    font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
    box-shadow: var(--shadow); transition: .2s;
}
.cat-arrow:hover { border-color: var(--primary); color: var(--primary); }
.cat-item {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .85rem 1rem; border-radius: 10px; border: 1.5px solid var(--border);
    background: #fff; min-width: 96px; max-width: 110px; cursor: pointer; transition: .2s;
    font-family: inherit;
}
.cat-item:hover, .cat-item.active {
    border-color: var(--primary); background: var(--primary-light);
    box-shadow: 0 4px 14px rgba(37,99,235,.12);
}
.cat-icon { font-size: 1.65rem; margin-bottom: .35rem; line-height: 1; }
.cat-label { font-size: .72rem; font-weight: 600; text-align: center; color: var(--text); line-height: 1.2; }

/* Features */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .75rem; }
.section-head p { color: var(--text-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow);
}
.feature-card .icon {
    width: 48px; height: 48px; border-radius: 10px; background: var(--primary-light);
    display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; padding: 2rem 0; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-item span { color: var(--text-muted); font-size: .9rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.price-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--primary); box-shadow: 0 8px 30px rgba(37,99,235,.15); }
.price-header { padding: 1.5rem 1.5rem .5rem; text-align: center; }
.price-header h3 { font-size: 1.25rem; font-weight: 700; }
.price-header p { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.price-amount {
    background: var(--primary); color: #fff; text-align: center; padding: 1rem;
    font-size: 2rem; font-weight: 800;
}
.price-amount small { font-size: .9rem; font-weight: 400; }
.price-body { padding: 1.5rem; flex: 1; }
.price-body ul { list-style: none; }
.price-body li {
    padding: .4rem 0; font-size: .9rem; color: var(--text-muted);
    padding-left: 1.5rem; position: relative;
}
.price-body li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.price-card .btn { width: 100%; margin-top: 1rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-item button {
    width: 100%; text-align: left; padding: 1.1rem 1.25rem; background: #fff;
    border: none; font-family: inherit; font-weight: 600; font-size: .95rem;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-item button::after { content: '+'; font-size: 1.25rem; color: var(--primary); }
.faq-item.open button::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s; }
.faq-answer-inner { padding: 0 1.25rem 1.1rem; color: var(--text-muted); font-size: .95rem; }
.faq-item.open .faq-answer { max-height: 200px; }

/* Footer */
.landing-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .brand { font-size: 1.35rem; font-weight: 800; }
.footer-brand .brand span { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .75rem; max-width: 360px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .5rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* WhatsApp float */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 150;
    display: flex; align-items: center; gap: .5rem;
}
.wa-float a {
    width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
    display: grid; place-items: center; box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform .2s;
}
.wa-float a:hover { transform: scale(1.05); }
.wa-float a svg { width: 30px; height: 30px; fill: #fff; }
.wa-label {
    background: #fff; padding: .5rem .75rem; border-radius: 8px; font-size: .75rem;
    font-weight: 600; box-shadow: var(--shadow); max-width: 140px; line-height: 1.3;
}

/* Template catalog — gaya Indoinvite */
.templates-section {
    padding: 1.75rem 0 3.5rem;
    background: #f3f6fb;
    scroll-margin-top: 72px;
}
.templates-head { margin-bottom: 1.75rem; }
.template-catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.template-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(15, 23, 42, .06);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
}
.template-preview {
    display: block;
    text-decoration: none;
    color: inherit;
}
.template-preview-inner {
    background: linear-gradient(180deg, #eef2f8 0%, #f8fafc 100%);
    padding: 1.1rem .75rem .9rem;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.template-thumb {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    pointer-events: none;
}
.template-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}
.template-phones .tp {
    background: #1e293b;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.tp-left, .tp-right { width: 54px; opacity: .82; transform: translateY(6px); }
.tp-center { width: 76px; z-index: 2; }
.tp-screen {
    border-radius: 10px;
    aspect-ratio: 9/18;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.tp-center .tp-screen {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}
.tp-brand {
    font-size: 5px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.template-meta {
    padding: .85rem .9rem 1rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.template-price {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0 0 .15rem;
}
.template-name {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--text);
}
.template-stars {
    color: #f97316;
    font-size: .8rem;
    letter-spacing: 1px;
    margin-bottom: .75rem;
}
.template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    margin-top: auto;
}
.btn-tpl-preview,
.btn-tpl-use {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .5rem .4rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: .2s;
}
.btn-tpl-preview {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-tpl-preview:hover { background: var(--primary-light); }
.btn-tpl-use {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-tpl-use:hover { background: var(--primary-dark); }
.template-more {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: .9rem;
}
.template-more a { color: var(--primary); font-weight: 600; }
.template-more a:hover { text-decoration: underline; }

/* Paginasi template */
.tpl-pagination {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
    margin-top: 1.5rem;
}
.tpl-page-btn {
    min-width: 38px; height: 38px; padding: 0 .65rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1.5px solid var(--border);
    background: #fff; color: var(--text); font-weight: 600; font-size: .9rem;
    font-family: inherit; cursor: pointer; text-decoration: none;
    transition: .2s; box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.tpl-page-btn:hover { border-color: var(--primary); color: var(--primary); }
.tpl-page-btn.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    pointer-events: none;
}
button.tpl-page-btn { appearance: none; }

/* Halaman /tema — pencarian live */
.tema-page-hero {
    padding: 6.5rem 0 1.25rem;
    background: linear-gradient(180deg, #f0f7ff 0%, #f3f6fb 100%);
    text-align: center;
}
.tema-page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem); font-weight: 800; margin-bottom: .5rem;
}
.tema-page-hero p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.categories-tema { padding-top: .5rem; }
.templates-section-full { padding-top: 1.25rem; }
.tpl-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem;
}
.tpl-search-wrap {
    flex: 1; min-width: min(100%, 320px); max-width: 480px; position: relative;
}
.tpl-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.tpl-search-input {
    width: 100%; padding: .75rem 2.5rem .75rem 2.75rem;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: .95rem; font-family: inherit; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.tpl-search-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.tpl-search-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: var(--bg-soft); color: var(--text-muted);
    font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.tpl-search-clear:hover { background: var(--primary-light); color: var(--primary); }
.tpl-search-status { font-size: .85rem; color: var(--text-muted); margin: 0; }
.tpl-empty {
    text-align: center; padding: 2.5rem 1rem; color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1100px) {
    .template-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p, .hero-actions { margin-left: auto; margin-right: auto; justify-content: center; }
    .hero-visual { min-height: 300px; margin-top: 1rem; }
    .phone-mockup.left { left: 0; }
    .phone-mockup.right { right: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .template-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .nav-toggler { display: block; }
    .nav-collapse {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border); flex-direction: column;
        padding: 1rem; box-shadow: var(--shadow);
    }
    .nav-collapse.open { display: flex; }
    .nav-links { flex-direction: column; width: 100%; }
    .nav-cta { margin-left: 0; width: 100%; }
    .nav-cta .btn { width: 100%; }
    .wa-label { display: none; }
    .cat-arrow { display: none; }
}
@media (max-width: 520px) {
    .template-catalog { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .template-actions { grid-template-columns: 1fr 1fr; }
}
