/**
 * Custom CSS - Honest Card Referral
 * Design System: Premium Fintech (Navy, Gold, Glassmorphism)
 */

:root {
    --c-bg: #0B132B;          /* Deep Navy */
    --c-bg-darker: #060B1A;   /* Darker Navy for contrast */
    --c-accent-gold: #E9B949; /* Premium Gold */
    --c-accent-blue: #1A5FFF; /* Electric Blue */
    --c-text: #FFFFFF;        /* White text */
    --c-text-muted: #A0ABC0;  /* Muted text */
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: var(--font-heading);
}

.text-gold { color: var(--c-accent-gold) !important; }
.text-light-opacity { color: rgba(255, 255, 255, 0.8) !important; }
.text-muted-custom { color: var(--c-text-muted) !important; }
.bg-darker { background-color: var(--c-bg-darker) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--c-accent-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(233, 185, 73, 0.3);
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #fbd065;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 185, 73, 0.4);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--c-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--c-text);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Badges */
.badge-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-accent-gold);
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(26, 95, 255, 0.15) 0%, var(--c-bg) 60%);
}
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--c-accent-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.hero-card-img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
    max-width: 80%;
}

/* Benefit Cards (Glassmorphism) */
.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(233, 185, 73, 0.3);
}
.benefit-card .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(26, 95, 255, 0.1);
    color: var(--c-accent-blue);
    font-size: 1.5rem;
}

/* Cara Kerja */
.step-item {
    position: relative;
    z-index: 1;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-accent-gold);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px rgba(233, 185, 73, 0.4);
}

/* Trust Box */
.trust-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}

/* FAQ Accordion */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-color: var(--c-text);
    --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
    --bs-accordion-btn-color: var(--c-text);
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.03);
    --bs-accordion-active-color: var(--c-accent-gold);
    --bs-accordion-active-bg: rgba(255, 255, 255, 0.05);
    --bs-accordion-btn-focus-box-shadow: none;
}
.accordion-item {
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--bs-accordion-border-color);
}
.accordion-button {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
}
.accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.accordion-button:not(.collapsed)::after {
    filter: invert(80%) sepia(40%) saturate(1000%) hue-rotate(350deg) brightness(100%);
}
.accordion-body {
    color: var(--c-text-muted);
    background: rgba(0, 0, 0, 0.2);
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* For iPhone notch */
}

/* Footer */
.site-footer {
    background-color: #040812;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-link {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--c-accent-gold);
}
.disclosure-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }
    .hero-card-img {
        max-width: 90%;
        margin-top: 2rem;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .final-cta-section {
        padding-bottom: 100px !important; /* Space for sticky CTA */
    }
}
