/* =============================================
   TÜYO Landing Page - Responsive Styles
   ============================================= */

/* ===== Large Desktop (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

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

    .iphone-mockup {
        --mockup-width: 320px;
        --mockup-height: 660px;
    }
}

/* ===== Desktop (max 1200px) ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-container {
        gap: var(--space-8);
    }

    .iphone-mockup {
        --mockup-width: 260px;
        --mockup-height: 530px;
    }

    .iphone-mockup-3d {
        transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
    }
}

/* ===== Tablet Landscape (max 1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

    section {
        padding: var(--space-16) 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: var(--space-8);
    }

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

    .iphone-mockup-3d {
        transform: none;
    }

    .iphone-mockup-3d:hover {
        transform: translateY(-10px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .steps-grid::before {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    .contact-email {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

/* ===== Tablet Portrait (max 768px) ===== */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    section {
        padding: var(--space-12) 0;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Navbar Mobile */
    .navbar-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-cta {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: var(--space-12);
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .iphone-mockup {
        --mockup-width: 240px;
        --mockup-height: 490px;
    }

    /* Showcase */
    .showcase-slider-container {
        padding: 0 var(--space-8);
    }

    .showcase-nav {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .showcase-nav-prev {
        left: 0;
    }

    .showcase-nav-next {
        right: 0;
    }

    /* Beta */
    .beta-card {
        padding: var(--space-8);
    }

    .beta-form {
        flex-direction: column;
    }

    .beta-form .btn {
        width: 100%;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4 {
        margin-top: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .scroll-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }
}

/* ===== Mobile (max 576px) ===== */
@media (max-width: 576px) {
    :root {
        --text-6xl: 2rem;
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
        --text-2xl: 1.125rem;
    }

    .hero-badge .badge {
        font-size: 0.65rem;
    }

    .iphone-mockup {
        --mockup-width: 200px;
        --mockup-height: 410px;
        --mockup-bezel: 8px;
        --mockup-radius: 35px;
    }

    .iphone-mockup::before {
        width: 70px;
        height: 22px;
        top: 12px;
    }

    .feature-card {
        padding: var(--space-6);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }

    .showcase-slider {
        gap: var(--space-4);
        padding: var(--space-4) var(--space-2);
    }

    .contact-form-card {
        padding: var(--space-6);
    }

    .logo img {
        height: 45px;
    }

    .navbar .logo img {
        height: 63px;
    }
}

/* ===== Small Mobile (max 380px) ===== */
@media (max-width: 380px) {
    :root {
        --text-6xl: 1.75rem;
        --text-5xl: 1.5rem;
    }

    .container {
        padding: 0 var(--space-3);
    }

    .iphone-mockup {
        --mockup-width: 180px;
        --mockup-height: 370px;
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
    }

    .logo img {
        height: 40px;
    }

    .navbar .logo img {
        height: 56px;
    }
}

/* ===== Height-based adjustments ===== */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-8);
    }
}

/* ===== Hover states for touch devices ===== */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }

    .glass-card:hover {
        transform: none;
    }

    .iphone-mockup-3d:hover {
        transform: none;
    }

    .showcase-slide:hover .iphone-mockup {
        transform: none;
    }
}

/* ===== Print styles ===== */
@media print {

    .navbar,
    .scroll-top,
    .showcase-nav,
    .hamburger,
    .mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-background {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}