/* Root Design Variables */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(15, 20, 38, 0.75);
    --border-card: rgba(0, 242, 254, 0.25);
    --border-card-hover: rgba(0, 255, 185, 0.6);
    
    --text-main: #f0f4fd;
    --text-muted: #94a3b8;
    
    --primary-neon: #00f2fe;
    --secondary-neon: #4facfe;
    --accent-mint: #00ffb9;
    --accent-purple: #7f00ff;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: url('../images/bg-neuron.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Typography & Gradient */
h1, h2, h3, h4 {
    color: #fff;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--accent-mint) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-mint), var(--primary-neon));
    color: #050811;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-mint), var(--primary-neon));
    color: #050811;
    font-weight: 800;
    box-shadow: 0 0 25px rgba(0, 255, 185, 0.5);
}

.btn-glow:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 255, 185, 0.85);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-neon);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-card-hover);
    box-shadow: 0 10px 35px rgba(0, 242, 254, 0.25);
    transform: translateY(-6px);
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-svg {
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.7));
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: rotate(6deg) scale(1.08);
}

/* Logo Image Styling */
.main-logo-img {
    height: 60px; /* Diperbarui: Sesuaikan skala ukuran logo di sini */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .main-logo-img {
    height: 60px; /* Diperbarui: Sesuaikan skala ukuran logo di sini */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}



.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-accent {
    color: var(--primary-neon);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-neon);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

/* Hero Section (Centred & Lightweight) */
.hero-section {
    padding: 170px 0 90px;
    position: relative;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
}

.badge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary-neon);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-microtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Layout Grids & Sections */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Track Cards */
.track-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border-color: rgba(0, 242, 254, 0.3);
}

.track-card:hover {
    border-color: var(--accent-mint);
    background: rgba(0, 255, 185, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-neon);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
}

.track-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.track-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.card-tag {
    font-size: 0.78rem;
    color: var(--accent-mint);
    background: rgba(0, 255, 185, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    align-self: flex-start;
    font-weight: 600;
}

/* Features */
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Steps */
.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.step-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    position: relative;
}

.step-num {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #000;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* CTA Box */
.cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(127, 0, 255, 0.12));
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 60px 32px;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Screening Modal & Quiz */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 18, 0.88);
    backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 580px;
    width: 100%;
    position: relative;
    padding: 36px 32px;
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.quiz-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary-neon), var(--accent-mint));
    transition: width 0.3s ease;
}

.quiz-step-badge {
    font-size: 0.8rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.quiz-header h3 {
    font-size: 1.25rem;
    margin: 8px 0 20px;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.option-btn {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-btn:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--primary-neon);
    transform: translateX(4px);
}

.option-btn.selected {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(0, 255, 185, 0.12));
    border-color: var(--accent-mint);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 255, 185, 0.2);
}

.quiz-nav-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Results Section */
.result-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 255, 185, 0.15);
    border-radius: 20px;
    color: var(--accent-mint);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.result-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.result-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(0, 242, 254, 0.3);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.res-item {
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.res-item:last-child {
    margin-bottom: 0;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reg-form h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.form-input {
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-neon);
}

/* Roulette Wheel Styling */
.roulette-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    font-size: 1.8rem;
    color: #ff007f;
    z-index: 10;
    filter: drop-shadow(0 0 10px #ff007f);
}

#roulette-canvas {
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(0,0,0,0.8);
}

/* Checkout Price Breakdown Card */
.checkout-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    margin-top: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
}

.discount-tag {
    color: var(--accent-mint);
    font-weight: 700;
}

.price-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 12px 0;
}

.price-row.total {
    font-size: 1.15rem;
    font-weight: 800;
}

.price-final {
    color: var(--primary-neon);
    font-size: 1.3rem;
}

/* Mobile Responsive */
@media (max-width: 868px) {
    body {
        /* Memperbaiki bug fixed attachment di mobile (iOS/Android) yang membuat gambar tidak terlihat */
        background-attachment: scroll !important;
        background-position: center top !important; 
        background-size: cover !important;
        
        /* Memberikan gradasi transparansi lebih terang di bagian atas agar visual neuron terlihat jelas, */
        /* serta memberikan blend yang lebih soft di HP */
        background-image: linear-gradient(180deg, rgba(7, 9, 19, 0.1) 0%, rgba(7, 9, 19, 0.75) 100%), url('../images/bg-neuron.jpg') !important;
    }
    
    /* Kurangi kegelapan dan padding luar sedikit agar margin background neuron di samping terlihat (tidak tertutup total) */
    .container {
        padding: 0 16px !important;
    }

    .glass-card {
        background: rgba(15, 20, 38, 0.65) !important; /* Sedikit lebih transparan di HP agar bg neuron terlihat tembus */
        border: 1px solid rgba(0, 242, 254, 0.18) !important;
        padding: 24px 16px !important; /* Padding lebih ramping di HP */
    }

    .hero-section {
        padding: 120px 0 50px !important;
        /* Tambahkan glow radial subtle di balik hero HP */
        background: radial-gradient(circle at top, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    }
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 130px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-box h2 {
        font-size: 1.7rem;
    }

    .roulette-wrapper {
        width: 280px;
        height: 280px;
    }

    #roulette-canvas {
        width: 280px;
        height: 280px;
    }
}
