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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1f2937;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #3b82f6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    transition: 0.3s;
}

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

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: none;
    width: 100%;
    padding: 0 40px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #3b82f6;
}

.btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.ai-logos-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ai-logos-row {
    margin-bottom: 20px;
    position: relative;
}

.ai-logos-row:last-child {
    margin-bottom: 0;
}

.ai-logos-track {
    display: flex;
    gap: 24px;
    animation: slideLeft 30s linear infinite;
    width: fit-content;
}

.row-2 .ai-logos-track {
    animation: slideRight 30s linear infinite;
    animation-delay: -15s;
}

.ai-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-logo:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slideRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ai-logos-container:hover .ai-logos-track {
    animation-play-state: paused;
}

.features {
    padding: 100px 0;
    background: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 60px;
}

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

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

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    text-align: center;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

.supported-models {
    padding: 100px 0;
    background: white;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.model-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.model-item:hover {
    transform: translateY(-4px);
}

.model-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.model-item span {
    font-weight: 500;
    color: #374151;
}

.models-note {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    font-size: 1.1rem;
}

.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
}

.download .section-title {
    color: white;
}

.download-description {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 60px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.browser-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.download-card p {
    opacity: 0.8;
    margin-top: 16px;
    margin-bottom: 0;
}

.btn-download {
    background: white;
    color: #3730a3;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.btn-download:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-download small {
    font-size: 0.875rem;
    opacity: 0.7;
}

.how-to-use {
    padding: 100px 0;
    background: #f9fafb;
}

.steps {
    display: grid;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0 auto 12px auto;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.tech-stack {
    margin-top: 32px;
    text-align: center;
}

.tech-stack h4 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-item {
    background: #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 800px;
    width: 100%;
}

.stat {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
}

.stat-infinity {
    font-size: 3rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
    margin-top: 12px;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    justify-content: center;
    cursor: pointer;
}

.footer-logo img {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-info {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-info p {
    margin: 0;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-content a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s ease;
}

.mobile-menu-content a:hover {
    color: #3b82f6;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-open {
    overflow: hidden;
}

.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.download-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.download-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.shortcut-item kbd {
    background: #e5e7eb;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
    margin: 0 2px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #374151;
}

.features-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1f2937;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.language-switcher {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    height: 36px;
}

.lang-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.lang-icon {
    font-size: 1rem;
}

.lang-text {
    font-weight: 500;
    white-space: nowrap;
}

.lang-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.lang-btn:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.lang-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

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

.lang-option:hover {
    background: #f9fafb;
}

.lang-option.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 500;
}

.lang-option.active::after {
    content: "✓";
    float: right;
    color: #3b82f6;
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 100%;
        min-width: auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .language-switcher {
        position: fixed;
        top: 12px;
        right: 20px;
        z-index: 1001;
        height: auto;
        display: block;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        height: 32px;
    }
    
    .lang-dropdown {
        right: 0;
        min-width: 130px;
    }
    
    .hero {
        padding: 90px 0 40px;
    }
    
    .hero .container {
        padding: 0 20px;
        text-align: center;
        gap: 20px;
    }
    
    .hero-content {
        max-width: 100%;
        min-width: auto;
        margin: 0 auto;
        padding: 0 15px;
        position: relative;
        z-index: 3;
    }
    
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .ai-logos-container {
        margin-top: 30px;
        z-index: 1;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .ai-logos-container {
        mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
        -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    }
    
    .ai-logos-row {
        margin-bottom: 15px;
    }
    
    .ai-logos-track {
        gap: 16px;
        animation-duration: 25s;
    }
    
    .ai-logo {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 24px;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 500px;
    }
    
    .stat {
        text-align: center;
        padding: 20px;
        border-radius: 12px;
        background: #f9fafb;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
        font-weight: 800;
        color: #3b82f6;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        width: 100%;
    }
    
    .stat-infinity {
        font-size: 2.5rem;
    }
    
    .stat-label {
        color: #6b7280;
        font-weight: 500;
        margin-top: 10px;
        flex-grow: 1;
        display: flex;
        align-items: flex-start;
    }
    
    .footer-content {
        gap: 24px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero .container {
        padding: 0 16px;
        gap: 15px;
    }
    
    .hero-content {
        max-width: 100%;
        min-width: auto;
        padding: 0 10px;
        position: relative;
        z-index: 3;
        margin-bottom: 20px;
    }
    
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .ai-logos-container {
        max-width: 100%;
        margin-top: 40px;
        z-index: 1;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .ai-logos-track {
        gap: 12px;
        animation-duration: 20s;
    }
    
    .ai-logo {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .download-card {
        padding: 24px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        margin: 0 auto 10px auto;
    }
    
    .stat {
        text-align: center;
        padding: 20px;
        border-radius: 12px;
        background: #f9fafb;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
        font-weight: 800;
        color: #3b82f6;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        width: 100%;
    }
    
    .stat-infinity {
        font-size: 2.5rem;
    }
    
    .stat-label {
        color: #6b7280;
        font-weight: 500;
        margin-top: 10px;
        flex-grow: 1;
        display: flex;
        align-items: flex-start;
    }
}