/* --- ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ --- */
:root {
    --bg-dark: #0f172a;       /* Velmi tmavá modrá */
    --bg-darker: #020617;     /* Téměř černá */
    --primary: #3b82f6;       /* Jasná modrá */
    --accent: #10b981;        /* Matrix zelená / Bezpečnost */
    --text-main: #f1f5f9;     /* Bílá/Šedá */
    --text-muted: #94a3b8;    /* Tlumená šedá */
    --glass: rgba(15, 23, 42, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight { color: var(--primary); }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    background: #2563eb;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    margin-left: 10px;
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-code);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.discord-btn {
    background: #5865F2; /* Discord barva */
    padding: 8px 20px;
    border-radius: 5px;
    color: white !important;
    font-weight: 600;
}
.discord-btn:hover { background: #4752c4; }

/* Hamburger Menu */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-main); transition: 0.3s; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b 0%, var(--bg-dark) 60%);
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text { flex: 1; max-width: 600px; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    line-height: 1.1;
    font-weight: 800;
}

.typewriter {
    color: var(--primary);
    border-right: 4px solid var(--primary);
    animation: blink 0.75s step-end infinite;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

/* IT Grafika (Shield) */
.cyber-shield {
    font-size: 15rem;
    color: var(--bg-dark);
    text-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 1;
}

.cyber-shield i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
    animation: float 6s ease-in-out infinite;
}

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.dark-bg { background-color: var(--bg-darker); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.checklist li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checklist i { color: var(--accent); }

/* Code Block Styl */
.code-block {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-code);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}
.code-header { display: flex; gap: 8px; margin-bottom: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.c-purple { color: #c678dd; }
.c-blue { color: #61afef; }
.c-green { color: #98c379; }
.c-red { color: #e06c75; }

/* Row layout */
.row { display: flex; align-items: center; gap: 50px; }
.col-text { flex: 1; }
.col-img { flex: 1; }

/* Beta Banner */
.beta-banner {
    background: linear-gradient(90deg, #ca8a04, #eab308);
    color: #000;
    padding: 40px 0;
}
.beta-banner i { font-size: 2rem; margin-bottom: 10px; }

/* --- FOOTER --- */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary); text-decoration: underline; }

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- THREAT RADAR STYLES --- */
        .threat-section {
            background: linear-gradient(to bottom, rgba(20, 0, 0, 0.8), var(--bg-color));
            border-top: 1px solid #ff0000;
            border-bottom: 1px solid #ff0000;
            box-shadow: 0 0 30px rgba(255, 0, 0, 0.1) inset;
        }

        .threat-header { text-align: center; margin-bottom: 40px; }
        .threat-subtitle { color: #ff8888; font-family: var(--font-code); margin-top: -10px; }

        .threat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
        }

        .threat-card {
            background: rgba(30, 5, 5, 0.6);
            border: 1px solid rgba(255, 0, 0, 0.3);
            padding: 25px;
            position: relative;
            border-left: 5px solid #555; /* Default barva */
            transition: transform 0.3s;
        }

        .threat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        }

        /* Styly pro různé typy hrozeb */
        .threat-card.critical {
            border-left-color: #ff0000;
            background: linear-gradient(45deg, rgba(255,0,0,0.1), transparent);
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
        }
        
        .threat-card.warning { border-left-color: #ffaa00; }
        .threat-card.info { border-left-color: #00f3ff; }

        .threat-badge {
            position: absolute;
            top: 15px; right: 15px;
            background: #ff0000;
            color: white;
            padding: 3px 8px;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 3px;
            box-shadow: 0 0 10px #ff0000;
        }

        .threat-badge.warning-bg { background: #ffaa00; color: black; box-shadow: 0 0 10px #ffaa00; }
        .threat-badge.info-bg { background: #00f3ff; color: black; box-shadow: 0 0 10px #00f3ff; }

        .threat-date {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 10px;
            font-family: var(--font-code);
        }

        .threat-card h3 {
            margin-bottom: 15px;
            color: #fff;
            font-size: 1.4rem;
        }
        
        .threat-card.critical h3 { color: #ff5555; }

        .threat-action {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9rem;
            color: #ddd;
        }

        .threat-action strong {
            display: block;
            margin-bottom: 5px;
            color: var(--neon-green);
        }

/* --- ANIMACE --- */
@keyframes blink { 50% { border-color: transparent; } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Scroll Reveal Class (přidáno přes JS) */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* --- MEDIA QUERIES (MOBIL) --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        height: calc(100vh - 80px); /* Odečíst výšku navbaru */
        padding-top: 50px;
        transition: 0.3s;
        border-top: 1px solid var(--border);
    }
    .nav-menu.active { left: 0; }
    
    .hero { height: auto; padding: 120px 0 60px; text-align: center; }
    .hero-content { flex-direction: column-reverse; gap: 40px; }
    .hero-text { max-width: 100%; }
    .row { flex-direction: column; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .cyber-shield { font-size: 10rem; }
}