/* ===================================
   Responsive Design
   Tablet & Mobile Optimizations
   =================================== */

/* ===================================
   Tablet Styles (768px - 1199px)
   =================================== */

@media screen and (max-width: 1199px) {
    /* Typography */
    .hero__title {
        font-size: 3rem;
    }
    
    .section__title {
        font-size: 2.25rem;
    }
    
    /* Features Grid */
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Why Choose Section */
    .why-choose__content {
        gap: var(--spacing-lg);
    }
    
    /* Pricing Grid */
    .pricing__grid {
        gap: var(--spacing-md);
    }
    
    .pricing__card--recommended {
        transform: scale(1.02);
    }
    
    .pricing__card--recommended:hover {
        transform: scale(1.02) translateY(-10px);
    }
}

/* ===================================
   Mobile Landscape & Small Tablets (max-width: 991px)
   =================================== */

@media screen and (max-width: 991px) {
    /* Typography */
    .hero__title {
        font-size: 2.5rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        transition: right var(--transition-normal);
        padding: var(--spacing-lg);
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .nav__link {
        font-size: 1.25rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
    }
    
    .nav__link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav__toggle {
        display: flex;
    }
    
    /* Mobile menu animation */
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero__buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero__buttons .btn {
        width: 100%;
        max-width: 350px;
    }
    
    /* Why Choose Section */
    .why-choose__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .why-choose__text .section__title {
        text-align: center;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer__links {
        align-items: center;
    }
}

/* ===================================
   Mobile Styles (max-width: 767px)
   =================================== */

@media screen and (max-width: 767px) {
    /* General */
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography */
    .hero__title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero__description {
        font-size: 1.125rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .section__subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav {
        padding: 0.75rem var(--spacing-sm);
    }
    
    .nav__logo h2 {
        font-size: 1.25rem;
    }
    
    .nav__toggle {
        width: 30px;
    }
    
    .nav__toggle span {
        width: 30px;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-xxl);
    }
    
    .hero__trust-badges {
        flex-direction: column;
        gap: var(--spacing-sm);
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .trust-badge {
        justify-content: center;
        width: 100%;
    }
    
    /* Features Section */
    .features__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature__card {
        padding: var(--spacing-md);
    }
    
    .feature__icon {
        width: 70px;
        height: 70px;
    }
    
    .feature__title {
        font-size: 1.125rem;
    }
    
    .feature__description {
        font-size: 0.95rem;
    }
    
    /* Why Choose Section */
    .benefits__list {
        gap: var(--spacing-sm);
    }
    
    .benefit__item {
        gap: var(--spacing-xs);
    }
    
    .benefit__icon {
        font-size: 1.25rem;
    }
    
    .benefit__text {
        font-size: 1rem;
    }
    
    /* Pricing Section */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .pricing__card {
        padding: var(--spacing-md);
    }
    
    .pricing__card--recommended {
        transform: scale(1);
        order: -1; /* Show recommended first on mobile */
    }
    
    .pricing__card--recommended:hover {
        transform: translateY(-10px);
    }
    
    .pricing__name {
        font-size: 1.5rem;
    }
    
    .price__amount {
        font-size: 3rem;
    }
    
    .pricing__feature {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
    
    /* Sign-Up Section */
    .signup__form {
        padding: var(--spacing-md);
    }
    
    .form__input,
    .form__select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .trust__image {
        max-width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer__grid {
        gap: var(--spacing-lg);
    }
    
    .footer__logo {
        font-size: 1.25rem;
    }
    
    .footer__title {
        font-size: 1rem;
    }
    
    /* Scroll to Top Button */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

/* ===================================
   Small Mobile Styles (max-width: 480px)
   =================================== */

@media screen and (max-width: 480px) {
    /* Typography */
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav__logo h2 {
        font-size: 1.125rem;
    }
    
    /* Hero */
    .hero__buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .trust-badge {
        padding: 0.625rem 1rem;
    }
    
    .trust-badge__text {
        font-size: 0.8rem;
    }
    
    /* Features */
    .feature__icon {
        width: 60px;
        height: 60px;
    }
    
    .feature__title {
        font-size: 1.065rem;
    }
    
    .feature__description {
        font-size: 0.875rem;
    }
    
    /* Pricing */
    .pricing__card {
        padding: var(--spacing-sm);
    }
    
    .pricing__name {
        font-size: 1.375rem;
    }
    
    .price__amount {
        font-size: 2.5rem;
    }
    
    .pricing__feature {
        font-size: 0.875rem;
    }
    
    /* Sign-Up */
    .signup__content {
        padding: 0;
    }
    
    .form__label {
        font-size: 0.95rem;
    }
    
    .form__note {
        font-size: 0.8rem;
    }
    
    .success__icon {
        font-size: 3rem;
    }
    
    .success__title {
        font-size: 1.5rem;
    }
    
    .success__message {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer__logo {
        font-size: 1.125rem;
    }
    
    .footer__tagline,
    .footer__links li,
    .footer__links a {
        font-size: 0.9rem;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.125rem;
    }
}

/* ===================================
   Landscape Mode Optimization
   =================================== */

@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-lg);
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__trust-badges {
        flex-direction: row;
        justify-content: center;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ===================================
   Touch Device Optimizations
   =================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 1rem 2rem;
    }
    
    .nav__link {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .form__input,
    .form__select {
        min-height: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .feature__card:hover {
        transform: none;
    }
    
    .pricing__card:hover {
        transform: none;
    }
    
    .pricing__card--recommended {
        transform: scale(1);
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .header,
    .nav__toggle,
    .hero__buttons,
    .scroll-top,
    .signup__form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section__title,
    .hero__title-highlight,
    .pricing__name {
        color: black;
        -webkit-text-fill-color: black;
    }
    
    .feature__card,
    .pricing__card {
        break-inside: avoid;
    }
}

/* ===================================
   Accessibility Enhancements
   =================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--color-primary);
    }
    
    .btn-secondary,
    .btn-outline {
        border-width: 3px;
    }
    
    .feature__card,
    .pricing__card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (already dark by default) */
@media (prefers-color-scheme: light) {
    /* Optional: Add light mode styles if needed in future */
}
