:root {
    --bg-primary: #FCFBF4;
    --bg-secondary: #F3F1E7;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    
    /* WARNA UTAMA (#10b981): Dominan Tampilan & Teks Bold */
    --accent-indigo: #10b981;
    --accent-emerald: #10b981;
    --primary-color: #10b981;

    /* WARNA KEDUA (#3368A0): Tombol Interaksi & Action CTA */
    --accent-secondary: #3368A0;
    --accent-blue: #3368A0;
    --btn-primary-bg: #3368A0;

    /* WARNA PERINGATAN (#ef4444): Alert, Stok Habis / Menipis, Error, & Hapus */
    --accent-pink: #d97706;
    --accent-danger: #ef4444;
    --accent-red: #ef4444;

    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(16px);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Ambient Glow Backgrounds */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none !important;
    transition: all 1s ease;
}

.glow-1 {
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: pulseGlow 12s infinite alternate;
}

.glow-2 {
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: 10%;
    left: -200px;
    animation: pulseGlow 15s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.22; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Container helper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Navigation */
header:not(.topbar) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #10b981;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.db-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3368A0 0%, #254d77 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(51, 104, 160, 0.3);
    transition: all 0.2s ease;
}

.btn-nav-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(51, 104, 160, 0.4);
    background: linear-gradient(135deg, #285483 0%, #1e3e62 100%);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 70px;
    text-align: center;
}

.hero-tagline {
    display: inline-block;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* WARNA KEDUA (#3368A0): Buttons Interaksi */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3368A0 0%, #254d77 100%);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(51, 104, 160, 0.35);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51, 104, 160, 0.45);
    background: linear-gradient(135deg, #285483 0%, #1e3e62 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #10b981;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 6px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(51, 104, 160, 0.4);
    box-shadow: 0 10px 25px rgba(51, 104, 160, 0.12);
}

.feature-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Bottom */
.cta-bottom {
    padding: 60px 0 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-box p {
    font-size: 16px;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.6);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-ctas {
        flex-direction: column;
    }
}