:root {
    --bg: #030303;
    --fg: #f7f4ec;
    --muted: #a8a39a;
    --line: rgba(247, 244, 236, 0.14);
    --line-strong: rgba(247, 244, 236, 0.3);
    --glass: rgba(247, 244, 236, 0.055);
    --accent: #c8ff5f;
    --accent-2: #83d7ff;
    --font-display:
        "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
    --font-body:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    color: var(--fg);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 72% 19%,
            rgba(131, 215, 255, 0.12),
            transparent 26rem
        ),
        radial-gradient(
            circle at 17% 77%,
            rgba(200, 255, 95, 0.11),
            transparent 22rem
        ),
        linear-gradient(135deg, #020202 0%, #080907 54%, #020202 100%);
    color: var(--fg);
    font-family: var(--font-body);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
}

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

#field {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.grain::after {
    position: absolute;
    inset: -20%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    content: "";
    opacity: 0.035;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1440px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px clamp(18px, 4vw, 64px) 44px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
}

.brand,
.nav-links,
.actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand img {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-strong);
    object-fit: cover;
}

.nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(16px, 3vw, 34px);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a {
    transition: color 180ms ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
    gap: clamp(34px, 7vw, 110px);
    align-items: center;
    min-height: calc(100vh - 84px);
    padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 7vw, 76px);
}

.hero-copy {
    min-width: 0;
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: min(100%, 780px);
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: clamp(52px, 8.1vw, 112px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.88;
    text-wrap: balance;
}

.lede {
    max-width: 650px;
    margin-bottom: 34px;
    color: rgba(247, 244, 236, 0.72);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.48;
}

.actions {
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

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

.button.primary {
    border-color: rgba(200, 255, 95, 0.85);
    background: var(--accent);
    color: #050505;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--fg);
}

.button.compact {
    min-width: 96px;
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 18px;
    align-self: stretch;
    min-width: 0;
    min-height: 470px;
    padding: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.02)
        ),
        rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(24px);
    overflow: hidden;
}

.hero-panel::before,
.logo-orbit::before,
.logo-orbit::after {
    position: absolute;
    content: "";
}

.hero-panel::before {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-orbit {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    isolation: isolate;
}

.logo-orbit::before {
    width: min(88%, 320px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        inset 0 0 54px rgba(131, 215, 255, 0.09),
        0 0 90px rgba(200, 255, 95, 0.08);
    animation: breathe 5s ease-in-out infinite alternate;
}

.logo-orbit::after {
    width: min(62%, 230px);
    aspect-ratio: 1;
    border: 1px solid rgba(200, 255, 95, 0.34);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.logo-orbit img {
    width: min(44vw, 174px);
    max-width: 190px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    filter: drop-shadow(0 22px 55px rgba(200, 255, 95, 0.16));
    mix-blend-mode: screen;
    z-index: 1;
}

.panel-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-self: end;
    color: rgba(247, 244, 236, 0.8);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel-meta span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    border-top: 1px solid var(--line);
}

.panel-meta span::after {
    width: 7px;
    height: 7px;
    background: var(--accent);
    content: "";
}

.products {
    padding: clamp(42px, 7vw, 78px) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: start;
    min-height: 240px;
    margin-bottom: 26px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.018)
        ),
        rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.section-head::before,
.section-head::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.section-head::before {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 66px 66px;
    mask-image: linear-gradient(
        90deg,
        transparent,
        black 20%,
        black 82%,
        transparent
    );
}

.section-head::after {
    right: clamp(28px, 5vw, 74px);
    bottom: -62px;
    width: min(38vw, 420px);
    aspect-ratio: 1;
    border: 1px solid rgba(200, 255, 95, 0.26);
    border-radius: 50%;
    box-shadow:
        inset 0 0 80px rgba(131, 215, 255, 0.08),
        0 0 110px rgba(200, 255, 95, 0.07);
}

.section-label,
.section-title {
    position: relative;
    z-index: 1;
}

.section-label {
    display: grid;
    gap: 18px;
    align-content: start;
}

.section-label .eyebrow {
    margin-bottom: 0;
}

.section-label span {
    width: fit-content;
    padding: 8px 10px;
    border: 1px solid rgba(200, 255, 95, 0.34);
    background: rgba(200, 255, 95, 0.08);
    color: rgba(247, 244, 236, 0.74);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title {
    display: grid;
    gap: 20px;
    justify-items: end;
    text-align: right;
}

.section-title p {
    max-width: 570px;
    margin: 0;
    color: rgba(247, 244, 236, 0.64);
    font-size: clamp(15px, 1.7vw, 19px);
    line-height: 1.52;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(300px, 0.95fr) auto;
    min-height: 610px;
    border: 1px solid var(--line);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.022)
        ),
        rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 255, 95, 0.5);
    background-color: rgba(255, 255, 255, 0.045);
}

.product-card::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    content: "";
    pointer-events: none;
}

.product-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
    overflow: hidden;
    isolation: isolate;
}

.product-art::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74) 100%),
        radial-gradient(
            circle at 50% 0%,
            transparent 0,
            rgba(0, 0, 0, 0.36) 72%
        );
    content: "";
    pointer-events: none;
}

.product-art::after {
    position: absolute;
    inset: 18px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    mask-image: linear-gradient(180deg, black, transparent 86%);
    pointer-events: none;
}

.product-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.92) contrast(1.06);
    transform: scale(1.01);
    transition:
        filter 260ms ease,
        transform 260ms ease;
}

.product-card:hover .product-art img {
    filter: saturate(1.05) contrast(1.08);
    transform: scale(1.045);
}

.hyperbridge .product-art {
    background: #020202;
}

.hyperbridge .product-art img {
    object-position: center top;
}

.hyperfx .product-art {
    background: #f4f8ff;
}

.hyperfx .product-art::before {
    background:
        linear-gradient(
            180deg,
            rgba(3, 3, 3, 0.03) 0%,
            rgba(0, 0, 0, 0.72) 100%
        ),
        radial-gradient(
            circle at 50% 25%,
            transparent 0,
            rgba(131, 215, 255, 0.16) 56%,
            rgba(0, 0, 0, 0.24) 100%
        );
}

.hyperfx .product-art img {
    object-position: center top;
    filter: saturate(0.9) contrast(1.02);
}

.product-copy {
    position: relative;
    z-index: 1;
    padding: 28px 30px;
}

.product-kicker,
.product-link,
.text-link,
.footer {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
}

.product-copy h3 {
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.92;
}

.product-copy p {
    max-width: 480px;
    margin-bottom: 26px;
    color: rgba(247, 244, 236, 0.72);
    font-size: 16px;
    line-height: 1.55;
}

.product-link,
.text-link {
    color: var(--fg);
}

.product-link::after,
.text-link::after {
    content: " ->";
    color: var(--accent);
}

.systems {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    padding: clamp(42px, 7vw, 76px) 0 clamp(42px, 6vw, 64px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.systems::before {
    position: absolute;
    top: 10%;
    left: -14%;
    width: 42vw;
    max-width: 520px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(200, 255, 95, 0.1);
    content: "";
    filter: blur(90px);
    pointer-events: none;
}

.systems-copy {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 74px);
    align-items: end;
    min-height: 0;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(0, 0, 0, 0.28);
}

.systems-copy::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    content: "";
    mask-image: radial-gradient(circle at 16% 24%, black, transparent 72%);
    pointer-events: none;
}

.systems-copy > * {
    position: relative;
    z-index: 1;
}

.text-link {
    display: inline-block;
    width: fit-content;
    margin-top: 28px;
    padding: 11px 13px;
    border: 1px solid rgba(200, 255, 95, 0.28);
    background: rgba(200, 255, 95, 0.055);
}

h2 {
    max-width: 550px;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 86px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
    text-wrap: balance;
}

.systems h2 {
    max-width: 760px;
    font-size: clamp(44px, 6vw, 86px);
}

.systems-copy .text-link {
    align-self: end;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

article {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid var(--line);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        ),
        rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

article:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 255, 95, 0.48);
    background: rgba(255, 255, 255, 0.06);
}

article::before,
article::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

article::before {
    inset: 18px;
    border-top: 1px solid rgba(131, 215, 255, 0.18);
    background: linear-gradient(
            90deg,
            rgba(131, 215, 255, 0.16),
            transparent 54%
        )
        top / 100% 1px no-repeat;
}

article::after {
    top: 26px;
    right: 26px;
    width: 46px;
    aspect-ratio: 1;
    border: 1px solid rgba(200, 255, 95, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 42px rgba(200, 255, 95, 0.08);
}

.system-index {
    position: absolute;
    top: 30px;
    left: clamp(20px, 2.4vw, 30px);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 0.92;
}

article p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.25vw, 16px);
    line-height: 1.55;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer a {
    transition: color 180ms ease;
}

.footer a:hover {
    color: var(--fg);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal:nth-child(2) {
    animation-delay: 110ms;
}

.reveal:nth-child(3) {
    animation-delay: 210ms;
}

.reveal:nth-child(4) {
    animation-delay: 310ms;
}

.hero-panel.reveal {
    animation-delay: 230ms;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breathe {
    to {
        transform: scale(1.04);
        opacity: 0.7;
    }
}

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

@media (max-width: 980px) {
    .hero,
    .systems,
    .section-head {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        min-height: 390px;
    }

    .systems-copy,
    article {
        min-height: 300px;
    }

    .systems-copy {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-grid,
    .system-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 540px;
    }

    article {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .shell {
        padding-top: 16px;
    }

    .nav {
        align-items: flex-start;
        gap: 18px;
        min-height: 86px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    h1 {
        font-size: clamp(42px, 12.4vw, 50px);
    }

    .button {
        width: 100%;
    }

    .section-head {
        min-height: 0;
        padding: 22px;
    }

    .section-title {
        justify-items: start;
        text-align: left;
    }

    .section-head::after {
        right: -90px;
        bottom: -80px;
        width: 260px;
    }

    .products {
        padding-top: 34px;
    }

    .product-card {
        min-height: 500px;
        grid-template-rows: 260px auto;
    }

    .product-art {
        min-height: 260px;
    }

    .product-copy {
        padding: 0 20px 24px;
    }

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

    .footer div {
        justify-content: flex-start;
    }

    .systems-copy {
        min-height: 0;
        padding: 22px;
    }

    article {
        min-height: 230px;
    }

    .hero-panel {
        min-height: 330px;
    }

    .logo-orbit {
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
