:root {
    --brand-primary: #3b82f6;
    --brand-primary-rgb: 59, 130, 246;
    --brand-indigo: #6366f1;
    --brand-cyan: #38bdf8;
    --brand-emerald: #10b981;

    /* Harmonisasi Background & Surface */
    --surface-dark: #070a13;
    --surface-card: rgba(15, 23, 42, 0.78);
    --surface-card-border: rgba(255, 255, 255, 0.09);

    /* Harmonisasi Tipografi & Kontras Teks */
    --text-main: #ffffff;
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--surface-dark);
    color: var(--text-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.text-muted {
    color: var(--text-muted) !important;
}
.text-secondary {
    color: var(--text-body) !important;
}
.text-white-strong {
    color: #ffffff !important;
}

/* --- Ambient Aurora Mesh Background --- */
.ambient-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.38;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, #2563eb, transparent 70%);
    top: -120px;
    left: -80px;
}

.orb-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-duration: 22s;
}

.orb-3 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #0284c7, transparent 70%);
    top: 40%;
    left: 45%;
    opacity: 0.18;
    animation-duration: 15s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 35px) scale(1.08); }
}

/* Particles Layer */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Glass Navbar --- */
.portal-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    background: rgba(7, 10, 19, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.brand-logo-img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Hero Section --- */
.hero-viewport {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px;
}

.badge-headline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.32);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.hero-heading {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    color: var(--text-heading);
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-body);
    max-width: 540px;
    margin-bottom: 34px;
}

/* Buttons */
.btn-glow-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff !important;
    padding: 15px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.55);
    cursor: pointer;
}

.btn-glow-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -6px rgba(99, 102, 241, 0.65);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

.btn-ghost-glass {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9 !important;
    padding: 15px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost-glass:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
}

/* Feature Chips Bar */
.feature-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.f-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 16px;
    border-radius: 999px;
}

.f-chip i {
    font-size: 1.15rem;
}

/* --- Showcase Widget (Kanan) --- */
.command-center-card {
    position: relative;
    background: linear-gradient(155deg, rgba(20, 28, 45, 0.85) 0%, rgba(10, 15, 26, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 22px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.85),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.4s ease;
}

.command-center-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.35);
}

.card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.w-red { background: #ef4444; }
.w-yellow { background: #f59e0b; }
.w-green { background: #10b981; }

.mockup-main-image {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: block;
}

.badge-subtle-primary {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.32) !important;
}

.badge-subtle-info {
    background: rgba(6, 182, 212, 0.16) !important;
    color: #67e8f9 !important;
    border: 1px solid rgba(6, 182, 212, 0.32) !important;
}

/* Floating Info Cards */
.float-card-metric {
    position: absolute;
    background: rgba(13, 19, 33, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 14px 20px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.65);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.float-top-right {
    top: -24px;
    right: -20px;
    animation: floatSlow 6s ease-in-out infinite alternate;
}

.float-bottom-left {
    bottom: -22px;
    left: -20px;
    animation: floatSlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.icon-box-glow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* --- Modal Login Reimagined --- */
.modal-glass-backdrop {
    backdrop-filter: blur(18px);
    background: rgba(4, 7, 13, 0.85);
}

.modal-content-glass {
    background: linear-gradient(160deg, #111827 0%, #090e1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.modal-body-pad {
    padding: 2.75rem 2.5rem;
    position: relative;
}

.btn-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.auth-label {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 7px;
    display: block;
}

.auth-input-group {
    position: relative;
}

.auth-input-group .field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #64748b;
    transition: color 0.25s ease;
    pointer-events: none;
    z-index: 5;
}

.auth-control {
    width: 100%;
    height: 52px;
    padding-left: 52px;
    padding-right: 48px;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-control::placeholder {
    color: #64748b !important;
}

.auth-control:focus {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22) !important;
    color: #ffffff !important;
    outline: none;
}

.auth-control:focus ~ .field-icon {
    color: #60a5fa !important;
}

.auth-control option {
    background-color: #0f172a;
    color: #ffffff;
}

.toggle-password-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: #ffffff;
}

.btn-submit-auth {
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.55);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -4px rgba(99, 102, 241, 0.65);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    color: #ffffff;
}

.btn-submit-auth:disabled {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
    border-color: transparent;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .hero-viewport {
        padding-top: 110px;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .feature-chips-wrap {
        justify-content: center;
    }
    .command-center-card {
        margin-top: 40px;
    }
    .float-top-right, .float-bottom-left {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .modal-body-pad {
        padding: 2rem 1.4rem;
    }
}
