:root {
    --black: #231f20;
    --orange: #f6511b;
    --orange-soft: #f9a554;
    --white: #ffffff;
    --paper: #f5f5f3;
    --muted: #716e6d;
    --line: rgba(35, 31, 32, 0.16);
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: block;
}

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 300;
}

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

h1,
h2,
h3,
h4,
h5,
h6 { line-height: 1; }

.site-header {
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 5.7rem;
}

.brand-link,
.brand-logo { display: block; }

.brand-logo { width: 11.5rem; height: auto; }

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.language-switch a {
    min-width: 3.35rem;
    padding: 0.7rem 0.6rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.language-switch a:hover,
.language-switch a.active { color: var(--orange-soft); }

.hero-section {
    position: relative;
    overflow: hidden;
    background: #050505;
}

#hero-webgl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.16;
}

.hero-demo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(0.95) brightness(0.9);
}

.hero-section::after {
    content: "";
    position: absolute;
    top: -8rem;
    right: -8vw;
    width: min(50vw, 52rem);
    height: calc(100% + 16rem);
    border-left: 2px solid rgba(246, 81, 27, 0.72);
    background: linear-gradient(145deg, transparent 34%, rgba(246, 81, 27, 0.22) 34.2%, rgba(246, 81, 27, 0.06) 60%, transparent 60.2%);
    transform: skewX(-18deg);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.43) 48%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 8.6rem;
    padding-bottom: 3rem;
}

.hero-copy-column { width: min(100%, 58rem); }

.hero-section h1 {
    max-width: min(52vw, 58rem);
    margin: 0;
    color: var(--white);
    font-size: clamp(3rem, 3.7vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 38rem;
    margin: 1.6rem 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1rem, 1.55vw, 1.28rem);
    line-height: 1.42;
}

.showcase-section {
    padding: 2.7rem 0 6.5rem;
    background-color: var(--white);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.9) 56%, #ffffff 100%),
        url("../img/industrial-background-subtle.png");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.section-heading {
    margin-bottom: 2rem;
}

.showcase-intro {
    margin: 0;
    color: var(--black);
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
}

.demo-grid { display: grid; gap: 2.2rem; }

.demo-feature {
    position: relative;
    display: flex;
    min-height: clamp(26rem, 48vw, 41rem);
    align-items: flex-end;
    overflow: hidden;
    background: #0a0909;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), calc(100% - 3rem) 100%, 0 100%);
}

.demo-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 31%, rgba(0, 0, 0, 0.14) 64%, transparent 100%);
}

.demo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--image-position, center center);
    transition: transform 350ms ease;
}

.demo-feature:hover .demo-image { transform: scale(1.012); }

.demo-copy {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 36rem);
    min-height: 100%;
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 3rem;
    box-sizing: border-box;
    color: var(--white);
}

.demo-copy .eyebrow {
    margin-bottom: 0.6rem;
    color: var(--orange-soft);
    font-size: 1.2rem;
}

.demo-copy h3 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.demo-copy > p:not(.eyebrow) {
    max-width: 32rem;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.2rem;
    line-height: 1.45;
}

.demo-launch {
    position: relative;
    display: inline-flex;
    width: 2.3rem;
    height: 2.3rem;
    margin-top: 1.45rem;
    align-items: center;
    border: 1px solid var(--orange-soft);
    color: var(--orange-soft);
    font-size: 1.8rem;
    font-weight: 300;
    justify-content: center;
    line-height: 1;
}

.demo-launch > span {
    display: none;
}

.demo-launch::before,
.demo-launch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.demo-launch::before {
    width: 0.95rem;
    height: 1px;
}

.demo-launch::after {
    width: 1px;
    height: 0.95rem;
}

.demo-feature:hover .demo-launch {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--black);
}

.demo-page {
    overflow: hidden;
    background: var(--black);
}

.demo-player {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 40rem;
    overflow: hidden;
    background: #101820;
}

#industrial-demo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#industrial-demo:active { cursor: grabbing; }

.demo-hud {
    pointer-events: none;
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: var(--white);
}

.demo-hud a,
.demo-hud .hud-panel,
.demo-hud .hud-metrics { pointer-events: auto; }

.back-link {
    width: fit-content;
    border-bottom: 2px solid var(--orange);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
}

.hud-panel {
    width: min(100%, 34rem);
    margin-top: auto;
    padding: 1.8rem 2.6rem 2rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.78);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.8rem), calc(100% - 1.8rem) 100%, 0 100%);
    backdrop-filter: blur(18px);
}

.hud-panel .eyebrow { margin-bottom: 0.75rem; color: var(--orange-soft); }

.hud-panel h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.hud-panel p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); line-height: 1.5; }

.hud-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hud-tags span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.hud-metrics {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: grid;
    width: min(28rem, calc(100% - 4rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.78);
}

.hud-metrics div { padding: 1rem; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.hud-metrics div:last-child { border-right: 0; }

.hud-metrics span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hud-metrics strong { display: block; margin-top: 0.35rem; font-size: 0.88rem; }

@media (max-width: 767.98px) {
    .site-header-inner { min-height: 4.8rem; }

    .brand-logo { width: 9.5rem; }
    .language-switch { gap: 0.2rem; }
    .language-switch a { min-width: 2.55rem; padding: 0.55rem 0.4rem; font-size: 1rem; }

    .hero-content { min-height: 0; padding-top: 6.3rem; padding-bottom: 2.4rem; }
    .hero-section h1 {
        max-width: 100%;
        font-size: clamp(2.4rem, 10vw, 3.8rem);
        overflow-wrap: anywhere;
    }
    .hero-copy { max-width: 25rem; font-size: 1rem; }

    .showcase-section { padding: 2.5rem 0 4.2rem; }

    .section-heading {
        margin-bottom: 1.6rem;
    }

    .demo-grid { gap: 1.2rem; }
    .demo-feature {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto auto auto;
        gap: 0.65rem 1rem;
        min-height: 0;
        padding: 1.5rem 1.5rem 1.3rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.9);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 1.8rem 100%, 0 calc(100% - 1.8rem));
    }

    .demo-feature::after { display: none; }

    .demo-image {
        position: relative;
        inset: auto;
        grid-row: 3;
        grid-column: 1 / -1;
        width: 100%;
        height: clamp(9rem, 48vw, 12.5rem);
        object-position: var(--image-position, center center);
    }

    .demo-copy { display: contents; }

    .demo-copy .eyebrow {
        grid-row: 1;
        grid-column: 1 / -1;
        margin: 0;
        color: var(--orange);
        font-size: 1.15rem;
    }

    .demo-copy h3 {
        grid-row: 2;
        grid-column: 1 / -1;
        max-width: none;
        color: var(--black);
        font-size: clamp(1.35rem, 6.4vw, 1.85rem);
        line-height: 1;
    }

    .demo-copy > p:not(.eyebrow) {
        grid-row: 4;
        grid-column: 1 / -1;
        max-width: none;
        margin: 0;
        color: rgba(35, 31, 32, 0.78);
        font-size: 1.15rem;
        line-height: 1.48;
    }

    .demo-launch {
        grid-row: 5;
        grid-column: 2;
        justify-self: end;
        margin-top: 0.5rem;
        border-color: var(--orange);
        color: var(--orange);
    }

    .hud-metrics { position: static; margin-top: 1rem; grid-template-columns: 1fr; }
    .hud-metrics div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
    .hud-metrics div:last-child { border-bottom: 0; }
}
