* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f172a;

    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    opacity: 0.9;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar ul,
.navbar li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar ul::before,
.navbar li::before {
    content: none;
    display: none;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-left::before,
.nav-left::after {
    display: none;
    content: none;
}

.logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    animation: logoSpin 1s ease-out;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

@keyframes logoSpin {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-center {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.3);
    }
}

.nav-right {
    display: flex;
    align-items: center;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.lang-option {
    color: #94a3b8;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

.lang-option.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.lang-separator {
    color: #64748b;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    animation: sectionFadeIn 0.8s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ghost-logo {
    position: fixed;
    width: 500px;
    height: auto;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    filter: blur(1px);
    animation: ghostPulse 8s ease-in-out infinite;
}

.ghost-logo-left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.ghost-logo-right {
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes ghostPulse {
    0%, 100% { opacity: 0.06; }
    50% { opacity: 0.08; }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(
        45deg,
        #6366f1,
        #8b5cf6,
        #06b6d4,
        #3b82f6,
        #6366f1
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease, gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.9),
        rgba(99, 102, 241, 0.8),
        rgba(255, 255, 255, 0.9)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s backwards, gradientFlow 6s ease infinite;
}

.hero-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.engine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.engine-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.engine-card-active:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
}

.engine-card-soon {
    opacity: 0.7;
    position: relative;
}

.engine-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #3b82f6, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
}

.engine-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.engine-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.engine-buttons .btn {
    width: 100%;
    justify-content: center;
}

.btn-disabled {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    position: relative;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.soon-badge {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0.3;
    transition: 0s;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.5),
        0 0 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary .icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-primary:hover .icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

section {
    padding: 80px 20px;
    animation: sectionFadeIn 0.8s ease-out;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.2);

    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

section.visible .section-title {
    opacity: 1;
    transform: scale(1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;

    opacity: 0;
    transform: translateY(50px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
    border-color: rgba(99, 102, 241, 0.3);
}
.feature-card:nth-child(2) {
    transition-delay: 0.2s;
    border-color: rgba(139, 92, 246, 0.3);
}
.feature-card:nth-child(3) {
    transition-delay: 0.3s;
    border-color: rgba(6, 182, 212, 0.3);
}
.feature-card:nth-child(4) {
    transition-delay: 0.4s;
    border-color: rgba(59, 130, 246, 0.3);
}
.feature-card:nth-child(5) {
    transition-delay: 0.5s;
    border-color: rgba(168, 85, 247, 0.3);
}
.feature-card:nth-child(6) {
    transition-delay: 0.6s;
    border-color: rgba(14, 165, 233, 0.3);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-15px) scale(1.03);
}

.feature-card:nth-child(1):hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow:
        0 20px 50px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.feature-card:nth-child(2):hover {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow:
        0 20px 50px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.feature-card:nth-child(3):hover {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow:
        0 20px 50px rgba(6, 182, 212, 0.4),
        0 0 30px rgba(6, 182, 212, 0.3),
        inset 0 0 20px rgba(6, 182, 212, 0.1);
}

.feature-card:nth-child(4):hover {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow:
        0 20px 50px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.feature-card:nth-child(5):hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow:
        0 20px 50px rgba(168, 85, 247, 0.4),
        0 0 30px rgba(168, 85, 247, 0.3),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.feature-card:nth-child(6):hover {
    border-color: rgba(14, 165, 233, 0.8);
    box-shadow:
        0 20px 50px rgba(14, 165, 233, 0.4),
        0 0 30px rgba(14, 165, 233, 0.3),
        inset 0 0 20px rgba(14, 165, 233, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:nth-child(1)::after {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}
.feature-card:nth-child(2)::after {
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}
.feature-card:nth-child(3)::after {
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}
.feature-card:nth-child(4)::after {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
.feature-card:nth-child(5)::after {
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
}
.feature-card:nth-child(6)::after {
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
}

.feature-card h3,
.feature-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.feature-description {
    color: #94a3b8;
    line-height: 1.6;
}

.download {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-intro {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.download-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.download-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #3b82f6, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.version-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-soon {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 20px;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elo-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.elo-badge-ccrl {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.elo-badge-estimated {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fbbf24;
}

.download-card-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.download-card-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.download-card-buttons .btn {
    width: 100%;
    justify-content: center;
}

.download-card-active:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-10px) perspective(1000px) rotateX(8deg) rotateY(-5deg) scale(1.05);
    box-shadow:
        0 30px 70px rgba(99, 102, 241, 0.5),
        0 0 50px rgba(99, 102, 241, 0.3);
}

.download-card-soon {
    opacity: 0.7;
}

.soon-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-content {
    text-align: center;
    padding: 1rem 0;
}

.contact-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-email {
    color: #94a3b8;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.contact-email:hover {
    color: #60a5fa;
}

.footer {
    background: rgba(15, 23, 42, 0.8);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.hamburger-menu {
    display: none;
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
    .mobile-menu-overlay {
        display: none;
    }
}

@media (max-width: 768px) {

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        order: 1;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 4px 0;
        transition: 0.3s;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(30, 27, 75, 0.98) 50%,
            rgba(49, 46, 129, 0.98) 100%
        );
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 1000;
        transition: left 0.3s ease;
        padding-top: 80px;
    }

    .mobile-menu-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4);
        opacity: 0.1;
        animation: gradientMove 8s ease infinite;
    }

    @keyframes gradientMove {
        0%, 100% { transform: translate(0, 0); }
        50% { transform: translate(20px, 20px); }
    }

    .mobile-menu-overlay.active {
        left: 0;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        position: relative;
        z-index: 1;
    }

    .mobile-nav-link {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 700;
        padding: 1.2rem 2rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-left: 4px solid transparent;
        position: relative;
        overflow: hidden;

        opacity: 0;
        transform: translateX(-30px);
    }

    .mobile-menu-overlay.active .mobile-nav-link:nth-child(1) { animation: slideIn 0.4s ease 0.1s forwards; }
    .mobile-menu-overlay.active .mobile-nav-link:nth-child(2) { animation: slideIn 0.4s ease 0.2s forwards; }
    .mobile-menu-overlay.active .mobile-nav-link:nth-child(3) { animation: slideIn 0.4s ease 0.3s forwards; }
    .mobile-menu-overlay.active .mobile-nav-link:nth-child(4) { animation: slideIn 0.4s ease 0.4s forwards; }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-nav-link:hover {
        background: rgba(99, 102, 241, 0.2);
        border-left-color: #6366f1;
        transform: translateX(10px) scale(1.05);
        box-shadow:
            0 10px 30px rgba(99, 102, 241, 0.3),
            0 0 20px rgba(99, 102, 241, 0.2);
    }

    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .mobile-nav-link:hover::before {
        left: 100%;
    }

    .mobile-nav-link.active {
        background: rgba(99, 102, 241, 0.25);
        border-left-color: #60a5fa;
    }

    .mobile-nav-link.active::after {
        content: '';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #60a5fa;
        box-shadow: 0 0 15px rgba(96, 165, 250, 0.8);
        animation: pulse 2s ease infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
        50% { opacity: 0.6; transform: translateY(-50%) scale(1.3); }
    }

    .mobile-close-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: #6366f1;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }

    .mobile-close-btn span {
        position: absolute;
        width: 20px;
        height: 2px;
        background: #fff;
    }

    .mobile-close-btn span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-close-btn span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .nav-center {
        display: none !important;
    }

    .nav-left {
        display: none !important;
    }

    .nav-right {
        display: none !important;
    }

    .nav-content {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
    }

    .navbar {
        padding: 0.8rem 0 !important;
        min-height: 60px;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .navbar .logo {
        height: 35px !important;
        max-width: 120px;
    }

    .nav-center {
        gap: 1rem !important;
        font-size: 0.85rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem !important;
    }

    .lang-toggle {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 70vh !important;
        padding: 4rem 0 3rem !important;
    }

    .hero-content {
        padding: 2rem 1.5rem !important;
        max-width: 100%;
    }

    .hero h1,
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .hero h2,
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
    }

    .hero p,
    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem;
    }

    .hero .btn {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    .hero .hero-buttons {
        flex-direction: column;
        gap: 0.8rem !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero .btn {
        width: 100%;
    }

    .engine-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .engine-name {
        font-size: 1.5rem !important;
    }

    .engine-description {
        font-size: 0.9rem !important;
    }

    .engine-card {
        padding: 1.5rem !important;
    }

    .ghost-logo {
        transform: translateY(-50%) !important;
    }

    .ghost-logo-left {
        left: -120px !important;
        top: 50% !important;
        opacity: 0.03 !important;
        filter: blur(2px) !important;
        width: 280px !important;
    }

    .ghost-logo-right {
        display: none !important;
    }

    .features {
        padding: 3rem 0 !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem !important;
    }

    .feature-card h3,
    .feature-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .feature-card p,
    .feature-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .feature-icon {
        font-size: 2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .download {
        padding: 3rem 0 !important;
    }

    .download h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .download p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem;
    }

    .download .btn {
        padding: 0.8rem 2rem !important;
        font-size: 0.95rem !important;
    }

    .download-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .download-card {
        padding: 2rem !important;
    }

    .download-card h3 {
        font-size: 1.6rem !important;
    }

    .about {
        padding: 3rem 0 !important;
    }

    .about h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .about p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        padding: 0 1rem;
    }

    .about .container {
        padding: 0 1.5rem;
    }

    .loader-logo {
        width: 80px !important;
    }

    .loader-bar {
        width: 150px !important;
        margin: 20px auto 0 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 1.5rem !important;
    }

    section {
        padding: 3rem 0 !important;
    }

    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.2rem !important; }
    h4 { font-size: 1rem !important; }
    p { font-size: 0.9rem !important; }

    .feature-card:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }

    .ghost-logo {
        transform: translateY(-50%) !important;
    }

    * {
        transition-duration: 0.2s !important;
    }

    .hero h1,
    .hero-title,
    .hero-subtitle {
        animation-duration: 12s !important;
    }

    .btn,
    .nav-link,
    .lang-toggle {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    @media (hover: none) {
        .btn:hover,
        .feature-card:hover,
        .nav-link:hover {
            transform: none !important;
        }
    }
}

@media (max-width: 480px) {

    .navbar {
        padding: 0.6rem 0 !important;
        min-height: 55px;
    }

    .navbar .logo {
        height: 30px !important;
    }

    .nav-center {
        gap: 0.5rem !important;
        font-size: 0.75rem;
    }

    .nav-link {
        padding: 0.3rem 0.4rem !important;
    }

    .hero {
        min-height: 65vh !important;
        padding: 3rem 0 2rem !important;
    }

    .hero h1,
    .hero-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }

    .hero h2,
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .hero p,
    .hero-description {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
    }

    .hero .btn {
        padding: 0.65rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .ghost-logo-left {
        width: 200px !important;
        left: -100px !important;
        opacity: 0.02 !important;
    }

    .engine-name {
        font-size: 1.3rem !important;
    }

    .engine-card {
        padding: 1.2rem !important;
    }

    .features {
        padding: 2.5rem 0 !important;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.2rem !important;
    }

    .features-grid {
        gap: 1rem !important;
    }

    .feature-card {
        padding: 1.2rem !important;
    }

    .feature-card h3,
    .feature-title {
        font-size: 1rem !important;
    }

    .feature-card p,
    .feature-description {
        font-size: 0.8rem !important;
    }

    .download {
        padding: 2.5rem 0 !important;
    }

    .download h2 {
        font-size: 1.5rem !important;
    }

    .download p {
        font-size: 0.85rem !important;
    }

    .download .btn {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 90%;
        max-width: 280px;
    }

    .about {
        padding: 2.5rem 0 !important;
    }

    .about h2 {
        font-size: 1.5rem !important;
    }

    .about p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .loader-logo {
        width: 70px !important;
    }

    .loader-bar {
        width: 120px !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    section {
        padding: 2.5rem 0 !important;
    }

    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 0.95rem !important; }
    p { font-size: 0.85rem !important; }

    .brand-name {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    overflow: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6));
}

@media (max-width: 768px) {
    .loader-logo img {
        width: 60px;
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: loadingProgress 1.5s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes loadingProgress {
    0% { width: 0%; background-position: 0% 50%; }
    50% { width: 70%; background-position: 100% 50%; }
    100% { width: 100%; background-position: 0% 50%; }
}

.loader-text {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.modal-close {
    color: #94a3b8;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-contact {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.version-item:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.version-number {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    min-width: 80px;
}

.version-badge {
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.version-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.version-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-download-sm {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.7);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    

    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-download-sm {
        width: 100%;
        text-align: center;
    }

    .btn-sm {
        width: 100%;
    }

    .version-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
