/* =====================================================
   ОСНОВНЫЕ НАСТРОЙКИ
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {

    --background: #050812;

    --card:
        rgba(13, 19, 35, 0.72);

    --card-light:
        rgba(255, 255, 255, 0.055);

    --border:
        rgba(255, 255, 255, 0.09);

    --text: #f3f6ff;

    --muted: #818ca4;

    --blue: #7183ff;

    --cyan: #5de5ff;

    --green: #5be99b;

}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background:
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;

}



/* =====================================================
   ФОН
===================================================== */

.background {

    position: fixed;

    inset: 0;

    z-index: -10;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 20% 20%,
            rgba(80, 100, 255, 0.15),
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 80%,
            rgba(0, 200, 255, 0.10),
            transparent 30%
        ),

        #050812;

}


.grid {

    position: absolute;

    width: 200%;
    height: 200%;

    left: -50%;
    top: -50%;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025)
            1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025)
            1px,
            transparent 1px
        );

    background-size: 55px 55px;

    transform:
        perspective(600px)
        rotateX(60deg);

    animation:
        gridMove 15s linear infinite;

}


@keyframes gridMove {

    from {

        transform:
            perspective(600px)
            rotateX(60deg)
            translateY(0);

    }

    to {

        transform:
            perspective(600px)
            rotateX(60deg)
            translateY(55px);

    }

}


.orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(100px);

    opacity: .35;

}


.orb-1 {

    width: 420px;
    height: 420px;

    background: #5368ff;

    left: -160px;
    top: -160px;

    animation:
        orbOne 10s ease-in-out infinite alternate;

}


.orb-2 {

    width: 350px;
    height: 350px;

    background: #00c8ff;

    right: -130px;
    bottom: -130px;

    animation:
        orbTwo 12s ease-in-out infinite alternate;

}


@keyframes orbOne {

    to {
        transform:
            translate(160px, 120px);
    }

}


@keyframes orbTwo {

    to {
        transform:
            translate(-120px, -100px);
    }

}


#particles {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

}



/* =====================================================
   HEADER
===================================================== */

.header {

    position: relative;

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding: 25px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 3px;

}


.brand-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--cyan)
        );

    box-shadow:
        0 0 25px
        rgba(100,130,255,.3);

}


.server-status {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 14px;

    border:
        1px solid
        rgba(91,233,155,.15);

    border-radius: 50px;

    color:
        var(--green);

    background:
        rgba(91,233,155,.05);

    font-family: monospace;

    font-size: 11px;

    letter-spacing: 1px;

}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 12px
        var(--green);

    animation:
        blink 1.5s infinite;

}


@keyframes blink {

    50% {
        opacity: .3;
    }

}



/* =====================================================
   ОСНОВНОЙ КОНТЕЙНЕР
===================================================== */

.container {

    width: min(
        1000px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        60px 0 80px;

}



/* =====================================================
   HERO
===================================================== */

.hero {

    padding:
        65px 40px;

    text-align: center;

    border:
        1px solid
        var(--border);

    border-radius: 30px;

    background:
        var(--card);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    box-shadow:

        0 30px 100px
        rgba(0,0,0,.4),

        inset 0 1px 0
        rgba(255,255,255,.04);

    transition:
        transform .2s ease;

}


.badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        8px 14px;

    margin-bottom: 25px;

    border:
        1px solid
        rgba(91,233,155,.18);

    border-radius: 50px;

    background:
        rgba(91,233,155,.05);

    color:
        var(--green);

    font-family: monospace;

    font-size: 11px;

    letter-spacing: 1px;

}


.badge span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 10px
        var(--green);

}


h1 {

    font-size:
        clamp(
            55px,
            11vw,
            110px
        );

    line-height: .95;

    letter-spacing:
        8px;

    font-weight: 900;

    background:

        linear-gradient(
            100deg,
            #ffffff,
            #9ba7ff,
            #5de5ff
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

    margin-bottom:
        22px;

}


h1 span {

    opacity: .65;

}


.subtitle {

    color:
        #b3bbcc;

    font-size:
        18px;

    margin-bottom:
        16px;

}


.description {

    max-width:
        600px;

    margin:
        0 auto;

    color:
        var(--muted);

    line-height:
        1.7;

    font-size:
        15px;

    min-height:
        52px;

    transition:
        opacity .2s ease;

}



/* =====================================================
   КНОПКИ
===================================================== */

.buttons {

    display:
        flex;

    justify-content:
        center;

    gap:
        12px;

    flex-wrap:
        wrap;

    margin-top:
        32px;

}


.button {

    padding:
        13px 20px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        12px;

    background:
        rgba(255,255,255,.05);

    color:
        #dce2f0;

    font-size:
        13px;

    font-weight:
        600;

    cursor:
        pointer;

    transition:
        .25s;

}


.button:hover {

    transform:
        translateY(-3px);

    background:
        rgba(255,255,255,.10);

    border-color:
        rgba(255,255,255,.18);

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.25);

}


.button.primary {

    border:
        none;

    color:
        white;

    background:

        linear-gradient(
            135deg,
            #6677ff,
            #09bfe5
        );

    box-shadow:
        0 8px 30px
        rgba(78,115,255,.2);

}


.button.primary:hover {

    box-shadow:
        0 12px 40px
        rgba(78,115,255,.4);

}



/* =====================================================
   КАРТОЧКИ
===================================================== */

.cards {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        14px;

    margin-top:
        14px;

}


.info-card {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        20px;

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    background:
        rgba(13,19,35,.65);

    backdrop-filter:
        blur(20px);

}


.card-icon {

    width:
        42px;

    height:
        42px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        12px;

    background:
        rgba(112,130,255,.10);

    color:
        var(--cyan);

    font-size:
        20px;

}


.card-title {

    color:
        #68748c;

    font-family:
        monospace;

    font-size:
        10px;

    letter-spacing:
        1px;

    margin-bottom:
        5px;

}


.card-value {

    color:
        #e8edf8;

    font-family:
        monospace;

    font-size:
        13px;

}



/* =====================================================
   ГРАФИК
===================================================== */

.chart-card {

    margin-top:
        14px;

    padding:
        25px;

    border:
        1px solid
        var(--border);

    border-radius:
        20px;

    background:
        rgba(13,19,35,.68);

    backdrop-filter:
        blur(20px);

}


.chart-header {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-bottom:
        20px;

}


.chart-title {

    color:
        #dfe5f4;

    font-family:
        monospace;

    font-size:
        12px;

    letter-spacing:
        1.5px;

}


.chart-subtitle {

    margin-top:
        5px;

    color:
        #69758d;

    font-size:
        12px;

}


.chart-value {

    color:
        var(--cyan);

    font-family:
        monospace;

    font-size:
        24px;

    font-weight:
        700;

}


.chart-container {

    width:
        100%;

    height:
        220px;

}


#activityChart {

    display:
        block;

    width:
        100%;

    height:
        100%;

}



/* =====================================================
   TERMINAL
===================================================== */

.terminal {

    margin-top:
        14px;

    overflow:
        hidden;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius:
        18px;

    background:
        rgba(5,8,18,.82);

    font-family:
        "Courier New",
        monospace;

}


.terminal-header {

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    padding:
        0 16px;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

    color:
        #68748c;

    font-size:
        10px;

    letter-spacing:
        1px;

}


.terminal-buttons {

    display:
        flex;

    gap:
        6px;

}


.terminal-buttons span {

    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        #384052;

}


.terminal-body {

    padding:
        22px;

    color:
        #8995ab;

    font-size:
        12px;

    line-height:
        2;

}


.terminal-green {

    color:
        var(--green);

}


.terminal-result b {

    color:
        #d8e1ef;

}


.terminal-cursor {

    color:
        var(--cyan);

    animation:
        cursorBlink 1s infinite;

}


@keyframes cursorBlink {

    50% {
        opacity: 0;
    }

}



/* =====================================================
   FOOTER
===================================================== */

footer {

    display:
        flex;

    justify-content:
        center;

    gap:
        10px;

    padding:
        20px;

    color:
        #465166;

    font-family:
        monospace;

    font-size:
        10px;

    letter-spacing:
        1px;

}



/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
===================================================== */

@media (max-width: 700px) {

    .header {

        width:
            calc(100% - 25px);

    }


    .container {

        width:
            calc(100% - 25px);

        padding-top:
            35px;

    }


    .hero {

        padding:
            45px 20px;

        border-radius:
            23px;

    }


    h1 {

        font-size:
            48px;

        letter-spacing:
            4px;

    }


    .subtitle {

        font-size:
            15px;

    }


    .cards {

        grid-template-columns:
            1fr;

    }


    .chart-container {

        height:
            180px;

    }


    .server-status {

        display:
            none;

    }

}


@media (max-width: 400px) {

    h1 {

        font-size:
            40px;

    }


    .buttons {

        flex-direction:
            column;

    }


    .button {

        width:
            100%;

    }

}