:root {
    /* НОВАЯ ПАЛИТРА: Бордово-Красная */
    --primary: #ff073a; /* Яркий неоново-красный (вместо золотого) */
    --accent: #7b001c; /* Глубокий бордовый (вместо голубого) */

    --dark: #050202; /* Чуть более теплый черный */
    --dark-glass: rgba(20, 0, 5, 0.8); /* Стеклянный фон с красным оттенком */
    --text-main: #ffffff;
    --text-dim: #aaaaaa;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- BACKGROUND CANVAS --- */
#warpSpeed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Градиент изменен на красновато-черный */
    background: radial-gradient(circle at center, transparent 0%, var(--dark) 80%);
    z-index: -1;
    pointer-events: none;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Обновленный класс для подсветки в логотипе */
.red-highlight {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255, 7, 58, 0.6);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    color: white;
    /* Красная тень текста */
    text-shadow: 3px 3px 0px var(--accent), 0 0 20px var(--primary);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dim);
    margin-bottom: 50px;
    letter-spacing: 1px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- GLITCH BUTTON (Red styled) --- */
.cyber-button {
    position: relative;
    display: inline-block;
    padding: 20px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    /* Скошенный угол */
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    box-shadow: inset 0 0 20px rgba(255, 7, 58, 0.2);
}

.cyber-button:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 40px var(--primary), inset 0 0 20px white;
    border-color: white;
}

.cyber-button.small {
    padding: 15px 30px;
    font-size: 0.9rem;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 5px;
    /* Бордовое подчеркивание */
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 7, 58, 0.3);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

/* --- 3D CARDS --- */
.card {
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner {
    background: var(--dark-glass);
    border: 1px solid var(--accent); /* Бордовая граница */
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.1s;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-inner:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
    /* Красное свечение иконок */
    text-shadow: 0 0 15px var(--primary);
    color: white;
}

.card h3 {
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: #ccc;
    line-height: 1.6;
}

/* Shining effect on card (Red tint) */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 7, 58, 0.2) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-border {
    opacity: 1;
}

/* --- CTA SECTION --- */
.bottom-cta {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(0deg, var(--dark) 0%, rgba(123, 0, 28, 0.1) 100%);
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--accent);
    padding: 50px;
    /* Бордовый фон */
    background: rgba(123, 0, 28, 0.1);
    position: relative;
    box-shadow: 0 0 30px rgba(123, 0, 28, 0.2);
}

.cta-box h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    margin-bottom: 30px;
    color: #aaa;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--accent);
    color: #555;
    font-size: 0.8rem;
    background: #020101;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    nav {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}