:root {
    --primary-purple: #1a0a2e;
    --secondary-purple: #2d1b4e;
    --dark-purple: #0a0a1a;
    --accent-orange: #ff6b35;
    --text-light: #e0e0e0;
    --text-muted: #b0b0b0;
    --card-bg: rgba(26, 10, 46, 0.7);
    --card-border: rgba(255, 107, 53, 0.2);
    --card-hover-bg: rgba(45, 27, 78, 0.8);
    --card-hover-border: rgba(255, 107, 53, 0.5);
    --glow-color: rgba(255, 107, 53, 0.3);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-purple);
    background-image: linear-gradient(to right, var(--dark-purple), var(--primary-purple), var(--dark-purple));
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100%;
}

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

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.terminal {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    color: var(--accent-orange);
    width: 550px; /* Fixed width for centering */
    padding: 20px;
    text-align: left;
}

.terminal p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

#content.hidden {
    display: none;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    background: transparent; /* Remove hero-specific background */
    animation: fadeIn 1.5s ease-in-out;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    animation: slideInUp 1s ease-out;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2rem;
    animation: slideInUp 1.2s ease-out;
}

.cta-button {
    background: var(--accent-orange);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 1.4s ease-out;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--glow-color);
}

.hero-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: slideInUp 1.6s ease-out;
}

/* --- Features Section --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 5rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
}

.feature-card strong {
    color: var(--accent-orange);
    font-weight: 600;
}

.feature-card code {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

/* --- Footer --- */
.footer {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: transparent;
    border: none;
    margin: 0;
}


.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.telegram-link:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

.telegram-link svg {
    flex-shrink: 0;
}

.footer p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
}
