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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
}

.header {
    background: #2d2d2d;
    padding: 15px 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

.logo-icon {
    width: 80px;
    height: 60px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: -5px;
}

.nav {
    background: #000;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    background: #dc2626;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.nav-item:active {
    transform: translateY(0);
}

.hero {
    background: #e5e5e5;
    color: #333;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.hero-content {
    flex: 1;
    max-width: 500px;
    animation: slideInLeft 1.2s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #666;
}

.hero-image {
    flex: 1;
    text-align: center;
    margin-left: 50px;
    animation: slideInRight 1.2s ease-out;
}

.xeno-interface {
    width: 450px;
    height: 300px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 2px solid #4a90e2;
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.8),
        0 0 40px rgba(74, 144, 226, 0.6),
        0 0 60px rgba(74, 144, 226, 0.4),
        0 0 80px rgba(74, 144, 226, 0.2);
    overflow: hidden;
    animation: neon-glow 2s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    0% {
        box-shadow: 
            0 0 20px rgba(74, 144, 226, 0.8),
            0 0 40px rgba(74, 144, 226, 0.6),
            0 0 60px rgba(74, 144, 226, 0.4),
            0 0 80px rgba(74, 144, 226, 0.2);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(74, 144, 226, 1),
            0 0 60px rgba(74, 144, 226, 0.8),
            0 0 90px rgba(74, 144, 226, 0.6),
            0 0 120px rgba(74, 144, 226, 0.4);
    }
}

.interface-header {
    background: #2d2d30;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
}

.interface-title {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xeno-logo {
    width: 20px;
    height: 20px;
    background: #4a90e2;
    border-radius: 50%;
}

.interface-controls {
    display: flex;
    gap: 8px;
}

.btn-minimize, .btn-maximize, .btn-close {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #000;
    cursor: pointer;
}

.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }
.btn-close { background: #ff5f56; }

.interface-tabs {
    background: #252526;
    padding: 8px 15px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #3e3e42;
}

.tab-active {
    color: #4fc3f7;
    font-size: 12px;
    padding: 4px 8px;
    background: #1e1e1e;
    border-radius: 4px;
}

.tab-plus {
    color: #888;
    font-size: 12px;
    cursor: pointer;
}

.interface-body {
    background: #1e1e1e;
    padding: 12px;
    height: 200px;
    display: flex;
    gap: 12px;
}

.line-number {
    color: #858585;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    user-select: none;
}

.code-area {
    flex: 1;
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 4px;
}

.interface-footer {
    background: #007acc;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    display: flex;
    gap: 10px;
}

.footer-icon {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
}

.footer-icon:hover {
    opacity: 1;
}

.download-btn {
    background: #f0f0f0;
    color: #333;
    padding: 12px 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    margin-right: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background: #e0e0e0;
    border-color: #999;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-icon {
    width: 16px;
    height: 16px;
    background: #333;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>') no-repeat center;
    mask-size: contain;
}

.info-section {
    background: #f5f5f5;
    padding: 80px 20px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.info-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

.info-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.features {
    background: #fff;
    padding: 80px 20px;
}

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

.feature {
    text-align: center;
    padding: 30px;
    transition: all 0.4s ease;
    border-radius: 12px;
    animation: fadeInUp 0.8s ease-out;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: #fff;
}

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

.feature-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

.download-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.download-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.download-title {
    font-size: 2.5rem;
    color: #2d6a4f;
    margin-bottom: 20px;
    font-weight: 700;
}

.download-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.download-btn-large {
    background: #333;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.video-placeholder {
    width: 100%;
    height: 200px;
    background: #2d6a4f;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-placeholder:hover {
    background: #245a42;
}

.video-content {
    text-align: center;
    color: white;
}

.play-button {
    font-size: 3rem;
    margin-bottom: 10px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 11px;
    color: #333;
    width: 80px;
}

.folder-icon, .dll-icon, .exe-icon, .json-icon, .file-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.folder-icon {
    background: #ffd700;
}

.folder-icon::before {
    content: '📁';
}

.dll-icon {
    background: #e0e0e0;
}

.dll-icon::before {
    content: '⚙️';
}

.exe-icon {
    background: #87ceeb;
}

.exe-icon::before {
    content: '💻';
}

.json-icon {
    background: #f0f0f0;
    font-size: 8px;
    font-weight: bold;
}

.json-icon::before {
    content: 'JSON';
    color: #333;
}

.file-icon {
    background: #f0f0f0;
}

.file-icon::before {
    content: '📄';
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    position: relative;
    animation: slideInUp 0.4s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1001;
}

.admin-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.admin-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.admin-section input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-section button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #007bff;
    color: white;
}

.logout-btn {
    background: #dc3545 !important;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

.footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .files-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content, .admin-content {
        width: 90%;
        margin: 10% auto;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-left: 0;
        margin-top: 40px;
    }
    
    .xeno-interface {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    .interface-body {
        height: 150px;
        padding: 8px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
