/* Responsive Design Breakpoints */

/* Mobile First Approach */
/* Base styles are for mobile (320px+) */

/* Mobile Navigation Styles */
@media (max-width: 767px) {
    .main-navigation .container {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-white);
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Navigation scroll effects */
    .main-navigation.scrolled {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .main-navigation.nav-hidden {
        transform: translateY(-100%);
    }
}

/* Tablet and Desktop Navigation */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        flex-direction: row;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
    }
    
    .nav-link {
        border-bottom: none;
    }
    
    /* Navigation scroll effects for larger screens */
    .main-navigation.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
    }
    
    .main-navigation.nav-hidden {
        transform: translateY(-100%);
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    /* Multi-section layout adjustments for small mobile */
    .hero-section {
        min-height: 100vh;
        padding: var(--spacing-4xl) 0;
    }
    
    .hero-content {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .features-section {
        padding: var(--spacing-5xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-4xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4xl);
    }
    
    .feature-card {
        padding: var(--spacing-3xl);
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Hero Section Mobile - Enhanced multi-section layout */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        padding: var(--spacing-xl) 0;
        min-height: auto;
        align-content: center;
        max-width: 100%;
    }
    
    .hero-visual {
        order: -1;
        max-width: 280px;
        margin: 0 auto var(--spacing-xl);
        padding: var(--spacing-xl);
    }
    
    .brand-name {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--spacing-sm);
        line-height: 1.1;
    }
    
    .hero-tagline {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-md);
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        max-width: 320px;
        margin: 0 auto var(--spacing-lg);
        line-height: 1.6;
        padding: 0 var(--spacing-md);
    }
    
    .hero-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-trust {
        margin-bottom: var(--spacing-lg);
    }
    
    .trust-badge {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-cta {
        margin-bottom: var(--spacing-lg);
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
        max-width: 280px;
        margin: 0 auto var(--spacing-xl);
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .store-badge {
        width: 100%;
        height: auto;
        max-height: 60px;
    }
    
    /* Features Showcase Mobile */
    .features-showcase {
        margin: var(--spacing-lg) 0;
        max-width: 100%;
    }
    
    .features-title {
        font-size: var(--font-size-lg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 280px;
        margin: 0 auto;
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-image {
        height: 160px;
        max-width: 100%;
        margin: 0 auto var(--spacing-md);
        padding: var(--spacing-xs);
    }
    
    .feature-name {
        font-size: var(--font-size-sm);
    }
    
    .feature-desc {
        font-size: var(--font-size-xs);
    }
    
    .hero-stats {
        justify-content: center;
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .stat-item {
        align-items: center;
        text-align: center;
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        max-width: 300px;
        margin: 0 auto;
    }
    
    .feature-item {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
    
    .feature-text {
        font-size: var(--font-size-xs);
    }
    
    .feature-icon {
        font-size: var(--font-size-base);
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    .store-badge {
        height: 40px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-xs);
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: block;
        font-size: var(--font-size-sm);
    }
    
    .stat-number {
        font-size: var(--font-size-base);
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .phone-mockup {
        max-width: 140px;
    }
    
    .preview-card-text {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    .floating-elements {
        display: none;
    }
    
    /* Feature Screenshots Mobile - Compact for single page */
    .feature-screenshots {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
        max-width: 280px;
        margin: 0 auto;
    }
    
    .feature-thumb {
        aspect-ratio: 3/4;
        border-radius: var(--spacing-xs);
    }
    
    .feature-thumb-overlay .feature-text {
        font-size: 10px;
    }
    
    .app-showcase {
        margin-bottom: var(--spacing-xs);
    }
    
    /* Modal responsive styles */
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: var(--spacing-sm);
    }
    
    .modal-header,
    .modal-body,
    .modal-navigation {
        padding: var(--spacing-md);
    }
    
    .modal-title {
        font-size: var(--font-size-base);
    }
    
    .modal-nav-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-base);
        min-width: 40px;
        min-height: 40px;
    }
    
    .trust-badge {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .trust-text {
        font-size: var(--font-size-xs);
    }
}

/* Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .btn {
        min-width: 200px;
    }
    
    /* Single-page layout adjustments for mobile */
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    /* Hero Section Mobile - Single Page Layout */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
        padding: var(--spacing-md) 0;
        min-height: 100vh;
        align-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        max-width: 350px;
        margin: 0 auto;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-lg);
    }
    
    /* Features Showcase Mobile Landscape */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
        max-width: 100%;
    }
    
    .feature-image {
        height: 140px;
        padding: var(--spacing-xs);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .stat-divider {
        display: block;
    }
    
    .phone-mockup {
        max-width: 220px;
    }
    
    .preview-card-text {
        font-size: 12px;
        letter-spacing: 0.4px;
    }
    
    .floating-elements {
        display: block;
    }
    
    .floating-icon {
        font-size: 20px;
    }
    
    /* Feature Screenshots Mobile Landscape */
    .feature-screenshots {
        max-width: 320px;
        gap: var(--spacing-sm);
    }
    
    .feature-thumb {
        aspect-ratio: 9/16;
    }
    
    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    /* Single-page layout adjustments for tablet */
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    /* Features grid for tablet */
    .features-section .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: var(--spacing-4xl) !important;
        max-width: 900px !important;
        margin: 0 auto !important;
    }
    
    .features-section .feature-card {
        padding: var(--spacing-3xl) !important;
    }
    
    .features-section .feature-name {
        font-size: var(--font-size-xl) !important;
    }
    
    .features-section .feature-desc {
        font-size: var(--font-size-base) !important;
    }
    
    /* Two column layout for tablets */
    .tablet-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: center;
    }
    
    .btn {
        width: auto;
        display: inline-flex;
        margin-right: var(--spacing-md);
        margin-bottom: 0;
    }
    
    /* Hero Section Tablet - Single Page Layout */
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--spacing-xl);
        text-align: left;
        padding: var(--spacing-lg) 0;
        min-height: 100vh;
        align-content: center;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        max-width: 400px;
        margin: 0;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    /* Features Showcase Tablet */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        max-width: 100%;
    }
    
    .feature-image {
        height: 180px;
        padding: var(--spacing-sm);
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: flex-start;
        max-width: 450px;
    }
    
    .phone-mockup {
        max-width: 260px;
    }
    
    .preview-card-text {
        font-size: 13px;
        letter-spacing: 0.4px;
    }
    
    .floating-icon {
        font-size: 22px;
    }
    
    /* Feature Screenshots Tablet */
    .feature-screenshots {
        max-width: 400px;
        gap: var(--spacing-md);
    }
    
    .feature-thumb {
        aspect-ratio: 9/16;
    }
    
    .modal-content {
        max-width: 85vw;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-navigation {
        padding: var(--spacing-lg);
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-2xl);
    }
    
    /* Single-page layout adjustments for desktop */
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        min-height: 100vh;
        align-content: center;
    }
    
    /* Features grid for desktop */
    .features-section .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: var(--spacing-5xl) !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .features-section .feature-card {
        padding: var(--spacing-4xl) !important;
    }
    
    .features-section .feature-image {
        margin-bottom: var(--spacing-3xl) !important;
        height: auto !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .features-section .feature-name {
        font-size: var(--font-size-2xl) !important;
    }
    
    .features-section .feature-desc {
        font-size: var(--font-size-base) !important;
    }
    
    /* Three column layout for desktop */
    .desktop-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
    
    /* Two column layout for desktop */
    .desktop-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
        align-items: center;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-3xl);
    }
    
    /* Single-page layout adjustments for large desktop */
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        min-height: 100vh;
        align-content: center;
    }
    
    /* Enhanced features grid for large desktop */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-6xl);
        max-width: 1300px;
    }
    
    .feature-card {
        padding: var(--spacing-5xl);
    }
    
    .feature-name {
        font-size: var(--font-size-3xl);
    }
    
    .feature-desc {
        font-size: var(--font-size-lg);
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

/* Ultra Wide (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    /* Single-page layout adjustments for ultra-wide screens */
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        min-height: 100vh;
        align-content: center;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .brand-name {
        font-size: clamp(3.5rem, 3vw, 4.5rem) !important;
    }
    
    .hero-tagline {
        font-size: clamp(1.75rem, 1.5vw, 2.25rem) !important;
    }
    
    .hero-description {
        font-size: clamp(1.25rem, 1vw, 1.5rem) !important;
    }
}

/* Height-based Media Queries for Single-Page Layout */
@media (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        padding: var(--spacing-sm) 0;
        gap: var(--spacing-sm);
    }
    
    .hero-header {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-cta {
        margin-bottom: var(--spacing-xs);
    }
    
    .brand-name {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-tagline {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .phone-mockup {
        max-width: 200px;
    }
    
    .feature-screenshots {
        max-width: 250px;
        gap: var(--spacing-xs);
    }
    
    .hero-footer {
        padding: var(--spacing-xs) 0;
    }
}

@media (max-height: 500px) {
    .hero-content {
        padding: var(--spacing-xs) 0;
        gap: var(--spacing-xs);
    }
    
    .hero-header {
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-trust {
        margin-bottom: var(--spacing-xs);
    }
    
    .brand-name {
        font-size: var(--font-size-2xl);
        margin-bottom: 2px;
    }
    
    .hero-tagline {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
        line-height: 1.3;
    }
    
    .phone-mockup {
        max-width: 160px;
    }
    
    .feature-screenshots {
        max-width: 200px;
        gap: 2px;
    }
    
    .feature-thumb {
        aspect-ratio: 1/1;
    }
    
    .app-showcase {
        margin-bottom: 2px;
    }
    
    .store-badge {
        height: 35px;
    }
    
    .hero-stats {
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-xs);
    }
    
    .stat-number {
        font-size: var(--font-size-sm);
    }
    
    .stat-label {
        font-size: 9px;
    }
}

/* Landscape Mobile - Single Page Layout */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--spacing-md);
        text-align: left;
        padding: var(--spacing-sm) 0;
        min-height: 100vh;
        align-content: center;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-header {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-cta {
        margin-bottom: var(--spacing-xs);
    }
    
    .brand-name {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-tagline {
        font-size: var(--font-size-base);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .phone-mockup {
        max-width: 180px;
    }
    
    .feature-screenshots {
        max-width: 240px;
        gap: var(--spacing-xs);
    }
    
    .store-badge {
        height: 45px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizes */
    .btn {
        min-height: 48px;
        padding: var(--spacing-lg) var(--spacing-xl);
    }
    
    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-glow:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Larger touch targets */
    a, button, .clickable {
        min-height: 44px;
        min-width: 44px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .hero-section,
    .screenshots-section {
        display: none;
    }
    
    .btn {
        border: 1px solid black;
        text-decoration: none;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --text-primary: #000000;
        --text-secondary: #000000;
        --background-white: #ffffff;
        --border-color: #000000;
    }
    
    .btn-primary {
        background: #000000;
        color: #ffffff;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    /* Disable background images and heavy animations */
    .hero-section {
        background: var(--primary-color);
    }
    
    .animate-float,
    .animate-breathe,
    .animate-pulse {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F9FAFB;
        --text-secondary: #D1D5DB;
        --background-white: #111827;
        --background-light: #1F2937;
        --border-color: #374151;
    }
    
    body {
        background-color: var(--background-white);
        color: var(--text-primary);
    }
    
    .features-section {
        background: var(--background-light);
    }
    
    .btn-secondary {
        background: var(--background-white);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
}

/* Utility Classes for Responsive Design */
.hide-mobile {
    display: none;
}

.hide-tablet {
    display: block;
}

.hide-desktop {
    display: block;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .hide-tablet {
        display: none;
    }
    
    .show-tablet {
        display: block;
    }
}

@media (min-width: 1024px) {
    .hide-tablet {
        display: block;
    }
    
    .hide-desktop {
        display: none;
    }
    
    .show-desktop {
        display: block;
    }
}

/* Responsive Typography for Single-Page Layout */
.responsive-text {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

.responsive-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.responsive-subheading {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* Responsive Spacing for Single-Page Layout */
.responsive-padding {
    padding: clamp(0.5rem, 3vw, 2rem);
}

.responsive-margin {
    margin: clamp(0.5rem, 3vw, 2rem);
}

.responsive-gap {
    gap: clamp(0.5rem, 2vw, 1.5rem);
}

/* Single-Page Layout Specific Utilities */
.single-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.viewport-fit {
    min-height: 100vh;
}

.compact-spacing {
    margin: var(--spacing-xs) 0;
}

.ultra-compact-spacing {
    margin: 2px 0;
}

/* Responsive font sizes for different screen sizes */
@media (max-width: 480px) {
    .brand-name {
        font-size: clamp(1.875rem, 8vw, 2.25rem) !important;
    }
    
    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.125rem) !important;
    }
    
    .hero-description {
        font-size: clamp(0.875rem, 3vw, 1rem) !important;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .brand-name {
        font-size: clamp(2.25rem, 6vw, 3rem) !important;
    }
    
    .hero-tagline {
        font-size: clamp(1.125rem, 3vw, 1.5rem) !important;
    }
    
    .hero-description {
        font-size: clamp(1rem, 2.5vw, 1.125rem) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .brand-name {
        font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    }
    
    .hero-tagline {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    }
    
    .hero-description {
        font-size: clamp(1.125rem, 2vw, 1.25rem) !important;
    }
}

@media (min-width: 1024px) {
    .brand-name {
        font-size: clamp(3rem, 4vw, 4rem) !important;
    }
    
    .hero-tagline {
        font-size: clamp(1.5rem, 2vw, 2rem) !important;
    }
    
    .hero-description {
        font-size: clamp(1.125rem, 1.5vw, 1.375rem) !important;
    }
}
/* Additi
onal Single-Page Layout Optimizations */

/* Single page layout without restricting overflow */
@media (max-width: 1920px) {
    html, body {
        min-height: 100vh;
        width: 100%;
    }
    
    .single-page-layout {
        min-height: 100vh;
        position: relative;
    }
    
    .hero-section {
        min-height: 100vh;
        position: relative;
    }
}

/* Prevent horizontal scrolling */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
    }
    
    .hero-content {
        gap: var(--spacing-xs);
        padding: var(--spacing-xs) 0;
    }
    
    .download-buttons {
        gap: var(--spacing-xs);
    }
    
    .store-badge {
        height: 35px;
        max-width: 120px;
    }
    
    .feature-grid {
        max-width: 260px;
    }
    
    .phone-mockup {
        max-width: 120px;
    }
    
    .screenshot-preview {
        max-width: 200px;
    }
}

/* Very tall screens optimization */
@media (min-height: 900px) {
    .hero-content {
        gap: var(--spacing-2xl);
    }
    
    .hero-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-cta {
        margin-bottom: var(--spacing-lg);
    }
}

/* Ensure proper aspect ratios on all devices */
@media (aspect-ratio: 16/9) {
    .hero-content {
        align-content: center;
    }
}

@media (aspect-ratio: 4/3) {
    .hero-content {
        align-content: center;
        gap: var(--spacing-md);
    }
}

/* Handle notched devices (iPhone X and similar) */
@supports (padding: max(0px)) {
    .hero-section {
        padding-left: max(var(--spacing-lg), env(safe-area-inset-left));
        padding-right: max(var(--spacing-lg), env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .hero-footer {
        padding-bottom: max(var(--spacing-xs), env(safe-area-inset-bottom));
    }
}

/* Optimize for foldable devices */
@media (max-width: 768px) and (min-height: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
}

/* Ensure accessibility on all screen sizes */
@media (max-width: 480px) {
    .btn, .download-btn, .social-link, .footer-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .screenshot-thumb {
        min-height: 44px;
    }
}

/* Performance optimization for animations on smaller devices */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .floating-elements {
        display: none;
    }
    
    .animate-float-1,
    .animate-float-2,
    .animate-float-3,
    .animate-float-4 {
        animation: none;
    }
}

/* Ensure text remains readable at all sizes */
@media (max-width: 320px) {
    .hero-description {
        line-height: 1.3;
        font-size: var(--font-size-sm);
    }
    
    .feature-text {
        font-size: 11px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .trust-text {
        font-size: 11px;
    }
}/* En
hanced styling responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        height: calc(100% - 50px);
        padding-bottom: 50px;
    }
    
    .brand-name {
        font-size: var(--font-size-3xl);
    }
    
    .brand-name::after {
        width: 40px;
        height: 3px;
    }
    
    .hero-tagline {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    .hero-description::before,
    .hero-description::after {
        font-size: 2rem;
    }
    
    .download-buttons {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .download-buttons::before {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .store-badge {
        height: 50px;
    }
    
    .feature-screenshots {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .feature-thumb {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        height: calc(100% - 45px);
        padding-bottom: 45px;
        gap: var(--spacing-lg);
    }
    
    .brand-name {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .brand-name::after {
        width: 30px;
        height: 2px;
    }
    
    .hero-tagline {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
        line-height: 1.5;
    }
    
    .hero-description::before,
    .hero-description::after {
        font-size: 1.5rem;
    }
    
    .hero-description::before {
        top: -8px;
        left: 10px;
    }
    
    .hero-description::after {
        bottom: -15px;
        right: 10px;
    }
    
    .download-buttons {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .download-buttons::before {
        font-size: 9px;
        padding: 2px 6px;
        top: -10px;
        left: 15px;
    }
    
    .store-badge {
        height: 45px;
    }
    
    .feature-screenshots {
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .feature-thumb {
        max-width: 60px;
        border-width: 1px;
    }
    
    .feature-thumb-overlay .feature-icon {
        font-size: 12px;
    }
    
    .feature-thumb-overlay .feature-text {
        font-size: 9px;
    }
}

@media (max-height: 600px) {
    .hero-content {
        height: calc(100% - 40px);
        padding-bottom: 40px;
    }
    
    .hero-description {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm);
    }
    
    .download-buttons {
        margin-top: var(--spacing-md);
        padding: var(--spacing-sm);
    }
    
    .feature-screenshots {
        margin: var(--spacing-sm) 0;
    }
}

@media (max-height: 500px) {
    .hero-content {
        height: calc(100% - 35px);
        padding-bottom: 35px;
    }
    
    .brand-name {
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-tagline {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-description {
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-xs);
    }
    
    .hero-description::before,
    .hero-description::after {
        display: none;
    }
    
    .download-buttons {
        margin-top: var(--spacing-sm);
        padding: var(--spacing-xs);
    }
    
    .download-buttons::before {
        display: none;
    }
    
    .store-badge {
        height: 40px;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-content {
        height: calc(100% - 40px);
        padding-bottom: 40px;
    }
    
    .hero-description {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .download-buttons {
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-name::after {
        height: 3px;
    }
    
    .store-badge {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode adjustments for enhanced styling */
@media (prefers-color-scheme: dark) {
    .hero-description {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .download-buttons {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .feature-screenshots {
        border-color: rgba(255, 255, 255, 0.15);
    }
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
    .download-btn::before {
        display: none;
    }
    
    .download-btn:hover {
        transform: none;
        filter: brightness(1.1);
    }
    
    .feature-thumb:hover {
        transform: none;
    }
    
    .feature-thumb:hover img {
        transform: none;
    }
}/*
 CTA headline responsive adjustments */
@media (max-width: 768px) {
    .cta-headline {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .cta-headline::before {
        width: 25px;
        height: 25px;
        font-size: 14px;
        top: -12px;
    }
    
    .cta-title {
        font-size: var(--font-size-lg);
    }
    
    .cta-subtitle {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .cta-headline {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .cta-headline::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -10px;
    }
    
    .cta-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .cta-subtitle {
        font-size: var(--font-size-xs);
    }
}

@media (max-height: 500px) {
    .cta-headline {
        padding: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }
    
    .cta-headline::before {
        display: none;
    }
    
    .cta-title {
        font-size: var(--font-size-sm);
        margin-bottom: 2px;
    }
    
    .cta-subtitle {
        font-size: var(--font-size-xs);
    }
}

/* Simple fixes for screenshot padding and footer overlap */
@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 70px; /* Account for footer */
    }
    
    .feature-screenshots {
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .feature-thumb {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-bottom: 60px; /* Account for footer */
    }
    
    .feature-screenshots {
        padding: var(--spacing-xs);
        gap: 4px;
    }
    
    .feature-thumb {
        max-width: 60px;
    }
    
    .feature-thumb-overlay .feature-icon {
        font-size: 12px;
    }
    
    .feature-thumb-overlay .feature-text {
        font-size: 9px;
    }
}

@media (max-height: 500px) {
    .hero-content {
        padding-bottom: 50px; /* Account for footer */
    }
    
    .feature-screenshots {
        padding: 4px;
        gap: 2px;
    }
    
    .feature-thumb {
        max-width: 50px;
    }
}

/* Additional mobile optimizations for scrolling and content visibility */
@media (max-width: 480px) and (max-height: 800px) {
    /* Ensure content is not cut off on small mobile devices */
    .hero-section {
        min-height: auto;
        padding: env(safe-area-inset-top, 1rem) 0 env(safe-area-inset-bottom, 1rem);
    }
    
    .hero-content {
        min-height: auto;
        padding: 2rem 0;
        justify-content: flex-start;
        align-content: flex-start;
    }
    
    .brand-name {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        margin-bottom: 2rem;
        max-width: 90%;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-content {
        min-height: auto;
        padding: 1rem 0;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: 1;
        max-width: 200px;
        margin: 0;
        padding: 1rem;
    }
    
    .hero-text {
        order: 0;
        text-align: left;
    }
}

/* iOS specific adjustments */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari viewport fix */
    .hero-section {
        min-height: -webkit-fill-available;
    }
}

/* Prevent content cutoff on very small screens */
@media (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-content {
        min-height: auto;
        padding: 1rem 0;
    }
}

/* Desktop Features Override - 12 column grid layout */
@media (min-width: 768px) {
    .features-section {
        padding: var(--spacing-7xl) 0 !important;
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
    
    .features-section .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 var(--spacing-3xl) !important;
        margin: 0 !important;
    }
    
    .features-section .features-showcase {
        width: 100% !important;
        margin-top: var(--spacing-5xl) !important;
    }
    
    .features-section .features-showcase .features-grid {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr) !important;
        gap: var(--spacing-lg) !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        justify-content: space-between !important;
    }
    
    .features-section .features-showcase .feature-card {
        background: var(--background-white) !important;
        border-radius: var(--border-radius-xl) !important;
        padding: var(--spacing-4xl) !important;
        box-shadow: var(--shadow-lg) !important;
        border: 1px solid var(--border-light) !important;
        max-width: none !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        grid-column: span 3 !important;
    }
    
    .features-section .features-showcase .feature-card:nth-child(1) {
        grid-column: 2 / 5 !important;
    }
    
    .features-section .features-showcase .feature-card:nth-child(2) {
        grid-column: 5 / 8 !important;
    }
    
    .features-section .features-showcase .feature-card:nth-child(3) {
        grid-column: 8 / 11 !important;
    }
    
    .features-section .features-showcase .feature-image {
        height: auto !important;
        max-width: 100% !important;
        margin: 0 auto var(--spacing-3xl) !important;
        padding: 0 !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        min-height: 300px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .features-section .features-showcase .screenshot-img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    .features-section .features-showcase .feature-info {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        padding: 0 var(--spacing-lg) !important;
    }
    
    .features-section .features-showcase .feature-name {
        font-size: var(--font-size-2xl) !important;
        font-weight: var(--font-weight-bold) !important;
        color: var(--text-primary) !important;
        margin-bottom: var(--spacing-lg) !important;
    }
    
    .features-section .features-showcase .feature-desc {
        font-size: var(--font-size-base) !important;
        color: var(--text-secondary) !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        flex-grow: 1 !important;
    }
}

/* Large Desktop - maintain 12 column layout */
@media (min-width: 1200px) {
    .features-section .container {
        padding: 0 var(--spacing-5xl) !important;
    }
    
    .features-section .features-showcase .features-grid {
        gap: var(--spacing-xl) !important;
    }
    
    .features-section .features-showcase .feature-card {
        padding: var(--spacing-5xl) !important;
    }
}