:root {
    --bg: #0f172a;          /* slate-900 */
    --bg-soft: #16213b;
    --card: #1e293b;        /* slate-800 */
    --line: #334155;        /* slate-700 */
    --text: #e2e8f0;        /* slate-200 */
    --muted: #94a3b8;       /* slate-400 */
    --accent: #a855f7;      /* purple-500 */
    --accent-2: #ec4899;    /* pink-500 */
    --accent-3: #06b6d4;    /* cyan-500 */
    --accent-4: #f97316;    /* orange-500 */
    --accent-blue: #60a5fa; /* blue-400 */
    --grad: linear-gradient(95deg, var(--accent), var(--accent-2));
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    padding-top: 72px;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, .nav-link, .stat-number, .plan-price, .badge-eyebrow {
    font-family: Poppins, "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent-blue); }
a:hover { color: var(--accent); }

.text-secondary, .text-muted { color: var(--muted) !important; }
.text-info { color: var(--accent) !important; }

.btn-info {
    background: var(--grad);
    border: none;
    color: #fff;
}
.btn-info:hover { background: linear-gradient(95deg, #9333ea, #db2777); color: #fff; }
.btn-outline-info { color: var(--accent); border-color: var(--accent); }
.btn-outline-info:hover { background: var(--accent); color: #fff; }

.badge.text-bg-info { background: var(--grad) !important; color: #fff; }

/* Navbar scroll-adaptive */
#mainNav {
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 1rem 0;
}
#mainNav.scrolled, #mainNav.menu-open {
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
    padding: .4rem 0;
}
#mainNav .navbar-brand, #mainNav .nav-link { color: var(--text); }
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--accent); }

/* Hero */
.hero {
    background:
        radial-gradient(ellipse 55% 50% at 18% 0%, rgba(168, 85, 247, .22), transparent),
        radial-gradient(ellipse 50% 45% at 88% 28%, rgba(236, 72, 153, .18), transparent),
        linear-gradient(180deg, #0f172a 0%, #1a1035 100%);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero.hero-img::before {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: .28;
}
.hero.hero-img > .container { position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; }
.hero h1 .grad-text, .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .badge-eyebrow {
    background: rgba(168, 85, 247, .14);
    color: var(--accent);
    border: 1px solid rgba(236, 72, 153, .4);
    padding: .45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
}
.hero-trust .sep { color: var(--accent-2); }

/* Cards */
.card-surface {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
}
.card-surface:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, .55);
    box-shadow: 0 18px 44px rgba(5, 8, 18, .6);
}
.service-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: .9rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(236, 72, 153, .22));
    color: var(--accent);
    border: 1px solid rgba(168, 85, 247, .38);
    flex-shrink: 0;
}

/* Kartu layanan: tinggi seimbang, tombol selalu di bawah */
.service-card {
    display: flex;
    flex-direction: column;
}
.service-card h5 {
    font-size: 1.05rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.service-card .service-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
    margin-bottom: 0;
}
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card .service-icon { margin-bottom: 1rem; }

/* Section heading */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { font-weight: 800; }
.section-kicker {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .8rem;
}

/* Stats */
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pricing */
.plan-popular {
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, .35), 0 20px 50px rgba(5, 8, 18, .65);
    position: relative;
}
.plan-price { font-size: 1.9rem; font-weight: 800; }

/* Testimonial */
.stars { color: var(--accent-4); letter-spacing: 2px; }

/* Images & thumbs */
.thumb-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.detail-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
}
.thumb {
    height: 170px;
    border-radius: 1rem 1rem 0 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .85);
    background: linear-gradient(135deg, #a855f7, #ec4899);
}
.thumb.t2 { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.thumb.t3 { background: linear-gradient(135deg, #f97316, #db2777); }
.thumb.t4 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.thumb.t5 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.thumb.t6 { background: linear-gradient(135deg, #3b82f6, #a855f7); }

/* Newsletter strip */
.newsletter-strip {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.6rem;
}

/* Footer */
.site-footer { background: #0b1120; border-top: 1px solid var(--line); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Floating buttons */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 1050;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; text-decoration: none;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.to-top {
    position: fixed; right: 26px; bottom: 92px; z-index: 1050;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--card); color: var(--accent);
    border: 1px solid var(--line);
    display: none; align-items: center; justify-content: center;
}
.to-top.show { display: inline-flex; }

/* Article */
.article-body { line-height: 1.8; color: var(--text); }
.article-body p { margin-bottom: 1.1rem; }

/* Forms */
.form-control, .form-select {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--text);
}
.form-control:focus, .form-select:focus {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(168, 85, 247, .18);
}
.form-control::placeholder { color: #5b708c; }

.dropdown-menu { background: var(--card); border: 1px solid var(--line); }
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: var(--bg-soft); color: var(--accent); }

/* Page header strip */
.page-head {
    background: linear-gradient(120deg, #0f172a, #2a1444);
    padding: 64px 0 44px;
    border-bottom: 1px solid var(--line);
}

/* ===== Halaman detail layanan (ala landing per layanan) ===== */
.service-hero {
    background: linear-gradient(120deg, #0f172a, #2a1444);
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--line);
}
.service-hero .section-kicker { display: inline-block; }
.promo-bullets { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.promo-bullets li { color: var(--text); font-size: .9rem; font-weight: 500; }
.promo-bullets li i { color: var(--accent-2); margin-right: .5rem; }
.service-hero-img {
    width: 100%; border-radius: 1.25rem;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    aspect-ratio: 4 / 3; object-fit: cover;
}
.service-hero-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--card), var(--bg-soft));
    color: var(--accent); font-size: 4rem;
}

.step-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
    padding: 1.75rem 1.25rem; height: 100%; position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.step-num {
    position: absolute; top: .6rem; right: 1rem;
    font-family: Poppins, sans-serif; font-size: 2.6rem; font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: .35;
}
.step-icon { font-size: 1.9rem; color: var(--accent); display: block; margin-bottom: .9rem; }

.avatar-sm {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad); color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

.faq-accordion .accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: .9rem !important; margin-bottom: .75rem; overflow: hidden; }
.faq-accordion .accordion-button { background: var(--card); color: var(--text); font-weight: 600; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--bg-soft); color: var(--accent); }
.faq-accordion .accordion-button::after { filter: invert(1) hue-rotate(180deg); }
.faq-accordion .accordion-body { color: var(--muted); border-top: 1px solid var(--line); }

.urgent-block {
    background: linear-gradient(95deg, rgba(168, 85, 247, .16), rgba(236, 72, 153, .12));
    border: 1px solid rgba(168, 85, 247, .4); border-radius: 1.25rem;
    padding: 1.75rem 2rem;
}

/* Tombol seragam (hero, booking, bantuan segera) */
.service-hero .btn,
#booking .btn,
.urgent-block .btn {
    --bs-btn-padding-y: .65rem;
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-font-size: .95rem;
    min-width: 190px;
    display: inline-flex; align-items: center; justify-content: center; gap: .25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
#booking .btn-block-full { width: 100%; min-width: 0; }
.service-hero .btn:hover,
#booking .btn:hover,
.urgent-block .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168, 85, 247, .28); }
.service-hero .btn:active,
#booking .btn:active,
.urgent-block .btn:active { transform: translateY(0); }
.btn-outline-info { border-width: 1.5px; color: var(--accent); }
.btn-outline-info:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-info i, .btn-outline-info i { flex-shrink: 0; }

@media (max-width: 575.98px) {
    .service-hero .btn,
    #booking .btn,
    .urgent-block .btn { width: 100%; min-width: 0; }
}

/* Kartu sub-layanan & harga (ala kartu referensi) */
.price-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    padding: 1.75rem 1.5rem;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.price-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px 180px at 12% -10%, rgba(168, 85, 247, .16), transparent 70%);
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, .6); box-shadow: 0 22px 45px rgba(0, 0, 0, .45); }
.price-card:hover::after { opacity: 1; }
.price-card-icon {
    width: 54px; height: 54px; border-radius: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; margin-bottom: 1.15rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    flex-shrink: 0;
}
.price-card h5 { font-size: 1.05rem; line-height: 1.35; margin-bottom: .5rem; min-height: 2.7em; }
.price-card-desc {
    margin-bottom: 1.1rem; line-height: 1.55; min-height: 4.6em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.price-card-value {
    margin-top: auto; font-family: Poppins, sans-serif;
    font-size: 1.05rem; font-weight: 700; letter-spacing: -.2px;
}
.price-card-label {
    display: block; font-family: Inter, sans-serif;
    font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .15rem;
}
.price-card-num { display: block; line-height: 1.3; }
.price-card-value { font-size: 1rem; }
