:root {
    --purple: #7c3aed;
    --purple-bright: #a78bfa;
    --pink: #d946ef;
    --purple-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 48%, #d946ef 100%);
    --purple-gradient-horizontal: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    --ink: #050b16;
    --ink-soft: #0b1424;
    --white: #ffffff;
    --muted: #aab4c5;
    --line: rgba(255, 255, 255, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--ink);
}

body {
    margin: 0;
    color: var(--white);
    background: var(--ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.maintenance {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(124, 58, 237, 0.12), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(217, 70, 239, 0.08), transparent 30%),
        var(--ink);
}

.grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: 0.38;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.ambient {
    position: absolute;
    z-index: -1;
    width: 45vw;
    aspect-ratio: 1;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 100px rgba(124, 58, 237, 0.1);
}

.ambient::before,
.ambient::after {
    content: "";
    position: absolute;
    inset: 13%;
    border: inherit;
    border-radius: inherit;
}

.ambient::after {
    inset: 28%;
}

.ambient--top {
    top: -33vw;
    right: -7vw;
}

.ambient--bottom {
    bottom: -36vw;
    left: -18vw;
}

.site-header,
.hero,
.contact-bar {
    width: min(100% - 96px, 1400px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 116px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: block;
    width: 172px;
    height: auto;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status__signal {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-gradient);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.17);
    animation: pulse 2.4s ease-out infinite;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
    align-items: center;
    gap: clamp(48px, 8vw, 140px);
    padding-block: clamp(54px, 8vh, 110px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
    color: var(--purple-bright);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow,
.build-copy__index {
    width: fit-content;
    color: transparent;
    background: var(--purple-gradient-horizontal);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(167, 139, 250, 0.55);
    border-radius: 50%;
}

h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(76px, 10vw, 160px);
    font-weight: 300;
    line-height: 0.78;
    text-transform: uppercase;
}

h1 strong {
    color: transparent;
    background: var(--purple-gradient-horizontal);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.intro {
    max-width: 650px;
    margin: 46px 0 0;
    padding-left: 24px;
    border-left: 2px solid transparent;
    border-image: var(--purple-gradient) 1;
    color: var(--muted);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.65;
}

.hero__aside {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 38px;
    padding-left: clamp(28px, 4vw, 64px);
    border-left: 1px solid var(--line);
}

.build-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 260px);
    aspect-ratio: 1;
}

.build-mark::before,
.build-mark__ring {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(167, 139, 250, 0.36);
    border-radius: 50%;
}

.build-mark::before {
    border-top-color: var(--purple);
    border-right-color: var(--pink);
    animation: rotate 14s linear infinite;
}

.build-mark__ring {
    inset: 16%;
    border-style: dashed;
    animation: rotate 20s linear infinite reverse;
}

.build-mark__core {
    position: relative;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    color: var(--white);
    background: var(--purple-gradient);
    box-shadow:
        -18px 0 60px rgba(124, 58, 237, 0.34),
        18px 0 60px rgba(217, 70, 239, 0.28);
    font-size: 0;
}

.build-mark__core::before,
.build-mark__core::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 36px;
    height: 2px;
    margin: auto;
    border-radius: 2px;
    background: currentColor;
}

.build-mark__core::after {
    width: 2px;
    height: 36px;
}

.build-copy__index {
    margin: 0 0 12px;
    color: var(--purple-bright);
    font-size: 11px;
    font-weight: 700;
}

.build-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    text-transform: uppercase;
}

.build-copy p:last-child {
    max-width: 310px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.contact-bar {
    display: grid;
    grid-template-columns: minmax(190px, 0.55fr) 1.45fr;
    align-items: stretch;
    border-top: 1px solid var(--line);
}

.contact-bar__label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 28px 36px 28px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 108px;
    padding: 20px 28px;
    border-left: 1px solid var(--line);
    text-decoration: none;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease;
}

.contact small {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.contact > span:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(167, 139, 250, 0.38);
    border-radius: 50%;
    color: var(--purple-bright);
}

.contact__icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.contact__icon svg path[stroke],
.contact:nth-child(2) .contact__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.contact__arrow {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform 180ms ease;
}

.contact:hover,
.contact:focus-visible {
    color: var(--white);
    background: var(--purple-gradient-horizontal);
    outline: none;
}

.contact:hover small,
.contact:focus-visible small,
.contact:hover .contact__icon,
.contact:focus-visible .contact__icon {
    color: var(--white);
}

.contact:hover .contact__arrow,
.contact:focus-visible .contact__arrow {
    transform: translateX(5px);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}

@media (max-width: 900px) {
    .site-header,
    .hero,
    .contact-bar {
        width: min(100% - 48px, 720px);
    }

    .site-header {
        min-height: 92px;
    }

    .brand {
        width: 138px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 52px;
        padding-block: 64px;
    }

    .hero__aside {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
        align-items: center;
        gap: 28px;
        padding: 32px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .build-mark__core {
        width: 64px;
        height: 64px;
    }

    .build-mark__core::before {
        width: 24px;
    }

    .build-mark__core::after {
        width: 2px;
        height: 24px;
    }

    .contact-bar {
        grid-template-columns: 1fr;
    }

    .contact-bar__label {
        padding: 24px 0;
    }

    .contacts {
        margin-inline: -24px;
        border-top: 1px solid var(--line);
    }

    .contact:first-child {
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .site-header,
    .hero,
    .contact-bar {
        width: calc(100% - 36px);
    }

    .status {
        max-width: 108px;
        line-height: 1.35;
    }

    .hero {
        gap: 42px;
        padding-block: 50px;
    }

    h1 {
        font-size: clamp(58px, 21vw, 92px);
        line-height: 0.82;
    }

    .intro {
        margin-top: 36px;
    }

    .hero__aside {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 20px;
    }

    .build-mark__core {
        width: 48px;
        height: 48px;
    }

    .build-mark__core::before {
        width: 18px;
    }

    .build-mark__core::after {
        width: 2px;
        height: 18px;
    }

    .contacts {
        grid-template-columns: 1fr;
        margin-inline: -18px;
    }

    .contact {
        min-height: 94px;
        padding-inline: 18px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .contact:first-child {
        border-top: 0;
    }

    .ambient {
        width: 85vw;
    }

    .ambient--top {
        top: -48vw;
    }
}

@media (max-width: 420px) {
    .status {
        width: 10px;
        font-size: 0;
    }

    .hero__aside {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .build-mark__core {
        width: 40px;
        height: 40px;
    }

    .build-copy h2 {
        font-size: 24px;
    }

    .contact {
        grid-template-columns: 38px minmax(0, 1fr) 18px;
        gap: 12px;
    }

    .contact__icon {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
