/* ============================================================
   FITUR 3 — LAYANAN (Modern Bento Cards + Clean iOS/macOS Table)
   Butuh: base.css
   ============================================================ */

.services {
    padding: 68px 0 76px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
}

.services-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 28px;
}

.services-title {
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.18;
    max-width: 520px;
    color: var(--ink);
}

.services-sub {
    font-size: 14px;
    color: var(--muted);
    max-width: 390px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 44px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 0;
    border-radius: 16px;
    overflow: hidden;
}

.service-card:hover {
    background-color: var(--maroon);
    border-color: var(--maroon);
    box-shadow: 0 20px 40px -12px rgba(143, 0, 8, 0.34);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.service-icon {
    color: var(--maroon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--spring), color 0.22s var(--ease);
}

.service-card:hover .service-icon {
    color: #FFFFFF;
    transform: scale(1.08);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-step {
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--tertiary);
    transition: color 0.22s var(--ease);
}

.service-card:hover .service-step,
.service-card:hover .service-en {
    color: var(--champagne);
}

.service-card h3 {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.28;
    margin-bottom: 3px;
    color: var(--ink);
    transition: color 0.22s var(--ease);
}

.service-en {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--tertiary);
    margin-bottom: 10px;
    transition: color 0.22s var(--ease);
}

.service-card > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.58;
    margin-bottom: 18px;
    transition: color 0.22s var(--ease);
}

.service-card:hover h3 {
    color: #FFFFFF;
}

.service-card:hover > p {
    color: rgba(255, 255, 255, 0.88);
}

.service-card-foot {
    margin: auto -20px 0;
    padding: 13px 20px 15px;
    background-color: var(--paper);
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.service-card:hover .service-card-foot {
    background-color: #EFEFF2;
    border-top-color: rgba(0, 0, 0, 0.06);
}

.service-tag {
    font-size: 11.5px;
    color: var(--muted);
    transition: color 0.22s var(--ease);
}

.service-card:hover .service-tag {
    color: var(--ink-secondary);
}

.service-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--maroon);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.22s var(--spring), color 0.22s var(--ease);
}

.service-card:hover .service-link {
    color: var(--maroon);
    transform: translateX(3px);
}

/* ---------- Direktori Layanan (Clean Editorial Header + Cards / Table) ---------- */
.ios-table tr[data-cat].is-hidden,
.macos-table-scroll.is-hidden,
.matrix-cards-grid.is-hidden {
    display: none;
}

.services-directory-section {
    position: relative;
}

.services-dir-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.services-dir-intro {
    max-width: 560px;
}

.services-dir-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 6px;
}

.services-dir-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--maroon);
    box-shadow: 0 0 0 3px rgba(143, 0, 8, 0.14);
}

.services-dir-intro h3 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 6px;
}

.services-dir-intro p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.services-dir-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#matrixViewSwitch .ios-seg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.services-directory-section .ios-table th,
.services-directory-section .ios-table td {
    padding-left: 22px;
    padding-right: 22px;
}

.services-directory-section .ios-table th:last-child,
.services-directory-section .ios-table td:last-child {
    text-align: right;
}

.services-directory-section .ios-cell-main .ios-glyph,
.matrix-card-top .ios-glyph {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--maroon-soft);
    transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.services-directory-section .ios-table tbody tr:hover td:first-child .ios-glyph {
    background: rgba(255, 255, 255, 0.16);
}

.services-dir-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    font-size: 12.5px;
    color: var(--muted);
}

.services-status-cta {
    font-weight: 600;
    color: var(--maroon);
    transition: color 0.18s var(--ease), transform 0.2s var(--spring);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.services-status-cta:hover {
    color: var(--maroon-hover);
    transform: translateX(2px);
}

.matrix-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.matrix-card {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 0;
    border-radius: 16px;
    overflow: hidden;
}

.matrix-card:hover {
    background-color: var(--maroon);
    border-color: var(--maroon);
    box-shadow: 0 20px 38px -12px rgba(143, 0, 8, 0.34);
}

.matrix-card[data-cat].is-hidden {
    display: none;
}

.matrix-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.matrix-cat-badge {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--hairline);
    color: var(--muted);
    white-space: nowrap;
    transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.matrix-card:hover .matrix-cat-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.26);
    color: #FFFFFF;
}

.matrix-card:hover .matrix-card-top .ios-glyph {
    background: rgba(255, 255, 255, 0.16);
}

.matrix-card h4 {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 3px;
    transition: color 0.22s var(--ease);
}

.matrix-card-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--tertiary);
    margin-bottom: 9px;
    transition: color 0.22s var(--ease);
}

.matrix-card > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.56;
    margin-bottom: 18px;
    transition: color 0.22s var(--ease);
}

.matrix-card:hover .ios-glyph,
.matrix-card:hover .matrix-card-sub {
    color: var(--champagne);
}

.matrix-card:hover h4 {
    color: #FFFFFF;
}

.matrix-card:hover > p {
    color: rgba(255, 255, 255, 0.88);
}

.matrix-card-meta {
    margin: auto -22px 0;
    padding: 13px 22px 15px;
    background-color: var(--paper);
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.matrix-card:hover .matrix-card-meta {
    background-color: #EFEFF2;
    border-top-color: rgba(0, 0, 0, 0.06);
}

.matrix-card-lead {
    color: var(--ink-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.matrix-card:hover .ios-row-action {
    background-color: #FFFFFF;
    color: var(--maroon);
}

.matrix-card:hover .ios-row-action:hover {
    background-color: var(--maroon);
    color: #FFFFFF;
}

/* ---------- ALF SIDANG SIMULATOR SPLIT SHOWCASE IN 02 LAYANAN ---------- */
.nf-billboard {
    position: relative;
    scroll-margin-top: 86px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 20px 28px 20px 20px;
    margin-bottom: 56px;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-window);
    color: var(--ink);
}

.sim-media-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #090A0E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px -14px rgba(10, 12, 18, 0.36);
}

.nf-billboard-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.nf-scene-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.96;
}

.nf-billboard-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.56) 0%, transparent 32%, transparent 62%, rgba(10, 10, 14, 0.72) 100%);
}

.nf-billboard-top,
.sim-stage-bottom {
    position: absolute;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.nf-billboard-top {
    top: 14px;
}

.sim-stage-bottom {
    bottom: 14px;
}

.nf-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 11px 5px 6px;
    border-radius: 999px;
    background: rgba(14, 15, 20, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.nf-n-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(155deg, #B91C1C 0%, #8F0008 58%, #580005 100%);
    border: 1px solid rgba(232, 213, 181, 0.34);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 3px 10px rgba(143, 0, 8, 0.42);
}

.nf-series-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.sim-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(14, 15, 20, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.sim-live-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.sim-info-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 6px 4px;
}

.sim-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon);
}

.nf-billboard-title {
    font-family: inherit;
    font-size: clamp(22px, 2.35vw, 28px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.nf-billboard-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.sim-spec-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 6px;
}

.sim-spec-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--hairline);
    color: var(--ink-secondary);
    font-size: 11.5px;
    font-weight: 600;
}

.nf-billboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nf-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--maroon);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 8px 20px -6px rgba(143, 0, 8, 0.45);
    transition: transform 0.2s var(--spring), background 0.18s var(--ease), box-shadow 0.2s var(--ease);
}

.nf-play-btn:hover {
    background: var(--maroon-hover);
    box-shadow: 0 12px 24px -6px rgba(143, 0, 8, 0.54);
    transform: translateY(-1px) scale(1.02);
}

.nf-modal-card .nf-play-btn {
    background: #FFFFFF;
    color: #111216;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.nf-modal-card .nf-play-btn:hover {
    background: rgba(255, 255, 255, 0.88);
}

.nf-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong);
    background: var(--surface-subtle);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.2s var(--spring);
}

.nf-info-btn:hover {
    background: var(--maroon-soft);
    border-color: rgba(143, 0, 8, 0.35);
    color: var(--maroon);
    transform: translateY(-1px);
}

.nf-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 11px 0 6px;
    border-radius: 999px;
    background: rgba(14, 15, 20, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.nf-pill-badge-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--maroon);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

/* ---------- @react-bits/TargetCursor-JS-CSS (Scoped to #layananSimulatorHub) ---------- */
.target-cursor {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    pointer-events: none;
}

.target-cursor__corner {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: var(--target-cursor-color, #ffffff);
    transform-origin: 0 0;
}

.target-cursor__dot {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: var(--target-cursor-color, #ffffff);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.target-cursor__label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(10, 10, 14, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
    color: var(--target-cursor-color, #ffffff);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    opacity: 0;
    will-change: transform, opacity;
}

/* ---------- NETFLIX MORE-INFO ROLE MODAL ---------- */
.nf-modal-card {
    background: #141418 !important;
    color: #F5F5F7 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    max-width: 720px;
    overflow: hidden;
}

.nf-modal-hero {
    position: relative;
    height: 195px;
    overflow: hidden;
    background: #0B0B0F;
}

.nf-modal-hero img,
.nf-modal-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.84;
}

.nf-modal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.12) 0%, #141418 100%);
}

.nf-modal-hero-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.nf-modal-hero-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 4px 0 0;
}

.nf-modal-close-abs {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(20, 20, 24, 0.78);
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nf-modal-close-abs:hover {
    background: #E50914;
    border-color: #E50914;
}

.nf-modal-body {
    padding: 18px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nf-modal-lead {
    font-size: 13.5px;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.82);
}

.nf-role-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nf-role-tab {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nf-role-tab.active,
.nf-role-tab:hover {
    background: #E50914;
    border-color: #E50914;
    color: #FFFFFF;
}

.nf-role-panel {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 16px 18px;
}

.nf-role-panel.is-hidden {
    display: none;
}

.nf-role-panel h4 {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.nf-role-panel ol {
    margin: 0 0 12px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nf-role-panel li {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.nf-role-ctrl {
    font-size: 11.5px;
    color: #F3D69B;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

@media (max-width: 960px) {
    .nf-billboard {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
        margin-bottom: 44px;
    }

    .services-dir-header {
        align-items: flex-start;
    }

    .services-directory-section .ios-table th,
    .services-directory-section .ios-table td {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 560px) {
    .nf-billboard {
        padding: 14px;
        border-radius: 18px;
        margin-bottom: 36px;
    }

    .sim-media-stage {
        border-radius: 12px;
    }

    .nf-billboard-top,
    .sim-stage-bottom {
        left: 10px;
        right: 10px;
    }

    .nf-billboard-top {
        top: 10px;
    }

    .sim-stage-bottom {
        bottom: 10px;
    }

    .services-dir-controls {
        width: 100%;
    }

    #serviceFilter {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #serviceFilter::-webkit-scrollbar {
        display: none;
    }

    .services-directory-section .ios-table th,
    .services-directory-section .ios-table td {
        padding-left: 14px;
        padding-right: 14px;
    }

    .services-dir-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1050px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matrix-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .services-grid,
    .matrix-cards-grid {
        grid-template-columns: 1fr;
    }

    .services-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
