/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6366f1;
    --background-color: #f8fafc;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
}

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

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    font-size: 14px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
    min-height: 36px;
}

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

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.language-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    z-index: 1001;
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
}

.mobile-nav-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-language-selector {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.mobile-language-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-language-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-align: center;
}

.mobile-language-option:hover {
    background: var(--background-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-language-option.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--background-gradient);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
    min-height: 48px;
    justify-content: center;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn img {
    width: 20px;
    height: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 45%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    cursor: pointer;
}

.hero-image img:nth-child(2) {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* About Section */
.about {
    padding: 60px 0;
    background: var(--white);
}

.about h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--background-color);
}

.features h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

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

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* Screenshots Section */
.screenshots {
    padding: 60px 0;
    background: var(--white);
}

.screenshots h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    margin-bottom: 12px;
    cursor: pointer;
}

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

.screenshot-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--transition);
}

.image-modal-close:hover {
    background: var(--background-color);
}

/* Download Section */
.download {
    padding: 60px 0;
    background: var(--background-color);
    text-align: center;
}

.download h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button {
    display: block;
    transition: var(--transition);
}

.store-button img {
    height: 60px;
    width: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

.store-button:hover img {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* App Store Disabled State */
.app-store-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Page Content */
.page-content-container {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
    background: var(--white);
}

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

.page-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content em {
    color: var(--text-light);
    font-style: italic;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    padding: 24px 0;
    background: var(--background-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.download-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-link img {
    height: 36px;
    width: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        padding: 8px 0;
        min-height: 56px;
    }
    
    .logo {
        font-size: 16px;
        gap: 8px;
    }
    
    .logo img {
        height: 28px;
    }
    
    /* Hide desktop navigation on mobile */
    .nav {
        display: none;
    }
    
    /* Show mobile navigation toggle */
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .download-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .btn img {
        width: 18px;
        height: 18px;
    }
    
    .hero-image {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-image img {
        width: 70%;
        max-width: 200px;
    }
    
    .about, .features, .screenshots, .download {
        padding: 40px 0;
    }
    
    .about h2, .features h2, .screenshots h2, .download h2 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
    
    .about p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .screenshot-item img {
        max-width: 160px;
    }
    
    .store-buttons {
        gap: 16px;
    }
    
    .store-button img {
        height: 50px;
    }
    
    .page-content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .page-content h2 {
        font-size: 1.3rem;
        margin: 24px 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .download-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 32px 0 48px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 14px;
        font-size: 13px;
        min-height: 42px;
    }
    
    .hero-image img {
        width: 85%;
        max-width: 180px;
    }
    
    .about, .features, .screenshots, .download {
        padding: 32px 0;
    }
    
    .about h2, .features h2, .screenshots h2, .download h2 {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .screenshot-item img {
        max-width: 140px;
    }
    
    .store-button img {
        height: 44px;
    }
    
    .page-content {
        padding: 0 12px;
    }
    
    .page-content h1 {
        font-size: 1.6rem;
    }
    
    .page-content h2 {
        font-size: 1.2rem;
    }
    
    .page-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .about h2, .features h2, .screenshots h2, .download h2 {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 16px 12px;
    }
    
    .screenshot-item img {
        max-width: 120px;
    }
}

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.language-btn:focus,
.language-option:focus,
.store-button:focus,
.mobile-nav-toggle:focus,
.mobile-nav-link:focus,
.mobile-language-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .feature-card:hover,
    .screenshot-item:hover img,
    .store-button:hover img {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .feature-card:active {
        transform: translateY(-4px);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .download-buttons,
    .download,
    .screenshots {
        display: none;
    }
    
    .page-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}