/* =====================================================
   SIJAMU Landing Page Styles
   Sistem Informasi Penjaminan Mutu
   ===================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    /* Brand Colors - derived from logo PPEPP cycle */
    --sj-red: #E53935;
    --sj-orange: #FF6D00;
    --sj-green: #43A047;
    --sj-teal: #00897B;
    --sj-blue: #1565C0;
    --sj-purple: #7B1FA2;

    /* Primary Palette */
    --sj-primary: #E53935;
    --sj-primary-dark: #C62828;
    --sj-primary-light: #EF5350;

    /* Light Theme (default) */
    --sj-bg: #FAFBFC;
    --sj-surface: #FFFFFF;
    --sj-text: #1A1A2E;
    --sj-text-secondary: #5A5A72;
    --sj-text-muted: #9E9EB8;
    --sj-border: #E8E8F0;
    --sj-card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --sj-footer-bg: #0D0D1A;
    --sj-footer-text: rgba(255, 255, 255, 0.5);
    --sj-footer-border: rgba(255,255,255,0.08);
    --sj-navbar-scrolled-bg: rgba(255, 255, 255, 0.92);
    --sj-mobile-menu-bg: #FFFFFF;

    /* Gradient */
    --sj-gradient: linear-gradient(135deg, var(--sj-red), var(--sj-orange), var(--sj-green), var(--sj-teal), var(--sj-blue), var(--sj-purple));
    --sj-gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);

    /* Spacing */
    --sj-space-xs: 0.25rem;
    --sj-space-sm: 0.5rem;
    --sj-space-md: 1rem;
    --sj-space-lg: 1.5rem;
    --sj-space-xl: 2rem;
    --sj-space-2xl: 3rem;
    --sj-space-3xl: 4rem;
    --sj-space-4xl: 6rem;

    /* Typography */
    --sj-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radius */
    --sj-radius-sm: 0.5rem;
    --sj-radius-md: 0.75rem;
    --sj-radius-lg: 1rem;
    --sj-radius-xl: 1.5rem;
    --sj-radius-full: 9999px;

    /* Shadow */
    --sj-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --sj-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --sj-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --sj-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

    /* Transition */
    --sj-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    --sj-bg: #111827;
    --sj-surface: #1F2937;
    --sj-text: #F3F4F6;
    --sj-text-secondary: #9CA3AF;
    --sj-text-muted: #6B7280;
    --sj-border: #374151;
    --sj-card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --sj-footer-bg: #030712;
    --sj-footer-text: rgba(255, 255, 255, 0.45);
    --sj-footer-border: rgba(255,255,255,0.06);
    --sj-navbar-scrolled-bg: rgba(17, 24, 39, 0.92);
    --sj-mobile-menu-bg: #1F2937;
    --sj-gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0C1A3D 100%);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sj-font);
    color: var(--sj-text);
    background-color: var(--sj-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--sj-transition), color var(--sj-transition);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--sj-space-xl);
}

.gradient-text {
    background: var(--sj-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bar {
    height: 4px;
    background: var(--sj-gradient);
    border: none;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--sj-radius-md);
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: var(--sj-transition);
    color: white;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.navbar.scrolled .theme-toggle {
    border-color: var(--sj-border);
    background: var(--sj-bg);
    color: var(--sj-text);
}

.navbar.scrolled .theme-toggle:hover {
    background: var(--sj-surface);
    border-color: var(--sj-text-muted);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--sj-space-md) 0;
    transition: var(--sj-transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--sj-navbar-scrolled-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--sj-shadow-md);
    border-bottom: 1px solid var(--sj-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--sj-space-sm);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--sj-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sj-gradient);
    color: white;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Logo dari Pengaturan > White Label. Versi gelap dipakai di atas hero dan pada tema gelap. */
.navbar-brand .brand-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand .brand-logo-dark,
.navbar:not(.scrolled) .navbar-brand .brand-logo-light,
[data-theme="dark"] .navbar-brand .brand-logo-light {
    display: none;
}

.navbar:not(.scrolled) .navbar-brand .brand-logo-dark,
[data-theme="dark"] .navbar-brand .brand-logo-dark {
    display: block;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-brand .brand-text .brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-brand .brand-text .brand-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--sj-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar.scrolled .navbar-brand .brand-text .brand-sub {
    color: var(--sj-text-secondary);
}

/* Hero state - white text */
.navbar:not(.scrolled) .navbar-brand .brand-text .brand-name {
    color: white;
}

.navbar:not(.scrolled) .navbar-brand .brand-text .brand-sub {
    color: rgba(255,255,255,0.6);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--sj-space-lg);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sj-text-secondary);
    transition: var(--sj-transition);
    position: relative;
    padding: var(--sj-space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sj-gradient);
    transition: var(--sj-transition);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--sj-primary);
}

/* Hero state - white text */
.navbar:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.8);
}

.navbar:not(.scrolled) .nav-link:hover {
    color: white;
}

/* Auth Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sj-space-sm);
    padding: 0.6rem 1.4rem;
    border-radius: var(--sj-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--sj-transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--sj-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(var(--sj-primary-rgb), 0.35);
}

.btn-primary:hover {
    background: var(--sj-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--sj-primary-rgb), 0.45);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.navbar.scrolled .btn-outline {
    color: var(--sj-primary);
    border-color: var(--sj-primary);
}

.navbar.scrolled .btn-outline:hover {
    background: var(--sj-primary);
    color: white;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--sj-gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--sj-primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sj-space-4xl);
    padding-top: clamp(140px, 12vh, 200px);
    padding-bottom: clamp(80px, 8vh, 140px);
    min-height: 95vh;
}

.hero-content {
    flex: 1;
    width: 100%;

}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sj-space-sm);
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sj-radius-full);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--sj-space-xl);
    backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--sj-space-lg);
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--sj-red), var(--sj-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--sj-space-2xl);
    line-height: 1.7;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: var(--sj-space-md);
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.06);
    animation: spin-slow 30s linear infinite;
}

.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.08);
    animation: spin-slow 20s linear infinite reverse;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(var(--sj-primary-rgb), 0.3));
    animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Floating PPEPP orbs */
.ppepp-orbs {
    position: absolute;
    inset: 0;
}

.ppepp-orb {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: white;
    animation: orb-float 4s ease-in-out infinite, orb-glow 4s ease-in-out infinite;
    z-index: 2;
    transition: var(--sj-transition);
}

.ppepp-orb::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: orb-ring-pulse 3s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

.ppepp-orb:nth-child(1) { --orb-rgb: 239, 68, 68; background: var(--sj-red); top: 8%; left: 18%; animation-delay: 0s; }
.ppepp-orb:nth-child(2) { --orb-rgb: 245, 158, 11; background: var(--sj-orange); top: 3%; right: 15%; animation-delay: 0.8s; }
.ppepp-orb:nth-child(3) { --orb-rgb: 45, 160, 71; background: var(--sj-green); bottom: 8%; right: 12%; animation-delay: 1.6s; }
.ppepp-orb:nth-child(4) { --orb-rgb: 20, 184, 166; background: var(--sj-teal); bottom: 3%; left: 15%; animation-delay: 2.4s; }
.ppepp-orb:nth-child(5) { --orb-rgb: 59, 130, 246; background: var(--sj-blue); top: 45%; left:-5%; animation-delay: 3.2s; }


@keyframes orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes orb-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 10px rgba(var(--orb-rgb), 0.3); }
    50% { box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 30px rgba(var(--orb-rgb), 0.6); }
}

@keyframes orb-ring-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Hero Scroll Button */
.hero-scroll-wrapper {
    position: absolute;
    bottom: var(--sj-space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sj-space-sm);
}

.hero-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sj-space-xs);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--sj-transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll-btn:hover {
    color: white;
}

.scroll-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--sj-transition);
    animation: bounce-jump 2s infinite;
}

.hero-scroll-btn:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.scroll-arrow svg {
    width: 22px;
    height: 22px;
}

@keyframes bounce-jump {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ---------- Features Section ---------- */
.features {
    padding: var(--sj-space-4xl) 0;
    background: var(--sj-bg);
    transition: background-color var(--sj-transition);
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--sj-space-3xl);
}

.section-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(var(--sj-primary-rgb), 0.08);
    color: var(--sj-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--sj-radius-full);
    margin-bottom: var(--sj-space-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[data-theme="dark"] .section-label {
    background: rgba(var(--sj-primary-rgb), 0.15);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--sj-space-md);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: var(--sj-text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sj-space-xl);
}

.feature-card {
    background: var(--sj-surface);
    border: 1px solid var(--sj-border);
    border-radius: var(--sj-radius-lg);
    padding: var(--sj-space-2xl);
    transition: var(--sj-transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sj-gradient);
    opacity: 0;
    transition: var(--sj-transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sj-card-hover-shadow);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sj-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sj-space-lg);
    font-size: 1.5rem;
}

.feature-icon.red { background: rgba(var(--sj-primary-rgb), 0.1); color: var(--sj-red); }
.feature-icon.orange { background: rgba(255, 109, 0, 0.1); color: var(--sj-orange); }
.feature-icon.green { background: rgba(67, 160, 71, 0.1); color: var(--sj-green); }
.feature-icon.teal { background: rgba(0, 137, 123, 0.1); color: var(--sj-teal); }
.feature-icon.blue { background: rgba(21, 101, 192, 0.1); color: var(--sj-blue); }
.feature-icon.purple { background: rgba(123, 31, 162, 0.1); color: var(--sj-purple); }

[data-theme="dark"] .feature-icon.red { background: rgba(var(--sj-primary-rgb), 0.15); }
[data-theme="dark"] .feature-icon.orange { background: rgba(255, 109, 0, 0.15); }
[data-theme="dark"] .feature-icon.green { background: rgba(67, 160, 71, 0.15); }
[data-theme="dark"] .feature-icon.teal { background: rgba(0, 137, 123, 0.15); }
[data-theme="dark"] .feature-icon.blue { background: rgba(21, 101, 192, 0.15); }
[data-theme="dark"] .feature-icon.purple { background: rgba(123, 31, 162, 0.15); }

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--sj-space-sm);
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--sj-text-secondary);
    line-height: 1.6;
}

/* ---------- PPEPP Section ---------- */
.ppepp-section {
    padding: var(--sj-space-4xl) 0;
    background: var(--sj-surface);
    transition: background-color var(--sj-transition);
}

.ppepp-cycle {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sj-space-lg);
    margin-top: var(--sj-space-3xl);
}

.ppepp-item {
    text-align: center;
    padding: var(--sj-space-xl) var(--sj-space-md);
    border-radius: var(--sj-radius-lg);
    background: var(--sj-bg);
    border: 1px solid var(--sj-border);
    transition: var(--sj-transition);
    position: relative;
}

.ppepp-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sj-shadow-lg);
}

.ppepp-item::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--sj-text-muted);
    font-weight: 300;
    z-index: 1;
}

.ppepp-item:last-child::after {
    display: none;
}

.ppepp-letter {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sj-space-sm);
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
}

.ppepp-item:nth-child(1) .ppepp-letter { background: var(--sj-red); }
.ppepp-item:nth-child(2) .ppepp-letter { background: var(--sj-orange); }
.ppepp-item:nth-child(3) .ppepp-letter { background: var(--sj-green); }
.ppepp-item:nth-child(4) .ppepp-letter { background: var(--sj-blue); }
.ppepp-item:nth-child(5) .ppepp-letter { background: var(--sj-purple); }

.ppepp-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--sj-space-xs);
}

.ppepp-desc {
    font-size: 0.8rem;
    color: var(--sj-text-secondary);
    line-height: 1.5;
}

/* ---------- Stats Section ---------- */
.stats {
    padding: var(--sj-space-3xl) 0;
    background: var(--sj-gradient-hero);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sj-space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--sj-space-xl);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--sj-space-xs);
}

.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- CTA Section ---------- */
.cta {
    padding: var(--sj-space-4xl) 0;
    text-align: center;
    background: var(--sj-bg);
    transition: background-color var(--sj-transition);
}

.cta-card {
    background: var(--sj-gradient-hero);
    border-radius: var(--sj-radius-xl);
    padding: var(--sj-space-4xl) var(--sj-space-2xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--sj-primary-rgb), 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--sj-space-md);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--sj-space-2xl);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--sj-space-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-actions .btn {
    min-width: 220px;
    justify-content: center;
}

.cta-actions .btn-outline {
    border-color: rgba(255,255,255,0.3);
}

.cta-actions .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--sj-footer-bg);
    color: var(--sj-footer-text);
    padding: var(--sj-space-3xl) 0 var(--sj-space-xl);
    transition: background-color var(--sj-transition);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-top: var(--sj-space-xl);
    padding-bottom: var(--sj-space-2xl);
    border-bottom: 1px solid var(--sj-footer-border);
    margin-bottom: var(--sj-space-xl);
    gap: var(--sj-space-2xl);
}

.footer-brand .brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--sj-space-sm);
}

.footer-brand-head {
    display: flex;
    align-items: center;
    gap: var(--sj-space-sm);
    margin-bottom: var(--sj-space-sm);
}

.footer-brand-head .brand-name {
    margin-bottom: 0;
}

.footer-brand .footer-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.footer-brand .footer-brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.footer-brand .brand-full {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 260px;
    line-height: 1.5;
    margin-bottom: var(--sj-space-lg);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-sm);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--sj-space-sm);
    font-size: 0.8rem;
    transition: var(--sj-transition);
}

.footer-contact-item:hover {
    color: white;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: var(--sj-space-3xl);
}

.footer-col h4 {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: var(--sj-space-md);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col ul li {
    margin-bottom: var(--sj-space-sm);
}

.footer-col ul li a {
    font-size: 0.8rem;
    transition: var(--sj-transition);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.footer-bottom a {
    transition: var(--sj-transition);
}

.footer-bottom a:hover {
    color: white;
}

/* ---------- Scroll-Based Animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Mobile Menu ---------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sj-space-sm);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--sj-transition);
    border-radius: 2px;
}

.navbar.scrolled .menu-toggle span {
    background: var(--sj-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-logo-wrapper {
        width: 260px;
        height: 260px;
    }

    .hero-logo-img {
        width: 140px;
        height: 140px;
    }

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

    .ppepp-cycle {
        grid-template-columns: repeat(3, 1fr);
    }

    .ppepp-item:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sj-mobile-menu-bg);
        flex-direction: column;
        padding: var(--sj-space-xl);
        gap: var(--sj-space-md);
        box-shadow: var(--sj-shadow-lg);
        border-top: 1px solid var(--sj-border);
    }

    .navbar-nav.active {
        display: flex;
    }

    /* Override hero-state white text - must beat .navbar:not(.scrolled) .nav-link */
    .navbar .navbar-nav.active .nav-link {
        color: var(--sj-text) !important;
    }

    .navbar .navbar-nav.active .nav-link:hover {
        color: var(--sj-primary) !important;
    }

    .navbar .navbar-nav.active .btn-outline {
        color: var(--sj-primary);
        border-color: var(--sj-primary);
    }

    .navbar .navbar-nav.active .theme-toggle {
        border-color: var(--sj-border);
        background: var(--sj-bg);
        color: var(--sj-text);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .ppepp-cycle {
        grid-template-columns: 1fr;
    }

    .ppepp-item::after {
        display: none !important;
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--sj-space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--sj-space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-logo-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-logo-img {
        width: 110px;
        height: 110px;
    }

    .ppepp-orb {
        width: 34px;
        height: 34px;
        font-size: 0.6rem;
    }
}

/* ======== FAQ ======== */
.faq {
    padding: 6rem 0;
    background: var(--sj-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--sj-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sj-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--sj-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s, opacity 0.3s;
}

.faq-item .icon-minus {
    display: none;
}

.faq-item.active .faq-question {
    color: var(--sj-primary);
}

.faq-item.active .icon-plus {
    display: none;
}

.faq-item.active .icon-minus {
    display: block;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    color: var(--sj-text-secondary);
    line-height: 1.6;
}

/* ======== KONTAK ======== */
.contact-section {
    padding: 6rem 0;
    background: var(--sj-surface);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-desc {
    color: var(--sj-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-item .icon-box {
    width: 48px;
    height: 48px;
    background: rgba(var(--sj-primary-rgb), 0.1);
    color: var(--sj-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item .icon-box svg {
    width: 24px;
    height: 24px;
}

.detail-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.detail-content a {
    color: var(--sj-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-content a:hover {
    color: var(--sj-primary);
}

.contact-form-wrapper {
    background: var(--sj-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--sj-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sj-text);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--sj-border);
    background: var(--sj-surface);
    color: var(--sj-text);
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: var(--sj-text-muted);
}

.form-control:focus {
    border-color: var(--sj-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--sj-primary-rgb), 0.15);
}

/* ─── Ringkasan mutu publik (Laporan Tahunan Mutu) ─── */
.mutu-section {
    padding: 6rem 0;
    background: var(--sj-bg);
}

.mutu-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: var(--sj-surface);
    border: 1px solid var(--sj-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mutu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mutu-year {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sj-text);
}

.mutu-sk {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--sj-text-secondary);
    overflow-wrap: anywhere;
}

.mutu-status {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mutu-color);
    background: color-mix(in srgb, var(--mutu-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--mutu-color) 40%, transparent);
}

.mutu-figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mutu-figures strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--sj-text);
}

.mutu-figures span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--sj-text-secondary);
}

.mutu-bar {
    display: flex;
    height: 0.75rem;
    border-radius: 9999px;
    overflow: hidden;
    background: var(--sj-border);
}

.mutu-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--sj-text-secondary);
}

.mutu-legend i {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-right: 0.4rem;
    border-radius: 9999px;
}

@media (max-width: 640px) {
    .mutu-card {
        padding: 1.25rem;
    }

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

    .mutu-figures strong {
        font-size: 1.6rem;
    }
}

/* ─── Formulir pengajuan AMI, RTM, RTL ─── */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    min-width: 0;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.1rem;
    text-overflow: ellipsis;
}

.form-control-lain {
    margin-top: 0.5rem;
}

.form-control[hidden] {
    display: none;
}

.jenis-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.form-group .jenis-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.jenis-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jenis-option > span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    height: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    background: var(--sj-surface);
    transition: all 0.2s;
}

.jenis-option strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sj-text);
}

.jenis-option small {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--sj-text-secondary);
}

.jenis-option:hover > span {
    border-color: rgba(var(--sj-primary-rgb), 0.5);
}

.jenis-option input:checked + span {
    border-color: var(--sj-primary);
    background: rgba(var(--sj-primary-rgb), 0.08);
    box-shadow: 0 0 0 3px rgba(var(--sj-primary-rgb), 0.15);
}

.jenis-option input:checked + span strong {
    color: var(--sj-primary);
}

.jenis-option input:focus-visible + span {
    outline: 2px solid var(--sj-primary);
    outline-offset: 2px;
}

.pengajuan-steps {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pengajuan-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.pengajuan-steps li > span {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--sj-primary);
    background: rgba(var(--sj-primary-rgb), 0.12);
}

.pengajuan-steps li > div {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sj-text-secondary);
}

.pengajuan-steps li strong {
    display: block;
    color: var(--sj-text);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .jenis-options {
        gap: 0.5rem;
    }

    .jenis-option > span {
        padding: 0.65rem 0.6rem;
    }
}

.error-text {
    color: #ef4444;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

.error-text:empty {
    display: none;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--sj-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sj-text);
    border-left: 5px solid var(--sj-green);
    animation: toast-slide-in 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    pointer-events: auto;
}

@keyframes toast-slide-in {
    0% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.toast-notification.hide {
    animation: toast-slide-out 0.5s cubic-bezier(0.8, 0, 0.9, 0.1) forwards;
}

@keyframes toast-slide-out {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

.toast-icon {
    width: 24px;
    height: 24px;
    color: var(--sj-green);
    flex-shrink: 0;
}

.toast-content {
    font-weight: 500;
    font-size: 0.95rem;
}

[data-theme="dark"] .toast-notification {
    background: rgba(31, 41, 55, 0.95);
    color: white;
}


.w-100 {
    width: 100%;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Animated Radar and Pulse Effects */
.hero-radar-sweep {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(var(--sj-primary-rgb), 0.1) 100%);
    animation: radar-spin 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes radar-spin {
    100% { transform: rotate(360deg); }
}

.hero-pulse-wave {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(var(--sj-primary-rgb), 0.4);
    animation: pulse-wave 4s cubic-bezier(0.1, 0.5, 0.4, 1) infinite;
    pointer-events: none;
    z-index: 0;
}
.hero-pulse-wave.wave-2 {
    animation-delay: 2s;
}
@keyframes pulse-wave {
    0% { transform: scale(0.6); opacity: 1; border-width: 3px; }
    100% { transform: scale(1.6); opacity: 0; border-width: 0px; }
}

/* Orbital Lines and Flying Particles */
.hero-orbit-line {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
    z-index: 0;
}

.hero-orbit-line::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    background: var(--sj-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--sj-primary);
}
.hero-orbit-line.orbit-1 { inset: -30px; animation: spin-slow 15s linear infinite; }
.hero-orbit-line.orbit-2 { inset: -50px; animation: spin-slow 22s linear infinite reverse; }
.hero-orbit-line.orbit-2::before { background: var(--sj-teal); box-shadow: 0 0 10px var(--sj-teal); width: 4px; height: 4px; top: auto; bottom: -2px; left: 30%; }
.hero-orbit-line.orbit-3 { inset: -70px; border: 1px dashed rgba(255,255,255,0.05); animation: spin-slow 35s linear infinite; }
.hero-orbit-line.orbit-3::before { background: var(--sj-orange); box-shadow: 0 0 10px var(--sj-orange); width: 5px; height: 5px; top: 20%; left: -2px; }

/* SVG specific animations */
.svg-spin-slow {
    transform-origin: 100px 100px;
    animation: spin-slow 40s linear infinite;
}
.svg-spin-reverse {
    transform-origin: 100px 100px;
    animation: spin-slow 30s linear infinite reverse;
}
.svg-pulse-opacity {
    animation: pulse-opacity 4s ease-in-out infinite;
}
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.7; }
}

/* Ensure Logo and Orbs are above the background effects */
.hero-logo-img, .ppepp-orbs {
    z-index: 10;
}

/* =========================================================
   DOKUMENTASI PAGE STYLES
   ========================================================= */

/* Docs Hero */
.docs-hero {
    background: var(--sj-gradient-hero);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--sj-primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.docs-hero-content {
    position: relative;
    z-index: 2;
}

.docs-hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--sj-space-md);
    letter-spacing: -0.02em;
}

.docs-hero-desc {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    max-width: 560px;
    line-height: 1.7;
}

/* Docs Layout */
.docs-layout {
    background: var(--sj-bg);
    transition: background-color var(--sj-transition);
    min-height: 80vh;
}

.docs-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--sj-space-2xl);
    padding-top: var(--sj-space-2xl);
    padding-bottom: var(--sj-space-4xl);
}

/* Sidebar */
.docs-sidebar-inner {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: var(--sj-space-md);
}

.docs-sidebar-inner::-webkit-scrollbar {
    width: 3px;
}
.docs-sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}
.docs-sidebar-inner::-webkit-scrollbar-thumb {
    background: var(--sj-border);
    border-radius: 4px;
}

.docs-sidebar-group {
    margin-bottom: var(--sj-space-xl);
}

.docs-sidebar-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sj-text-muted);
    margin-bottom: var(--sj-space-sm);
    padding-bottom: var(--sj-space-xs);
    border-bottom: 1px solid var(--sj-border);
    display: flex;
    align-items: center;
}

.docs-sidebar-link {
    display: block;
    font-size: 0.85rem;
    color: var(--sj-text-secondary);
    padding: 0.35rem 0 0.35rem 0.75rem;
    border-left: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 1px;
}

.docs-sidebar-link:hover {
    color: var(--sj-primary);
    border-left-color: rgba(var(--sj-primary-rgb), 0.3);
}

.docs-sidebar-link.active {
    color: var(--sj-primary);
    border-left-color: var(--sj-primary);
    font-weight: 600;
    background: rgba(var(--sj-primary-rgb), 0.05);
    border-radius: 0 4px 4px 0;
}

.docs-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--sj-surface);
    border: 1px solid var(--sj-border);
    border-radius: var(--sj-radius-md);
    color: var(--sj-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--sj-space-md);
    transition: var(--sj-transition);
}
.docs-sidebar-toggle:hover {
    background: var(--sj-bg);
}

/* Docs Content */
.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: var(--sj-space-3xl);
    scroll-margin-top: 90px;
}

.docs-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--sj-space-lg);
    display: flex;
    align-items: center;
    gap: var(--sj-space-sm);
    color: var(--sj-text);
}

.docs-section-title svg {
    width: 24px;
    height: 24px;
    color: var(--sj-primary);
    flex-shrink: 0;
}

.docs-card {
    background: var(--sj-surface);
    border: 1px solid var(--sj-border);
    border-radius: var(--sj-radius-lg);
    padding: var(--sj-space-2xl);
    transition: var(--sj-transition);
}

.docs-card p {
    color: var(--sj-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--sj-space-md);
}

.docs-card p:last-child {
    margin-bottom: 0;
}

.docs-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sj-text);
    margin-top: var(--sj-space-xl);
    margin-bottom: var(--sj-space-sm);
    padding-bottom: var(--sj-space-xs);
    border-bottom: 2px solid rgba(var(--sj-primary-rgb), 0.15);
    display: inline-block;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: var(--sj-space-sm) 0 var(--sj-space-md);
}

.docs-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--sj-space-sm);
    color: var(--sj-text-secondary);
    line-height: 1.6;
}

.docs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sj-primary);
}

.docs-list li code {
    background: rgba(var(--sj-primary-rgb), 0.08);
    color: var(--sj-primary);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Steps */
.docs-steps {
    margin: var(--sj-space-lg) 0;
}

.docs-step {
    display: flex;
    gap: var(--sj-space-lg);
    margin-bottom: var(--sj-space-lg);
    position: relative;
}

.docs-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--sj-primary), rgba(var(--sj-primary-rgb), 0.1));
}

.docs-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sj-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.docs-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sj-text);
    margin-bottom: var(--sj-space-xs);
}

.docs-step-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Info & Warning boxes */
.docs-info-box, .docs-warning-box {
    display: flex;
    gap: var(--sj-space-md);
    padding: var(--sj-space-lg);
    border-radius: var(--sj-radius-md);
    margin: var(--sj-space-lg) 0;
    align-items: flex-start;
}

.docs-info-box {
    background: rgba(var(--sj-primary-rgb), 0.06);
    border-left: 3px solid var(--sj-primary);
}

.docs-info-box > svg {
    width: 20px;
    height: 20px;
    color: var(--sj-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.docs-info-box p, .docs-warning-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.docs-warning-box {
    background: rgba(234, 179, 8, 0.08);
    border-left: 3px solid #EAB308;
}

.docs-warning-box > svg {
    width: 20px;
    height: 20px;
    color: #EAB308;
    flex-shrink: 0;
    margin-top: 2px;
}

[data-theme="dark"] .docs-info-box {
    background: rgba(var(--sj-primary-rgb), 0.1);
}
[data-theme="dark"] .docs-warning-box {
    background: rgba(234, 179, 8, 0.1);
}

/* Role Cards */
.docs-role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sj-space-md);
    margin-top: var(--sj-space-xl);
}

.docs-role-card {
    text-align: center;
    padding: var(--sj-space-xl) var(--sj-space-md);
    border-radius: var(--sj-radius-md);
    background: var(--sj-bg);
    border: 1px solid var(--sj-border);
    transition: var(--sj-transition);
}

.docs-role-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sj-shadow-md);
}

.docs-role-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--role-color, var(--sj-primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    margin: 0 auto var(--sj-space-sm);
}

.docs-role-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--sj-space-xs);
    color: var(--sj-text);
}

.docs-role-card p {
    font-size: 0.8rem;
    color: var(--sj-text-secondary);
    line-height: 1.5;
}

/* Role Divider */
.docs-role-divider {
    display: flex;
    align-items: center;
    gap: var(--sj-space-md);
    margin-bottom: var(--sj-space-2xl);
    margin-top: var(--sj-space-md);
}

.docs-role-divider::before,
.docs-role-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--role-color, var(--sj-primary)), transparent);
    opacity: 0.3;
}

.docs-role-divider span {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 1.2rem;
    border-radius: var(--sj-radius-full);
    background: var(--role-color, var(--sj-primary));
    color: white;
    white-space: nowrap;
}

/* Hierarchy */
.docs-hierarchy {
    margin: var(--sj-space-lg) 0;
}

.docs-hierarchy-item {
    padding: var(--sj-space-md) var(--sj-space-lg);
    border-left: 3px solid var(--sj-border);
    margin-bottom: var(--sj-space-sm);
    transition: var(--sj-transition);
}

.docs-hierarchy-item:hover {
    background: rgba(var(--sj-primary-rgb), 0.03);
}

.docs-hierarchy-item.level-1 { margin-left: 0; border-left-color: var(--sj-red); }
.docs-hierarchy-item.level-2 { margin-left: 1.5rem; border-left-color: var(--sj-orange); }
.docs-hierarchy-item.level-3 { margin-left: 3rem; border-left-color: var(--sj-blue); }
.docs-hierarchy-item.level-4 { margin-left: 4.5rem; border-left-color: var(--sj-green); }

.docs-hierarchy-item strong {
    color: var(--sj-text);
}

.docs-hierarchy-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.docs-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: var(--sj-radius-full);
    background: rgba(var(--sj-primary-rgb), 0.1);
    color: var(--sj-primary);
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Responsive Docs */
@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-sidebar.open {
        display: block;
        background: var(--sj-surface);
        border: 1px solid var(--sj-border);
        border-radius: var(--sj-radius-lg);
        padding: var(--sj-space-lg);
    }

    .docs-sidebar-inner {
        position: static;
        max-height: none;
    }

    .docs-sidebar-toggle {
        display: flex;
    }

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

    .docs-hierarchy-item.level-2 { margin-left: 1rem; }
    .docs-hierarchy-item.level-3 { margin-left: 2rem; }
    .docs-hierarchy-item.level-4 { margin-left: 3rem; }
}

@media (max-width: 480px) {
    .docs-role-grid {
        grid-template-columns: 1fr;
    }
    .docs-card {
        padding: var(--sj-space-lg);
    }
}

/* Navbar halaman utama tetap satu baris di layar sedang setelah tautan Publikasi ditambahkan */
@media (min-width: 769px) and (max-width: 1200px) {
    .navbar-nav {
        gap: var(--sj-space-md);
    }

    .nav-link {
        font-size: 0.85rem;
    }
}

/* =========================================================
   PUBLIKASI PAGE STYLES
   ========================================================= */

.pub-container {
    padding-top: var(--sj-space-2xl);
    padding-bottom: var(--sj-space-4xl);
    max-width: 1100px;
}

/* .btn-outline bawaan berwarna putih untuk latar gelap */
.pub-container .btn-outline {
    color: var(--sj-primary);
    border-color: var(--sj-primary);
}

.pub-container a.btn-outline:hover {
    background: var(--sj-primary);
    color: white;
}

.pub-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sj-space-md);
    padding: var(--sj-space-lg);
    background: var(--sj-surface);
    border: 1px solid var(--sj-border);
    border-radius: var(--sj-radius-lg);
}

.pub-filter-field {
    min-width: 0;
}

.pub-filter-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sj-text-secondary);
}

.pub-filter .form-control {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
}

.pub-filter select.form-control {
    padding-right: 2.25rem;
}

.pub-filter-cari {
    grid-column: 1 / -1;
}

.pub-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--sj-space-sm);
    flex-wrap: wrap;
}

.pub-count {
    margin: var(--sj-space-lg) 0 var(--sj-space-md);
    font-size: 0.9rem;
    color: var(--sj-text-secondary);
}

.pub-list {
    display: grid;
    gap: var(--sj-space-md);
}

.pub-item {
    display: flex;
    align-items: center;
    gap: var(--sj-space-lg);
    padding: var(--sj-space-lg);
    background: var(--sj-surface);
    border: 1px solid var(--sj-border);
    border-radius: var(--sj-radius-lg);
    transition: var(--sj-transition);
}

.pub-item:hover {
    border-color: rgba(var(--sj-primary-rgb), 0.4);
    box-shadow: var(--sj-shadow-md);
}

/* Warna per jenis laporan: AMI, Monev, RTM, RTL */
.pub-ami { --pub-rgb: 21, 101, 192; }
.pub-monev { --pub-rgb: 123, 31, 162; }
.pub-rtm { --pub-rgb: 0, 137, 123; }
.pub-rtl { --pub-rgb: 255, 109, 0; }

.pub-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sj-radius-md);
    background: rgba(var(--pub-rgb), 0.1);
    color: rgb(var(--pub-rgb));
}

.pub-item-icon svg {
    width: 24px;
    height: 24px;
}

.pub-item-body {
    flex: 1;
    min-width: 0;
}

.pub-badge {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: var(--sj-radius-full);
    background: rgba(var(--pub-rgb), 0.1);
    color: rgb(var(--pub-rgb));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

[data-theme="dark"] .pub-item-icon,
[data-theme="dark"] .pub-badge {
    background: rgba(var(--pub-rgb), 0.2);
}

.pub-item-title {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sj-text);
}

.pub-item-unit {
    color: var(--sj-text-secondary);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--sj-text-muted);
}

.pub-item-open {
    flex-shrink: 0;
}

.pub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sj-space-md);
    margin-top: var(--sj-space-xl);
}

.pub-pagination-info {
    font-size: 0.9rem;
    color: var(--sj-text-secondary);
}

.pub-pagination [aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.pub-empty {
    text-align: center;
}

.pub-empty h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--sj-space-sm);
}

.pub-empty a {
    color: var(--sj-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pub-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pub-item {
        flex-wrap: wrap;
    }

    .pub-item-open {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pub-filter {
        grid-template-columns: 1fr;
    }
}
