/* ==================== RESPONSIVE DESIGN ==================== */

/* ===== TABLET & BELOW (< 1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;    /* 40px */
        --font-size-4xl: 2rem;      /* 32px */
        --space-4xl: 4rem;          /* 64px */
        --space-5xl: 6rem;          /* 96px */
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .app-showcase {
        order: 2;
    }

    .features-list {
        order: 1;
    }

}

/* ===== MOBILE & BELOW (< 768px) ===== */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;      /* 32px */
        --font-size-4xl: 1.75rem;   /* 28px */
        --font-size-3xl: 1.5rem;    /* 24px */
        --font-size-2xl: 1.25rem;   /* 20px */
        --font-size-xl: 1.125rem;   /* 18px */
        --space-3xl: 3rem;          /* 48px */
        --space-4xl: 4rem;          /* 64px */
        --space-5xl: 5rem;          /* 80px */
        --container-padding: 1rem;
    }

    /* Navigation */
    .nav-content {
        height: 70px;
    }

    .logo {
        height: 40px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: 90vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-badges {
        gap: var(--space-sm);
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }

    .badge svg {
        width: 12px;
        height: 12px;
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .hero-zero {
        font-size: var(--font-size-2xl);
    }

    /* Buttons */
    .btn-large {
        padding: 1rem 2rem;
        font-size: var(--font-size-base);
    }

    /* Section Header */
    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    /* Features Section */
    .features-section {
        padding: var(--space-3xl) 0;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .app-showcase {
        order: -1;
    }

    .phone-mockups {
        max-width: 400px;
    }

    .features-list {
        gap: var(--space-lg);
    }

    .feature-item {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-title {
        font-size: var(--font-size-base);
    }

    .feature-description {
        font-size: var(--font-size-sm);
    }

    /* Beta Section */
    .beta-section {
        padding: var(--space-3xl) 0;
    }

    .beta-header {
        margin-bottom: var(--space-2xl);
    }

    .beta-description {
        font-size: var(--font-size-base);
    }

    .beta-form {
        padding: var(--space-xl);
    }

    .form-group {
        margin-bottom: var(--space-md);
    }

    .form-input {
        padding: 0.875rem 1rem;
    }

    .platform-choice {
        gap: var(--space-sm);
    }

    .radio-custom {
        padding: 0.875rem;
        font-size: var(--font-size-sm);
    }

    .radio-custom svg {
        width: 18px;
        height: 18px;
    }

    /* Footer */
    .footer {
        padding: var(--space-2xl) 0 var(--space-md);
    }

    .footer-logo-container {
        padding: var(--space-sm) 0;
    }

    .footer-logo {
        height: 70px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link {
        font-size: 0.65rem;
    }

    /* Content Pages */
    .page-hero {
        padding: calc(70px + var(--space-3xl)) 0 var(--space-2xl);
    }

    .page-title {
        font-size: var(--font-size-3xl);
    }

    .page-subtitle {
        font-size: var(--font-size-lg);
    }

    .content-section {
        padding: var(--space-3xl) 0;
    }

    .content-block {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .content-icon {
        padding-top: 0;
    }

    .content-icon svg {
        width: 32px;
        height: 32px;
    }

    .content-heading {
        font-size: var(--font-size-xl);
    }

    .content-paragraph {
        font-size: var(--font-size-base);
    }

    .content-paragraph.large {
        font-size: var(--font-size-lg);
    }

    .legal-section {
        padding: var(--space-lg);
    }

    .legal-section h2 {
        font-size: var(--font-size-lg);
    }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
    :root {
        --font-size-5xl: 1.75rem;   /* 28px */
        --font-size-4xl: 1.5rem;    /* 24px */
        --space-2xl: 2rem;          /* 32px */
        --space-3xl: 2.5rem;        /* 40px */
        --space-4xl: 3rem;          /* 48px */
        --space-5xl: 4rem;          /* 64px */
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .feature-item {
        padding: var(--space-sm);
    }

    .beta-form {
        padding: var(--space-md);
    }

    .form-group {
        margin-bottom: var(--space-sm);
    }

    .platform-choice {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .radio-custom {
        padding: 0.75rem;
        font-size: var(--font-size-xs);
    }

    .radio-custom svg {
        width: 16px;
        height: 16px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-zero {
        font-size: var(--font-size-xl);
    }

    .footer-logo {
        height: 60px;
    }

    /* Content Pages */
    .page-title {
        font-size: var(--font-size-2xl);
    }

    .page-subtitle {
        font-size: var(--font-size-base);
    }

    .content-block {
        padding: var(--space-md);
        margin-bottom: var(--space-2xl);
    }

    .content-heading {
        font-size: var(--font-size-lg);
    }

    .legal-section {
        padding: var(--space-md);
    }
}

/* ===== LARGE DESKTOP (> 1440px) ===== */
@media (min-width: 1440px) {
    :root {
        --font-size-6xl: 4.5rem;    /* 72px */
        --font-size-5xl: 3.5rem;    /* 56px */
        --container-max-width: 1400px;
    }

    .hero-title {
        font-size: var(--font-size-6xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-5xl);
    }

}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== COMMUNITY & SOCIAL ===== */
@media (max-width: 768px) {
    .community-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .community-description {
        max-width: 100%;
    }

    .btn-discord {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .beta-section,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-overlay {
        display: none;
    }
}
