/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - All Media Queries
   Tablet, Mobile, Small Mobile, Landscape, Blueprint Responsive
   ═══════════════════════════════════════════════════════════════ */

/* ========================================
   TABLET RESPONSIVE (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .section { padding: 80px 24px; }
    .section-header { margin-bottom: 48px; }

    .features-grid { gap: 20px; }
    .feature-card { padding: 32px 24px; }
    .feature-number { font-size: 2.5rem; }

    .tech-grid { gap: 40px; }
    .chip-diagram { width: 280px; }
    .spec-list { gap: 16px; }

    .tokenomics-grid { gap: 20px; }
    .token-card { padding: 32px 24px; }
    .token-card.featured { transform: scale(1.02); }
    .token-card.featured:hover { transform: scale(1.02) translateY(-6px); }
    .token-amount { font-size: 2.5rem; }

    .footer-top { gap: 32px; }

    /* Blueprint Tablet */
    .blueprint { padding: 60px 0; }
    .blueprint .section-container { padding: 0 32px; }
    .bp-section-num { font-size: 1.75rem; }
    .bp-section h2 { font-size: 1.25rem; }
    .bp-diagram pre { font-size: 0.7rem; }
    .bp-code pre { font-size: 0.8rem; }
    .bp-card { padding: 20px; }
    .bp-nav-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ========================================
   MOBILE RESPONSIVE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Base typography adjustments */
    h1 { font-size: clamp(2rem, 10vw, 4rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
    h3 { font-size: clamp(1rem, 3vw, 1.4rem); }
    p { font-size: 0.95rem; line-height: 1.7; }

    /* Navigation */
    .nav-container { height: 60px; padding: 0 16px; }
    .nav-logo { font-size: 1.4rem; }
    .nav-cta { padding: 10px 20px; font-size: 0.7rem; }

    /* Hero Section */
    .hero {
        padding: 80px 16px 60px;
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
    }
    .hero-badge {
        font-size: 0.6rem;
        padding: 8px 14px;
        margin-bottom: 24px;
    }
    .hero-title { margin-bottom: 16px; }
    .hero-title .sub {
        font-size: 0.3em;
        letter-spacing: 0.2em;
        margin-top: 12px;
    }
    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 32px;
        padding: 0 8px;
    }
    .hero-cta { gap: 12px; }
    .btn {
        padding: 14px 24px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 280px;
    }

    /* DAG visual */
    .hero-dag {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .dag-canvas-container { width: 240px; min-width: 240px; height: 360px; }
    .dag-explanation { width: 100%; max-width: 400px; }
    .dag-label { font-size: 0.6rem; }

    /* Scroll indicator */
    .scroll-indicator { bottom: 24px; }
    .scroll-indicator span { font-size: 0.55rem; }
    .scroll-line { height: 40px; }

    /* Stats Banner */
    .stats-banner {
        padding: 40px 16px;
        gap: 16px;
    }
    .stat-value { font-size: 1.8rem; }
    .stat-label { font-size: 0.6rem; }

    /* Section general */
    .section { padding: 60px 16px; }
    .section-header { margin-bottom: 40px; }
    .section-label {
        font-size: 0.6rem;
        margin-bottom: 12px;
    }
    .section-label::before, .section-label::after { width: 20px; }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .feature-card {
        padding: 28px 20px;
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    }
    .feature-card:hover { transform: translateY(-4px); }
    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    .feature-icon svg { width: 24px; height: 24px; }
    .feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
    .feature-card p { font-size: 0.85rem; }
    .feature-number {
        font-size: 2rem;
        top: 12px;
        right: 16px;
    }

    /* Tech Specs */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tech-visual { order: 2; }
    .tech-content { order: 1; }
    .tech-content h2 { text-align: center; }
    .tech-content > p { text-align: center; }

    .chip-diagram { width: 220px; }
    .chip-core { width: 80px; height: 80px; }
    .chip-core span { font-size: 0.5rem; }
    .chip-ring:nth-child(1) { width: 120px; height: 120px; }
    .chip-ring:nth-child(2) { width: 170px; height: 170px; }
    .chip-ring:nth-child(3) { width: 220px; height: 220px; }
    .chip-data { font-size: 0.5rem; }

    .spec-item {
        padding: 16px 0;
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    .spec-icon { width: 38px; height: 38px; }
    .spec-icon svg { width: 18px; height: 18px; }
    .spec-text h4 { font-size: 0.9rem; }
    .spec-text p { font-size: 0.85rem; }

    /* How It Works */
    .step {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 32px 0;
    }
    .step-number {
        font-size: 2.5rem;
        text-align: center;
    }
    .step-content { text-align: center; }
    .step-content h3 { font-size: 1.1rem; }
    .step-content p { font-size: 0.9rem; }

    /* Tokenomics */
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .token-card { padding: 28px 20px; }
    .token-card.featured {
        transform: none;
        order: -1;
    }
    .token-card:hover { transform: translateY(-4px); }
    .token-card.featured:hover { transform: translateY(-4px); }
    .token-badge {
        font-size: 0.6rem;
        padding: 5px 12px;
        top: -10px;
    }
    .token-card-name { font-size: 1rem; }
    .token-amount { font-size: 2.2rem; }
    .token-amount span { font-size: 0.85rem; }
    .token-desc { font-size: 0.8rem; margin-bottom: 24px; }
    .token-features { margin-bottom: 24px; }
    .token-features li {
        padding: 10px 0;
        font-size: 0.85rem;
        gap: 10px;
    }
    .token-features li svg { width: 16px; height: 16px; }
    .token-btn { font-size: 0.75rem; padding: 14px 20px; }

    /* CTA Section */
    .cta-section { padding: 80px 16px; }
    .cta-buttons { gap: 12px; }
    .cta-buttons .btn { max-width: 100%; }

    /* Footer */
    .footer { padding: 60px 16px 24px; }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand { text-align: center; }
    .footer-logo { font-size: 1.6rem; }
    .footer-brand p {
        margin: 0 auto 20px;
        max-width: 100%;
    }
    .footer-social { justify-content: center; }
    .footer-social a { width: 40px; height: 40px; }
    .footer-social svg { width: 18px; height: 18px; }

    .footer-links { text-align: center; }
    .footer-links h4 { margin-bottom: 16px; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { font-size: 0.85rem; }

    .footer-bottom {
        padding-top: 20px;
        gap: 12px;
    }
    .footer-bottom p { font-size: 0.75rem; }

    /* Mobile menu improvements */
    .mobile-menu { padding: 90px 24px 24px; }
    .mobile-menu-links a {
        font-size: 1.5rem;
        padding: 20px 0;
    }
    .mobile-menu-cta {
        padding: 16px;
        font-size: 0.9rem;
    }

    /* Grid and effects adjustments */
    .grid-overlay {
        background-size: 40px 40px;
        opacity: 0.5;
    }
    .scanlines { opacity: 0.2; }

    /* Blueprint Mobile */
    .blueprint { padding: 50px 0; }
    .blueprint .section-container { padding: 0 16px; }
    .blueprint .section-header { margin-bottom: 30px; }
    .blueprint .section-title { font-size: 1.8rem; }

    .bp-nav { padding: 12px 16px; margin-bottom: 30px; }
    .bp-nav-title { font-size: 0.7rem; margin-bottom: 10px; }
    .bp-nav-list { grid-template-columns: 1fr 1fr; gap: 6px; }
    .bp-nav-list a { font-size: 0.75rem; }

    .bp-section { margin-bottom: 40px; }
    .bp-section-header { gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
    .bp-section-num { font-size: 1.5rem; }
    .bp-section h2 { font-size: 1rem; }

    .bp-card { padding: 16px; margin-bottom: 16px; }
    .bp-card h3 { font-size: 0.9rem; margin-bottom: 10px; }
    .bp-card p { font-size: 0.85rem; margin-bottom: 10px; }
    .bp-card li { font-size: 0.85rem; padding: 5px 0; }

    .bp-code { padding: 14px; margin: 12px 0; }
    .bp-code-header { font-size: 0.65rem; margin-bottom: 10px; }
    .bp-code pre { font-size: 0.7rem; line-height: 1.5; }

    .bp-diagram { padding: 16px; margin: 16px 0; overflow-x: auto; }
    .bp-diagram pre { font-size: 0.55rem; line-height: 1.3; }
    .bp-diagram-label { font-size: 0.65rem; margin-top: 12px; }

    .bp-highlight { padding: 14px 16px; margin: 14px 0; }
    .bp-highlight h4 { font-size: 0.9rem; }
    .bp-highlight p { font-size: 0.85rem; }

    .bp-table-wrap { margin: 14px 0; }
    .bp-table-wrap th { padding: 10px 12px; font-size: 0.75rem; }
    .bp-table-wrap td { padding: 10px 12px; font-size: 0.8rem; }
}

/* ========================================
   SMALL MOBILE (max-width: 400px)
   ======================================== */
@media (max-width: 400px) {
    .hero { padding: 70px 12px 50px; }
    .hero-badge { font-size: 0.55rem; padding: 6px 12px; }
    .hero-title .sub { font-size: 0.25em; letter-spacing: 0.15em; }
    .hero-tagline { font-size: 0.8rem; }
    .hero-desc { font-size: 0.85rem; }

    .btn { padding: 12px 20px; font-size: 0.7rem; }
    .hero-dag { margin-top: 20px; }
    .dag-canvas-container { width: 220px; min-width: 220px; height: 320px; }
    .dag-step-desc { font-size: 0.62rem; }

    .section { padding: 50px 12px; }
    .feature-card { padding: 24px 16px; }
    .token-card { padding: 24px 16px; }

    .chip-diagram { width: 180px; }
    .chip-core { width: 60px; height: 60px; }
    .chip-ring:nth-child(1) { width: 100px; height: 100px; }
    .chip-ring:nth-child(2) { width: 140px; height: 140px; }
    .chip-ring:nth-child(3) { width: 180px; height: 180px; }

    .footer-logo { font-size: 1.4rem; }
    .nav-logo { font-size: 1.2rem; }

    /* Blueprint Small Mobile */
    .blueprint .section-title { font-size: 1.5rem; }

    .bp-nav-list { grid-template-columns: 1fr; gap: 4px; }
    .bp-nav-list a { font-size: 0.7rem; }

    .bp-section-num { font-size: 1.25rem; }
    .bp-section h2 { font-size: 0.9rem; }

    .bp-card { padding: 12px; }
    .bp-card h3 { font-size: 0.85rem; }
    .bp-card li { font-size: 0.8rem; }

    .bp-code { padding: 10px; }
    .bp-code pre { font-size: 0.6rem; }

    .bp-diagram pre { font-size: 0.45rem; }

    .bp-table-wrap th, .bp-table-wrap td { padding: 8px 10px; font-size: 0.7rem; }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 24px 40px;
    }
    .hero-dag { display: none; }
    .dag-explanation { display: none; }
    .scroll-indicator { display: none; }
    .hero-badge { margin-bottom: 16px; }
    .hero-desc { margin-bottom: 24px; }
}
