/* ==========================================================
   GATE
   Integration Gateway

   style.css
   Part 1 / 4
========================================================== */

/* ==========================================================
   ROOT
========================================================== */

:root{

    --bg:#06111C;
    --bg-dark:#040B13;
    --bg-panel:rgba(14,25,39,.84);

    --line:rgba(255,255,255,.06);
    --border:rgba(78,190,255,.18);

    --primary:#39C6FF;
    --primary-light:#74DAFF;

    --green:#5bc34e;

    --white:#F5FAFF;

    --text:#D9EAF8;

    --muted:#7D9AB6;

    --shadow:
        0 0 40px rgba(0,180,255,.10);

    --radius:18px;

    --speed:.35s;

}

/* ==========================================================
   RESET
========================================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    min-height:100vh;

    overflow-x:hidden;

    color:var(--text);

    background:

        radial-gradient(circle at top,#102844,#06111C 60%);

    font-family:

        Inter,

        "Segoe UI",

        sans-serif;

}

/* ==========================================================
   BACKGROUND
========================================================== */

.grid{

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:-30;

    background-image:

        linear-gradient(

            rgba(255,255,255,.03) 1px,

            transparent 1px

        ),

        linear-gradient(

            90deg,

            rgba(255,255,255,.03) 1px,

            transparent 1px

        );

    background-size:42px 42px;

}

.noise{

    position:fixed;

    inset:0;

    opacity:.04;

    pointer-events:none;

    z-index:-20;

    background-image:

        radial-gradient(circle,#ffffff 1px,transparent 1px);

    background-size:8px 8px;

}

.glow{

    position:fixed;

    left:50%;

    top:50%;

    width:900px;

    height:900px;

    transform:translate(-50%,-50%);

    border-radius:50%;

    pointer-events:none;

    z-index:-10;

    background:

        radial-gradient(

            circle,

            rgba(57,198,255,.18),

            rgba(57,198,255,.05),

            transparent 72%

        );

    filter:blur(80px);

}

/* ==========================================================
   HEADER
========================================================== */

header{

    width:min(1700px,94%);

    margin:auto;

    padding:28px 0;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.brand{

    display:flex;

    flex-direction:column;

}

.brand-title{

    color:var(--primary);

    font-size:42px;

    font-weight:700;

    letter-spacing:8px;

}

.brand-subtitle{

    margin-top:6px;

    color:var(--muted);

    font-size:15px;

}

/* ==========================================================
   TOP MENU
========================================================== */

.top-menu{

    display:flex;

    gap:18px;

}

.top-menu a{

    color:var(--text);

    text-decoration:none;

    padding:12px 20px;

    border-radius:12px;

    border:1px solid transparent;

    transition:var(--speed);

    font-size:15px;

}

.top-menu a:hover{

    color:white;

    background:

        rgba(57,198,255,.08);

    border-color:

        rgba(57,198,255,.22);

    box-shadow:

        0 0 25px rgba(57,198,255,.12);

}

/* ==========================================================
   STATUS
========================================================== */

.system-status{

    display:flex;

    align-items:center;

    gap:12px;

    color:var(--green);

    font-weight:600;

}

.indicator{

    width:11px;

    height:11px;

    border-radius:50%;

    background:var(--green);

    box-shadow:

        0 0 16px rgba(67,255,143,.9);

}

.indicator.large{

    width:15px;

    height:15px;

}

/* ==========================================================
   MAIN
========================================================== */

main{

    width:min(1700px,94%);

    margin:auto;

}

/* ==========================================================
   GRID
========================================================== */

.center{

    display:grid;

    grid-template-columns:

        310px

        1fr

        310px;

    gap:40px;

    align-items:start;

    min-height:760px;

}

.left-column,

.right-column{

    display:flex;

    flex-direction:column;

    gap:26px;

    align-self:start;

}

/* ==========================================================
   GATEWAY CORE
   Part 2 / 4
========================================================== */

.gateway{

    display:flex;

    justify-content:center;

    align-items:center;

    align-self:start;

}

/* ==========================================================
   CORE CARD
========================================================== */

.core{

    position:relative;

    width:100%;

    max-width:560px;

    padding:42px;

    border-radius:24px;

    background:

        linear-gradient(

            180deg,

            rgba(20,34,52,.96),

            rgba(12,22,36,.92)

        );

    border:1px solid var(--border);

    box-shadow:

        var(--shadow),

        inset 0 1px 0 rgba(255,255,255,.05);

    overflow:hidden;

}

/* лёгкий блик */

.core::before{

    content:"";

    position:absolute;

    left:-120%;

    top:0;

    width:70%;

    height:100%;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.07),

            transparent

        );

    transform:skewX(-20deg);

    animation:shine 8s infinite;

}

/* внутреннее свечение */

.core::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:24px;

    box-shadow:

        inset 0 0 80px rgba(57,198,255,.05);

    pointer-events:none;

}

/* ==========================================================
   HEADER
========================================================== */

.core-header{

    text-align:center;

    color:var(--muted);

    font-size:13px;

    letter-spacing:4px;

    text-transform:uppercase;

    margin-bottom:28px;

}

/* ==========================================================
   LOGO
========================================================== */

.logo-wrapper{

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:30px;

}

.logo-wrapper a{

    display:inline-block;

    line-height:0;

    text-decoration:none;

    cursor:pointer;

}

.measoft-logo{

    width:260px;

    max-width:100%;

    height:auto;

    filter:

        drop-shadow(

            0 0 18px rgba(57,198,255,.15)

        );

    transition:1s;

}

.core:hover .measoft-logo{

    transform:scale(1.02);

    filter:

        drop-shadow(

            0 0 28px rgba(57,198,255,.35)

        );

}

/* ==========================================================
   TITLES
========================================================== */

.gateway-title{

    text-align:center;

    color:var(--white);

    font-size:30px;

    font-weight:600;

    letter-spacing:.5px;

    margin-bottom:10px;

}

.gateway-powered{

    text-align:center;

    color:var(--muted);

    font-size:14px;

    margin-bottom:34px;

}

/* ==========================================================
   DIVIDER
========================================================== */

.gateway-divider{

    width:100%;

    height:1px;

    margin:26px 0;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(57,198,255,.45),

            transparent

        );

}

/* ==========================================================
   STATUS
========================================================== */

.gateway-state{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:16px;

    color:var(--green);

    font-size:34px;

    font-weight:700;

    letter-spacing:3px;

    text-transform:uppercase;

}

.gateway-state .indicator{

    animation:pulseGreen 2.5s infinite;

}

/* ==========================================================
   DESCRIPTION
========================================================== */

.gateway-description{

    margin-top:28px;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:14px;

    color:var(--muted);

    font-size:15px;

}

.gateway-description span{

    color:var(--primary);

}

/* ==========================================================
   PROCESSING
========================================================== */

.processing{

    text-align:center;

    color:var(--primary-light);

    font-size:16px;

    letter-spacing:1px;

    animation:processing 3s ease-in-out infinite;

}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes shine{

    0%{

        left:-120%;

    }

    100%{

        left:180%;

    }

}

@keyframes pulseGreen{

    0%{

        box-shadow:

            0 0 8px rgba(67,255,143,.30);

    }

    50%{

        box-shadow:

            0 0 22px rgba(67,255,143,.95);

    }

    100%{

        box-shadow:

            0 0 8px rgba(67,255,143,.30);

    }

}

@keyframes processing{

    0%{

        opacity:.55;

    }

    50%{

        opacity:1;

    }

    100%{

        opacity:.55;

    }

}

/* ==========================================================
   PANELS
   Part 3 / 4
========================================================== */

/* ==========================================================
   COMMON PANEL
========================================================== */

.panel{

    position:relative;

    padding:30px;

    border-radius:20px;

    background:

        linear-gradient(

            180deg,

            rgba(16,28,44,.92),

            rgba(10,19,31,.90)

        );

    border:1px solid var(--border);

    box-shadow:

        var(--shadow),

        inset 0 1px 0 rgba(255,255,255,.04);

    overflow:hidden;

    transition:.35s;

}

.panel::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:3px;

    background:

        linear-gradient(

            90deg,

            transparent,

            var(--primary),

            transparent

        );

    opacity:.55;

}

.panel:hover{

    transform:translateY(-3px);

    border-color:

        rgba(57,198,255,.32);

    box-shadow:

        0 12px 34px rgba(0,0,0,.28),

        0 0 24px rgba(57,198,255,.14);

}

/* ==========================================================
   PANEL TITLE
========================================================== */

.panel-title{

    margin-bottom:24px;

    color:var(--primary-light);

    font-size:13px;

    font-weight:700;

    letter-spacing:3px;

    text-transform:uppercase;

}

/* ==========================================================
   ENVIRONMENTS
========================================================== */

.env{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px 0;

    border-bottom:1px solid var(--line);

}

.env:last-child{

    border-bottom:none;

}

.led{

    width:10px;

    height:10px;

    border-radius:50%;

    flex-shrink:0;

}

.green{

    background:var(--green);

    box-shadow:

        0 0 14px rgba(67,255,143,.9);

}

/* ==========================================================
   ENDPOINTS
========================================================== */

.endpoints div{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:14px 0;

    border-bottom:1px solid var(--line);

    transition:.3s;

    cursor:default;

}

.endpoints div:last-child{

    border-bottom:none;

}

.endpoints div:hover{

    color:var(--primary);

    padding-left:10px;

}

.endpoints div::after{

    content:"READY";

    font-size:11px;

    color:var(--green);

    letter-spacing:1px;

}

/* ==========================================================
   SYSTEM STATUS
========================================================== */

.row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:1px solid var(--line);

}

.row:last-child{

    border-bottom:none;

}

.row span{

    color:var(--muted);

}

.row strong{

    color:var(--white);

    font-size:16px;

    font-weight:600;

}

#current-time{

    color:var(--primary);

    font-variant-numeric:tabular-nums;

    min-width:8ch;

    display:inline-block;

    text-align:right;

}

/* ==========================================================
   LIVE CONSOLE
========================================================== */

.console{

    min-height:330px;

}

#console{

    font-family:

        Consolas,

        "JetBrains Mono",

        monospace;

    font-size:13px;

    line-height:1.9;

    color:#95F8B8;

    max-height:330px;

    overflow-y:auto;

    overflow-x:hidden;

}

#console div{

    display:flex;

    align-items:center;

    padding:6px 0;

    border-bottom:1px dashed rgba(255,255,255,.04);

    animation:consoleLine .35s ease;

}

#console div:last-child{

    border-bottom:none;

}

#console div::before{

    content:"●";

    color:var(--green);

    margin-right:10px;

    font-size:10px;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#08121D;

}

::-webkit-scrollbar-thumb{

    background:

        rgba(57,198,255,.30);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:

        rgba(57,198,255,.55);

}

/* ==========================================================
   CONSOLE APPEAR
========================================================== */

@keyframes consoleLine{

    from{

        opacity:0;

        transform:translateY(8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
   FINAL TOUCHES
   Part 4 / 4
========================================================== */

/* ==========================================================
   FOOTER
========================================================== */

footer{

    width:min(1700px,94%);

    margin:50px auto 30px;

    padding-top:24px;

    border-top:1px solid rgba(255,255,255,.06);

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:var(--muted);

    font-size:14px;

}

/* ==========================================================
   BRAND
========================================================== */

.brand-title{

    text-shadow:

        0 0 18px rgba(57,198,255,.25);

}

.brand-subtitle{

    letter-spacing:1px;

}

/* ==========================================================
   MENU
========================================================== */

.top-menu a{

    position:relative;

}

.top-menu a::after{

    content:"";

    position:absolute;

    left:20px;

    right:20px;

    bottom:8px;

    height:2px;

    background:var(--primary);

    transform:scaleX(0);

    transition:.35s;

}

.top-menu a:hover::after{

    transform:scaleX(1);

}

/* ==========================================================
   GATEWAY
========================================================== */

.gateway{

    position:relative;

}

.gateway::before{

    content:"";

    position:absolute;

    width:680px;

    height:680px;

    border-radius:50%;

    background:

        radial-gradient(

            circle,

            rgba(57,198,255,.05),

            transparent 70%

        );

    filter:blur(40px);

    pointer-events:none;

}

/* ==========================================================
   CARD HOVER
========================================================== */

.core{

    transition:

        transform .35s,

        box-shadow .35s;

}

.core:hover{

    transform:translateY(-4px);

    box-shadow:

        0 20px 45px rgba(0,0,0,.35),

        0 0 35px rgba(57,198,255,.18);

}

/* ==========================================================
   STATUS
========================================================== */

.gateway-state{

    text-shadow:

        0 0 12px rgba(67,255,143,.25);

}

/* ==========================================================
   PROCESSING
========================================================== */

.processing::after{

    content:"";

    display:inline-block;

    width:1.25em;

    text-align:left;

    animation:dots 1.5s steps(1,end) infinite;

}

/* ==========================================================
   PANELS
========================================================== */

.panel{

    backdrop-filter:blur(16px);

}

.panel:hover{

    border-color:

        rgba(57,198,255,.35);

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1400px){

    .center{

        grid-template-columns:

            280px

            1fr

            280px;

    }

}

@media (max-width:1150px){

    .center{

        grid-template-columns:1fr;

        gap:32px;

    }

    .gateway{

        order:-1;

    }

    .left-column,

    .right-column{

        flex-direction:row;

        flex-wrap:wrap;

    }

    .panel{

        flex:1 1 320px;

    }

}

@media (max-width:900px){

    header{

        flex-direction:column;

        gap:24px;

        text-align:center;

    }

    .top-menu{

        flex-wrap:wrap;

        justify-content:center;

    }

    .measoft-logo{

        width:220px;

    }

    .gateway-title{

        font-size:24px;

    }

}

@media (max-width:700px){

    .core{

        padding:30px;

    }

    footer{

        flex-direction:column;

        gap:10px;

        text-align:center;

    }

}

@media (max-width:500px){

    .brand-title{

        font-size:34px;

        letter-spacing:5px;

    }

    .top-menu{

        gap:10px;

    }

    .top-menu a{

        padding:10px 14px;

        font-size:14px;

    }

    .gateway-state{

        font-size:26px;

    }

}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes dots{

    0%{

        content:"";

    }

    33%{

        content:".";

    }

    66%{

        content:"..";

    }

    100%{

        content:"...";

    }

}
