:root {
    --bg-color: #F5F5F5;
    --card-bg: #FFFFFF;
    --primary: #8FD12A;
    --primary-hover: #7EC820;
    --secondary: #2D4A0E;
    --text-main: #111111;
    --text-muted: #555555;
    --card-radius: 20px;
    --btn-radius: 999px;
    --font-family: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --card-tint: #f6fbef;
}

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

html,
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    /* Tambahan agar lebar tidak menjebol layar */
    position: relative;
    /* Menjaga elemen agar tidak keluar jalur */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--text-main);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--card-bg);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary);
    color: var(--text-main);
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.tag-pill {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: var(--btn-radius);
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 8px;
    margin-bottom: 8px;
    background: var(--card-bg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background-color: var(--primary);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-weight: 600;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-visuals {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#img-hero-mockup {
    width: 320px;
    /* Kembali ke ukuran asli agar pas di PC */
    max-width: 100%;
    /* Menjaga agar tidak menjebol layar HP jika layarnya sangat kecil */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background-color: transparent !important;
    border: none;
    outline: none;
    box-shadow: none !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    border-radius: 30px;
    animation: float 6s ease-in-out infinite;

}

/* CSS Mockup Cards */
.mockup-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    position: absolute;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-wallet {
    width: 320px;
    top: 40px;
    right: 40px;
    z-index: 3;
    animation-delay: 0s;
}

.card-stats {
    width: 240px;
    top: 240px;
    right: -20px;
    z-index: 2;
    animation-delay: 1s;
}

.card-tx {
    width: 280px;
    top: -20px;
    right: 180px;
    z-index: 1;
    animation-delay: 2s;
    opacity: 0.9;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Mockup Internals */
.mock-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.mock-balance {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.mock-subtitle {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 80px;
    margin-top: 16px;
}

.mock-bar {
    flex: 1;
    background: #eee;
    border-radius: 4px;
    position: relative;
}

.mock-bar-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.mock-tx-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mock-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--card-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mock-tx-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.mock-tx-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.mock-amount {
    margin-left: auto;
    font-weight: 800;
    color: var(--text-main);
}



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

.features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.features-title-area {
    max-width: 700px;
}

.features h2 {
    font-size: 40px;
    font-weight: 800;
}

.features-subtitle {
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 16px;
}

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

.feature-card {
    background: var(--card-tint);
    border-radius: var(--card-radius);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card.featured-2 {
    grid-column: span 2;
    background: #E8F5D6;
    /* Slightly stronger tint for featured */
}

.feature-card.featured-3 {
    grid-column: span 3;
    background: #E8F5D6;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
}

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

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

/* How It Works Section */
.how-it-works {
    background-color: var(--primary);
    padding: 120px 0;
    color: var(--text-main);
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hiw-mockup {
    background: #1A1A1A;
    /* Dark mockup per instructions */
    border-radius: var(--card-radius);
    padding: 32px;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.hiw-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #7EC820, #a1eb3a);
}

.dark-card-title {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.dark-card-balance {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 32px;
}

.wallet-sources {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.wallet-source {
    flex: 1;
    background: #2A2A2A;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.wallet-source span {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.dark-actions {
    display: flex;
    gap: 12px;
}

.dark-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.dark-btn.primary {
    background: var(--primary);
    color: var(--text-main);
}

.dark-btn.secondary {
    background: #2A2A2A;
    color: white;
}

.hiw-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-text h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-text p {
    color: var(--secondary);
    font-weight: 500;
}

/* Performance Section */
.performance {
    padding: 120px 0;
    background: var(--card-bg);
    text-align: center;
}

.performance h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.perf-item {
    padding: 24px;
}

.perf-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.perf-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.perf-item p {
    color: var(--text-muted);
}

/* Security Section */
.security {
    padding: 120px 0;
}

.sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sec-content h2 {
    font-size: 48px;
    margin-bottom: 32px;
}

.sec-list {
    margin-bottom: 40px;
}

.sec-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.security-illustration {
    display: block;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(143, 209, 42, 0.3));
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--card-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta .btn {
    font-size: 18px;
    padding: 16px 40px;
    margin-bottom: 24px;
}

.cta-meta {
    color: #999;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--bg-color);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 600;
}

.footer-bottom {
    color: #999;
    font-size: 14px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-grid,
    .hiw-grid,
    .sec-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visuals {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        margin-top: 40px;
        padding: 25px 0;
        /* INI KUNCINYA: Ruang bernapas 25px di atas dan bawah untuk animasi */
        overflow: hidden;
        /* Sekarang aman dipertahankan karena sudah ada ruang */
    }

    /* Penyesuaian gambar khusus untuk mobile */
    #img-hero-mockup {
        width: 100%;
        max-width: 320px;
        box-shadow: none !important;
        background-color: transparent !important;

        /* Tambahkan 2 baris ini untuk membunuh kotak hantu */
        filter: none !important;
        border-radius: 0 !important;
    }

    /* Hide complex visuals on mobile for simplicity */

    .features-grid,
    .perf-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.featured-2,
    .feature-card.featured-3 {
        grid-column: span 1;
    }

    .features-header {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .how-it-works {
        padding: 60px 0;
    }

    .hiw-content h2,
    .sec-content h2,
    .cta h2 {
        font-size: 32px;
    }

    /* Mobile Menu Active State */
    .nav-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-active .nav-right {
        display: flex;
        position: absolute;
        top: 250px;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

.brand-logo {
    height: 36px;
    /* Tingginya disamakan dengan logo-icon sebelumnya */
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    /* Opsional: Jika logo Anda kotak */
}
