/* Landing Page Specific Styles */

/* Header Styles */
.landing-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 70px;
}

.logo {
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 32px;
    justify-self: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    width: auto;
    justify-content: center;
}

.nav-link:hover {
    color: #ff8c42;
    background: rgba(255, 140, 66, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: space-between;
}

.language-toggle:hover {
    background: #f8f8f8;
    border-color: #ff8c42;
}

.globe-icon {
    font-size: 16px;
    color: #666;
}

.chevron-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.language-selector.open .chevron-icon {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: 500;
    color: #333;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.language-selector.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.language-option:hover {
    background: #f8f8f8;
}

.language-option:hover:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:hover:last-child {
    border-radius: 0 0 8px 8px;
}

.language-option:hover:only-child {
    border-radius: 8px;
}

.language-option.active {
    background: #fff3e0;
    color: #ff8c42;
}

.language-option.active:first-child {
    border-radius: 8px 8px 0 0;
    margin: -1px -1px 0 -1px;
    padding: 11px 13px 10px 13px;
    border: 1px solid #ddd;
    border-bottom: none;
}

.language-option.active:last-child {
    border-radius: 0 0 8px 8px;
    margin: 0 -1px -1px -1px;
    padding: 10px 13px 11px 13px;
    border: 1px solid #ddd;
    border-top: none;
}

.language-option.active:only-child {
    border-radius: 8px;
    margin: -1px;
    padding: 11px 13px;
    border: 1px solid #ddd;
}

.lang-flag {
    font-size: 16px;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

.sign-in-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sign-in-link:hover {
    color: #ff8c42;
}

.cta-button {
    background: #ff8c42;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

/* Main Content */
.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0 120px 0;
}

.hero-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #666;
}

.banner-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.1;
}

.highlight-text {
    color: #ff8c42;
}

.hero-subtitle {
    font-size: 24px;
    color: #666;
    margin-bottom: 48px;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.primary-button {
    background: #ff8c42;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3);
    text-decoration: none;
}

.secondary-button {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    border-color: #ff8c42;
    color: #ff8c42;
    transform: translateY(-2px);
}

.button-icon {
    font-size: 16px;
}

.trusted-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.trusted-text {
    font-size: 14px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.company-logos {
    display: flex;
    gap: 32px;
    align-items: center;
}

.company-logo {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
}

/* Demo Section */
.demo-section {
    text-align: center;
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 48px;
    line-height: 1.4;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-player {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-content {
    text-align: center;
    color: white;
}

.video-people {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    justify-content: center;
}

.person {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.person-left::after {
    /* Use SVG person icon as background */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons.svg#icon-person');
    /* Not used directly by browsers */
    /* Fallback using data URI to ensure compatibility */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3' fill='%23ffffff'/%3E%3Cpath d='M4 20a8 6 0 0 1 16 0' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.person-right::after {
    /* Use same neutral person icon for consistency */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons.svg#icon-person');
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3' fill='%23ffffff'/%3E%3Cpath d='M4 20a8 6 0 0 1 16 0' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.video-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    font-size: 24px;
    color: #333;
    margin-left: 4px;
}

.video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.youtube-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff0000;
    font-weight: 600;
}

.youtube-logo {
    font-size: 16px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #ff8c42;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.icon-code,
.icon-debug,
.icon-optimize {
    font-size: 32px;
    color: white;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: #ff8c42;
    margin-bottom: 16px;
}

.stat-description {
    font-size: 18px;
    color: #666;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #f8f8f8;
    text-align: center;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-header .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .header-actions {
        gap: 16px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .company-logos {
        flex-wrap: wrap;
        gap: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .video-thumbnail {
        height: 300px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stat-number {
        font-size: 48px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .video-thumbnail {
        height: 250px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 36px;
    }
}