/* Landing Page OSBA Baitussalam */
:root {
    --emerald-950: #022C22;
    --emerald-900: #064E3B;
    --emerald-800: #065F46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-50: #ECFDF5;
    --gold-500: #F59E0B;
    --gold-400: #FBBF24;
    --gold-100: #FEF3C7;
    --slate-900: #0F172A;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 32px rgba(6, 78, 59, 0.12);
    --shadow-lg: 0 20px 50px rgba(2, 44, 34, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--slate-900);
    background: var(--bg);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.nav-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-box { width: 40px; height: 40px; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.15rem; color: var(--emerald-900); letter-spacing: 0.02em; }
.brand-text small { font-size: 0.74rem; color: var(--slate-500); font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-links a {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--slate-700);
    transition: color .2s;
}
.nav-links a:hover { color: var(--emerald-700); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger {
    display: none;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 11px;
    transition: all .2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary-sm {
    background: var(--emerald-700);
    color: var(--white);
    padding: 9px 16px;
    font-size: 0.88rem;
}
.btn-primary-sm:hover { background: var(--emerald-800); transform: translateY(-1px); }
.btn-outline-sm {
    background: var(--emerald-50);
    color: var(--emerald-800);
    border-color: #A7F3D0;
    padding: 9px 15px;
    font-size: 0.88rem;
}
.btn-outline-sm:hover { background: #D1FAE5; }

.btn-gold {
    background: linear-gradient(135deg, #FBBF24, #D97706);
    color: #1E1B08;
    padding: 13px 22px;
    font-size: 0.95rem;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-glass {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
    padding: 13px 20px;
    font-size: 0.94rem;
    backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }

.btn-glass-outline {
    background: transparent;
    color: #D1FAE5;
    border-color: rgba(167, 243, 208, 0.35);
    padding: 13px 18px;
    font-size: 0.94rem;
}
.btn-glass-outline:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, #047857 0%, #064E3B 48%, #022C22 100%);
    color: var(--white);
    padding: 74px 0 88px;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        radial-gradient(#FBBF24 1px, transparent 1px),
        radial-gradient(#FFFFFF 1px, transparent 1px);
    background-size: 36px 36px;
    background-position: 0 0, 18px 18px;
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.18fr 0.88fr;
    gap: 44px;
    align-items: center;
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(167, 243, 208, 0.3);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #ECFDF5;
    margin-bottom: 20px;
}
.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    line-height: 1.16;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(90deg, #FDE68A, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.05rem;
    color: #D1FAE5;
    max-width: 580px;
    margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero Stats Card */
.hero-stats-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}
.card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}
.eyebrow-mini { font-size: 0.7rem; letter-spacing: 0.12em; color: #A7F3D0; font-weight: 700; }
.card-header-mini h3 { font-size: 1.25rem; margin-top: 2px; }
.badge-live {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid #34D399;
    color: #A7F3D0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.active-activity-box {
    background: rgba(2, 44, 34, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    padding: 15px 16px;
    margin-bottom: 16px;
}
.aab-label { font-size: 0.7rem; color: #FDE68A; letter-spacing: 0.08em; font-weight: 700; }
.aab-title { font-size: 1.15rem; font-weight: 700; margin: 4px 0 6px; color: #fff; }
.aab-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: #A7F3D0; }

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.metric-tile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.metric-tile.accent {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(217, 119, 6, 0.16));
    border-color: rgba(251, 191, 36, 0.4);
}
.metric-val { font-size: 1.55rem; font-weight: 800; line-height: 1.15; }
.metric-lbl { font-size: 0.78rem; color: #D1FAE5; margin-top: 3px; }

/* Sections */
.section { padding: 78px 0; }
.section-tinted { background: #F0FDF4; border-top: 1px solid #DCFCE7; border-bottom: 1px solid #DCFCE7; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid #A7F3D0;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.3rem);
    color: var(--slate-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-head p { color: var(--slate-600); font-size: 1rem; }

/* Pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.pillar-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--emerald-50);
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 16px;
}
.pillar-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--emerald-950); }
.pillar-card p { color: var(--slate-600); font-size: 0.94rem; }

/* Visi Misi */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #D1FAE5;
    box-shadow: var(--shadow-sm);
}
.vm-card.visi {
    background: linear-gradient(155deg, #064E3B, #022C22);
    color: var(--white);
    border-color: transparent;
}
.vm-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #FDE68A;
    margin-bottom: 16px;
}
.vm-badge.gold { background: var(--gold-100); color: #92400E; }
.vm-card.visi h3 { font-size: 1.38rem; line-height: 1.45; margin-bottom: 16px; font-weight: 700; }
.vm-card.visi p { color: #A7F3D0; font-size: 0.94rem; }
.misi-list { list-style: none; display: grid; gap: 14px; }
.misi-list li {
    position: relative;
    padding-left: 28px;
    color: var(--slate-700);
    font-size: 0.96rem;
}
.misi-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--emerald-50);
    color: var(--emerald-700);
    font-size: 0.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

/* Divisions */
.division-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.division-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .2s, transform .2s;
}
.division-card:hover { border-color: var(--emerald-600); transform: translateY(-3px); }
.div-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--emerald-700);
    background: var(--emerald-50);
    padding: 3px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.division-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--slate-900); }
.division-card p { font-size: 0.91rem; color: var(--slate-600); }

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.schedule-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}
.schedule-card.is-current {
    border: 2px solid var(--emerald-600);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.16);
    background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 36%);
}
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-time {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--emerald-900);
    background: var(--emerald-50);
    padding: 4px 10px;
    border-radius: 8px;
}
.sc-badge-active {
    font-size: 0.72rem;
    font-weight: 800;
    color: #065F46;
    background: #A7F3D0;
    padding: 4px 10px;
    border-radius: 999px;
}
.sc-badge-late {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
}
.schedule-card h3 { font-size: 1.08rem; color: var(--slate-900); }
.schedule-card p { font-size: 0.9rem; color: var(--slate-600); flex: 1; }
.sc-foot {
    border-top: 1px dashed var(--slate-200);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--slate-600);
}

/* RFID Banner */
.rfid-banner {
    background: linear-gradient(135deg, #064E3B 0%, #0F172A 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}
.eyebrow-light {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #FDE68A;
    margin-bottom: 10px;
}
.rfid-info h2 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 12px; }
.rfid-info p { color: #CBD5E1; margin-bottom: 18px; }
.rfid-features { display: grid; gap: 8px; margin-bottom: 24px; color: #A7F3D0; font-size: 0.94rem; font-weight: 500; }
.rfid-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.rfid-chip-card {
    background: linear-gradient(145deg, #059669, #022C22);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.chip-top, .chip-mid, .chip-bot { display: flex; justify-content: space-between; align-items: center; }
.chip-top { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: #D1FAE5; }
.chip-sec { background: rgba(251, 191, 36, 0.2); color: #FDE68A; padding: 3px 9px; border-radius: 999px; }
.gold-chip {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FDE68A, #D97706);
}
.rfid-waves { font-size: 1.7rem; font-weight: 700; color: rgba(255, 255, 255, 0.75); letter-spacing: 2px; }
.chip-bot span { font-size: 0.72rem; color: #A7F3D0; letter-spacing: 0.08em; }
.chip-bot strong { font-size: 1.15rem; letter-spacing: 0.16em; }

/* Footer */
.footer {
    background: #022C22;
    color: #A7F3D0;
    padding: 56px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(167, 243, 208, 0.15);
}
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer p { font-size: 0.92rem; max-width: 360px; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer a { display: block; font-size: 0.9rem; margin-bottom: 8px; color: #A7F3D0; }
.footer a:hover { color: #FBBF24; }
.footer-bottom { padding-top: 22px; font-size: 0.84rem; color: #6EE7B7; text-align: center; }

@media (max-width: 960px) {
    .hero-grid, .vm-grid, .rfid-banner { grid-template-columns: 1fr; }
    .pillar-grid, .division-grid, .schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 18px 22px;
        border-bottom: 1px solid var(--slate-200);
        gap: 14px;
    }
    .nav-links.open { display: flex; }
    .nav-burger { display: inline-flex; }
    .btn-outline-sm { display: none; }
    .pillar-grid, .division-grid, .schedule-grid { grid-template-columns: 1fr; }
    .rfid-banner { padding: 26px; }
}
