:root {
    color-scheme: dark;
    --ink: #f5f1e7;
    --muted: #b7bcad;
    --line: rgba(245, 241, 231, 0.16);
    --glass: rgba(255, 255, 255, 0.06);
    --teal: #4ed7b8;
    --ember: #e9a452;
    --coral: #ef6c62;
    --mx: 50%;
    --my: 50%;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #050706;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: #050706;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

.page-shell {
    min-height: 100svh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5, 7, 6, 0.1), #050706 92%),
        #050706;
}

.hero {
    position: relative;
    display: grid;
    min-height: 86svh;
    isolation: isolate;
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-media {
    z-index: -3;
    background-image: url("/static/delta-field.png");
    background-position: center;
    background-size: cover;
    transform: translate3d(var(--drift-x, 0), var(--drift-y, 0), 0) scale(1.03);
    transition: transform 180ms ease-out;
}

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 7, 6, 0.9), rgba(5, 7, 6, 0.42) 46%, rgba(5, 7, 6, 0.78)),
        linear-gradient(180deg, rgba(5, 7, 6, 0.08), rgba(5, 7, 6, 0.8) 82%, #050706);
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(rgba(245, 241, 231, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 241, 231, 0.035) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    height: 96px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: rgba(245, 241, 231, 0.9);
    font-size: 0.98rem;
    font-weight: 650;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(245, 241, 231, 0.22);
    background: rgba(5, 7, 6, 0.42);
    color: #f8f1df;
    font-size: 0.78rem;
    font-weight: 760;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1180px, calc(100% - 48px));
    min-height: calc(86svh - 96px);
    margin: 0 auto;
    padding: 56px 0 108px;
}

.status {
    width: fit-content;
    margin: 0 0 24px;
    padding: 8px 12px;
    border: 1px solid rgba(78, 215, 184, 0.36);
    background: rgba(8, 22, 19, 0.66);
    color: #d5fff2;
    font-size: 1rem;
    font-weight: 680;
    line-height: 1;
}

h1 {
    max-width: 10ch;
    margin: 0;
    color: #fffaf0;
    font-size: 6.8rem;
    font-weight: 760;
    line-height: 0.92;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.subtitle {
    position: relative;
    width: fit-content;
    margin: 36px 0 0;
    padding-left: 72px;
    color: var(--muted);
    font-size: 1.45rem;
    font-weight: 560;
}

.subtitle::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 48px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, var(--teal), var(--ember), var(--coral));
}

.edge-line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(78, 215, 184, 0.6),
        rgba(233, 164, 82, 0.52),
        transparent
    );
}

.signal-band {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 1px;
    height: 14svh;
    min-height: 96px;
    border-top: 1px solid rgba(245, 241, 231, 0.08);
    background: rgba(245, 241, 231, 0.08);
}

.signal-band > div {
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(78, 215, 184, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(5, 7, 6, 0.84)),
        #07100d;
}

.signal-band > div:nth-child(2) {
    background:
        linear-gradient(135deg, rgba(233, 164, 82, 0.2), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(5, 7, 6, 0.84)),
        #0e0d08;
}

.signal-band > div:nth-child(3) {
    background:
        linear-gradient(135deg, rgba(239, 108, 98, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(5, 7, 6, 0.84)),
        #120b0a;
}

@media (max-width: 760px) {
    .site-header,
    .hero-content {
        width: min(100% - 32px, 680px);
    }

    .site-header {
        height: 76px;
    }

    .brand {
        font-size: 0.92rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-content {
        min-height: calc(86svh - 76px);
        padding: 40px 0 80px;
    }

    h1 {
        max-width: 9ch;
        font-size: 4.2rem;
    }

    .status {
        margin-bottom: 18px;
        font-size: 0.95rem;
    }

    .subtitle {
        margin-top: 28px;
        padding-left: 54px;
        font-size: 1.18rem;
    }

    .subtitle::before {
        width: 36px;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 3.35rem;
    }

    .brand span:last-child {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media {
        transition: none;
        transform: scale(1.03);
    }
}
