﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');


body {
    font-family: 'Inter', sans-serif;
    color: #2d2d2d;
    line-height: 1.7;
    min-height: 100vh;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    overflow: hidden;
    margin-top: 25px;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(ellipse at 50% 50%, rgba(125, 217, 87, 0.15) 0%, transparent 60%);
        animation: heroGlow 8s ease-in-out infinite alternate;
    }

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-2%, 2%) scale(1.05);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(125, 217, 87, 0.15);
    border: 2px solid rgba(125, 217, 87, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5cb85c;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

    .hero-badge .dot {
        width: 8px;
        height: 8px;
        background: #7dd957;
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
    color: #2d2d2d;
    margin-bottom: 16px;
    line-height: 1.1;
}

    .hero h1 span {
        display: block;
        color: #4a9eff;
    }

.hero p {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.belarus-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

    .belarus-flag .flag-icon {
        display: flex;
        gap: 0;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .belarus-flag .flag-stripe {
        width: 40px;
        height: 26px;
    }

        .belarus-flag .flag-stripe.red {
            background: #CF101A;
        }

        .belarus-flag .flag-stripe.green {
            background: #007C30;
        }

        .belarus-flag .flag-stripe.ornament {
            background: repeating-linear-gradient( 0deg, #CF101A 0px, #CF101A 2px, #fff 2px, #fff 4px );
            width: 10px;
        }

    .belarus-flag span {
        font-size: 0.85rem;
        color: #666;
        font-weight: 500;
    }

/* ===== SECTION ===== */
.section {
    margin-bottom: 30px;
    padding: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(125, 217, 87, 0.2);
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: rgba(125, 217, 87, 0.15);
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #2d2d2d;
}

/* ===== RULE CARDS ===== */
.rule-card {
    background: white;
    border: 2px solid rgba(125, 217, 87, 0.15);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .rule-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #7dd957, #4a9eff);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .rule-card:hover {
        border-color: rgba(125, 217, 87, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

        .rule-card:hover::before {
            opacity: 1;
        }

    .rule-card .rule-number {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        font-weight: 700;
        color: #7dd957;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .rule-card h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: #2d2d2d;
        margin-bottom: 8px;
    }

    .rule-card p {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.7;
    }

    .rule-card ul {
        list-style: none;
        margin-top: 12px;
    }

        .rule-card ul li {
            position: relative;
            padding-left: 22px;
            margin-bottom: 8px;
            font-size: 0.93rem;
            color: #666;
        }

            .rule-card ul li::before {
                content: '▸';
                position: absolute;
                left: 0;
                color: #7dd957;
                font-weight: 700;
            }

/* ===== LANGUAGES GRID ===== */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.lang-card {
    background: white;
    border: 2px solid rgba(125, 217, 87, 0.15);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .lang-card:hover {
        border-color: rgba(125, 217, 87, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.lang-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

    .lang-icon.cpp {
        background: linear-gradient(135deg, #00599C, #004482);
        color: #fff;
    }

    .lang-icon.py {
        background: linear-gradient(135deg, #3776AB, #FFD43B);
        color: #fff;
    }

    .lang-icon.java {
        background: linear-gradient(135deg, #ED8B00, #5382A1);
        color: #fff;
    }

    .lang-icon.cs {
        background: linear-gradient(135deg, #239120, #68217A);
        color: #fff;
    }

    .lang-icon.js {
        background: linear-gradient(135deg, #F7DF1E, #e8d44d);
        color: #000;
    }

    .lang-icon.rs {
        background: linear-gradient(135deg, #DEA584, #CE422B);
        color: #fff;
    }

    .lang-icon.go {
        background: linear-gradient(135deg, #00ADD8, #0099c4);
        color: #fff;
    }

    .lang-icon.kt {
        background: linear-gradient(135deg, #7F52FF, #C711E1);
        color: #fff;
    }

    .lang-icon.php {
        background: linear-gradient(135deg, #777BB4, #4F5B93);
        color: #fff;
    }

    .lang-icon.rb {
        background: linear-gradient(135deg, #CC342D, #a82d26);
        color: #fff;
    }

    .lang-icon.swift {
        background: linear-gradient(135deg, #FA7343, #F05138);
        color: #fff;
    }

    .lang-icon.ts {
        background: linear-gradient(135deg, #3178C6, #235a97);
        color: #fff;
    }

.lang-info .lang-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d2d2d;
}

.lang-info .lang-version {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

/* ===== WARNING / BAN BLOCK ===== */
.ban-block {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.8), rgba(255, 248, 240, 0.6));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.1);
}

    .ban-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff6b6b, #ffa502, #ff6b6b);
    }

    .ban-block h3 {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.3rem;
        font-weight: 700;
        color: #ff6b6b;
        margin-bottom: 20px;
    }

        .ban-block h3 .warn-icon {
            font-size: 1.5rem;
        }

.ban-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ban-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ban-step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ff6b6b;
    flex-shrink: 0;
}

.ban-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 4px;
}

.ban-step-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.ban-step-content .highlight {
    color: #ffa502;
    font-weight: 600;
}

.ban-step-content .danger {
    color: #ff6b6b;
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 32px 0 10px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.timeline-node {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .timeline-dot.start {
        background: #7dd957;
        box-shadow: 0 0 12px rgba(125, 217, 87, 0.4);
    }

    .timeline-dot.detect {
        background: #ffa502;
        box-shadow: 0 0 12px rgba(255, 165, 2, 0.4);
    }

    .timeline-dot.ban {
        background: #ff6b6b;
        box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
    }

    .timeline-dot.defend {
        background: #4a9eff;
        box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
    }

    .timeline-dot.result {
        background: #7dd957;
        box-shadow: 0 0 12px rgba(125, 217, 87, 0.4);
    }

.timeline-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.timeline-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ddd, #bbb);
    margin: 0 6px;
}

/* ===== INFO CALLOUT ===== */
.callout {
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 2px solid;
}

    .callout.info {
        background: rgba(74, 158, 255, 0.08);
        border-color: rgba(74, 158, 255, 0.2);
    }

    .callout.warning {
        background: rgba(255, 165, 2, 0.08);
        border-color: rgba(255, 165, 2, 0.2);
    }

    .callout .callout-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .callout p {
        font-size: 0.92rem;
        color: #444;
        line-height: 1.65;
    }

    .callout strong {
        color: #2d2d2d;
    }

/* ===== DIVIDER ===== */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(125, 217, 87, 0.3), transparent);
    margin: 50px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero {
        padding: 60px 16px 40px;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .ban-block {
        padding: 24px 20px;
    }

    .timeline {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-line {
        width: 2px;
        height: 20px;
    }

    .rule-card {
        padding: 20px;
    }
}
