/* ========================================================
 * MadrasahHost Design System (Bootstrap 5 + Custom CSS3)
 * Responsive Mobile-First & Identik dengan Preview Modern
 * ======================================================== */

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --blue-950:  #172554;
    --blue-700:  #1d4ed8;
    --blue-600:  #2563eb;
    --blue-500:  #3b82f6;
    --blue-50:   #eff6ff;
    --sky-500:   #0ea5e9;
    --sky-400:   #38bdf8;
    --sky-300:   #7dd3fc;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --amber-400:   #fbbf24;
    --amber-300:   #fcd34d;
}

html, body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-800);
    background-color: #ffffff;
    overflow-x: clip;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

section[id], div[id] {
    scroll-margin-top: 84px;
}

/* Typography & Utilities */
.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }
.leading-relaxed { line-height: 1.65 !important; }
.max-w-700 { max-width: 720px; }
.max-w-800 { max-width: 820px; }
.text-navy { color: var(--slate-900) !important; }
.bg-slate-950 { background-color: var(--slate-950) !important; }
.bg-slate-900 { background-color: var(--slate-900) !important; }
.bg-slate-50 { background-color: var(--slate-50) !important; }

.text-gradient-blue {
    background: linear-gradient(90deg, #60a5fa 0%, #7dd3fc 50%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Top Announcement Bar */
.top-announcement-bar {
    background-color: var(--slate-900);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-800);
}

/* Navbar Modern (Sticky Header) */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 12px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.navbar-custom.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.99);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}

.navbar-brand {
    min-width: 0;
    max-width: calc(100% - 56px);
}

.navbar-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--blue-700), var(--blue-600), var(--sky-500));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.navbar-brand-logo-wrap {
    height: 44px;
    max-width: 140px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-brand-text {
    min-width: 0;
    overflow: hidden;
}

.navbar-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.15;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-brand-slogan {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-custom .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--blue-600) !important;
    background-color: var(--slate-50);
}

.navbar-custom .nav-link.active {
    color: var(--blue-700) !important;
    background-color: var(--blue-50);
    font-weight: 700;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(90deg, var(--blue-600), var(--sky-500));
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(90deg, var(--blue-700), #0284c7);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-amber-custom {
    background-color: var(--amber-400);
    color: var(--slate-950) !important;
    border: none;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.22);
    transition: all 0.2s ease;
}

.btn-amber-custom:hover {
    background-color: var(--amber-300);
    color: var(--slate-950) !important;
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 1px solid var(--slate-300);
    background-color: #ffffff;
    color: var(--slate-700) !important;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background-color: var(--slate-100);
    color: var(--slate-900) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, var(--slate-950) 0%, var(--slate-900) 55%, var(--blue-950) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 64px 0 88px 0;
    border-bottom: 1px solid var(--slate-800);
}

.hero-glow-1 {
    position: absolute;
    top: -60px;
    right: 15%;
    width: 380px;
    height: 380px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -60px;
    left: 15%;
    width: 380px;
    height: 380px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--sky-300);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--emerald-400);
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-specs-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.hero-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(30, 41, 59, 0.7);
    font-size: 0.75rem;
}

/* Sub-page Header */
.page-hero-header {
    background: linear-gradient(90deg, var(--slate-950) 0%, var(--slate-900) 50%, var(--blue-950) 100%);
    color: #ffffff;
    padding: 56px 0;
    border-bottom: 1px solid var(--slate-800);
    text-align: center;
}

/* Domain Checker Card */
.domain-checker-wrapper {
    margin-top: -40px;
    position: relative;
    z-index: 20;
}

.domain-checker-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    padding: 24px 28px;
}

/* Section Labels */
.section-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-600);
    background-color: rgba(219, 234, 254, 0.7);
    padding: 5px 14px;
    border-radius: 999px;
}

/* Cards Modern */
.card-custom {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--blue-600), var(--sky-500));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* Pricing Packages (Matching Dark Popular Card in Preview) */
.billing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background-color: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.billing-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.billing-toggle-btn.active {
    background-color: var(--blue-600);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.pricing-card {
    background: #ffffff;
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

.pricing-card-popular {
    background: var(--slate-900);
    color: #ffffff;
    border: 2px solid var(--blue-500);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    z-index: 2;
}

@media (min-width: 992px) {
    .pricing-card-popular {
        transform: scale(1.04);
    }
}

.popular-pill-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--blue-500), var(--sky-400));
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Keunggulan Section (Dark Slate-900) */
.why-us-section {
    background-color: var(--slate-900);
    color: #ffffff;
    padding: 80px 0;
}

.why-us-tile {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--slate-800);
    border-radius: 18px;
    padding: 22px;
    height: 100%;
}

.why-us-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Portfolio Card Header */
.portfolio-card-banner {
    height: 176px;
    background: linear-gradient(45deg, var(--slate-900), var(--blue-950), var(--slate-800));
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Article Card Header */
.article-card-banner {
    height: 144px;
    background: linear-gradient(90deg, #1e3a8a, var(--slate-900));
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

/* Filter Tabs */
.filter-tab-btn {
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--slate-200);
    background-color: #ffffff;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-tab-btn:hover {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

.filter-tab-btn.active {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* CTA Banner */
.cta-gradient-section {
    background: linear-gradient(90deg, var(--blue-700) 0%, var(--blue-600) 50%, #0284c7 100%);
    color: #ffffff;
    padding: 64px 0;
}

/* Footer */
.site-footer {
    background-color: var(--slate-950);
    color: var(--slate-300);
    border-top: 1px solid var(--slate-800);
    padding: 64px 0 40px 0;
}

.footer-link {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--sky-400);
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background-color: var(--emerald-600);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4);
    z-index: 999;
    transition: transform 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.08);
    background-color: var(--emerald-500);
    color: #ffffff;
}

/* Mobile Responsive Refinements */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 44px 0 64px 0;
        text-align: center;
    }
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-trust-badges {
        justify-content: center !important;
    }
    .hero-cta-group {
        justify-content: center !important;
    }
    .navbar-collapse {
        padding-top: 14px;
        border-top: 1px solid var(--slate-200);
        margin-top: 12px;
    }
    .navbar-actions-mobile {
        flex-direction: column;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--slate-200);
        margin-top: 8px;
    }
    .navbar-actions-mobile .btn {
        width: 100%;
    }
    .domain-checker-wrapper {
        margin-top: -24px;
    }
    .domain-checker-card {
        padding: 18px;
    }
    .border-start-lg {
        border-left: none !important;
        border-top: 1px solid var(--slate-100);
        padding-top: 16px;
        margin-top: 8px;
    }
}

@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid var(--slate-100) !important;
        padding-left: 24px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-cta-group .btn {
        width: 100%;
    }
    .hero-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .floating-wa {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
    .pricing-card {
        padding: 22px 18px;
    }
}
