/* ============================================================
   DESIGN TOKENS - CCTV Learning Ezviz
   Palet navy/biru ala brand security-tech, bukan gradient generik
   ============================================================ */
:root {
    --navy-900: #0A2340;
    --navy-800: #0F2E52;
    --navy-700: #16406E;
    --blue-600: #0B5FFF;
    --blue-500: #2E7DFF;
    --teal-400: #17C3B2;
    --bg: #F5F7FB;
    --surface: #FFFFFF;
    --border: #E3E8F0;
    --text-900: #101828;
    --text-600: #475467;
    --text-400: #98A2B3;
    --success: #12B76A;
    --success-bg: #ECFDF3;
    --warning: #F79009;
    --warning-bg: #FFFAEB;
    --danger: #F04438;
    --danger-bg: #FEF3F2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body { width: 100%; min-height: 100vh; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-900);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

/* ===== HEADER ===== */
.site-header {
    background: var(--surface);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--navy-900);
    font-size: 15px;
}

.site-header .logo .mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-header .logo span { color: var(--blue-600); }

.site-header .user-info {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-600);
}

.site-header .badge-role {
    background: var(--navy-900);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== CARD ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
    margin-bottom: 20px;
}

.page-title {
    color: var(--navy-900);
    font-size: 26px;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-600);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-900);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-900);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-600);
}

.form-card { max-width: 420px; margin: 60px auto; }

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
}

.btn-primary { background: var(--blue-600); color: white; }
.btn-primary:active { background: var(--navy-800); transform: scale(0.99); }

.btn-outline {
    background: white;
    color: var(--navy-900);
    border: 1.5px solid var(--border);
}
.btn-outline:active { background: var(--bg); }

.alert { padding: 12px 15px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

/* ===== VIDEO EMBED ===== */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--navy-900);
    margin-bottom: 15px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ===== MODUL LIST ===== */
.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.level-basic { background: var(--blue-600); }
.level-intermediate { background: var(--warning); }
.level-advanced { background: var(--danger); }

.modul-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    gap: 12px;
}

.modul-item .info h3 { font-size: 15px; margin-bottom: 4px; color: var(--text-900); }
.modul-item .info p { font-size: 12px; color: var(--text-600); }

.status-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.status-selesai { background: var(--success-bg); color: var(--success); }
.status-proses { background: var(--warning-bg); color: var(--warning); }
.status-belum { background: var(--border); color: var(--text-600); }

/* ===== KUIS ===== */
.kuis-option {
    display: block;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-900);
}

.kuis-option:has(input:checked) { border-color: var(--blue-600); background: #EEF4FF; }
.kuis-option input { margin-right: 10px; }

.score-box { text-align: center; padding: 30px 20px; }
.score-box .score-number { font-size: 48px; font-weight: 800; color: var(--blue-600); }

/* ===== LANDING HERO ===== */
.hero-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 20px 60px;
    position: relative;
}

.hero-eyebrow-mark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 180px;
    height: 180px;
    opacity: 0.06;
    pointer-events: none;
}

.hero-content { max-width: 620px; }

.hero-content h1 {
    font-size: 34px;
    color: var(--navy-900);
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 15px;
    color: var(--text-600);
    line-height: 1.6;
    margin-bottom: 8px;
    max-width: 480px;
}

.trust-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--navy-800);
    font-weight: 700;
    margin-top: 18px;
    padding: 7px 14px;
    background: #EEF4FF;
    border-radius: 20px;
}

/* ===== PORTAL CARDS ===== */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
}

@media (min-width: 700px) {
    .portal-grid { grid-template-columns: 1fr 1fr; }
}

.portal-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    color: var(--text-900);
}

.portal-card:active { transform: scale(0.99); }

.portal-card:hover {
    border-color: var(--blue-500);
    box-shadow: 0 8px 24px rgba(11,95,255,0.12);
}

.portal-card .icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    margin-bottom: 6px;
}

.portal-card.umum .icon-badge { background: var(--teal-400); }
.portal-card.teknisi .icon-badge { background: var(--blue-600); }

.portal-card .title { font-size: 17px; font-weight: 800; color: var(--navy-900); }
.portal-card .desc { font-size: 13px; color: var(--text-600); line-height: 1.5; }

.portal-card .cta-line {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-note {
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 20px 40px;
    color: var(--text-400);
    font-size: 12px;
}