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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8fafc;
    overflow-x: hidden;
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dark-theme {
    color: #e2e8f0;
    background: #1a202c;
}

body.dark-theme .feature-card,
body.dark-theme .example-card,
body.dark-theme .indicator,
body.dark-theme .group {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-theme .screenshots {
    background: #2d3748;
}

body.dark-theme .features {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

body.dark-theme .examples {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

body.dark-theme .footer {
    background: #1a202c;
}

body.dark-theme .description {
    background: #374151;
    border-left-color: #667eea;
    color: #e2e8f0;
}

body.dark-theme .search-results {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .search-result-item {
    border-bottom-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .search-result-item:hover {
    background-color: #374151;
}

body.dark-theme .breadcrumb {
    background-color: #374151;
    color: #e2e8f0;
}

body.dark-theme .indicator-list li:hover {
    background-color: #374151;
}

body.dark-theme #search-input {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme #search-input:focus {
    border-color: #667eea;
}

body.dark-theme .search-result-name,
body.dark-theme .indicator-name {
    color: #e2e8f0;
}

body.dark-theme .search-result-desc,
body.dark-theme .indicator-desc {
    color: #cbd5e0;
}

body.dark-theme .example-description,
body.dark-theme .example-explanation {
    color: #cbd5e0;
}

body.dark-theme .examples h1 {
    color: #e2e8f0;
}

body.dark-theme .examples > .container > p {
    color: #cbd5e0;
}

body.dark-theme .features h2,
body.dark-theme .screenshots h2 {
    color: #e2e8f0;
}

.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
}

html {
    overflow-x: hidden;
}

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

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.lang-dropdown {
    display: flex;
    align-items: center;
}

.lang-select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-select:hover {
    background: rgba(255,255,255,0.3);
}

.lang-select option {
    background: #667eea;
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 20px 48px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(238, 90, 36, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.screenshots {
    padding: 5rem 0;
    background: white;
}

.screenshots h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

.social {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.social h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 14px 28px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.examples {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.examples h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.examples > .container > p {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.3rem;
    color: #5a6c7d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.examples-grid {
    display: grid;
    gap: 2rem;
}

.example-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 6px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.example-card h3 {
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 600;
}

.example-description {
    margin-bottom: 1rem;
    color: #666;
}

.code-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: none;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.5;
    display: block;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
}

.copy-btn.copied {
    background: #4ecdc4;
}

.example-explanation {
    color: #666;
    font-style: italic;
}

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 4px solid #667eea;
    margin-top: auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .nav {
        padding: 0.75rem 1rem;
        flex-direction: row;
        align-items: center;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .nav-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 15px;
    }
    
    .lang-select {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #667eea;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        text-align: center;
    }
    
    .nav-links.show {
        display: flex;
    }
}
