/* =========================================
   HARMONIC COLOR PALETTE & THEMES (CLEAN EDU)
   ========================================= */
:root {
    --bg-main: #f1f5f9;
    --bg-alt: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.98);
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent-main: #0284c7;
    --accent-light: #e0f2fe;
    --danger-true: #e11d48;
    --danger-light: #ffe4e6;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --bg-pattern: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    background-image: var(--bg-pattern);
    background-size: 30px 30px;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: var(--bg-nav); backdrop-filter: blur(12px);
    z-index: 9000; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-logo {
    font-weight: 900; font-size: 24px; color: var(--accent-main);
    letter-spacing: 1px; text-decoration: none; display: flex;
    align-items: center; gap: 5px;
}
.nav-logo span { color: var(--danger-true); }

.nav-btn {
    background: var(--bg-card); color: var(--text-main); padding: 8px 20px;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px;
    border: 1px solid var(--border); transition: 0.2s;
}
.nav-btn:hover { border-color: var(--accent-main); color: var(--accent-main); }

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header { max-width: 1000px; margin: 110px auto 40px; padding: 0 20px; text-align: center; }
.page-header h1 { font-size: 36px; font-weight: 900; color: var(--text-main); margin-bottom: 15px; letter-spacing: -1px; }
.page-header p { font-size: 16px; color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* =========================================
   GRID LAYOUT & CARDS
   ========================================= */
.calc-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px; max-width: 1200px; margin: 0 auto 80px; padding: 0 20px;
}
@media (max-width: 768px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px;
    padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); display: flex;
    flex-direction: column; position: relative;
}
.card-line-blue { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--accent-main); border-top-left-radius: 24px; border-top-right-radius: 24px; }
.card-line-red { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--danger-true); border-top-left-radius: 24px; border-top-right-radius: 24px; }
.card-title { font-size: 24px; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.8; }

/* =========================================
   FORM CONTROLS (Slider & Select)
   ========================================= */
.form-group { margin-bottom: 25px; }
.form-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.form-value { color: var(--accent-main); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--accent-main); cursor: pointer; margin-top: -9px; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: 0.2s; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: var(--border); border-radius: 3px; }
select.form-input { width: 100%; padding: 15px; border-radius: 12px; border: 2px solid var(--border); background: var(--bg-alt); color: var(--text-main); font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; outline: none; transition: 0.2s; cursor: pointer; appearance: none; }
select.form-input:focus { border-color: var(--accent-main); background: var(--bg-card); }

/* =========================================
   INFO, EXPLANATION & MATH BOXES
   ========================================= */
.info-reality { background: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; border-radius: 12px; margin-top: 15px; font-size: 12px; color: #475569; line-height: 1.6; }
.info-reality strong { color: #0f172a; }
.explanation-box { background: var(--bg-alt); border: 1px solid var(--border); padding: 20px; border-radius: 16px; margin: 20px 0; font-size: 14px; color: var(--text-main); line-height: 1.8; }
.explanation-box.danger { background: var(--danger-light); border-color: rgba(225, 29, 72, 0.2); }
.explanation-box.success { background: var(--success-light); border-color: rgba(16, 185, 129, 0.2); }
.math-eq { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: var(--accent-main); background: var(--bg-card); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border); margin: 10px 0; display: inline-block; }
.math-eq.red { color: var(--danger-true); }
.math-eq.green { color: var(--success); }
.step-list { margin-top: 15px; padding-left: 10px; }
.step-list li { margin-bottom: 12px; list-style-type: none; position: relative; padding-left: 20px; }
.step-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent-main); font-weight: bold; font-size: 18px; }
.step-list.red li::before { color: var(--danger-true); }
.highlight { font-weight: 700; color: var(--text-main); }
.highlight-red { font-weight: 800; color: var(--danger-true); }
.highlight-blue { font-weight: 800; color: var(--accent-main); }

/* =========================================
   RESULT BOX (DYNAMIC)
   ========================================= */
.result-box { background: var(--bg-main); border: 2px dashed var(--border); border-radius: 16px; padding: 25px; margin-top: auto; text-align: center; transition: 0.3s; }
.result-box.danger { border-color: rgba(225, 29, 72, 0.3); background: #fff1f2; }
.result-box.warning { border-color: rgba(245, 158, 11, 0.4); background: var(--warning-light); }
.result-label { font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.result-value { font-size: 32px; font-family: 'Space Grotesk', sans-serif; font-weight: 900; color: var(--accent-main); letter-spacing: -1px; }
.result-value.danger { color: var(--danger-true); }
.result-value.warning { color: var(--warning); }
.result-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; font-weight: 500; }

/* =========================================
   CTA BUTTON (SIMULASI MASIF)
   ========================================= */
.cta-simulasi-container { text-align: center; margin: 0 auto 80px; padding: 0 20px; }
.btn-simulasi-massive { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--danger-true), #be123c); color: #fff; padding: 20px 50px; border-radius: 50px; font-size: 20px; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 15px 35px rgba(225, 29, 72, 0.4); transition: transform 0.3s, box-shadow 0.3s; }
.btn-simulasi-massive:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 50px rgba(225, 29, 72, 0.6); color: #fff; }

/* =========================================
   SISTEM ASISTEN V.E.R.A
   ========================================= */
#vera-spotlight { display: none !important; } 

.vera-focus {
    position: relative !important; z-index: 8001 !important;
    box-shadow: 0 0 0 4px var(--accent-main), 0 0 25px rgba(2, 132, 199, 0.5) !important;
    border-radius: 16px; transition: all 0.4s; pointer-events: none;
}

#vera-feature-guide {
    position: fixed; bottom: 30px; left: 30px; z-index: 999999;
    display: flex; align-items: flex-end; gap: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(150%); opacity: 0; pointer-events: none;
}
#vera-feature-guide.aktif { transform: translateY(0); opacity: 1; pointer-events: auto; }

.vera-f-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-main), #38bdf8);
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 0 10px 25px rgba(2, 132, 199, 0.5);
    border: 4px solid #fff; animation: floatVeraF 3s ease-in-out infinite; cursor: pointer;
}

.vera-f-bubble {
    background: #ffffff; padding: 18px 25px; border-radius: 20px; border-bottom-left-radius: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); max-width: 320px;
    border: 2px solid var(--accent-main); color: var(--text-main); font-family: 'Poppins', sans-serif;
}

.vera-f-name { font-size: 11px; font-weight: 900; color: var(--accent-main); letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase;}
.vera-f-text { font-size: 13px; font-weight: 600; line-height: 1.5; min-height: 40px;}
.vera-f-cursor { animation: blinkVeraF 1s step-end infinite; font-weight: 900; color: var(--accent-main); }

.btn-vera-lanjut {
    background: var(--accent-main); color: #fff; border: none; padding: 8px 15px;
    border-radius: 8px; font-size: 13px; font-weight: 800; cursor: pointer;
    margin-top: 15px; width: 100%; transition: 0.2s; text-transform: uppercase;
    letter-spacing: 1px; box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
}
.btn-vera-lanjut:hover {
    background: var(--primary-blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2, 132, 199, 0.5);
}

@keyframes blinkVeraF { 50% { opacity: 0; } }
@keyframes floatVeraF { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 768px) { #vera-feature-guide { bottom: 15px; left: 15px; right: 15px; } .vera-f-bubble { max-width: 100%; } }

/* =========================================
   SLOT VISUALIZER (ILUSTRASI MESIN)
   ========================================= */
.slot-visualizer-wrapper {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), inset 0 5px 15px rgba(255,255,255,0.05);
    border: 4px solid var(--accent-main);
    margin: 20px auto 30px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slot-visualizer-header {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.slot-visualizer-title {
    background: #000;
    color: var(--accent-yellow);
    padding: 5px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(253, 224, 71, 0.2);
}

.slot-visualizer-grid {
    display: grid;
    gap: 8px;
    justify-content: center;
    align-items: center;
    background: #020617;
    padding: 15px;
    border-radius: 12px;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.visualizer-cell {
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(16px, 4vw, 28px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 -4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Payline Effect (Garis Tengah) */
.visualizer-cell.highlight-row {
    background: linear-gradient(to bottom, #fef08a, #facc15);
    border-color: #ca8a04;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

.visualizer-cell.dim {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Efek Kaca Mesin */
.slot-visualizer-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
    border-radius: 16px;
}

/* =========================================
   LOGO OTAK MENUMPUK (OVERLAP) HURUF "O"
   ========================================= */
.overlap-o { position: relative; display: inline-block; }
.hero-brain-overlap { position: absolute; top: 50%; left: 50%; transform: translate(-45%, -40%); height: 1.4em; width: auto; z-index: 10; pointer-events: none; filter: drop-shadow(0 8px 20px rgba(37,99,235,0.4)); }
.nav-brain-overlap { position: absolute; top: 50%; left: 50%; transform: translate(-45%, -35%); height: 34px; width: auto; z-index: 10; pointer-events: none; }

