/* Font Face Declarations */
@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('fonts/BaiJamjuree-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Premium Blue Gradient Palette - Billion Dollar Aesthetic */
    --primary-blue: #0066FF;
    --secondary-blue: #4A90E2;
    --light-blue: #7BB3F0;
    --pale-blue: #B8D4F5;
    --turquoise: #00D4FF;
    --deep-blue: #003D7A;
    --ocean-blue: #0088CC;
    --sky-blue: #87CEEB;
    --accent-blue: #5B9BD5;
    --gradient-start: #0066FF;
    --gradient-mid: #4A90E2;
    --gradient-end: #00D4FF;
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --cream: #F8F9FA;
    --light-gray: #F1F3F5;
    --text-dark: #0A2540;
    --text-medium: #425466;
    --text-light: #8898AA;
    
    /* Premium Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 102, 255, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 102, 255, 0.24);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
    
    /* Typography */
    --font-heading: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing - Premium Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-2xl: 8rem;
    
    /* Border Radius - Modern & Soft */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--off-white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
    direction: rtl;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Language Switcher - Premium Glassmorphism */
.language-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.language-switcher:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

body[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

/* Language Switcher Styles */
.lang-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
}

body[dir="rtl"] .lang-label {
    margin-right: 0;
    margin-left: auto;
}

/* Navigation - Clean Modern Design */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 102, 255, 0.08);
    padding: 0.25rem;
    border-radius: 10px;
}

.nav-lang-switcher .lang-btn {
    padding: 0.5rem 0.875rem;
    border: none;
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.nav-lang-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-blue);
}

.nav-lang-switcher .lang-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.nav-lang-item {
    display: none;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.nav-lang-switcher-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem;
    width: 100%;
}

.nav-lang-switcher-mobile .lang-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
}

.nav-lang-switcher-mobile .lang-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-lang-switcher-mobile .lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: rgba(0, 102, 255, 0.1);
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-lang-switcher-mobile .lang-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
}

/* Hero Section - Premium with Copacabana/Ipanema Patterns */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background: linear-gradient(135deg, #0066FF 0%, #4A90E2 30%, #00D4FF 70%, #7BB3F0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Copacabana Wave Pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        /* Ipanema Wave Pattern */
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        /* Radial Gradients for Depth */
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(123, 179, 240, 0.1) 0%, transparent 70%);
    opacity: 1;
    animation: patternShift 20s ease-in-out infinite;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Copacabana Wave Pattern - Horizontal Waves */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.04) 60px,
            rgba(255, 255, 255, 0.04) 62px
        ),
        /* Ipanema Wave Pattern - Diagonal Waves */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 42px
        ),
        /* Additional Wave Layers */
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 82px
        );
    opacity: 0.9;
    animation: waveMove 20s linear infinite;
    z-index: 1;
}

@keyframes patternShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.95));
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}


.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 48px;
    padding: 24px;
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: floatPhone 6s ease-in-out infinite;
}

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

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: rgba(10, 37, 64, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--off-white);
    border-radius: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.phone-screen-content {
    width: 100%;
    flex: 1;
    padding: 20px;
    padding-bottom: 80px; /* Space for bottom nav */
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    position: relative;
}

.phone-screen-content::-webkit-scrollbar {
    width: 4px;
}

.phone-screen-content::-webkit-scrollbar-track {
    background: transparent;
}

.phone-screen-content::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.2);
    border-radius: 2px;
}

/* Phone Screen States */
.phone-screen.scan-mode {
    background: linear-gradient(135deg, #0066FF 0%, #4A90E2 50%, #00D4FF 100%);
}

.phone-screen.loading-mode {
    background: linear-gradient(135deg, #0066FF 0%, #4A90E2 50%, #00D4FF 100%);
}

.phone-screen.products-mode {
    background: var(--off-white);
}

/* Scan Preview */
.scan-preview {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(0, 102, 255, 0.1);
}

.scan-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.1) 0%, transparent 50%, rgba(0, 212, 255, 0.1) 100%);
    pointer-events: none;
}

/* Scan Button with Ripple and Pulse Effects */
.scan-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--turquoise));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    animation: pulseButton 2s ease-in-out infinite;
}

.scan-icon {
    font-size: 1.25rem;
    animation: iconPulse 1.5s ease-in-out infinite;
}

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

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3), 0 0 0 0 rgba(0, 102, 255, 0.7);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3), 0 0 0 10px rgba(0, 102, 255, 0);
    }
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4), 0 0 0 0 rgba(0, 102, 255, 0.7);
    animation: none;
}

.scan-button:active {
    transform: translateY(0);
}

/* Ripple Effect */
.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.scan-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    pointer-events: none;
}

.scan-button:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Loading State */
.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--white);
    height: 100%;
}

.phone-screen.loading-mode .loading-container {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .loading-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loading-text {
        font-size: 0.9375rem;
    }
}

/* Products List */
.products-list {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-bottom: 80px; /* Space for bottom nav */
}

.phone-screen.products-mode .products-list {
    display: flex;
}

.phone-screen.products-mode .scan-button,
.phone-screen.products-mode .shop-button {
    display: none;
}

.phone-screen.shop-mode .phone-screen-content {
    display: none;
}

.phone-screen.shop-mode .products-list,
.phone-screen.shop-mode .loading-container,
.phone-screen.shop-mode .scan-button,
.phone-screen.shop-mode .shop-button {
    display: none;
}

/* Shop Button */
.shop-button {
    width: 100%;
    padding: 14px;
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.shop-button:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.shop-icon {
    font-size: 1.125rem;
}

/* Shop Screen */
.shop-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--off-white);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.phone-screen.shop-mode .shop-screen {
    display: flex;
}

.shop-header {
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.shop-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.05);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.search-icon {
    font-size: 1rem;
    opacity: 0.6;
}

.shop-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-dark);
    outline: none;
}

.shop-search-input::placeholder {
    color: var(--text-medium);
    opacity: 0.6;
}

.shop-header-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.shop-icon-header {
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.shop-icon-header:active {
    transform: scale(0.9);
}

.shop-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.shop-sidebar {
    width: 120px;
    background: var(--white);
    border-right: 1px solid rgba(0, 102, 255, 0.1);
    padding: 12px 8px;
    overflow-y: auto;
    flex-shrink: 0;
}

.shop-sidebar::-webkit-scrollbar {
    width: 3px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.2);
    border-radius: 2px;
}

.shop-category {
    padding: 10px 8px;
    font-size: 0.75rem;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.shop-category:hover {
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary-blue);
}

.shop-category.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
    font-weight: 600;
}

.shop-products-grid {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
}

.shop-products-grid::-webkit-scrollbar {
    width: 4px;
}

.shop-products-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.2);
    border-radius: 2px;
}

.shop-product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-product-card:active {
    transform: scale(0.98);
}

.shop-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.shop-product-brand {
    font-size: 0.7rem;
    color: var(--text-medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-product-name {
    font-size: 0.8125rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.shop-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.shop-product-tag {
    font-size: 0.65rem;
    padding: 3px 6px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 4px;
    font-weight: 500;
}

.shop-product-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: auto;
    padding-top: 4px;
}

/* Phone Bottom Navigation (Main Screen) */
.phone-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
    border-radius: 0 0 36px 36px;
}

.phone-bottom-nav .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    opacity: 0.5;
    min-width: 50px;
}

.phone-bottom-nav .bottom-nav-item.active {
    opacity: 1;
    background: rgba(0, 102, 255, 0.1);
}

.phone-bottom-nav .bottom-nav-item .nav-icon {
    font-size: 1.25rem;
}

.phone-bottom-nav .bottom-nav-item .nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-medium);
}

.phone-bottom-nav .bottom-nav-item.scan-nav-btn {
    width: 48px;
    height: 48px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 48px;
    padding: 0;
}

.phone-bottom-nav .bottom-nav-item.scan-nav-btn .nav-label {
    display: none;
}

.phone-bottom-nav .bottom-nav-item:active {
    transform: scale(0.9);
}

/* Hide bottom nav during loading */
.phone-screen.loading-mode .phone-bottom-nav {
    opacity: 0;
    pointer-events: none;
}

.shop-bottom-nav {
    background: var(--white);
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.bottom-nav-item {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.bottom-nav-item.active {
    opacity: 1;
    background: rgba(0, 102, 255, 0.1);
}

.bottom-nav-item.scan-nav-btn {
    width: 48px;
    height: 48px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

.phone-screen.products-mode .loading-container {
    display: none;
}

.product-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 102, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.2);
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-blue), var(--turquoise));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.4;
}

.product-arrow {
    color: var(--primary-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Initial Screen Content */
.phone-screen:not(.scan-mode):not(.loading-mode):not(.products-mode) .phone-screen-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.phone-screen:not(.scan-mode):not(.loading-mode):not(.products-mode) .scan-preview {
    display: block;
}

.phone-screen:not(.scan-mode):not(.loading-mode):not(.products-mode) .scan-button {
    display: flex;
}

.phone-screen.scan-mode .scan-preview,
.phone-screen.loading-mode .scan-preview,
.phone-screen.products-mode .scan-preview {
    display: none;
}

/* Phone Screen Header (like in the image) */
.phone-screen-header {
    display: none;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.phone-screen.products-mode .phone-screen-header {
    display: block;
}

    .phone-screen-header-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
    }

    @media (max-width: 768px) {
        .phone-screen-header {
            padding: 12px 16px 10px;
        }

        .phone-screen-header-title {
            font-size: 1rem;
        }
    }

    @media (max-width: 480px) {
        .phone-screen-header {
            padding: 10px 12px 8px;
        }

        .phone-screen-header-title {
            font-size: 0.9375rem;
        }
    }

/* Products List Header */
.products-list-header {
    padding: 16px 20px 8px;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.products-list-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.phone-screen.products-mode .phone-screen-content {
    padding: 0;
    gap: 0;
}

.phone-screen.products-mode .products-list {
    padding: 12px 20px 20px;
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-medium);
    font-weight: 400;
    line-height: 1.6;
}

/* Features Section */
.features {
    background: var(--off-white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--turquoise));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 102, 255, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 102, 255, 0.2));
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 212, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(0, 102, 255, 0.02) 50px, rgba(0, 102, 255, 0.02) 52px);
    pointer-events: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--turquoise));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.step-number::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.step-number::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px solid var(--turquoise);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 2s infinite 0.5s;
}

.step-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.step-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Skincare Benefits Section */
.skincare-benefits {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(0, 212, 255, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.skincare-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(0, 102, 255, 0.01) 100px, rgba(0, 102, 255, 0.01) 102px);
    pointer-events: none;
}

.skincare-benefits-content {
    position: relative;
    z-index: 1;
}

.skincare-benefit-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.benefit-main-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 102, 255, 0.2));
}

.skincare-benefit-main h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.skincare-benefit-main p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.skincare-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.skincare-benefit-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.skincare-benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.benefit-item-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.skincare-benefit-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.skincare-benefit-item p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq {
    background: var(--off-white);
    position: relative;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

/* Benefits Section */
.benefits {
    background: var(--white);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.benefits::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(0, 102, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.benefit-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--turquoise));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 102, 255, 0.2);
    background: var(--white);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 102, 255, 0.2));
    transition: transform var(--transition-base);
    display: inline-block;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(5deg);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #0066FF 0%, #4A90E2 50%, #00D4FF 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255, 255, 255, 0.03) 100px, rgba(255, 255, 255, 0.03) 102px),
        repeating-linear-gradient(-45deg, transparent, transparent 100px, rgba(255, 255, 255, 0.02) 100px, rgba(255, 255, 255, 0.02) 102px);
    opacity: 0.8;
    animation: waveMove 20s linear infinite;
}

.testimonials .section-title,
.testimonials .section-subtitle {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--white);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--turquoise));
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-author p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(0, 212, 255, 0.03) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 80px, rgba(0, 102, 255, 0.02) 80px, rgba(0, 102, 255, 0.02) 82px);
    pointer-events: none;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 1.5rem;
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 102, 255, 0.1);
    font-weight: 500;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--white), rgba(0, 102, 255, 0.02));
    border-color: rgba(0, 102, 255, 0.2);
}

.download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: currentColor;
}

.download-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.download-platform {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0A2540 0%, #1a3a5a 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--white);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link.facebook:hover {
    background: #1877F2;
    color: var(--white);
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: var(--white);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

#easterEggText {
    transition: transform 0.3s ease;
    display: inline-block;
}

#easterEggText:hover {
    transform: scale(1.05);
}

/* 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 pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* Confetti Effect */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    top: -10px;
    animation: confettiFall linear forwards;
}

.confetti:nth-child(1) { background: #0066FF; left: 10%; animation-duration: 3s; animation-delay: 0s; }
.confetti:nth-child(2) { background: #4A90E2; left: 20%; animation-duration: 3.5s; animation-delay: 0.2s; }
.confetti:nth-child(3) { background: #00D4FF; left: 30%; animation-duration: 2.8s; animation-delay: 0.1s; }
.confetti:nth-child(4) { background: #7BB3F0; left: 40%; animation-duration: 3.2s; animation-delay: 0.3s; }
.confetti:nth-child(5) { background: #0066FF; left: 50%; animation-duration: 3.7s; animation-delay: 0s; }
.confetti:nth-child(6) { background: #4A90E2; left: 60%; animation-duration: 2.9s; animation-delay: 0.2s; }
.confetti:nth-child(7) { background: #00D4FF; left: 70%; animation-duration: 3.4s; animation-delay: 0.1s; }
.confetti:nth-child(8) { background: #7BB3F0; left: 80%; animation-duration: 3.1s; animation-delay: 0.3s; }
.confetti:nth-child(9) { background: #0066FF; left: 90%; animation-duration: 3.6s; animation-delay: 0s; }
.confetti:nth-child(10) { background: #4A90E2; left: 15%; animation-duration: 2.7s; animation-delay: 0.2s; }
.confetti:nth-child(11) { background: #00D4FF; left: 25%; animation-duration: 3.3s; animation-delay: 0.1s; }
.confetti:nth-child(12) { background: #7BB3F0; left: 35%; animation-duration: 3.8s; animation-delay: 0.3s; }
.confetti:nth-child(13) { background: #0066FF; left: 45%; animation-duration: 2.6s; animation-delay: 0s; }
.confetti:nth-child(14) { background: #4A90E2; left: 55%; animation-duration: 3.5s; animation-delay: 0.2s; }
.confetti:nth-child(15) { background: #00D4FF; left: 65%; animation-duration: 3.1s; animation-delay: 0.1s; }
.confetti:nth-child(16) { background: #7BB3F0; left: 75%; animation-duration: 2.9s; animation-delay: 0.3s; }
.confetti:nth-child(17) { background: #0066FF; left: 85%; animation-duration: 3.4s; animation-delay: 0s; }
.confetti:nth-child(18) { background: #4A90E2; left: 95%; animation-duration: 3.2s; animation-delay: 0.2s; }
.confetti:nth-child(19) { background: #00D4FF; left: 5%; animation-duration: 2.8s; animation-delay: 0.1s; }
.confetti:nth-child(20) { background: #7BB3F0; left: 12%; animation-duration: 3.6s; animation-delay: 0.3s; }

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
    }

    .nav-container {
        padding: 0.75rem 1.25rem;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: 75px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        width: calc(100% - 48px);
        max-width: 500px;
        padding: 1rem 0;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.8);
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.875rem 1.5rem;
        border-radius: 0;
        text-align: left;
    }

    .nav-lang-switcher {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-lang-item {
        display: block;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--spacing-lg);
        position: relative;
    }

    .hero::before {
        opacity: 0.6;
    }

    .hero-pattern {
        opacity: 0.5;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
        margin: 0 auto;
    }

    .hero-content {
        order: 1;
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-image {
        order: 2;
        margin: var(--spacing-md) auto 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: var(--spacing-sm);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
        margin-bottom: var(--spacing-xs);
        line-height: 1.6;
    }

    .hero-tagline {
        font-size: clamp(0.875rem, 3vw, 1rem);
        margin-bottom: var(--spacing-md);
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        margin-bottom: 0;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 0.9375rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
        margin: 0 auto;
        max-width: 90%;
    }

    .phone-mockup::before {
        width: 60px;
        height: 18px;
        top: 18px;
    }

    .phone-screen {
        border-radius: 28px;
    }

    .phone-screen-content {
        padding: 16px;
        gap: 12px;
    }

    .scan-preview {
        height: 220px;
        margin-bottom: 12px;
    }

    .scan-button {
        padding: 14px;
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: var(--spacing-sm);
    }

    .section-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-xs);
    }

    .features-grid,
    .benefits-grid,
    .skincare-benefits-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2.25rem;
    }

    .step-number::after {
        width: 100px;
        height: 100px;
    }

    .step-number::before {
        width: 120px;
        height: 120px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .download-btn {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.25rem;
    }

    /* Hide floating language switcher on mobile */
    .language-switcher {
        display: none;
    }

    /* Hide desktop language switcher in nav */
    .language-switcher-desktop {
        display: none;
    }

    /* Show language switcher in mobile menu */

    section {
        padding: var(--spacing-xl) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .products-list {
        padding: 10px 16px 16px;
    }

    .product-item {
        padding: 10px;
        gap: 10px;
    }

    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .product-name {
        font-size: 0.875rem;
    }

    .product-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .hero .container {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .hero-content {
        padding: 0 var(--spacing-xs);
    }

    .hero-image {
        margin: var(--spacing-sm) auto 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
        padding-bottom: var(--spacing-md);
    }

    .hero .container {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .hero-content {
        padding: 0;
        margin-bottom: var(--spacing-xs);
    }

    .hero-image {
        margin: var(--spacing-sm) auto 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 4vw, 1rem);
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-top: var(--spacing-xs);
    }
}

@media (max-width: 375px) {
    .hero {
        padding-top: 85px;
        padding-bottom: var(--spacing-sm);
    }

    .hero .container {
        padding: 0 var(--spacing-xs);
        gap: var(--spacing-sm);
    }

    .hero-content {
        padding: 0;
    }

    .hero-image {
        margin: var(--spacing-xs) auto 0;
    }

    .hero-title {
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        margin-bottom: 0.375rem;
    }

    .hero-tagline {
        margin-bottom: var(--spacing-xs);
    }

    .hero-buttons {
        gap: 0.625rem;
        margin-top: 0;
    }
}

    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 18px;
    }

    .phone-mockup::before {
        width: 50px;
        height: 16px;
        top: 16px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .phone-screen-content {
        padding: 12px;
        gap: 10px;
    }

    .scan-preview {
        height: 180px;
        margin-bottom: 10px;
    }

    .scan-button {
        padding: 12px;
        font-size: 0.875rem;
    }

    .feature-card,
    .product-card,
    .testimonial-card {
        padding: var(--spacing-md);
    }

    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.375rem;
    }

    /* Hide floating language switcher on mobile */
    .language-switcher {
        display: none;
    }

    /* Show language switcher in mobile menu */

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .section-subtitle {
        font-size: clamp(0.875rem, 3vw, 1rem);
    }

    .shop-sidebar {
        width: 100px;
        padding: 8px 4px;
    }

    .shop-category {
        font-size: 0.7rem;
        padding: 8px 4px;
    }

    .shop-products-grid {
        padding: 8px;
        gap: 8px;
    }

    .shop-product-card {
        padding: 10px;
    }

    .shop-product-image {
        font-size: 2rem;
    }

    .shop-product-name {
        font-size: 0.75rem;
    }

    .shop-product-price {
        font-size: 0.875rem;
    }

    .shop-header {
        padding: 10px 12px;
    }

    .shop-search-input {
        font-size: 0.8125rem;
    }
}

/* Arabic Font Support */
body[dir="rtl"] {
    font-family: 'Bai Jamjuree', 'Cairo', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

