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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-light: #8b91f7;
    --primary-dark: #5a67d8;
    --purple: #764ba2;
    --purple-light: #9f7aea;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-light: #f0f4ff;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Search Box Container */
.search-box-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1.25rem 4rem 1.25rem 1.75rem;
    font-size: 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-md);
}

.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Language Settings */
.language-settings {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.setting-label {
    font-weight: 600;
    color: var(--text-primary);
}

.language-dropdown {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.language-dropdown:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.language-dropdown:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-suggestions a {
    color: var(--primary-dark);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

/* Languages Section */
.languages {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.language-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-light);
    transition: transform 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

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

.language-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.language-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 16px;
    background: white;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.interactive-demo {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.demo-controls {
    margin-bottom: 2rem;
}

.demo-controls h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.demo-settings {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-setting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-setting label {
    font-weight: 600;
    color: var(--text-primary);
}

.demo-setting select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-weight: 600;
    cursor: pointer;
}

.demo-preview {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.search-preview {
    background: var(--bg-light);
    padding: 1.5rem;
}

.preview-header {
    margin-bottom: 1rem;
}

.preview-query {
    font-weight: 600;
    color: var(--text-primary);
}

.ai-summary {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ai-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.summary-content p {
    color: var(--text-primary);
    line-height: 1.6;
}

.results-list {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.result-item {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Global Section */
.global {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.global-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.global-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.global-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.global-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Extension Section */
.extension-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.extension-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.extension-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.extension-features {
    list-style: none;
    margin-bottom: 2rem;
}

.extension-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.extension-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

.extension-preview-box {
    margin: 2rem 0;
    text-align: center;
}

.extension-mockup {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

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

.extension-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.extension-benefits h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.extension-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.extension-benefit .benefit-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.extension-benefit h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.extension-benefit p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--primary-gradient);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.footer-links h4,
.footer-resources h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-resources ul {
    list-style: none;
}

.footer-links li,
.footer-resources li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-resources a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .global-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .extension-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .language-settings {
        flex-direction: column;
        align-items: center;
    }
    
    .setting-group {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input {
        padding: 1rem 3.5rem 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .search-button {
        width: 45px;
        height: 45px;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-settings {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .search-input {
        padding: 1rem 3rem 1rem 1.25rem;
    }
    
    .search-button {
        width: 40px;
        height: 40px;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

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

.hero-content,
.language-card,
.feature-card,
.global-card {
    animation: fadeIn 0.6s ease-out;
}