:root {
    --bg: #020e20;
    --panel: #06172b;
    --cyan: #35caff;
    --green: #6cf49a;
    --amber: #ffc553;
    --red: #ff5365;
    --ink: #f4f8ff;
    --muted: #8ba3bc
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 67% 46%, #082844 0, #03152b 34%, var(--bg) 70%);
    color: var(--ink);
    font-family: Arial, sans-serif;
    overflow-x: hidden
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(#14304c33 1px, transparent 1px), linear-gradient(90deg, #14304c33 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at 70% 45%, #000, transparent 70%);
    pointer-events: none
}

header {
    height: 68px;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid #14304c88;
    position: relative;
    z-index: 10
}

.logo {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .11em
}

nav {
    display: flex;
    background: #071b31;
    border: 1px solid #183852;
    border-radius: 99px;
    padding: 4px
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 7px 13px;
    font-size: 10px;
    border-radius: 99px
}

nav .active {
    color: #fff;
    background: #12314c
}

.live {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    letter-spacing: .1em
}

.live i {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green)
}

main {
    min-height: 770px;
    position: relative;
    padding: 54px 4vw 20px
}

.headline {
    position: absolute;
    left: 4vw;
    top: 64px
}

.headline p {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: .18em;
    margin: 0 0 12px
}

.headline h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 60px);
    letter-spacing: -.04em
}

.headline i {
    display: block;
    width: 70px;
    height: 3px;
    background: var(--green);
    box-shadow: 0 0 11px var(--green);
    margin-top: 20px
}

.metrics {
    position: absolute;
    left: 4vw;
    top: 230px;
    width: 330px;
    padding: 12px 20px;
    background: #04162ae8;
    border: 1px solid #183b59;
    border-radius: 17px;
    box-shadow: 0 22px 60px #0007
}

.metrics>div {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 0 13px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #173651
}

.metrics>div:last-child {
    border: 0
}

.metric-icon {
    grid-row: 1/3;
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.metrics p {
    margin: 0;
    font-size: 10px
}

.metrics strong {
    display: block;
    font: 500 21px monospace;
    margin-top: 4px
}

.metrics small {
    font-size: 8px;
    color: var(--muted)
}

.cyan {
    color: #33e7d1
}

.green {
    color: var(--green)
}

.blue {
    color: var(--cyan)
}

.amber {
    color: var(--amber)
}

.neon-map {
    position: absolute;
    left: 390px;
    right: 3vw;
    top: 42px;
    height: 690px
}

.device {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 13px
}

.device p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.device strong,
.device small {
    display: block
}

.device strong {
    font: 500 19px monospace;
    margin: 4px 0;
    color: currentColor
}

.device small {
    font-size: 9px;
    color: #b9c8d7
}

.device-icon {
    width: 96px;
    height: 96px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 44px;
    background: #06192bcc;
    box-shadow: inset 0 0 24px currentColor, 0 0 20px currentColor
}

.solar-device {
    left: 18%;
    top: 50px;
    color: var(--amber)
}

.home-device {
    right: 0;
    top: 50px;
    color: var(--green)
}

.grid-device {
    left: 18%;
    bottom: 38px;
    color: var(--cyan)
}

.grid-device.importing {
    color: var(--red)
}

.car-device {
    right: 0;
    bottom: 38px;
    color: var(--green)
}

.inactive {
    opacity: .45
}

.orb {
    position: absolute;
    left: 57%;
    top: 51%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 3px solid #9af4ff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #0a3f4d99, #06182ae8 65%);
    box-shadow: inset 0 0 55px #24d9ff88, 0 0 30px #35caff, 0 0 80px #62f49455;
    color: var(--green);
    overflow: hidden;
    transition: .5s
}

.orb.importing {
    border-color: #ff8490;
    color: #ff8e98;
    box-shadow: inset 0 0 55px #ff536588, 0 0 30px #ff5365, 0 0 80px #ff536555
}

.orb-field {
    position: absolute;
    inset: 18px;
    border: 1px dashed currentColor;
    border-radius: 50%;
    animation: spin 18s linear infinite
}

.orb-wave {
    position: absolute;
    width: 120%;
    height: 32%;
    border: 2px solid currentColor;
    border-radius: 50%;
    filter: drop-shadow(0 0 7px currentColor);
    opacity: .55;
    animation: wave 4s ease-in-out infinite
}

.orb-wave.two {
    transform: rotate(60deg);
    animation-delay: -2s
}

.orb>span {
    font-size: 60px;
    text-shadow: 0 0 17px currentColor
}

.orb small {
    font-size: 8px;
    letter-spacing: .18em;
    margin-top: 10px
}

.orb strong {
    font: 600 28px monospace;
    margin-top: 4px
}

.beam {
    position: absolute;
    z-index: 2;
    height: 3px;
    background: currentColor;
    opacity: .2;
    transform-origin: left center;
    filter: drop-shadow(0 0 5px currentColor)
}

.beam i {
    display: none;
    position: absolute;
    width: 9px;
    height: 9px;
    top: -3px;
    left: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 3px currentColor
}

.beam.on {
    opacity: 1
}

.beam.on i {
    display: block;
    animation: travel 6s linear infinite
}

.beam.reverse i {
    animation-direction: reverse
}

.solar-beam {
    left: 27%;
    top: 190px;
    width: 27%;
    color: var(--amber);
    transform: rotate(28deg)
}

.home-beam {
    left: 69%;
    top: 284px;
    width: 23%;
    color: var(--green);
    transform: rotate(-38deg)
}

.grid-beam {
    left: 27%;
    bottom: 188px;
    width: 28%;
    color: var(--cyan);
    transform: rotate(-27deg)
}

.grid-beam.on:not(.reverse) {
    color: var(--red)
}

.car-beam {
    left: 69%;
    bottom: 280px;
    width: 23%;
    color: var(--green);
    transform: rotate(37deg)
}

.status-text {
    position: absolute;
    right: 4vw;
    bottom: 15px;
    text-align: right
}

.status-text strong,
.status-text span {
    display: block
}

.status-text strong {
    font-size: 10px
}

.status-text span {
    font-size: 8px;
    color: var(--muted);
    margin-top: 4px
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 4vw;
    border-top: 1px solid #14304c88;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .08em
}

@keyframes travel {
    to {
        left: calc(100% - 9px)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes wave {
    50% {
        height: 52%;
        transform: rotate(25deg)
    }
}

@media(max-width:900px) {
    header {
        grid-template-columns: 1fr auto
    }

    .live {
        display: none
    }

    nav {
        position: fixed;
        bottom: 13px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20
    }

    .logo {
        font-size: 12px
    }

    main {
        padding: 30px 12px 80px;
        min-height: 1070px
    }

    .headline {
        position: relative;
        left: auto;
        top: auto
    }

    .metrics {
        left: 12px;
        right: 12px;
        top: 150px;
        width: auto
    }

    .neon-map {
        left: 8px;
        right: 8px;
        top: 530px;
        height: 490px
    }

    .device {
        display: block;
        text-align: center
    }

    .device p {
        font-size: 9px
    }

    .device strong {
        font-size: 14px
    }

    .device-icon {
        width: 66px;
        height: 66px;
        font-size: 28px;
        margin: auto
    }

    .solar-device {
        left: 7%;
        top: 0
    }

    .home-device {
        right: 7%;
        top: 0
    }

    .grid-device {
        left: 7%;
        bottom: 0
    }

    .car-device {
        right: 7%;
        bottom: 0
    }

    .orb {
        left: 50%;
        top: 50%;
        width: 190px;
        height: 190px
    }

    .orb>span {
        font-size: 38px
    }

    .beam {
        display: none
    }

    .status-text {
        bottom: 45px;
        right: 12px
    }

    footer {
        padding-bottom: 70px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important
    }
}