/* --- IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

:root {
    --primary: #ff0000;
    --dark: #050505;
    --text: #e0e0e0;
}

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

/* CRITICAL: PREVENT HORIZONTAL SCROLL */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body { 
    background-color: var(--dark); 
    color: var(--text); 
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
}

/* --- LOADER --- */
.loader {
    position: fixed; inset: 0;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}
.loader-wrapper { text-align: center; width: 300px; max-width: 90%; }
.loader-text {
    font-family: 'Orbitron', sans-serif; color: var(--primary);
    font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 2px;
    animation: glitch 1s infinite;
}
.progress-container {
    width: 100%; height: 4px; background: #222;
    position: relative; overflow: hidden;
}
.progress-bar {
    height: 100%; width: 0%; background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: width 0.1s linear;
}
.loader-percent { margin-top: 10px; font-family: monospace; color: #666; }

/* --- HEADER --- */
.header {
    position: fixed; top: 0; width: 100%; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,0,0,0.1);
}
.logo { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; color: #fff; }
.text-red { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.header-right { display: flex; gap: 20px; align-items: center; }
.socials a { color: #fff; font-size: 1.4rem; transition: 0.3s; }
.socials a:hover { color: var(--primary); transform: scale(1.1); text-shadow: 0 0 10px var(--primary); }
.music-btn {
    background: transparent; border: 1px solid #fff; color: #fff;
    width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.music-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* --- VIDEO HERO --- */
.video-container {
    position: relative; width: 100%; height: 100vh;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.bg-video {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%; object-fit: cover; z-index: -1; opacity: 0.6;
}
.video-overlay {
    position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), #050505); z-index: 0;
}
.hero-content { position: relative; z-index: 2; text-align: center; margin-top: 50px; padding: 0 20px; }
.hero-content h1 {
    font-family: 'Creepster', cursive; font-size: 5rem; color: #fff;
    text-shadow: 4px 4px 0 #000, 0 0 30px var(--primary); line-height: 1;
}
.hero-content p { font-size: 1.5rem; letter-spacing: 5px; color: #aaa; margin-top: 20px; font-family: 'Orbitron', sans-serif; }

/* --- SECTIONS COMMON --- */
.section { padding: 100px 5%; text-align: center; position: relative; }
.section-title {
    font-family: 'Orbitron', sans-serif; font-size: 3rem; margin-bottom: 60px;
    color: #fff; text-transform: uppercase; text-shadow: 0 0 10px rgba(255,255,255,0.3);
    position: relative; display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 60%; height: 3px;
    background: var(--primary); margin: 10px auto 0; box-shadow: 0 0 15px var(--primary);
}

/* --- FEATURES --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-card {
    background: rgba(20, 20, 20, 0.6); border: 1px solid #333; padding: 40px 20px;
    transition: 0.4s; position: relative; overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: inset 0 0 20px rgba(255,0,0,0.2), 0 0 20px rgba(255,0,0,0.1);
}
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-family: 'Orbitron'; margin-bottom: 10px; font-size: 1.4rem; color: #fff;}

/* --- CONTRACT --- */
.contract-section { background: linear-gradient(180deg, #050505 0%, #110000 50%, #050505 100%); }
.ticker-box {
    font-size: 4rem; font-weight: 900; color: #222;
    -webkit-text-stroke: 1px var(--primary); opacity: 0.5; margin-bottom: -20px; font-family: 'Orbitron';
}
.address-container {
    background: #111; border: 1px solid #333; display: inline-flex; align-items: center; gap: 15px;
    padding: 15px 30px; border-radius: 8px; cursor: pointer; position: relative;
    transition: 0.3s; font-family: 'Courier New', monospace; max-width: 95%; overflow-wrap: break-word;
}
.address-container:hover { border-color: var(--primary); box-shadow: 0 0 15px rgba(255,0,0,0.3); }
.address-container span { font-size: 1.1rem; color: #fff; word-break: break-all; }
.copy-icon { color: var(--primary); }
.copy-tooltip {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 5px 10px; font-size: 0.8rem;
    font-weight: bold; border-radius: 4px; opacity: 0; transition: 0.3s; pointer-events: none;
}
.copy-tooltip.show { opacity: 1; top: -50px; }
.buy-btn {
    display: inline-block; margin-top: 40px; background: var(--primary); color: #fff;
    padding: 18px 50px; text-decoration: none; font-family: 'Orbitron'; font-weight: bold;
    font-size: 1.2rem; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s;
}
.buy-btn:hover { background: #fff; color: #000; box-shadow: 0 0 30px var(--primary); transform: scale(1.05); }

/* --- MEMES GALLERY (NEW) --- */
.memes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки на пк */
    gap: 20px;
    padding: 20px 0;
}
.meme-item {
    position: relative; overflow: hidden; border-radius: 8px;
    border: 2px solid #333; transition: 0.4s ease; cursor: pointer;
}
.meme-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(100%) contrast(1.2); transition: 0.5s ease;
}
/* Эффекты при наведении */
.meme-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    transform: scale(1.05); z-index: 10;
}
.meme-item:hover img { filter: grayscale(0%) contrast(1); transform: scale(1.1); }


/* --- ROADMAP --- */
.roadmap-wrapper { position: relative; max-width: 900px; margin: 0 auto; padding: 40px 0; }
.roadmap-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent); transform: translateX(-50%);
}
.roadmap-card { width: 45%; position: relative; margin-bottom: 60px; }
.roadmap-card.left { margin-right: auto; text-align: right; }
.roadmap-card.right { margin-left: auto; text-align: left; }
.roadmap-dot {
    position: absolute; top: 15px; width: 20px; height: 20px; background: #000;
    border: 3px solid var(--primary); border-radius: 50%; z-index: 2; box-shadow: 0 0 15px var(--primary);
}
.roadmap-card.left .roadmap-dot { right: calc(-50% - 11px); } 
.roadmap-card.right .roadmap-dot { left: calc(-50% - 11px); }
.roadmap-content {
    background: rgba(20,20,20,0.8); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1); padding: 25px; border-radius: 10px; transition: 0.3s;
}
.roadmap-content:hover { border-color: var(--primary); transform: scale(1.02); }
.roadmap-content h3 { color: var(--primary); font-family: 'Orbitron'; margin-bottom: 5px; }
.roadmap-content h4 { color: #fff; margin-bottom: 15px; font-weight: bold; }
.roadmap-content ul { list-style: none; color: #aaa; }
.roadmap-content ul li { margin-bottom: 8px; font-style: italic; }

/* --- TERMINAL --- */
.monitor-casing {
    max-width: 800px; margin: 0 auto; background: #222; padding: 20px;
    border-radius: 20px; box-shadow: 0 0 50px rgba(0,0,0,0.8); border: 1px solid #444;
}
.monitor-screen {
    background: #001100; height: 300px; border-radius: 10px; border: 2px solid #333;
    position: relative; overflow: hidden; padding: 20px; text-align: left;
    font-family: 'Courier New', monospace; box-shadow: inset 0 0 50px #000;
}
.scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(0, 255, 0, 0.1); animation: scan 6s linear infinite; pointer-events: none;
}
.monitor-base { margin-top: 10px; display: flex; justify-content: flex-end; }
.logo-small { color: #555; font-size: 0.8rem; letter-spacing: 2px; }
.monitor-content {
    height: 100%; overflow: hidden; color: #0f0; text-shadow: 0 0 5px #0f0;
    font-size: 0.9rem; line-height: 1.4; display: flex; flex-direction: column; justify-content: flex-end;
}
.log-entry { margin-bottom: 4px; }
.log-time { color: #005500; margin-right: 10px; }
.log-action { color: #fff; font-weight: bold; }
.log-target { color: var(--primary); }

/* --- CTA SECTION --- */
.cta-section {
    position: relative; padding: 120px 5%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/5.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
}
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #000, rgba(0,0,0,0.6), #000); pointer-events: none; }
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-family: 'Creepster'; font-size: 4rem; color: var(--primary); margin-bottom: 20px; }
.cta-content p { font-size: 1.5rem; margin-bottom: 40px; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 10px; background: transparent;
    border: 2px solid var(--primary); color: var(--primary); padding: 15px 40px;
    text-decoration: none; font-weight: bold; font-family: 'Orbitron'; transition: 0.3s; font-size: 1.2rem;
}
.cta-btn:hover { background: var(--primary); color: #fff; box-shadow: 0 0 30px var(--primary); }

/* --- FOOTER --- */
.footer { padding: 60px 20px; border-top: 1px solid #222; background: #080808; text-align: center; }
.footer-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-socials a {
    color: #666; text-decoration: none; font-weight: bold; letter-spacing: 1px; transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.footer-socials a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* --- ANIMATIONS --- */
@keyframes glitch {
    0% { transform: translate(0); } 20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); } 100% { transform: translate(0); }
}
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }

/* --- RESPONSIVE ADAPTION --- */
@media (max-width: 1200px) {
    .memes-grid { grid-template-columns: repeat(3, 1fr); } /* 3 колонки на средних */
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .logo { font-size: 1.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.2rem; letter-spacing: 2px; }
    
    /* Roadmap Mobile Fix */
    .roadmap-line { left: 20px; }
    .roadmap-card { width: 100%; margin-left: 40px !important; text-align: left !important; }
    .roadmap-card.left .roadmap-dot, .roadmap-card.right .roadmap-dot {
        left: -31px; right: auto;
    }
    
    /* Memes Mobile */
    .memes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } /* 2 колонки на мобилках */

    .cta-content h2 { font-size: 2.5rem; }
    .ticker-box { font-size: 2.5rem; }
    .address-container { font-size: 0.8rem; padding: 12px; gap: 8px; }
    .buy-btn { padding: 15px 30px; font-size: 1rem; }
    .footer-socials { gap: 20px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section { padding: 60px 5%; }
    .address-container span { font-size: 0.7rem; }
}
.hero-content h1:hover {
    text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    transition: 0.5s;
}