/* Modern Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Prayer Times App Theme Colors - Refined */
    --primary-gold: #C17F2E;
    --primary-gold-light: #EBB268;
    --primary-gold-dark: #8F5B1E;
    --primary-gold-glow: rgba(193, 127, 46, 0.15);
    --gold-gradient: linear-gradient(135deg, #C17F2E 0%, #EBB268 100%);
    
    /* Accent Colors */
    --accent-purple: #8B5CF6;
    --accent-indigo: #6366F1;
    --accent-sky: #38BDF8;
    --accent-green: #10B981;
    --accent-pink: #EC4899;
    
    /* Neutral Palette - Richer */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --white: #FFFFFF;
    --black: #000000;

    /* Semantic Colors (Light Mode) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-hero: #FFFBF5;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --border-light: rgba(255, 255, 255, 0.5);
    --card-bg: #FFFFFF;
    --navbar-bg: rgba(255, 255, 255, 0.7);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
    --overlay-bg: rgba(0, 0, 0, 0.6);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 40px -10px rgba(193, 127, 46, 0.3);

    /* Transitions */
    --transition-base: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-gold-glow: rgba(193, 127, 46, 0.2);
        
        --gray-50: #1C1917;
        --gray-100: #292524;
        --gray-200: #44403C;
        --gray-300: #57534E;
        --gray-400: #78716C;
        --gray-500: #A8A29E;
        --gray-600: #D6D3D1;
        --gray-700: #E7E5E4;
        --gray-800: #F5F5F4;
        --gray-900: #FAFAF9;

        --bg-primary: #0C0A09;
        --bg-secondary: #1C1917;
        --bg-tertiary: #292524;
        --bg-hero: #0C0A09;
        --text-primary: #FAFAF9;
        --text-secondary: #D6D3D1;
        --text-muted: #A8A29E;
        --border-color: #292524;
        --border-light: rgba(255, 255, 255, 0.1);
        --card-bg: #1C1917;
        --navbar-bg: rgba(12, 10, 9, 0.8);
        --navbar-bg-scrolled: rgba(12, 10, 9, 0.95);
        --overlay-bg: rgba(0, 0, 0, 0.8);

        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    }
}

/* Manual Dark Mode Override */
:root[data-theme="dark"] {
    --primary-gold-glow: rgba(193, 127, 46, 0.2);
    
    --gray-50: #1C1917;
    --gray-100: #292524;
    --gray-200: #44403C;
    --gray-300: #57534E;
    --gray-400: #78716C;
    --gray-500: #A8A29E;
    --gray-600: #D6D3D1;
    --gray-700: #E7E5E4;
    --gray-800: #F5F5F4;
    --gray-900: #FAFAF9;

    --bg-primary: #0C0A09;
    --bg-secondary: #1C1917;
    --bg-tertiary: #292524;
    --bg-hero: #0C0A09;
    --text-primary: #FAFAF9;
    --text-secondary: #D6D3D1;
    --text-muted: #A8A29E;
    --border-color: #292524;
    --border-light: rgba(255, 255, 255, 0.1);
    --card-bg: #1C1917;
    --navbar-bg: rgba(12, 10, 9, 0.8);
    --navbar-bg-scrolled: rgba(12, 10, 9, 0.95);
    --overlay-bg: rgba(0, 0, 0, 0.8);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    transition: var(--transition-base);
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.app-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    background: var(--bg-tertiary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-base);
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: var(--bg-hero);
    z-index: -2;
}

/* Aurora Background Effect */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite alternate;
}

.shape-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(193, 127, 46, 0.2) 0%, transparent 70%);
    top: -300px;
    right: -200px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(235, 178, 104, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -200px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 220, 180, 0.4) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(5deg); }
}

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

.hero-content {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 16px;
    background: var(--card-bg);
    border: 1px solid rgba(193, 127, 46, 0.2);
    box-shadow: 0 2px 10px rgba(193, 127, 46, 0.05);
    border-radius: var(--radius-full);
    color: var(--primary-gold-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 520px;
    font-weight: 450;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    margin-bottom: var(--space-2xl);
    align-items: center;
    gap: 0;
}

.store-badge {
    display: inline-flex;
    transition: transform var(--transition-bounce), filter var(--transition-base);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.store-badge:hover {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

.badge-img {
    height: 40px;
    width: auto;
}

.badge-img.google-play {
    height: 60px;
    width: 145px;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(193, 127, 46, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    animation: floatPhone 6s ease-in-out infinite;
    transform-origin: center center;
}

/* Light/Dark mode image switching */
.hero-image-light {
    display: block;
}

.hero-image-dark {
    display: none;
}

:root[data-theme="dark"] .hero-image-light {
    display: none;
}

:root[data-theme="dark"] .hero-image-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-image-light {
        display: none;
    }
    :root:not([data-theme="light"]) .hero-image-dark {
        display: block;
    }
}

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

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    color: var(--text-primary);
    animation: floatCard 8s ease-in-out infinite;
    z-index: 10;
}

.floating-card-1 {
    top: 20%;
    left: -5%;
}

.floating-card-2 {
    bottom: 25%;
    right: -5%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: var(--transition-bounce);
    background: var(--bg-tertiary);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-sky);
}

.feature-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.feature-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-gold);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-height: 600px;
        margin-top: var(--space-xl);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-card {
        display: none;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--primary-gold-glow);
    color: var(--primary-gold);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .moon-icon {
        display: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    /* Mobile Header */
    .nav-content {
        justify-content: space-between;
        height: 64px;
    }

    .logo {
        font-size: 1.125rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions {
        gap: var(--space-sm);
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Hide desktop nav, show mobile nav */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: -20px 0 50px rgba(0,0,0,0.15);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        padding: 24px 32px;
        font-size: 1.0625rem;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        transition: all var(--transition-base);
        font-weight: 600;
    }

    .nav-links a:first-child {
        margin-top: 80px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links a:hover {
        background: var(--bg-tertiary);
        color: var(--primary-gold);
        padding-left: 40px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--overlay-bg);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
        padding: 0 var(--space-md);
    }

    .hero-image {
        max-height: 500px;
    }

    /* Equalize button sizes */
    .hero-cta {
        gap: var(--space-md);
    }

    .store-badge {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .badge-img {
        height: 40px;
    }

    .badge-img.google-play {
        height: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-grid, .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

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

    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero-title {
        font-size: 2.75rem;
        font-weight: 800;
        line-height: 1;
        margin-bottom: var(--space-md);
        letter-spacing: -0.05em;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-bottom: var(--space-md);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-md);
    }

    .hero-cta a {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Consistent Button Sizing */
    .store-badge {
        width: 100%;
        justify-content: center;
        height: 60px;
        display: flex;
        align-items: center;
    }
    
    .badge-img {
        height: 42px;
    }
    
    .badge-img.google-play {
        height: 60px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: var(--space-xs);
        padding-top: var(--space-lg);
        width: 100%;
    }

    .stat {
        min-width: auto;
        flex: 1;
        align-items: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
        text-align: center;
        white-space: nowrap;
    }

    .hero-image {
        max-height: 450px;
        margin-top: var(--space-lg);
    }

    .section-title {
        font-size: 2rem;
    }
}
