/* ============================================================
   Mzero314 Responsive Overrides
   Apply this file AFTER the main styles to fix layout issues
   ============================================================ */

/* --- Base fixes --- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    line-height: 1.5;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

/* --- Container --- */
.container {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* --- Header --- */
.header-container {
    width: 100% !important;
    max-width: 1440px !important;
    padding: 8px 40px !important;
    gap: 20px;
}

.logo img {
    width: 160px !important;
    height: auto !important;
}

.nav-links {
    gap: 24px !important;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 15px;
    white-space: nowrap;
}

/* --- Hero --- */
.hero {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    padding: 120px 40px 60px 40px !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    width: 50% !important;
    max-width: 720px;
    padding-left: 0 !important;
    flex: 1 1 500px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 64px) !important;
    line-height: 1.15;
}

.hero p {
    font-size: clamp(1rem, 1.2vw, 20px) !important;
    max-width: 700px;
}

.hero-cta {
    flex-wrap: wrap;
    gap: 15px;
}

.hero-cta img {
    width: 200px;
    height: auto;
}

.hero-stats {
    flex-wrap: wrap;
    gap: 32px !important;
    margin-top: 40px !important;
}

.stat-value {
    font-size: clamp(1.25rem, 1.8vw, 36px) !important;
}

.hero > img[alt="mascot"] {
    width: 50% !important;
    max-width: 600px;
    height: auto !important;
    flex: 1 1 400px;
}

/* --- Features --- */
.features {
    padding: 100px 0 !important;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-card img {
    width: 100% !important;
    max-width: 400px;
    height: auto !important;
    margin: 0 auto 24px auto;
    display: block;
}

.feature-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 48px) !important;
}

.section-title p {
    font-size: clamp(1rem, 1.2vw, 20px) !important;
}

/* --- Token Section --- */
.token-section {
    padding: 100px 0 !important;
}

.token-grid {
    display: grid !important;
    grid-template-columns: minmax(280px, 30%) 1fr !important;
    gap: 60px;
    align-items: center;
}

.token-image img {
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    border-radius: 20px;
    margin: 0 auto;
}

.token-content h2 {
    font-size: clamp(1.6rem, 2.8vw, 48px) !important;
}

.token-content p {
    font-size: clamp(1rem, 1.1vw, 18px) !important;
}

.benefit-item {
    margin-bottom: 24px;
}

.benefit-text h4 {
    font-size: clamp(1.05rem, 1.2vw, 20px) !important;
}

/* --- Competition Section --- */
.competition-section {
    padding: 100px 0 !important;
}

.competition-card {
    padding: clamp(30px, 5vw, 60px) !important;
}

.competition-header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.competition-header > div:first-child {
    flex: 1 1 500px;
}

.competition-header img {
    width: 100% !important;
    max-width: 305px !important;
    height: auto !important;
    margin-bottom: 20px;
}

.competition-header > div:last-child img {
    max-width: 200px !important;
}

.competition-features {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px;
    margin-top: 60px;
}

.comp-feature img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin-bottom: 16px;
}

.comp-feature h4 {
    font-size: clamp(1.05rem, 1.2vw, 20px) !important;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0 !important;
}

.cta-section > .container > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 2.6vw, 48px) !important;
}

.cta-section p {
    font-size: clamp(1rem, 1.2vw, 20px) !important;
}

.cta-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* --- Footer --- */
footer {
    padding: 60px 0 !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo img {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    margin-bottom: 20px;
}

/* --- Menu Toggle --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

/* ============================================================
   TABLET BREAKPOINT (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 24px !important; }
    .header-container { padding: 8px 24px !important; }

    .hero {
        padding: 110px 24px 50px 24px !important;
        gap: 24px;
    }

    .hero-content {
        flex: 1 1 400px;
    }

    .hero > img[alt="mascot"] {
        flex: 1 1 300px;
    }

    .hero-stats {
        gap: 24px !important;
    }

    .token-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .token-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px;
    }
}

/* ============================================================
   MOBILE BREAKPOINT (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }

    .container {
        padding: 0 16px !important;
    }

    .header-container {
        padding: 8px 16px !important;
        flex-wrap: nowrap;
    }

    .logo img {
        width: 120px !important;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 19, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px 16px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 123, 44, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        display: flex;
        max-height: 500px;
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .hero {
        padding: 100px 16px 40px 16px !important;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100%;
        text-align: center;
    }

    .hero-content > img:first-child {
        margin: 0 auto 20px auto;
        display: block;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 20px !important;
    }

    .stat-item {
        min-width: 100px;
        align-items: center;
    }

    .hero > img[alt="mascot"] {
        width: 100% !important;
        max-width: 400px;
    }

    .features {
        padding: 60px 0 !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-card {
        padding: 24px 20px !important;
    }

    .token-section {
        padding: 60px 0 !important;
    }

    .competition-section {
        padding: 60px 0 !important;
    }

    .competition-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .competition-header > div:last-child {
        align-self: center;
    }

    .competition-features {
        grid-template-columns: 1fr !important;
    }

    .competition-content > div:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    .competition-content > div:last-child .btn {
        width: 100%;
    }

    .cta-section {
        padding: 60px 0 !important;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Token actions — the YouTube + Amazon buttons */
    .token-content > div:last-child {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .token-content > div:last-child .btn,
    .token-content > div:last-child img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem !important;
    }

    .section-title h2 {
        font-size: 1.6rem !important;
    }

    .btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* ============================================================
   HOMEPAGE MOBILE MENU — SINGLE SOURCE OF TRUTH
   ============================================================ */

/* Show hamburger on all screens up to 1024px */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
        color: #e0e0e0 !important;
        font-size: 32px !important;
        padding: 8px 12px !important;
    }

    .header-container {
        position: relative !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        background: rgba(10, 14, 19, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 20px 24px !important;
        gap: 0 !important;
        border-bottom: 1px solid rgba(255, 123, 44, 0.5) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        z-index: 999 !important;
    }

    .nav-links.open {
        display: flex !important;
        max-height: 500px !important;
        overflow: visible !important;
    }

    .nav-links a {
        display: block !important;
        padding: 16px 0 !important;
        font-size: 17px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #e0e0e0 !important;
        text-decoration: none !important;
        width: 100% !important;
        white-space: normal !important;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: #ff6b9d !important;
    }
}
