/* Переменные для NexusChat */
:root {
    --nexus-dark-bg: #0A0A1A; /* Глубокий темно-синий/черный */
    --nexus-card-bg: #1A1A30; /* Фон карточек */
    --nexus-text-light: #E0E0F0; /* Светлый текст */
    --nexus-text-grey: #A0A0B0; /* Серый текст */

    /* Акцентные цвета */
    --nexus-accent-blue: #00BCD4; /* Неоновый синий */
    --nexus-accent-purple: #673AB7; /* Фиолетовый */
    --nexus-accent-green: #8BC34A; /* Электрический зеленый */
    --nexus-accent-orange: #FF9800; /* Оранжевый (для кнопок/акцентов) */

    --nexus-border-radius-lg: 12px;
    --nexus-border-radius-sm: 6px;
    --nexus-glow-strength: 0 0 15px; /* Для эффектов свечения */
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--nexus-dark-bg);
    color: var(--nexus-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2, h3, h4 {
    font-family: 'Oxanium', sans-serif; /* Для заголовков */
    color: var(--nexus-text-light);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 3.5em;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

p.nexus-subheading {
    text-align: center;
    color: var(--nexus-text-grey);
    font-size: 1.15em;
    margin-bottom: 60px;
    font-weight: 300;
}

a {
    color: var(--nexus-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--nexus-accent-green);
}

/* Header */
.nexus-header {
    background-color: rgba(10, 10, 26, 0.95);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nexus-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nexus-logo {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--nexus-text-light);
    font-family: 'Oxanium', sans-serif;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5); /* Эффект свечения */
}

.nexus-nav ul {
    list-style: none;
    display: flex;
}

.nexus-nav ul li {
    margin-left: 35px;
}

.nexus-nav ul li a {
    color: var(--nexus-text-light);
    font-weight: 500;
    font-size: 1em;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nexus-nav ul li a:hover {
    color: var(--nexus-accent-blue);
    text-shadow: 0 0 8px var(--nexus-accent-blue);
}

.nexus-nav ul li a.nexus-btn-login {
    background-color: var(--nexus-accent-blue);
    color: var(--nexus-dark-bg);
    padding: 10px 20px;
    border-radius: var(--nexus-border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
    border: none;
    line-height: 1; /* Для выравнивания текста внутри кнопки */
}

.nexus-nav ul li a.nexus-btn-login:hover {
    background-color: #00C7E0;
    color: var(--nexus-dark-bg);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
}

/* Секции */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Кнопки */
.nexus-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--nexus-border-radius-sm);
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nexus-btn-primary {
    background: linear-gradient(45deg, var(--nexus-accent-blue), var(--nexus-accent-purple));
    color: var(--nexus-dark-bg);
    box-shadow: var(--nexus-glow-strength) rgba(0, 188, 212, 0.4);
}

.nexus-btn-primary:hover {
    background: linear-gradient(45deg, var(--nexus-accent-purple), var(--nexus-accent-blue));
    transform: translateY(-3px);
    box-shadow: var(--nexus-glow-strength) rgba(0, 188, 212, 0.6);
}

.nexus-btn-secondary {
    background-color: transparent;
    color: var(--nexus-text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--nexus-glow-strength) rgba(103, 58, 183, 0.2);
}

.nexus-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--nexus-text-light);
    transform: translateY(-3px);
    border-color: var(--nexus-accent-purple);
    box-shadow: var(--nexus-glow-strength) rgba(103, 58, 183, 0.4);
}

/* Hero Section Nexus */
.nexus-hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 120px 0;
    min-height: calc(100vh - 80px); /* Высота с учетом хедера */
    background: radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(103, 58, 183, 0.08) 0%, transparent 40%),
    var(--nexus-dark-bg);
    position: relative;
    overflow: hidden;
}

.nexus-hero-section .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px; /* Отступ между текстовым блоком и сеткой карточек */
}

.nexus-hero-content {
    max-width: 650px;
    text-align: left;
    z-index: 2;
}

.nexus-tagline {
    display: inline-block;
    background-color: rgba(0, 188, 212, 0.15);
    color: var(--nexus-accent-blue);
    padding: 10px 20px;
    border-radius: var(--nexus-border-radius-sm);
    font-size: 1em;
    margin-bottom: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.nexus-hero-content h1 {
    font-size: 5.2em;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-shadow: var(--nexus-glow-strength) rgba(255, 255, 255, 0.1);
}

.nexus-hero-content h1 span {
    color: var(--nexus-accent-green);
    text-shadow: var(--nexus-glow-strength) var(--nexus-accent-green);
}

.nexus-hero-content p {
    font-size: 1.25em;
    color: var(--nexus-text-grey);
    margin-bottom: 45px;
    max-width: 550px;
    font-weight: 300;
}

.nexus-hero-actions {
    display: flex;
    gap: 25px;
}

.nexus-hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 600px;
    flex-shrink: 0;
}

.nexus-hero-card {
    background-color: var(--nexus-card-bg);
    padding: 30px;
    border-radius: var(--nexus-border-radius-lg);
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nexus-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, transparent 50%, rgba(103, 58, 183, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.nexus-hero-card:hover::before {
    opacity: 1;
}

.nexus-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--nexus-accent-blue);
}

.nexus-hero-card .card-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(0, 188, 212, 0.1);
    border-radius: var(--nexus-border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 2em;
    color: var(--nexus-accent-blue);
    border: 1px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.nexus-hero-card:nth-child(2) .card-icon {
    background-color: rgba(103, 58, 183, 0.1);
    color: var(--nexus-accent-purple);
    border-color: rgba(103, 58, 183, 0.3);
    box-shadow: 0 0 10px rgba(103, 58, 183, 0.3);
}
.nexus-hero-card:nth-child(3) .card-icon {
    background-color: rgba(139, 195, 74, 0.1);
    color: var(--nexus-accent-green);
    border-color: rgba(139, 195, 74, 0.3);
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.3);
}
.nexus-hero-card:nth-child(4) .card-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--nexus-accent-orange);
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}


.nexus-hero-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

.nexus-hero-card p {
    font-size: 0.95em;
    color: var(--nexus-text-grey);
    margin-bottom: 0;
}


/* Features Section */
.nexus-features-section {
    background-color: var(--nexus-dark-bg);
}

.nexus-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.nexus-feature-card {
    background-color: var(--nexus-card-bg);
    border-radius: var(--nexus-border-radius-lg);
    padding: 35px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.nexus-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, transparent 50%, rgba(103, 58, 183, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nexus-feature-card:hover::before {
    opacity: 1;
}

.nexus-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--nexus-accent-blue);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--nexus-border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    font-size: 2.2em;
    color: var(--nexus-accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}
.nexus-feature-card:nth-child(2) .icon-box { color: var(--nexus-accent-purple); box-shadow: 0 0 10px rgba(103, 58, 183, 0.2); }
.nexus-feature-card:nth-child(3) .icon-box { color: var(--nexus-accent-green); box-shadow: 0 0 10px rgba(139, 195, 74, 0.2); }
.nexus-feature-card:nth-child(4) .icon-box { color: var(--nexus-accent-orange); box-shadow: 0 0 10px rgba(255, 152, 0, 0.2); }
.nexus-feature-card:nth-child(5) .icon-box { color: var(--nexus-accent-purple); box-shadow: 0 0 10px rgba(103, 58, 183, 0.2); }
.nexus-feature-card:nth-child(6) .icon-box { color: var(--nexus-accent-blue); box-shadow: 0 0 10px rgba(0, 188, 212, 0.2); }


.nexus-feature-card h3 {
    font-size: 1.6em;
    margin-bottom: 18px;
    font-weight: 600;
}

.nexus-feature-card p {
    color: var(--nexus-text-grey);
    font-size: 1em;
}

/* Community Section */
.nexus-community-section {
    background-color: var(--nexus-dark-bg);
    padding: 100px 0;
}

.nexus-community-section .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.nexus-community-content {
    max-width: 550px;
    text-align: left;
}

.nexus-community-content h2 {
    text-align: left;
    margin-top: 0;
    font-size: 3em;
}

.nexus-community-content .nexus-subheading {
    text-align: left;
    margin-bottom: 30px;
}

.nexus-community-content p {
    font-size: 1.1em;
    color: var(--nexus-text-grey);
    margin-bottom: 30px;
}

.nexus-community-content ul {
    list-style: none;
    margin-bottom: 40px;
}

.nexus-community-content ul li {
    font-size: 1.05em;
    color: var(--nexus-text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.nexus-community-content ul li i {
    color: var(--nexus-accent-green);
    margin-right: 15px;
    font-size: 1.4em;
    text-shadow: 0 0 5px var(--nexus-accent-green);
}

.nexus-community-visual {
    width: 500px;
    height: 700px;
    flex-shrink: 0;
    position: relative;
}
.nexus-community-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--nexus-border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    filter: brightness(0.9);
}

/* Performance Section */
.nexus-performance-section {
    background-color: var(--nexus-card-bg);
    padding: 80px 0;
}

.nexus-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.nexus-stat-block {
    background-color: var(--nexus-dark-bg);
    border-radius: var(--nexus-border-radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nexus-stat-block h3 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
    font-family: 'Oxanium', sans-serif;
    color: var(--nexus-accent-blue);
    text-shadow: var(--nexus-glow-strength) rgba(0, 188, 212, 0.3);
}

.nexus-stat-block:nth-child(2) h3 { color: var(--nexus-accent-purple); text-shadow: var(--nexus-glow-strength) rgba(103, 58, 183, 0.3); }
.nexus-stat-block:nth-child(3) h3 { color: var(--nexus-accent-green); text-shadow: var(--nexus-glow-strength) rgba(139, 195, 74, 0.3); }
.nexus-stat-block:nth-child(4) h3 { color: var(--nexus-accent-orange); text-shadow: var(--nexus-glow-strength) rgba(255, 152, 0, 0.3); }


.nexus-stat-block p {
    font-size: 1.2em;
    color: var(--nexus-text-grey);
    font-weight: 400;
}
.nexus-stat-block i {
    font-size: 0.8em;
    margin-right: 10px;
    vertical-align: middle;
}

/* CTA Section */
.nexus-cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(to right, var(--nexus-dark-bg) 0%, rgba(0, 188, 212, 0.2) 50%, var(--nexus-dark-bg) 100%);
}

.nexus-cta-section h2 {
    margin-bottom: 20px;
}

.nexus-cta-section .nexus-subheading {
    margin-bottom: 50px;
}

.nexus-btn-large {
    padding: 20px 45px;
    font-size: 1.25em;
}

/* Footer Nexus */
.nexus-footer {
    background-color: var(--nexus-dark-bg);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
    color: var(--nexus-text-grey);
}

.nexus-footer .container {
    padding: 0 25px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-info h3, .footer-col-nav h3, .footer-col-legal h3, .footer-col-social h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--nexus-text-light);
    font-weight: 600;
    font-family: 'Oxanium', sans-serif;
}

.footer-col-info p {
    color: var(--nexus-text-grey);
}

.footer-col-nav ul, .footer-col-legal ul {
    list-style: none;
    padding-left: 0;
}

.footer-col-nav ul li, .footer-col-legal ul li {
    margin-bottom: 10px;
}

.footer-col-nav ul li a, .footer-col-legal ul li a {
    color: var(--nexus-text-grey);
    transition: color 0.3s ease;
}

.footer-col-nav ul li a:hover, .footer-col-legal ul li a:hover {
    color: var(--nexus-accent-blue);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 1.8em;
    color: var(--nexus-text-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--nexus-accent-blue);
    transform: translateY(-3px);
}

.nexus-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--nexus-text-grey);
    font-size: 0.88em;
}

@media (max-width: 992px) {
    .nexus-hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .nexus-hero-content {
        margin-bottom: 50px;
        text-align: center;
    }
    .nexus-hero-actions {
        justify-content: center;
    }
    .nexus-hero-cards-grid {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    .nexus-hero-card {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .nexus-hero-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    .nexus-hero-card::before {
        opacity: 0 !important;
    }


    h1 {
        font-size: 4em;
    }
    h2 {
        font-size: 2.8em;
    }
    p.nexus-subheading {
        font-size: 1em;
    }

    .nexus-community-section .container {
        flex-direction: column;
        text-align: center;
    }
    .nexus-community-content {
        text-align: center;
    }
    .nexus-community-content h2 {
        text-align: center;
    }
    .nexus-community-visual {
        width: 100%;
        height: 500px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col-nav ul, .footer-col-legal ul {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nexus-nav {
        display: none;
    }
    .nexus-header .container {
        justify-content: center;
    }
    .nexus-logo {
        font-size: 2em;
    }
    .nexus-hero-content h1 {
        font-size: 3.2em;
    }
    .nexus-hero-content p {
        font-size: 1.1em;
    }
    .nexus-btn {
        padding: 12px 25px;
        font-size: 0.95em;
    }
    .nexus-features-grid, .nexus-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .nexus-stat-block h3 {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .nexus-hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .nexus-features-grid, .nexus-stats-grid {
        grid-template-columns: 1fr;
    }
    .nexus-hero-cards-grid {
        grid-template-columns: 1fr;
    }
    .nexus-hero-card {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .nexus-hero-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    .nexus-hero-card::before {
        opacity: 0 !important;
    }
}