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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

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

.title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
}

main {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 700;
}

.description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

.cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin-top: 60px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: white;
    opacity: 0.9;
}

footer p {
    margin: 10px 0;
}

.privacy-link {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.privacy-link:hover {
    opacity: 1;
}

.coming-soon {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
    }

    main {
        padding: 40px 20px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Dark Mode Styles */
body.dark-mode {
    background: #0a0e27;
}

body.dark-mode main {
    background: #1a1f3a;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Remove transitions for theme switching - instant change */
body,
body main,
body .hero-content h2,
body .description,
body .feature-card,
body .feature-card h3,
body .feature-card p,
body .cta,
body .btn-primary,
body .privacy-content h1,
body .privacy-content h2,
body .privacy-content h3,
body .privacy-content p,
body .privacy-content li,
body .privacy-content .effective-date,
body .privacy-content a,
body .privacy-content .back-link,
body .privacy-content strong,
body .terms-content h1,
body .terms-content h2,
body .terms-content h3,
body .terms-content p,
body .terms-content li,
body .terms-content .effective-date,
body .terms-content a,
body .terms-content .back-link,
body .terms-content strong,
body .back-link,
body .quote-section,
body .quote-section p {
    transition: none !important;
}

body.dark-mode .hero-content h2 {
    color: #a78bfa;
}

body.dark-mode .description {
    color: #cbd5e1;
}

body.dark-mode .feature-card {
    background: #0f172a;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

body.dark-mode .feature-card h3 {
    color: #a78bfa;
}

body.dark-mode .feature-card p {
    color: #94a3b8;
}

body.dark-mode .cta {
    background: linear-gradient(135deg, #6b21a8 0%, #1e40af 100%);
}

body.dark-mode .btn-primary {
    color: #0a0e27;
}

body.dark-mode .privacy-content h1,
body.dark-mode .privacy-content h2,
body.dark-mode .terms-content h1,
body.dark-mode .terms-content h2 {
    color: #a78bfa;
}

body.dark-mode .privacy-content h3,
body.dark-mode .terms-content h3 {
    color: #e2e8f0;
}

body.dark-mode .privacy-content p,
body.dark-mode .privacy-content li,
body.dark-mode .terms-content p,
body.dark-mode .terms-content li {
    color: #e2e8f0;
}

body.dark-mode .privacy-content .effective-date,
body.dark-mode .terms-content .effective-date {
    color: #cbd5e1;
}

body.dark-mode .privacy-content a,
body.dark-mode .privacy-content .back-link,
body.dark-mode .terms-content a,
body.dark-mode .terms-content .back-link {
    color: #a78bfa;
}

body.dark-mode .privacy-content a:hover,
body.dark-mode .terms-content a:hover {
    color: #c4b5fd;
}

body.dark-mode .privacy-content strong,
body.dark-mode .terms-content strong {
    color: #e2e8f0;
}

body.dark-mode .back-link {
    color: #a78bfa;
}

body.dark-mode .quote-section {
    background: #0f172a !important;
    border: 1px solid rgba(147, 51, 234, 0.2) !important;
}

body.dark-mode .quote-section p {
    color: #e2e8f0 !important;
}

/* Language selector - Floating Bubbles (shared across pages) */
.language-toggle {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.language-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.language-toggle:active {
    transform: scale(0.95);
}

.language-bubbles-container {
    position: fixed;
    bottom: 180px;
    right: 30px;
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 12px;
    justify-items: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    max-height: calc(100vh - 250px);
    overflow: hidden;
    padding: 10px;
    margin: 0;
}

.language-bubbles-container.open {
    pointer-events: all;
    overflow-y: auto;
}

.language-bubbles-container.animating {
    pointer-events: none;
    overflow: hidden !important;
}

.language-bubbles-container::-webkit-scrollbar {
    width: 4px;
}

.language-bubbles-container::-webkit-scrollbar-track {
    background: transparent;
}

.language-bubbles-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.language-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    transform: scale(0);
    padding: 0;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.language-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dark-mode .language-bubble {
    border-color: #1a1f3a;
}

.language-bubble:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #fff;
    z-index: 10;
}

body.dark-mode .language-bubble:hover {
    border-color: #667eea;
}

.language-bubble.active {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
}

body.dark-mode .language-bubble.active {
    border-color: #ffc107;
}

@keyframes bubblePopInUp {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    70% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bubblePopOutDown {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
}

@media (max-width: 768px) {
    .language-toggle {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .language-bubbles-container {
        bottom: 170px;
        right: 20px;
        grid-template-columns: repeat(3, 38px);
        gap: 10px;
        max-height: calc(100vh - 230px);
    }

    .language-bubble {
        width: 38px;
        height: 38px;
    }
}

.translation-notice {
    margin: 12px auto 0;
    padding: 10px 14px;
    max-width: 720px;
    background: rgba(255, 243, 205, 0.95);
    border: 1px solid rgba(255, 193, 7, 0.9);
    border-radius: 10px;
    color: #856404;
    font-size: 0.95rem;
}

body.dark-mode .translation-notice {
    background: rgba(102, 77, 3, 0.9);
    border-color: #ffc107;
    color: #ffc107;
}

/* RTL support (basic) */
[dir="rtl"] body {
    direction: rtl;
}

[dir="rtl"] .logo-container {
    direction: rtl;
}

[dir="rtl"] .back-link::before,
[dir="rtl"] .privacy-content .back-link::before,
[dir="rtl"] .terms-content .back-link::before {
    content: '→ ';
}


@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

