:root {
    --bg-dark: #181A20;
    --bg-card: #23262F;
    --accent-gold: #FFD600;
    --accent-blue: #005CFF;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --font-main: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn-primary, .btn-primary-lg {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary:hover, .btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 214, 0, 0.2);
}

.btn-secondary {
    color: var(--accent-gold);
    font-weight: 700;
    margin-right: 15px;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- Navigation --- */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(24, 26, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.logo img { height: 56px; }

.nav-links a {
    color: var(--text-white);
    font-weight: 600;
    margin-left: 20px;
}

.mobile-toggle { display: none; color: var(--accent-gold); cursor: pointer; }

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    /* Changed from 1fr 1fr. Now the image gets roughly 60% of the space! */
    grid-template-columns: 1fr 1.3fr; 
    gap: 30px;
    align-items: center;
}

.badge {
    background: rgba(0, 92, 255, 0.2);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 92, 255, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight { color: var(--accent-gold); }

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.micro-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.hero-visual {
    position: relative;
    text-align: center;
}

.app-mockup {
    width: 115%; /* Forces the image to be 15% bigger than the box holding it */
    max-width: none; /* Removes the invisible wall stopping it from growing */
    position: relative;
    left: -5%; /* Pulls it slightly left to keep it balanced */
    z-index: 2;
    transform: rotate(-5deg);
    transition: 0.5s;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.app-mockup:hover { 
    transform: rotate(0deg) scale(1.05); 
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

/* --- Promo Banner --- */
.promo-banner {
    background: var(--accent-blue);
    padding: 12px 0;
    text-align: center;
}

.promo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* --- Features --- */
.features { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 214, 0, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-gray); }

/* --- Showcase --- */
.showcase { padding: 80px 0; background: rgba(35, 38, 47, 0.3); }

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.checklist li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.checklist i { color: var(--accent-gold); }

/* --- Testimonials --- */
.testimonials { padding: 100px 0; text-align: center; }
.testimonials h2 { font-size: 2.5rem; margin-bottom: 50px; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.t-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}

.t-card p { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; }

.user { display: flex; align-items: center; gap: 15px; }

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.info strong { display: block; color: var(--accent-gold); }
.info span { font-size: 0.85rem; color: var(--text-gray); }

/* --- Community / CTA --- */
.community-cta { padding: 80px 0; }

.cta-box {
    background: linear-gradient(135deg, #23262F, #1e2028);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.cta-content { max-width: 60%; position: relative; z-index: 2; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-content p { color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }

.qr-code {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 15px;
}

.qr-code img { 
    width: 360px; /* Increased from 120px */
    height: 360px; /* Increased from 120px */
    object-fit: contain; /* Ensures it never stretches or compresses out of proportion */
}
.qr-code span { display: block; color: black; font-weight: bold; margin-top: 5px; }

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; }

.socials a {
    color: var(--text-gray);
    margin: 0 10px;
}
.socials a:hover { color: var(--accent-gold); }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Hide links by default */
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px; /* Height of your navbar */
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        text-align: center;
        gap: 20px;
    }

    /* This class is added by script.js when you click the menu */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links a { margin: 0; display: block; }
    
    .mobile-toggle { display: block; z-index: 1001; }
    
    /* Adjust Hero for Mobile */
    .hero-grid, .showcase-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    
    /* Adjust Mockup */
    .app-mockup { 
        width: 100%; /* Resets back to normal width for small screens */
        left: 0;
        transform: none; 
        margin-top: 40px; 
    }
    
    .cta-box { flex-direction: column; text-align: center; padding: 40px 20px; }
    .cta-content { max-width: 100%; margin-bottom: 30px; }
    
    .footer-content { flex-direction: column; gap: 20px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Ensure Button Text is strictly dark on Yellow --- */
.btn-primary, .btn-primary-lg, .btn-primary:visited, .btn-primary-lg:visited {
    color: #000000 !important;
}

/* --- How it Works (Step-by-Step) --- */
.how-it-works {
    padding: 100px 0;
    background: rgba(35, 38, 47, 0.2);
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.step-row.reverse {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: #000;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.step-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.step-image {
    flex: 1;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #111; /* Fallback for missing images */
    min-height: 200px;
}

/* --- Footer Links Updates --- */
.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

/* Responsive adjustments for Steps */
@media (max-width: 768px) {
    .step-row, .step-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .step-number {
        margin: 0 auto 20px auto;
    }
    .footer-content {
        align-items: center;
    }
    .footer-links {
        text-align: center;
        margin: 20px 0;
    }
}

.copyright-text {
    text-align: right;
    margin-top: 30px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .copyright-text {
        text-align: center; /* Keeps it centered on phones */
    }
}

/* --- Scroll Animations --- */
.step-row {
    opacity: 0;
    transform: translateY(60px); /* Start slightly lower */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* This class is added by Javascript when the element scrolls into view */
.step-row.slide-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Custom X Logo Alignment --- */
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.socials svg {
    width: 24px;
    height: 24px;
    transition: 0.3s;
}

/* Ensure the custom X logo matches the hover colors of the Lucide icons */
.socials a:hover svg[fill="currentColor"] {
    fill: var(--accent-gold);
}