@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --emerald-900: #064e3b;
    --emerald-700: #047857;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #f0fdf4;

    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white:     #ffffff;

    --amber-500: #f59e0b;
    --amber-50:  #fffbeb;

    --transition: 0.16s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background-color: var(--emerald-900);
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
    padding: 88px 24px 80px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(4, 40, 28, 0.72);
    pointer-events: none;
    z-index: 0;
}

.hero-bg-grid { display: none; }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--emerald-500);
    margin-bottom: 18px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-500);
    flex-shrink: 0;
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.025em;
    margin-bottom: 18px;
    color: var(--white);
}

.hero-accent { color: var(--emerald-500); }

.hero-quote {
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,.5);
    max-width: 420px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-500);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background var(--transition);
}

.btn-primary:hover { background: #0d9e6e; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,.45);
    color: var(--white);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ── LIVE CLOCK ───────────────────────────────────────────────── */
.hero-clock {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.hero-clock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-500);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16,185,129,.18);
    animation: blink 2.4s ease-in-out infinite;
}

.hero-clock-time {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .02em;
}

.hero-clock-date {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
}

.hero-logo-wrap {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
}

.hero-logo {
    width: 210px;
    height: auto;
    opacity: .88;
}

.hero-stat-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.hero-stat {
    flex: 1;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    padding: 14px 10px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--emerald-500);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}

/* ── HERO CAROUSEL ────────────────────────────────────────────── */
.hero-carousel {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .65s cubic-bezier(.65, 0, .35, 1);
    pointer-events: none;
    will-change: transform;
}

.hero-slide.is-active {
    pointer-events: auto;
}

.hero-eyebrow-count {
    color: rgba(255,255,255,.35);
    font-weight: 600;
}

.hero-slide-desc {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.6);
    max-width: 440px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
}

.hero-dot:hover { background: rgba(255,255,255,.5); }

.hero-dot.is-active {
    width: 22px;
    background: var(--emerald-500);
}

/* ── MAIN ─────────────────────────────────────────────────────── */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── SECTION ──────────────────────────────────────────────────── */
.section { padding-top: 56px; }

.section-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 6px;
}

.section-label--blue  { color: #2563eb; }
.section-label--slate { color: var(--slate-600); }

.section-desc {
    font-size: 12px;
    color: var(--slate-400);
}

/* ── SUPPORT NOTE ─────────────────────────────────────────────── */
.support-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
    font-size: 11.5px;
}

.support-note-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--emerald-700);
    font-weight: 600;
}

.status-dot--sm {
    width: 5px;
    height: 5px;
    background: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

.support-note-divider {
    color: var(--slate-200);
    font-weight: 700;
}

.support-note-text {
    color: var(--slate-400);
}

.support-note-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-weight: 600;
    font-size: 11px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.support-note-link i { font-size: 13px; }

.support-note-link:hover {
    background: #dcfce7;
    border-color: #86efac;
    box-shadow: 0 1px 4px rgba(21,128,61,.14);
}

@media (max-width: 768px) {
    .support-note { font-size: 11px; }
    .support-note-divider { display: none; }
    .support-note-status { width: 100%; }
}

/* ── TOOLBAR: SEARCH & FILTER ────────────────────────────────── */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    flex: 1 1 240px;
    max-width: 320px;
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--slate-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--slate-800);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    padding: 9px 32px 9px 32px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder { color: var(--slate-400); }

.search-input:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

.search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border: none;
    border-radius: 50%;
    color: var(--slate-600);
    font-size: 9px;
    cursor: pointer;
    transition: background var(--transition);
}

.search-clear:hover { background: var(--slate-200); }
.search-box.has-value .search-clear { display: flex; }

.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chip {
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.chip:hover {
    border-color: var(--slate-400);
    color: var(--slate-800);
}

.chip.is-active {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    color: var(--white);
}

.empty-state {
    display: none;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 12.5px;
    color: var(--slate-400);
    padding: 36px 0;
    border: 1px dashed var(--slate-200);
    border-radius: 6px;
}

.empty-state.is-visible { display: flex; }
.grid.is-hidden { display: none; }

/* ── GRID ─────────────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

/* ── CARD ─────────────────────────────────────────────────────── */
.card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0;
    padding: 14px 14px;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    overflow: visible;
}

.card.is-filtered-out { display: none; }

/* Tidak ada left border accent, tidak ada border color saat hover */
.card::before { display: none; }

.card:hover {
    background: var(--slate-50);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── STATUS BADGE ─────────────────────────────────────────────── */
.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 7px 3px 6px;
    border-radius: 999px;
    line-height: 1;
    z-index: 2;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge--online {
    background: var(--emerald-50);
    color: var(--emerald-700);
}
.status-badge--online .status-dot {
    background: var(--emerald-500);
    animation: blink 2.4s ease-in-out infinite;
}

.status-badge--maintenance {
    background: var(--amber-50);
    color: #b45309;
}
.status-badge--maintenance .status-dot { background: var(--amber-500); }

/* ── ICON — warna per kategori dipertahankan ────────────────── */
.card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: transform var(--transition);
}

.card:hover .card-icon { transform: scale(1.08); }

/* Warna per kategori — dipertahankan dari versi awal */
.card--emerald .card-icon { background: var(--emerald-50);  color: var(--emerald-700); }
.card--green   .card-icon { background: #f0fdf4;            color: #16a34a; }
.card--blue    .card-icon { background: #eff6ff;            color: #3b82f6; }
.card--amber   .card-icon { background: #fffbeb;            color: #f59e0b; }
.card--indigo  .card-icon { background: #eef2ff;            color: #6366f1; }
.card--purple  .card-icon { background: #faf5ff;            color: #a855f7; }
.card--red     .card-icon { background: #fef2f2;            color: #ef4444; }
.card--slate   .card-icon { background: var(--slate-100);   color: var(--slate-600); }

.card-icon--img {
    background: var(--slate-100) !important;
    padding: 5px;
}

.card-icon--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-body { flex: 1; min-width: 0; }

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-desc {
    font-size: 11px;
    color: var(--slate-400);
    font-weight: 400;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-arrow {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--slate-400);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ── DROPDOWN (GEINESYS) ──────────────────────────────────────── */
.card--dropdown-wrap {
    position: relative;
    cursor: default;
}

.card--dropdown-wrap .card-arrow {
    opacity: 1;
    transform: none;
}

.card--dropdown-wrap:hover .card-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0;
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.card--dropdown-wrap:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    font-size: 12px;
    color: var(--slate-800);
    transition: background var(--transition);
    border-bottom: 1px solid var(--slate-100);
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--slate-50); }

.dropdown-item i {
    font-size: 13px;
    color: var(--slate-400);
    margin-top: 2px;
    flex-shrink: 0;
}

.dropdown-item span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dropdown-item strong {
    font-size: 12px;
    font-weight: 600;
    display: block;
}

/* ── SOCIAL MEDIA ─────────────────────────────────────────────── */
.section--socmed { padding-bottom: 16px; }

.socmed-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.socmed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-700);
    transition: border-color var(--transition), color var(--transition);
}

.socmed-btn i { font-size: 15px; }

.socmed-btn--yt:hover  { color: #FF0000; border-color: #FF0000; }
.socmed-btn--ig:hover  { color: #E4405F; border-color: #E4405F; }
.socmed-btn--wa:hover  { color: #25d366; border-color: #25d366; }
.socmed-btn--fb:hover  { color: #1877F2; border-color: #1877F2; }
.socmed-btn--tt:hover  { color: #010101; border-color: #888; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
    background: var(--emerald-900);
    color: rgba(255,255,255,.4);
    text-align: center;
    padding: 24px;
    font-size: 11px;
    line-height: 1.9;
}

.footer strong {
    color: var(--emerald-500);
    font-weight: 600;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 56px 20px 52px; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-visual { order: -1; }
    .hero-clock,
    .hero-logo-wrap,
    .hero-stat-row { max-width: 260px; }

    .hero-carousel { min-height: 400px; }
    .hero-slide-desc { max-width: none; }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 10px;
    }

    .card-arrow { display: none; }
    .card-title { font-size: 12px; white-space: normal; }

    .status-badge span:last-child { display: inline; }
    .status-badge {
        font-size: 7.5px;
        padding: 2px 6px 2px 5px;
    }

    .dropdown {
        position: fixed;
        left: 12px; right: 12px;
        top: auto; bottom: 60px;
    }

    .socmed-btn span { display: none; }
    .socmed-btn { padding: 9px 12px; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { flex: none; width: 100%; max-width: none; }
}

@media (max-width: 400px) {
    .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}