:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --border-color: #E5E5EA;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Mobile First */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

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

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

.nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    border-top: 1px solid var(--border-color);
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-menu a:hover {
    background: var(--bg-secondary);
}

.nav-cta {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hero Section - Mobile First */
.hero {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 40px;
}

.app-store-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.app-store-button img {
    height: 50px;
    width: auto;
}

.availability {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-image {
    margin-top: 40px;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
}

/* Features Section - Mobile First */
.features {
    padding: 60px 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Screenshots Section - Mobile First */
.screenshots {
    padding: 60px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.screenshots-wrapper {
    position: relative;
}

.screenshots-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshot {
    scroll-snap-align: center;
    text-align: center;
    flex-shrink: 0;
}

.screenshot-iphone {
    flex: 0 0 220px;
}

.screenshot-ipad {
    flex: 0 0 340px;
}

/* Device Frame Base */
.device-frame {
    position: relative;
    background: #1C1C1E;
    border-radius: 20px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-frame:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 15px 25px rgba(0, 0, 0, 0.2);
}

.device-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: white;
}

/* iPhone Frame */
.iphone-frame {
    border-radius: 28px;
    padding: 8px;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #1C1C1E;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.iphone-frame::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2C2C2E;
    border-radius: 2px;
    z-index: 11;
}

/* iPad Frame */
.ipad-frame {
    border-radius: 16px;
    padding: 10px;
}

.ipad-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 14px;
    pointer-events: none;
}

.screenshot-caption {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 12px;
}

.screenshots-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.screenshot-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Benefits Section - Mobile First */
.benefits {
    padding: 60px 0;
    background: var(--bg-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--success-color), #30D158);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.benefit-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.benefit-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Section - Mobile First */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Footer - Mobile First */
.footer {
    padding: 40px 0 20px;
    background: var(--text-primary);
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .logo-text {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .nav-wrapper {
        height: 70px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        border: none;
        align-items: center;
        gap: 30px;
    }
    
    .nav-menu li {
        border: none;
    }
    
    .nav-menu a {
        padding: 8px 16px;
        border-radius: 8px;
    }

    .language-switcher {
        padding: 0;
        margin-left: 10px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-image img {
        max-width: 650px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .screenshots-container {
        gap: 40px;
        padding: 30px 20px;
    }

    .screenshot-iphone {
        flex: 0 0 280px;
    }

    .screenshot-ipad {
        flex: 0 0 450px;
    }

    .device-frame {
        padding: 14px;
    }

    .iphone-frame {
        padding: 10px;
    }

    .ipad-frame {
        padding: 12px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-image img {
        max-width: 800px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .screenshots-container {
        justify-content: center;
        gap: 50px;
        padding: 40px 20px;
    }

    .screenshot-iphone {
        flex: 0 0 320px;
    }

    .screenshot-ipad {
        flex: 0 0 520px;
    }

    .device-frame {
        padding: 16px;
    }

    .iphone-frame {
        padding: 12px;
    }

    .iphone-frame::before {
        width: 90px;
        height: 20px;
    }

    .iphone-frame::after {
        width: 70px;
        height: 5px;
    }

    .ipad-frame {
        padding: 14px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.hero-image img {
    animation: float 6s ease-in-out infinite;
}