:root {
    --home-bg: #fdfdfd;
    --home-surface: #d3dce4;
    --home-text: #142130;
    --home-muted: #617281;
    --home-border: rgba(20, 33, 48, 0.14);
    --home-accent: #66d2b4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body.home-site {
    margin: 0;
    overflow-x: hidden;
    background: var(--home-bg);
    color: var(--home-text);
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.home-site img {
    display: block;
    height: auto;
    max-width: 100%;
}

.home-site a,
.home-site button,
.home-site input {
    font: inherit;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--home-accent);
    color: var(--home-text);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.section-kicker {
    margin: 0 0 1rem;
    color: var(--home-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.3;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button--primary {
    background: var(--home-text);
    color: var(--home-bg);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: var(--home-accent);
    color: var(--home-text);
    transform: translateY(-2px);
}

.button--secondary {
    border-color: rgba(20, 33, 48, 0.4);
    background: transparent;
    color: var(--home-text);
}

.button--secondary:hover,
.button--secondary:focus-visible {
    border-color: var(--home-accent);
    background: rgba(102, 210, 180, 0.18);
    transform: translateY(-2px);
}

.brand-hero {
    position: relative;
    min-height: clamp(600px, 73vh, 760px);
    display: grid;
    overflow: hidden;
    border-bottom: 1px solid var(--home-border);
    background: var(--home-bg);
    isolation: isolate;
}

.brand-hero__scene {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    right: 0;
    left: 0;
    overflow: hidden;
    contain: layout paint;
}

.parallax-layer--clouds {
    z-index: 0;
    top: 10%;
    height: 30%;
    opacity: 0.82;
}

.parallax-layer--far {
    z-index: 1;
    bottom: 0;
    height: 47%;
    opacity: 1;
}

.parallax-layer--mid {
    z-index: 2;
    bottom: 0;
    height: 51%;
    opacity: 1;
}

.parallax-layer--foreground {
    z-index: 4;
    bottom: -1px;
    height: 35%;
}

.parallax-layer__track {
    width: 200%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    will-change: transform;
    backface-visibility: hidden;
}

.parallax-layer--clouds .parallax-layer__track {
    align-items: flex-start;
}

.parallax-layer__track img {
    width: calc(50% + 1px);
    max-width: none;
    height: auto;
    flex: 0 0 calc(50% + 1px);
    margin-right: -1px;
    user-select: none;
}

.parallax-hill {
    position: absolute;
    z-index: 3;
    bottom: -2%;
    left: 0;
    width: min(52vw, 760px);
    opacity: 1;
    transform: translate3d(52vw, 0, 0);
    transform-origin: bottom center;
    will-change: transform;
    backface-visibility: hidden;
}

.parallax-hill img {
    width: 100%;
    height: auto;
    user-select: none;
}

.brand-hero__inner {
    position: relative;
    z-index: 5;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(2rem, 6vw, 7rem);
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.brand-hero__copy {
    position: relative;
    z-index: 2;
}

.brand-hero h1 {
    margin: 0;
    color: var(--home-text);
    font-size: clamp(3.9rem, 6.8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.92;
    white-space: nowrap;
}

.brand-hero h1 span,
.contact-section h2 span {
    color: var(--home-accent);
}

.brand-hero__intro {
    max-width: 570px;
    margin: 2rem 0 2.2rem;
    color: var(--home-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.65;
}

.brand-hero__intro span,
.mission-layout h3 span {
    display: block;
}

.mission-layout h3 span {
    white-space: nowrap;
}

.brand-hero__robot {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 470px;
}

.brand-hero__robot::before {
    position: absolute;
    z-index: -1;
    width: min(41vw, 540px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(211, 220, 228, 0.42);
    content: "";
    opacity: var(--robot-aura-opacity, 1);
}

.brand-hero__robot::after {
    position: absolute;
    z-index: -1;
    right: 3%;
    bottom: 6%;
    width: 32%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(102, 210, 180, 0.16);
    content: "";
    opacity: var(--robot-aura-opacity, 1);
}

.brand-hero__robot img {
    width: min(42vw, 560px);
    filter: drop-shadow(0 30px 42px rgba(20, 33, 48, 0.12));
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.home-section {
    padding-block: clamp(5rem, 9vw, 9rem);
    scroll-margin-top: 1.5rem;
}

.game-section {
    border-bottom: 1px solid var(--home-border);
    background: var(--home-bg);
}

.game-feature {
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.75fr) minmax(340px, 0.9fr);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: var(--home-bg);
    box-shadow: 0 24px 70px rgba(20, 33, 48, 0.08);
}

.game-feature__media {
    min-width: 0;
    margin: 0;
    align-self: center;
    background: var(--home-text);
}

.game-feature__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.game-feature--unrevealed .game-feature__media {
    overflow: hidden;
    background: #d7dee5;
}

.game-feature--unrevealed .game-feature__copy > p {
    margin-bottom: 0;
}

.game-feature--unrevealed .game-feature__copy {
    padding-inline: clamp(2.25rem, 2.5vw, 3rem);
}

.game-feature.game-feature--unrevealed h2 {
    font-size: clamp(2.2rem, 2.5vw, 2.75rem);
    letter-spacing: -0.05em;
}

.game-feature__teaser-line {
    display: block;
}

.game-feature__teaser-line + .game-feature__teaser-line {
    margin-top: 0.45rem;
}

.game-feature__copy {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    padding: clamp(2.2rem, 4.5vw, 4.5rem);
    border-left: 1px solid var(--home-border);
}

.game-feature h2,
.about-section h2,
.newsletter-section h2,
.contact-section h2 {
    margin: 0;
    color: var(--home-text);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.game-feature h2 {
    font-size: clamp(3.3rem, 4.2vw, 4.8rem);
}

.game-feature__copy > p {
    margin: 1.7rem 0 2rem;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.72;
}

.button-row--game {
    gap: 0.6rem;
}

.button-row--game .button {
    min-height: 44px;
    padding-inline: 1rem;
    font-size: 0.72rem;
}

.about-section {
    border-bottom: 1px solid var(--home-border);
    background: rgba(211, 220, 228, 0.22);
}

.about-layout,
.mission-layout,
.newsletter-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 10vw, 9rem);
}

.about-section h2,
.newsletter-section h2,
.contact-section h2 {
    font-size: clamp(2.8rem, 5.2vw, 5.3rem);
}

.about-copy {
    max-width: 720px;
}

.about-copy p {
    margin: 0;
    color: var(--home-muted);
    font-size: clamp(1.08rem, 1.7vw, 1.38rem);
    line-height: 1.72;
}

.about-copy p + p {
    margin-top: 1.5rem;
}

.mission-layout {
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--home-border);
}

.mission-layout h3 {
    max-width: 18ch;
    margin: 0;
    color: var(--home-text);
    font-size: clamp(1.6rem, 2.8vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.22;
}

.mission-copy {
    max-width: 720px;
}

.mission-copy p {
    margin: 0;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.72;
}

.mission-copy p + p {
    margin-top: 1.1rem;
}

.mission-copy p:last-child {
    color: var(--home-text);
    font-weight: 700;
}

.newsletter-section {
    border-bottom: 1px solid var(--home-border);
    background: var(--home-bg);
}

.newsletter-layout {
    align-items: end;
}

.newsletter-intro {
    max-width: 520px;
    margin: 1.3rem 0 0;
    color: var(--home-muted);
}

.newsletter-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    min-height: 52px;
    padding: 0 1.2rem;
    border: 1px solid rgba(20, 33, 48, 0.28);
    border-radius: 999px;
    outline: 0;
    background: var(--home-bg);
    color: var(--home-text);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(97, 114, 129, 0.82);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--home-accent);
    box-shadow: 0 0 0 3px rgba(102, 210, 180, 0.24);
}

.newsletter-form .button {
    min-height: 52px;
}

.newsletter-form .button.is-submitting,
.newsletter-form .button:disabled,
.newsletter-form .button.is-submitting:hover,
.newsletter-form .button:disabled:hover {
    border-color: #aeb8c0;
    background: #aeb8c0;
    color: #eef2f5;
    cursor: not-allowed;
    opacity: 0.82;
    transform: none;
}

.form-honeypot {
    position: absolute;
    left: -5000px;
}

.form-note {
    margin: 0.85rem 0 0;
    color: var(--home-muted);
    font-size: 0.72rem;
}

.form-note--privacy {
    margin-top: 0.4rem;
}

.form-note a {
    color: inherit;
    font-weight: 700;
    text-decoration-color: var(--home-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.response {
    margin-top: 0.8rem;
    color: var(--home-text);
    font-size: 0.86rem;
}

.contact-section {
    background: var(--home-text);
    color: var(--home-bg);
}

.contact-section .section-kicker {
    color: var(--home-accent);
}

.contact-section h2 {
    color: var(--home-bg);
}

.contact-links {
    border-top: 1px solid rgba(253, 253, 253, 0.22);
}

.contact-links a {
    display: grid;
    min-height: 104px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    border-bottom: 1px solid rgba(253, 253, 253, 0.22);
    color: rgba(253, 253, 253, 0.72);
    text-decoration: none;
    transition: color 160ms ease, padding 160ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    padding-left: 0.6rem;
    color: var(--home-bg);
}

.contact-links strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--home-accent);
    font-size: 1.06rem;
}

.contact-links a > span:last-child {
    color: var(--home-accent);
    font-size: 1.35rem;
}

.home-site.theme-dark {
    --home-bg: #142130;
    --home-surface: #617281;
    --home-text: #fdfdfd;
    --home-muted: #d3dce4;
    --home-border: rgba(253, 253, 253, 0.15);
}

.home-site.theme-dark .brand-hero__robot::before {
    background: rgba(211, 220, 228, 0.18);
}

.home-site.theme-dark .brand-hero__robot img {
    padding: 1.5rem;
    border-radius: 50%;
    background: var(--brand-white);
}

.home-site.theme-dark .game-feature,
.home-site.theme-dark .game-section,
.home-site.theme-dark .newsletter-section {
    background: var(--brand-dark);
}

.home-site.theme-dark .about-section {
    background: rgba(97, 114, 129, 0.18);
}

.home-site.theme-dark .button--primary,
.home-site.theme-dark .contact-section {
    background: var(--brand-slate);
}

.home-site.theme-dark .newsletter-form input[type="email"] {
    border-color: rgba(253, 253, 253, 0.28);
    background: var(--brand-dark);
}

@media (max-width: 980px) {
    .brand-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
        gap: 1rem;
    }

    .brand-hero__robot {
        min-height: 390px;
    }

    .game-feature {
        grid-template-columns: 1fr;
    }

    .game-feature__copy {
        border-top: 1px solid var(--home-border);
        border-left: 0;
    }

    .game-feature h2 {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .brand-hero {
        min-height: 0;
    }

    .brand-hero__inner {
        grid-template-columns: 1fr;
        padding-block: 4rem 3.5rem;
    }

    .brand-hero__copy {
        order: 0;
    }

    .brand-hero__robot {
        min-height: 280px;
        order: 1;
    }

    .brand-hero__robot::before {
        width: min(82vw, 390px);
    }

    .brand-hero__robot img {
        width: min(76vw, 360px);
    }

    .parallax-layer--clouds {
        top: 32%;
        height: 18%;
        opacity: 0.62;
    }

    .parallax-layer--far {
        height: 30%;
    }

    .parallax-layer--mid {
        height: 28%;
    }

    .parallax-layer--foreground {
        height: 19%;
        opacity: 1;
    }

    .parallax-hill {
        bottom: -1%;
        width: 95vw;
        transform: translate3d(12vw, 0, 0);
    }

    .brand-hero h1 {
        font-size: clamp(3.25rem, 14vw, 6.5rem);
    }

    .brand-hero__intro {
        margin-block: 1.5rem 1.8rem;
    }

    .about-layout,
    .mission-layout,
    .newsletter-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .newsletter-layout {
        align-items: start;
    }
}

@media (max-width: 540px) {
    .home-section {
        padding-block: 4.5rem;
    }

    .section-kicker {
        letter-spacing: 0.18em;
    }

    .button-row,
    .button-row .button {
        width: 100%;
    }

    .game-feature {
        border-radius: 12px;
    }

    .game-feature__copy {
        padding: 1.7rem 1.35rem 2rem;
    }

    .game-feature h2 {
        font-size: 3.25rem;
    }

    .newsletter-form__row {
        grid-template-columns: 1fr;
    }

    .newsletter-form .button {
        width: 100%;
    }

    .contact-links a {
        min-height: 120px;
    }
}

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

    .button,
    .contact-links a,
    .skip-link {
        transition: none;
    }

    .parallax-layer__track,
    .parallax-hill,
    .brand-hero__robot img {
        will-change: auto;
    }
}
