/* ============================================================
   ENDER SMP 2026 — КИБЕРПАНК НЕОН
   Шрифты: Orbitron (заголовки), Inter (текст)
   Цвета: #8B00FF (фиолетовый), #00F0FF (циан), #FF00A0 (розовый)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --neon-purple: #8B00FF;
    --neon-cyan: #00F0FF;
    --neon-pink: #FF00A0;
    --dark-bg: #0A0A0F;
    --darker-bg: #050508;
    --card-bg: rgba(15, 15, 25, 0.65);
    --text-primary: #F0F0F5;
    --text-secondary: #A0A0B0;
    --border-glow: rgba(139, 0, 255, 0.3);
    --success: #00FF88;
    --warning: #FFB800;
    --danger: #FF2D55;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--darker-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(139, 0, 255, 0.1);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--border-glow);
    transition: var(--transition);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active {
    color: var(--text-primary);
}
.nav-links a.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== АДАПТИВНАЯ НАВИГАЦИЯ ===== */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 78px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 78px);
        background: var(--darker-bg);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: left 0.4s ease;
    }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
}

/* ===== ГЕРОЙ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(139, 0, 255, 0.15), transparent 60%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--success);
    margin-bottom: 30px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-slogan {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    min-height: 2em;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-ip {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: #fff;
    box-shadow: 0 4px 30px rgba(139, 0, 255, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(139, 0, 255, 0.6);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glow);
}
.btn-secondary:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}
.btn::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;
}
.btn:hover::before { left: 100%; }

/* ===== СЕКЦИИ ===== */
section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== СТЕКЛЯННЫЕ КАРТОЧКИ ===== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 0, 255, 0.5);
    box-shadow: 0 20px 60px rgba(139, 0, 255, 0.15);
}
.glass-card:hover::before { opacity: 1; }
.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.2), rgba(0, 240, 255, 0.2));
    border-radius: 16px;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== ГРИДЫ ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    position: absolute;
    top: 16px;
    right: 24px;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.1), rgba(0, 240, 255, 0.1));
    border-radius: 24px;
    border: 1px solid var(--border-glow);
    margin: 60px auto;
    max-width: 1000px;
}
.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}
.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-glow);
    padding: 60px 40px 30px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--neon-cyan);
    transform: translateX(4px);
}
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-glow);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--neon-cyan); text-decoration: none; }

/* ===== ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== СКРОЛЛ К ВВЕРХУ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 255, 0.4);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .hero h1 { font-size: 2.8rem; }
    .stat-number { font-size: 2rem; }
    .btn { padding: 14px 24px; font-size: 0.85rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}