:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --darker: #0a0f1f;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --success: #10b981;
    --transition: all 0.3s ease;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass: rgba(15, 23, 42, 0.7);
    --card-bg: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.changelog-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: slideInLeft 0.5s ease-out;
}

.changelog-btn {
    background: transparent;
    color: var(--light);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.changelog-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: slideInRight 0.5s ease-out;
}

.lang-btn {
    background: transparent;
    color: var(--light);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn.active {
    background: var(--primary);
}

.lang-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.2);
}

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

header {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInScale 1s ease-out;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--gray);
    animation: fadeInUp 0.8s 0.3s both;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(88, 101, 242, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), #3c35d5);
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s 0.5s both;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInUp 0.8s both;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 15px auto;
    border-radius: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s both;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card h3 i {
    margin-right: 12px;
    color: var(--primary);
}

.card-content {
    margin-bottom: 20px;
    flex-grow: 1;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Consolas', monospace;
    overflow-x: auto;
    border: 1px solid var(--border);
    position: relative;
}

.code-block code {
    display: block;
    white-space: pre;
}

.code-block-wrapper {
    position: relative;
    margin: 15px 0;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary);
}

.screenshot-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    perspective: 1000px;
}

.screenshot {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.screenshot:hover {
    transform: scale(1.02) rotateY(5deg) rotateX(2deg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

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

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    animation: fadeInUp 0.6s both;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.7);
}

.feature-icon {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

.download-card {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    animation: fadeInUp 0.6s both;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.download-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.download-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.download-btn {
    width: 100%;
    position: relative;
}

.download-btn .btn-text {
    position: relative;
    z-index: 2;
}

footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    color: var(--gray);
    margin-top: 20px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.3;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 20%);
    animation: bgPulse 15s infinite alternate;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bgPulse {
    0% {
        background-size: 100% 100%, 100% 100%;
    }
    100% {
        background-size: 120% 120%, 120% 120%;
    }
}

@keyframes particleFloat {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
    100% { transform: translate(0, 0); }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}