:root {
    --bg: #edf3f0;
    --panel: #f8fbf9;
    --ink: #14201c;
    --muted: #718078;
    --solar: #f4b73f;
    --grid: #7b8f99;
    --home: #8a67c7;
    --car: #43a9d5;
    --green: #39b873;
    --red: #e34f4f;
    --line: #d7e2dc
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, sans-serif
}

.bar {
    height: 72px;
    padding: 0 clamp(18px, 5vw, 70px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: #f8fbf9e8;
    position: sticky;
    top: 0;
    z-index: 20
}

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800
}

.brand-dots {
    display: flex;
    gap: 3px
}

.brand-dots i {
    width: 7px;
    height: 20px;
    border-radius: 8px;
    background: var(--green);
    transform: skew(-10deg)
}

.brand-dots i:nth-child(2) {
    height: 27px;
    background: var(--solar)
}

.brand-dots i:nth-child(3) {
    height: 16px;
    background: var(--car)
}

.switch {
    display: flex;
    padding: 4px;
    background: #e4ece7;
    border-radius: 99px
}

.switch a {
    padding: 8px 15px;
    border-radius: 99px;
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750
}

.switch .active {
    background: #fff;
    color: var(--ink)
}

.connection {
    justify-self: end;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    font-weight: 700
}

.connection i {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%
}

main {
    width: min(1180px, calc(100% - 38px));
    margin: auto
}

.intro {
    padding: 50px 0 28px;
    display: flex;
    align-items: end;
    justify-content: space-between
}

.kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em
}

.intro h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.055em
}

.updated {
    text-align: right
}

.updated strong,
.updated span {
    display: block
}

.updated span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px
}

.stage {
    height: 640px;
    position: relative;
    border: 1px solid var(--line);
    background: radial-gradient(circle, #fff, #eef4f0 75%);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 65px #32524214
}

.stage:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#76968822 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle, #000, transparent 72%)
}

.node {
    position: absolute;
    width: 205px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 13px;
    z-index: 4;
    box-shadow: 0 12px 30px #3f5e4f12
}

.node b {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px
}

.node small,
.node strong,
.node span {
    display: block
}

.node small {
    font-size: 8px;
    letter-spacing: .13em;
    color: var(--muted)
}

.node strong {
    font: 600 20px monospace;
    margin-top: 3px
}

.node span {
    font-size: 9px;
    color: var(--muted)
}

.solar {
    left: 50%;
    top: 38px;
    transform: translateX(-50%)
}

.solar b {
    background: var(--solar)
}

.grid {
    left: 55px;
    top: 49%;
    transform: translateY(-50%)
}

.grid b {
    background: var(--grid)
}

.grid.importing b {
    background: var(--red)
}

.home {
    right: 55px;
    top: 49%;
    transform: translateY(-50%)
}

.home b {
    background: var(--home)
}

.car {
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%)
}

.car b {
    background: var(--car)
}

.inactive {
    opacity: .55
}

.hub {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    width: 188px;
    height: 188px;
    border-radius: 50%;
    background: linear-gradient(145deg, #42c985, #26985c);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 50px #2a9d6048;
    transition: .5s
}

.hub.importing {
    background: linear-gradient(145deg, #f26363, #c93642);
    box-shadow: 0 24px 50px #cf3c4750
}

.hub:after {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px solid #ffffff55;
    border-radius: 50%
}

.hub em {
    font: normal 30px serif
}

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

.hub strong {
    font: 700 36px monospace
}

.hub span {
    font-size: 9px;
    opacity: .8
}

.line {
    position: absolute;
    z-index: 2;
    color: var(--line);
    opacity: .6;
    background: currentColor
}

.line i {
    display: none;
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor
}

.line.active {
    opacity: 1
}

.line.active i {
    display: block;
    animation: travel 3s linear infinite
}

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

.solarLine {
    left: 50%;
    top: 118px;
    width: 2px;
    height: 133px;
    color: var(--solar)
}

.carLine {
    left: 50%;
    bottom: 118px;
    width: 2px;
    height: 130px;
    color: var(--car)
}

.solarLine i,
.carLine i {
    left: -3px;
    top: 0;
    animation-name: travelY
}

.gridLine {
    left: 255px;
    top: 49%;
    height: 2px;
    width: calc(50% - 348px);
    color: var(--grid)
}

.gridLine.active:not(.reverse) {
    color: var(--red)
}

.homeLine {
    right: 255px;
    top: 49%;
    height: 2px;
    width: calc(50% - 348px);
    color: var(--home)
}

.gridLine i,
.homeLine i {
    left: 0;
    top: -3px
}

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

@keyframes travelY {
    to {
        top: calc(100% - 8px)
    }
}

.today {
    padding: 72px 0 50px
}

.today-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 23px
}

.today-title h2 {
    margin: 0;
    font-size: 34px
}

.today-title>span {
    font-size: 10px;
    color: var(--muted)
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.cards article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 5px 12px
}

.cards i {
    grid-row: 1/3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8efeb;
    font-style: normal
}

.cards span {
    font-size: 10px;
    color: var(--muted)
}

.cards strong {
    font: 600 20px monospace
}

.notice {
    text-align: center;
    color: var(--muted);
    font-size: 10px
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 22px clamp(18px, 5vw, 70px);
    border-top: 1px solid var(--line);
    font-size: 9px;
    color: var(--muted)
}

@media(max-width:780px) {
    .bar {
        grid-template-columns: 1fr auto;
        height: 64px
    }

    .switch {
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 30;
        box-shadow: 0 8px 30px #1b302638
    }

    .connection {
        display: none
    }

    main {
        width: calc(100% - 22px)
    }

    .intro {
        padding: 34px 6px 20px;
        display: block
    }

    .updated {
        text-align: left;
        margin-top: 16px
    }

    .stage {
        height: 590px;
        border-radius: 25px
    }

    .node {
        width: 145px;
        padding: 10px;
        gap: 8px
    }

    .node b {
        width: 36px;
        height: 36px
    }

    .node strong {
        font-size: 15px
    }

    .node span {
        display: none
    }

    .solar {
        top: 25px
    }

    .car {
        bottom: 25px
    }

    .grid {
        left: 12px
    }

    .home {
        right: 12px
    }

    .hub {
        width: 142px;
        height: 142px
    }

    .hub strong {
        font-size: 27px
    }

    .solarLine {
        top: 91px;
        height: 153px
    }

    .carLine {
        bottom: 91px;
        height: 150px
    }

    .gridLine {
        left: 157px;
        width: calc(50% - 228px)
    }

    .homeLine {
        right: 157px;
        width: calc(50% - 228px)
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

    .cards article {
        padding: 15px
    }

    .cards strong {
        font-size: 16px
    }

    footer {
        padding-bottom: 75px
    }
}

@media(prefers-reduced-motion:reduce) {
    .line.active i {
        display: none
    }
}

.solarLine.active i,
.carLine.active i {
    left: -3px !important;
    animation: verticalDot 3s linear infinite !important
}

.solarLine.active.reverse i,
.carLine.active.reverse i {
    animation-direction: reverse
}

@media(prefers-reduced-motion:reduce) {

    .solarLine.active i,
    .carLine.active i {
        animation: none !important;
        display: none
    }
}

@keyframes verticalDot {
    from {
        left: -3px;
        top: 0
    }

    to {
        left: -3px;
        top: calc(100% - 8px)
    }
}