/* ===== FONTS ===== */
/* Performance optimization: preload critical fonts */
@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/muli/Muli.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* GPU acceleration for animations */
.animate-fade-in-up,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-fade-in-scale,
.animate-slide-in-bottom,
.animate-float,
.animate-bounce,
.hover-lift,
.hover-scale,
.hover-glow {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Optimize images */
img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Critical rendering path optimization */
.hero {
    contain: layout style paint;
}

.features,
.screenshots,
.download {
    contain: layout style;
}

@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/muli/Muli-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/muli/Muli-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-red: #E53E3E;
    --primary-blue: #3182CE;
    --primary-green: #38A169;
    --primary-white: #FFFFFF;
    
    --secondary-red-light: #FC8181;
    --secondary-red-dark: #C53030;
    --secondary-blue-light: #63B3ED;
    --secondary-blue-dark: #2C5282;
    --secondary-green-light: #68D391;
    --secondary-green-dark: #2F855A;
    
    --success-color: #38A169;
    --warning-color: #D69E2E;
    --error-color: #E53E3E;
    --info-color: #3182CE;
    
    --gray-50: #F7FAFC;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-400: #A0AEC0;
    --gray-500: #718096;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --gray-800: #1A202C;
    --gray-900: #171923;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E53E3E 0%, #3182CE 50%, #38A169 100%);
    --gradient-secondary: linear-gradient(135deg, #FC8181 0%, #63B3ED 100%);
    --gradient-accent: linear-gradient(135deg, #68D391 0%, #38A169 100%);
    --gradient-hero: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    --gradient-background: linear-gradient(180deg, #F7FAFC 0%, #EDF2F7 100%);
    
    /* Typography */
    --font-family: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --display-large: 3rem; /* 48px */
    --display-medium: 2.5rem; /* 40px */
    --display-small: 2rem; /* 32px */
    --headline-large: 1.75rem; /* 28px */
    --headline-medium: 1.5rem; /* 24px */
    --headline-small: 1.25rem; /* 20px */
    --title-large: 1.375rem; /* 22px */
    --title-medium: 1rem; /* 16px */
    --title-small: 0.875rem; /* 14px */
    --body-large: 1rem; /* 16px */
    --body-medium: 0.875rem; /* 14px */
    --body-small: 0.75rem; /* 12px */
    --button-text: 1rem; /* 16px */
    --caption: 0.75rem; /* 12px */
    
    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 600;
    --weight-bold: 700;
    --weight-extra-bold: 800;
    --weight-black: 900;
    
    /* Spacing */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.5rem; /* 8px */
    --space-md: 1rem; /* 16px */
    --space-lg: 1.5rem; /* 24px */
    --space-xl: 2rem; /* 32px */
    --space-2xl: 3rem; /* 48px */
    --space-3xl: 4rem; /* 64px */
    --space-4xl: 5rem; /* 80px */
    --space-5xl: 6rem; /* 96px */
    --space-massive: 8rem; /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.25rem; /* 4px */
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-xl: 1rem; /* 16px */
    --radius-2xl: 1.5rem; /* 24px */
    --radius-3xl: 2rem; /* 32px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 300ms ease-out;
    --transition-slow: 500ms ease-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ===== BASE ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--body-large);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gradient-background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--display-large);
    font-weight: var(--weight-extra-bold);
    letter-spacing: -0.5px;
}

h2 {
    font-size: var(--headline-large);
    letter-spacing: -0.25px;
}

h3 {
    font-size: var(--headline-medium);
}

h4 {
    font-size: var(--headline-small);
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

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

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__title {
    font-size: var(--headline-large);
    font-weight: var(--weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.section__description {
    font-size: var(--body-large);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    min-height: 56px;
    font-size: var(--button-text);
    font-weight: var(--weight-bold);
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: var(--gradient-hero);
    color: var(--primary-white);
    box-shadow: var(--shadow-lg);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn--secondary:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: var(--z-fixed);
    transition: var(--transition-normal);
}

.nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.nav__title {
    font-size: var(--title-large);
    font-weight: var(--weight-bold);
    color: var(--gray-900);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__list {
    display: flex;
    gap: var(--space-xl);
}

.nav__link {
    font-size: var(--body-medium);
    font-weight: var(--weight-medium);
    color: var(--gray-700);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-red);
}

.nav__link.active-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-red);
    border-radius: var(--radius-full);
}

.nav__toggle,
.nav__close {
    display: none;
    width: 24px;
    height: 24px;
    color: var(--gray-700);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    padding-top: calc(70px + var(--space-4xl));
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
}

.hero__content {
    animation: fadeInUp 1s ease-out;
}

.hero__title {
    font-size: var(--display-large);
    font-weight: var(--weight-extra-bold);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.hero__title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--body-large);
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: var(--headline-medium);
    font-weight: var(--weight-black);
    color: var(--primary-red);
    line-height: 1;
}

.hero__stat-text {
    font-size: var(--body-small);
    color: var(--gray-500);
    font-weight: var(--weight-medium);
}

.hero__image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero__phone {
    position: relative;
    max-width: 300px;
    filter: drop-shadow(var(--shadow-xl));
}

.hero__phone-img {
    width: 100%;
    border-radius: var(--radius-2xl);
}

/* ===== FEATURES ===== */
.features__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature__card {
    background: var(--primary-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-100);
}

.feature__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-md);
    background: var(--gradient-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature__icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.feature__title {
    font-size: var(--title-large);
    font-weight: var(--weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.feature__description {
    font-size: var(--body-medium);
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    background: var(--primary-white);
}

.screenshots__container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.screenshots__slider {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.3s ease-out;
    padding: var(--space-md) 0;
    width: calc(9 * (250px + var(--space-lg)));
}

.screenshots__slider::-webkit-scrollbar {
    display: none;
}

.screenshot__item {
    flex: 0 0 250px;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot__img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.screenshot__img:hover {
    transform: scale(1.05);
}

.screenshot__title {
    font-size: var(--title-medium);
    font-weight: var(--weight-medium);
    color: var(--gray-700);
}

.screenshots__controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.screenshot__btn {
    width: 48px;
    height: 48px;
    background: var(--primary-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.screenshot__btn:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.screenshot__btn svg {
    width: 20px;
    height: 20px;
}

/* ===== DOWNLOAD ===== */
.download {
    background: var(--gradient-primary);
    color: var(--primary-white);
}

.download__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
}

.download__title {
    font-size: var(--headline-large);
    font-weight: var(--weight-bold);
    color: var(--primary-white);
    margin-bottom: var(--space-lg);
}

.download__description {
    font-size: var(--body-large);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.download__buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.download__btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--primary-white);
    color: var(--gray-900);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    min-width: 180px;
}

.download__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.download__btn-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.download__btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download__btn-subtitle {
    font-size: var(--body-small);
    color: var(--gray-600);
    line-height: 1;
}

.download__btn-title {
    font-size: var(--title-medium);
    font-weight: var(--weight-bold);
    color: var(--gray-900);
    line-height: 1;
}

.download__features {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.download__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--body-medium);
}

.download__feature-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-green-light);
}

.download__image {
    display: flex;
    justify-content: center;
    position: relative;
}

.download__phones {
    position: relative;
    width: 300px;
    height: 400px;
}

.download__phone {
    position: absolute;
    width: 200px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.download__phone--1 {
    top: 0;
    left: 0;
    z-index: 2;
}

.download__phone--2 {
    top: 50px;
    right: 0;
    z-index: 1;
    opacity: 0.8;
}

.download__phones:hover .download__phone--1 {
    transform: rotate(-5deg) translateX(-10px);
}

.download__phones:hover .download__phone--2 {
    transform: rotate(5deg) translateX(10px);
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3xl);
    margin-bottom: var(--space-xl);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer__brand {
    grid-column: span 2;
}

.footer__logo {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.footer__title {
    font-size: var(--title-large);
    font-weight: var(--weight-bold);
    color: var(--primary-white);
    margin-bottom: var(--space-sm);
}

.footer__description {
    color: var(--gray-400);
    max-width: 300px;
}

.footer__group-title {
    font-size: var(--title-medium);
    font-weight: var(--weight-bold);
    color: var(--primary-white);
    margin-bottom: var(--space-md);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: var(--gray-400);
    font-size: var(--body-medium);
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-red);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

.footer__social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer__bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer__copy {
    color: var(--gray-500);
    font-size: var(--body-small);
    margin: 0;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    right: var(--space-lg);
    bottom: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--primary-red);
    color: var(--primary-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-fixed);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-red-dark);
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.5s ease-out forwards;
}

.animate-slide-in-bottom {
    animation: slideInFromBottom 0.7s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

/* Stagger Animation Delays */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Hover Animations */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .features__container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .screenshots__slider {
        padding: var(--space-lg) var(--space-md);
    }
}

@media screen and (max-width: 1024px) {
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
    
    .hero__container,
    .download__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero__image {
        order: -1;
    }
    
    .hero__phone {
        max-width: 250px;
    }
    
    .features__container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .footer__brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
    .download__phones {
        width: 280px;
        height: 380px;
    }
    
    .download__phone {
        width: 180px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .hero__title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .hero__phone {
        max-width: 200px;
    }
    
    .features__container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .feature__card {
        text-align: center;
        padding: var(--space-xl);
    }
    
    .screenshots__slider {
        padding: var(--space-md);
    }
    
    .screenshots__slide img {
        max-width: 200px;
    }
    
    .download__phones {
        width: 240px;
        height: 320px;
    }
    
    .download__phone {
        width: 150px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer__brand {
        grid-column: span 1;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --display-large: 2.5rem;
        --display-medium: 2rem;
        --headline-large: 1.75rem;
        --headline-medium: 1.5rem;
        --title-large: 1.25rem;
        --title-medium: 1.125rem;
        --body-large: 1rem;
        --body-medium: 0.875rem;
        --label-large: 0.875rem;
        --label-medium: 0.75rem;
    }
    
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--space-2xl) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease-out;
        z-index: var(--z-modal);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: left;
    }
    
    .nav__link {
        font-size: var(--title-medium);
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav__link:last-child {
        border-bottom: none;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: var(--space-lg);
        right: var(--space-lg);
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__title {
        font-size: var(--display-medium);
        margin-bottom: var(--space-md);
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        align-items: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .hero__phone {
        max-width: 160px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-lg);
    }
    
    .features__container {
        grid-template-columns: 1fr;
    }
    
    .feature__card {
        padding: var(--space-lg);
    }
    
    .feature__icon {
        width: 48px;
        height: 48px;
    }
    
    .feature__title {
        font-size: var(--title-medium);
    }
    
    .screenshots__slider {
        padding: var(--space-sm);
    }
    
    .screenshots__controls {
        gap: var(--space-sm);
    }
    
    .screenshot__btn {
        width: 40px;
        height: 40px;
    }
    
    .download__title {
        font-size: var(--headline-medium);
    }
    
    .download__buttons {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        align-items: center;
    }
    
    .download__btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }
    
    .download__phones {
        width: 200px;
        height: 280px;
    }
    
    .download__phone {
        width: 120px;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__brand {
        grid-column: span 1;
        margin-bottom: var(--space-lg);
    }
    
    .footer__social {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .hero {
        padding-top: calc(70px + var(--space-3xl));
    }
    
    .hero__title {
        font-size: var(--display-medium);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .feature__card {
        padding: var(--space-lg);
    }
    
    .screenshot__item {
        flex: 0 0 200px;
    }
    
    .screenshot__img {
        max-width: 160px;
    }
    
    .download__btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: var(--space-xl) 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr 300px;
        align-items: center;
        gap: var(--space-xl);
    }
    
    .hero__content {
        text-align: left;
    }
    
    .hero__title {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: var(--space-md);
        width: auto;
    }
    
    .btn {
        width: auto;
        padding: var(--space-sm) var(--space-lg);
    }
    
    .hero__phone {
        max-width: 200px;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
}

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

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature__card {
        border: 2px solid var(--gray-300);
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* ===== FOCUS STYLES ===== */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn:focus {
    outline-color: var(--primary-white);
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav__toggle,
    .nav__close,
    .scroll-top,
    .screenshots__controls {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
}