/* Totora App Color Scheme - Green to Teal Gradient Theme */
:root {
    /* Main gradient colors - matching Swift LinearGradient(.green, .teal) */
    --app-green: rgba(52, 199, 89, 1);       /* iOS green */
    --app-teal: rgba(90, 200, 250, 1);       /* iOS teal/cyan */
    --app-emerald: rgba(16, 185, 129, 1);    /* Darker green variant */
    --app-mint: rgba(132, 204, 22, 1);       /* Light mint green */

    /* Complementary colors */
    --app-blue: rgba(59, 130, 246, 1);       /* Soft blue */
    --app-orange: rgba(251, 146, 60, 1);     /* Warm orange */
    --app-purple: rgba(147, 51, 234, 1);     /* Muted purple */

    /* Dark variants */
    --dark-green: rgba(34, 197, 94, 1);
    --dark-teal: rgba(13, 148, 136, 1);
    --dark-emerald: rgba(5, 150, 105, 1);

    /* Text colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;

    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-hero: linear-gradient(135deg, var(--app-green) 0%, var(--app-teal) 100%);
    --bg-gradient-light: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(90, 200, 250, 0.1) 100%);

    /* UI elements */
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-hero);
    transition: width 0.3s ease;
}

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

.language-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-select:focus {
    outline: none;
    border-color: var(--app-emerald);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.hamburger:hover {
    background-color: rgba(90, 200, 250, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    pointer-events: none;
}

/* Hero Section */
.hero {
    background: var(--bg-hero);
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
    color: white;
    min-width: 160px;
    flex: 0 0 auto;
    height: 56px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-button-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    justify-content: flex-start;
}

.store-icon {
    flex-shrink: 0;
    color: white;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-line-small {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.store-line-large {
    font-size: 20px;
    font-weight: 600;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 2px;
    letter-spacing: -0.2px;
}

/* Store button specific styling */
.app-store-button {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.google-play-button {
    background: linear-gradient(135deg, #01875f 0%, #0288d1 100%);
    cursor: default;
}

.coming-soon {
    opacity: 0.85;
    position: relative;
}

.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
}


.store-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-button:hover .store-icon {
    transform: scale(1.05);
    opacity: 1;
}

.app-store-button:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    box-shadow: 0 8px 25px rgba(52, 199, 89, 0.2);
}

.google-play-button:hover {
    background: linear-gradient(135deg, #0288d1 0%, #01875f 100%);
    box-shadow: 0 8px 25px rgba(1, 135, 95, 0.3);
}

.coming-soon:hover {
    transform: translateY(-1px) scale(1.01);
    opacity: 0.9;
}

/* Ensure store buttons stay on same line for medium screens */
@media (max-width: 768px) {
    .store-buttons {
        gap: 0.75rem;
        justify-content: center;
    }

    .store-button {
        min-width: 150px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .store-line-small {
        font-size: 0.65rem;
    }

    .store-line-large {
        font-size: 1rem;
    }
}


.store-button:active {
    transform: translateY(0) translateZ(0);
    transition: transform 0.1s ease;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: var(--app-emerald);
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(52, 199, 89, 0.3);
    will-change: transform;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    transition: all 0.3s ease;
    will-change: transform, background;
}

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

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Hero Screenshots Carousel */
.hero-screenshots-carousel {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Carousel Indicators - positioned outside the carousel */
.hero-image .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.hero-screenshots-carousel .carousel-container {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.hero-screenshots-carousel .screenshot-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-screenshots-carousel .screenshot-item {
    flex: 0 0 100%;
    text-align: center;
    padding: 0 5px;
}

.hero-screenshots-carousel .screenshot-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    margin: 0;
    /* Improve image quality */
    image-rendering: -webkit-high-quality;
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure sharp images on high DPI displays */
    image-resolution: 2dppx;
}

.hero-screenshots-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.9), rgba(90, 200, 250, 0.9));
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-screenshots-carousel .carousel-btn:hover {
    background: linear-gradient(135deg, rgba(52, 199, 89, 1), rgba(90, 200, 250, 1));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

.hero-screenshots-carousel .prev-btn {
    left: -10px;
}

.hero-screenshots-carousel .next-btn {
    right: -10px;
}

.hero-image .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(52, 199, 89, 0.8);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.hero-image .indicator:hover {
    background: rgba(52, 199, 89, 0.9);
    border-color: rgba(52, 199, 89, 1);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.hero-image .indicator.active {
    background: linear-gradient(135deg, rgba(52, 199, 89, 1), rgba(90, 200, 250, 1));
    border-color: rgba(52, 199, 89, 1);
    transform: scale(1.4);
    box-shadow: 0 3px 12px rgba(52, 199, 89, 0.4);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-gradient-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--bg-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(52, 199, 89, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 35px rgba(52, 199, 89, 0.15);
    will-change: transform;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-blue { background: var(--app-teal); }
.feature-green { background: var(--app-green); }
.feature-orange { background: var(--app-orange); }
.feature-purple { background: var(--app-emerald); }
.feature-teal { background: var(--app-teal); }

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
}

/* Language Tabs */
.language-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.lang-tab {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-tab:hover {
    border-color: var(--app-teal);
    color: var(--app-teal);
}

.lang-tab.active {
    background: var(--bg-hero);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
}

/* Screenshots Carousel */
.screenshots-carousel {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.screenshot-language {
    display: none;
    position: relative;
}

.screenshot-language.active {
    display: block;
}

.screenshot-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-item {
    flex: 0 0 100%;
    text-align: center;
    padding: 0 10px;
}

.screenshot-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    margin: 0;
    /* Improve image quality */
    image-rendering: -webkit-high-quality;
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure sharp images on high DPI displays */
    image-resolution: 2dppx;
}

/* Image loaded state for smooth transitions */
.screenshot-img.img-loaded {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.screenshot-img:not(.img-loaded) {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Screenshot loading state */
.screenshot-loading {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 9/19.5; /* Typical phone screen ratio */
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Spinner overlay for lazy loading images */
.screenshot-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.screenshot-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(52, 199, 89, 0.2);
    border-top: 3px solid rgba(52, 199, 89, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.screenshot-spinner-text {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Screenshot placeholder styling */
.screenshot-placeholder {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 9/19.5; /* Typical phone screen ratio */
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.screenshot-img:hover {
    transform: scale(1.02) translateZ(0);
    box-shadow: 0 15px 35px rgba(52, 199, 89, 0.15);
    will-change: transform;
}

.screenshot-caption {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-hero);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: -15px;
}

.next-btn {
    right: -15px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.indicator:hover {
    background: var(--app-teal);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--bg-hero);
    width: 24px;
    border-radius: 5px;
}

/* Support Section */
.support {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.support-info h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.support-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.support-items {
    display: grid;
    gap: 2rem;
}

.support-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.support-item h4 {
    color: var(--app-emerald);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.support-item p, .support-item li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.faq-list {
    list-style: none;
}

.faq-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-list li:last-child {
    border-bottom: none;
}

/* Support Section Enhanced */
.support {
    padding: 100px 0;
}

.support-content {
    max-width: 1200px;
    margin: 0 auto;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.support-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.support-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 12px 40px rgba(52, 199, 89, 0.15);
    border-color: var(--app-green);
}

.support-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--app-green), var(--app-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

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

.support-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-details strong {
    color: var(--text-primary);
    min-width: 80px;
}

.help-links, .community-links {
    list-style: none;
    padding: 0;
}

.help-links li, .community-links li {
    margin-bottom: 0.8rem;
}

.help-links a, .community-links a {
    color: var(--app-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.help-links a:hover, .community-links a:hover {
    color: var(--app-teal);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--app-green);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h3 {
    color: var(--app-emerald);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background: var(--card-background);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--app-green);
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--app-green);
}

.faq-icon {
    width: 32px;
    height: 32px;
    background-image: url('images/magic-grass-tranparent-small.png');
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(134, 239, 172, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(134, 239, 172, 0.2);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(134, 239, 172, 0.4);
    background-color: rgba(134, 239, 172, 0.5);
}

.faq-answer {
    display: none;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer-content {
    padding: 1.5rem;
    color: #2d3748;
    line-height: 1.6;
    background: rgba(52, 199, 89, 0.02);
    border-top: 1px solid rgba(52, 199, 89, 0.1);
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    margin-top: -1px;
}

/* Light theme */
:root {
    --faq-bg: #f8f9fa;
    --faq-text: #2d3748;
    --faq-border: #e2e8f0;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    .faq-answer-content {
        color: #e2e8f0;
        background: rgba(52, 199, 89, 0.05);
        border-top-color: rgba(52, 199, 89, 0.2);
    }
}

/* Debug styles */
.faq-item.active {
    border-color: var(--app-green) !important;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.15) !important;
}

/* Technical Requirements */
.tech-requirements {
    background: var(--card-background);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.tech-requirements h3 {
    color: var(--app-emerald);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-item h4 {
    color: var(--app-green);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tech-item ul {
    list-style: none;
    padding: 0;
}

.tech-item li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.tech-item li::before {
    content: "✓";
    color: var(--app-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Privacy Section Enhanced */
.privacy {
    padding: 100px 0;
}

.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.privacy-section {
    background: var(--card-background);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.privacy-section:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 12px 40px rgba(52, 199, 89, 0.1);
    border-color: var(--app-green);
}

.privacy-section h3 {
    color: var(--app-emerald);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section h3::before {
    content: "🔒";
    font-size: 1.2rem;
}

.privacy-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.privacy-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.privacy-item h4 {
    color: var(--app-green);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.privacy-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-emerald) 0%, var(--dark-teal) 100%);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--bg-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    color: var(--app-teal);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px; /* Position at the bottom of header (nav-container 1rem + 1rem padding + 20px logo) */
        left: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow);
        padding: 1.5rem 0;
        gap: 1rem;
        z-index: 998; /* Lower than header (1000) but higher than content */
        max-height: calc(100vh - 72px); /* Account for header height */
        overflow-y: auto;
        transform-origin: top;
        transform: scaleY(0) translateY(-20px);
        opacity: 0;
        visibility: hidden;
        border-top: 1px solid var(--border-color);
    }

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

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        align-items: center;
        justify-content: center;
    }

    .store-buttons {
        justify-content: center;
        flex-direction: row;
        width: 100%;
        max-width: 320px;
        gap: 0.5rem;
    }

    .store-button {
        width: 100%;
        max-width: 155px;
        min-width: 145px;
        height: 50px;
        padding: 10px 12px;
        flex: 1 1 auto;
    }

    .store-line-large {
        font-size: 14px;
        font-weight: 600;
    }

    .store-line-small {
        font-size: 8px;
    }

    .store-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    .store-icon svg {
        width: 22px;
        height: 22px;
    }

    .hero-image {
        order: -1;
    }

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

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

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .language-tabs {
        gap: 0.5rem;
    }

    .lang-tab {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .screenshots-carousel {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }

    .screenshot-img {
        max-width: 320px;
    }

    .screenshots-carousel {
        max-width: 380px;
        padding: 0 50px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 1rem;
    }

    .store-buttons {
        gap: 0.5rem;
        justify-content: center;
        max-width: 300px;
    }

    .store-button {
        min-width: 140px;
        max-width: 148px;
        height: 45px;
        padding: 8px 12px;
        border-radius: 10px;
        flex: 1 1 auto;
    }

    .store-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .store-icon svg {
        width: 20px;
        height: 20px;
    }

    .store-line-large {
        font-size: 13px;
        font-weight: 600;
    }

    .store-line-small {
        font-size: 7px;
    }

    .store-button-content {
        gap: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .support-item {
        padding: 1.5rem;
    }
}

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

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .support-item {
        padding: 1.5rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-fade-in.animation-complete {
    will-change: auto;
}

/* GPU acceleration for smooth animations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimized Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Optimized Loading State */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.loading.loaded {
    opacity: 1;
}

/* Image loading states */
.img-loading {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.img-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.img-loaded {
    animation: image-fade-in 0.4s ease-out;
}

.img-error {
    opacity: 0.3;
    /* filter: grayscale(100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    min-height: 100px;
    position: relative;
}

.img-error::before {
    content: '📷';
    font-size: 2rem;
    opacity: 0.5;
}

.img-error::after {
    content: 'Image not available';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes image-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

/* Loading State */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading.loaded {
    opacity: 1;
}