
:root {
    color-scheme: dark;
    --bg: #0b1220;
    --panel: #111c2e;
    --panel2: #142238;
    --line: rgba(185,205,230,.14);
    --text: #edf3fb;
    --muted: #9aabc1;
    --cyan: #73d5d0;
    --blue: #82aaff;
    --orange: #f1a875;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    overflow: hidden;
}

/* Header */

.topbar {
    height: 78px;
    max-width: var(--max);
    margin: auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
    letter-spacing: -.03em;
}

.brand-mark,
.closing-mark {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(115,213,208,.55);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.08em;
}

.brand-mark {
    display: none;
}

.brand-mark span,
.closing-mark span {
    color: #fff;
}

.brand-name {
    font-size: 15px;
}

.topbar nav {
    display: flex;
    gap: 34px;
    color: var(--muted);
    font-size: 12px;
}

.topbar nav a:hover,
.footer a:hover {
    color: var(--cyan);
}

.top-link {
    font-size: 12px;
    color: var(--cyan);
    border: 1px solid rgba(115,213,208,.35);
    border-radius: 6px;
    padding: 9px 13px;
}

.top-link span,
.button span,
.card-link span {
    margin-left: 8px;
}

/* Infrastructure overview */

.hero {
    min-height: 0;
    height: auto;
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-diagram {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.overview-diagram img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
/*    max-height: 80vh;*/
    object-fit: contain;
    margin: 0 auto;
}

/* Services */

.section {
    max-width: var(--max);
    margin: auto;
    padding: 100px 28px;
}

.services-section {
    border-top: 1px solid var(--line);
    padding-top: 78px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 37px;
    letter-spacing: -.05em;
    line-height: 1.1;
    margin: 0;
}

.section-heading > div {
    width: 100%;
}

.section-heading > p {
    max-width: 400px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-card {
    min-height: 330px;
    position: relative;
    overflow: hidden;
    padding: 23px 23px 25px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(150deg, rgba(26,43,65,.92), rgba(14,24,40,.96));
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 25px;
}

.map-icon {
    color: var(--cyan);
    background: rgba(115,213,208,.12);
}

.monitor-icon {
    color: var(--blue);
    background: rgba(130,170,255,.12);
}

.git-icon {
    color: var(--orange);
    background: rgba(241,168,117,.12);
}

.status {
    font-size: 8px;
    letter-spacing: .1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
}

.status-protected i {
    background: var(--orange);
}

.status-public {
    color: var(--cyan);
}

.status-protected {
    color: #e5b18d;
}

.card-index {
    font-size: 9px;
    letter-spacing: .15em;
    color: #7d91aa;
    margin-top: 27px;
}

.service-card h3 {
    font-size: 25px;
    line-height: 1.16;
    letter-spacing: -.04em;
    margin: 9px 0 11px;
}

.service-card p {
    font-size: 12px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 290px;
    margin: 0 0 20px;
}

.card-link {
    position: relative;
    z-index: 2;
    font-size: 11px;
    color: var(--cyan);
    font-weight: 700;
}

.card-decoration {
    position: absolute;
    right: 10px;
    bottom: -16px;
    width: 150px;
    height: 110px;
    opacity: .42;
    transform: rotate(-16deg);
}

.map-decoration span {
    position: absolute;
    width: 39px;
    height: 39px;
    border: 1px solid var(--cyan);
    border-radius: 10px 10px 10px 2px;
    transform: rotate(45deg);
}

.map-decoration span:nth-child(1) {
    left: 8px;
    top: 9px;
}

.map-decoration span:nth-child(2) {
    left: 55px;
    top: 28px;
}

.map-decoration span:nth-child(3) {
    left: 100px;
    top: 2px;
}

.map-decoration span:nth-child(4) {
    left: 30px;
    top: 66px;
}

.map-decoration span:nth-child(5) {
    left: 88px;
    top: 69px;
}

.map-decoration span:nth-child(n+6) {
    display: none;
}

/* Monitoring chart decoration */

.mini-chart {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 135px;
    height: 85px;
    opacity: .55;
}

.mini-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mini-chart path:first-child {
    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
}

.mini-chart .chart-fill {
    fill: rgba(130,170,255,.1);
    stroke: none;
}

/* GitLab decoration */

.git-branch-art {
    position: absolute;
    right: 10px;
    bottom: 5px;
    width: 135px;
    height: 110px;
    opacity: .55;
}

.branch-line {
    position: absolute;
    left: 38px;
    top: 13px;
    width: 52px;
    height: 73px;
    border-left: 1px solid var(--orange);
    border-bottom: 1px solid var(--orange);
    border-radius: 0 0 0 12px;
}

.branch-line:after {
    content: "";
    position: absolute;
    left: 0;
    top: 34px;
    width: 52px;
    border-top: 1px solid var(--orange);
}

.branch-node {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #15263b;
    border: 2px solid var(--orange);
}

.n1 {
    left: 34px;
    top: 9px;
}

.n2 {
    left: 85px;
    top: 43px;
}

.n3 {
    left: 34px;
    top: 82px;
}

.n4 {
    left: 85px;
    top: 77px;
}

.access-note {
    font-size: 10px;
    color: #879ab2;
    margin: 18px 0 0;
}

.lock {
    color: var(--orange);
    margin-right: 7px;
}

/* Closing section */

.closing-band {
    max-width: var(--max);
    margin: 20px auto 70px;
    padding: 36px 40px;
    border: 1px solid rgba(115,213,208,.25);
    border-radius: 12px;
    background: radial-gradient(ellipse at 15% 50%, rgba(69,149,158,.16), transparent 55%), #101d2e;
    display: flex;
    align-items: center;
    gap: 24px;
}

.closing-mark {
    width: 48px;
    height: 48px;
    font-size: 19px;
    flex-shrink: 0;
}

.closing-band .eyebrow {
    font-size: 8px;
}

.closing-band h2 {
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -.045em;
    margin: 7px 0 0;
}

.closing-band h2 span {
    color: var(--cyan);
}

.button-light {
    margin-left: auto;
    background: #e4f5f1;
    color: #10232d;
    white-space: nowrap;
}

/* Buttons and links */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 13px 17px;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s, background .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--cyan);
    color: #09202a;
}

.text-link {
    font-size: 12px;
    color: #d4dfed;
}

.text-link span {
    color: var(--cyan);
    margin-left: 7px;
}

/* Footer */

.footer {
    max-width: var(--max);
    margin: auto;
    padding: 20px 28px 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: #73869d;
    font-size: 10px;
}

.footer-brand {
    font-weight: 800;
    color: #dce7f4;
    letter-spacing: -.03em;
}

/* Tablet */

@media (max-width: 800px) {
    .topbar nav {
        gap: 17px;
    }

    .hero {
        padding: 30px 20px 50px;
    }

    .overview-diagram {
        width: 100%;
        max-width: 100%;
    }

    .overview-diagram img {
        max-height: 75vh;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 290px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading > p {
        max-width: 560px;
    }

    .closing-band {
        margin-left: 20px;
        margin-right: 20px;
        padding: 28px;
        flex-wrap: wrap;
    }

    .button-light {
        margin-left: 72px;
    }
}

/* Mobile */

@media (max-width: 520px) {
    .topbar {
        height: 68px;
        padding: 0 18px;
    }

    .topbar nav {
        display: none;
    }

    .top-link {
        font-size: 10px;
        padding: 8px 10px;
    }

    .hero {
        padding: 24px 16px 40px;
    }

    .overview-diagram {
        width: 100%;
        max-width: 100%;
    }

    .overview-diagram img {
        width: 100%;
        max-width: 100%;
        max-height: 75vh;
    }

    .section {
        padding: 72px 20px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 20px;
    }

    .closing-band {
        margin: 10px 20px 45px;
        padding: 23px;
        gap: 16px;
    }

    .closing-band h2 {
        font-size: 23px;
    }

    .closing-mark {
        width: 42px;
        height: 42px;
    }

    .button-light {
        margin-left: 58px;
    }

    .footer {
        padding: 18px 20px 25px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .footer span {
        order: 3;
        width: 100%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
