@import url("game-theme.css");

:root {
    scroll-behavior: smooth;
}

body.landing-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 22%, rgba(197, 160, 106, 0.07), transparent 30%),
        linear-gradient(180deg, var(--ctr-theme-page-top), var(--ctr-theme-page) 48%, #0b1115);
    color: var(--ctr-theme-text);
}

.landing-topbar {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 10;
    display: flex;
    width: min(1500px, calc(100% - 64px));
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 20px 0;
    transform: translateX(-50%);
}

.landing-brand {
    width: min(330px, 25vw);
}

.landing-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.9));
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
    font: 800 0.73rem/1 Arial, sans-serif;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-nav a {
    color: var(--ctr-theme-heading);
    text-decoration: none;
}

.landing-nav a:hover {
    color: var(--ctr-theme-accent-bright);
}

.landing-nav .landing-nav-cta {
    padding: 13px 18px;
    border: 1px solid var(--ctr-theme-border);
    border-radius: 2px;
    background: rgba(23, 31, 36, 0.9);
    color: var(--ctr-theme-accent-bright);
}

.landing-hero {
    position: relative;
    display: grid;
    min-height: min(930px, 100vh);
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(169, 118, 48, 0.55);
    isolation: isolate;
}

.landing-hero-image,
.landing-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.landing-hero-image {
    z-index: -2;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.88) contrast(1.06);
}

.landing-hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 4, 4, 0.97) 0%, rgba(4, 5, 5, 0.86) 38%, rgba(4, 5, 5, 0.32) 70%, rgba(4, 5, 5, 0.5) 100%),
        linear-gradient(0deg, #070706 0%, transparent 28%, rgba(0, 0, 0, 0.35) 100%);
}

.landing-hero-content {
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto;
    padding: 150px 0 70px;
}

.landing-hero-content > * {
    max-width: 830px;
}

.landing-eyebrow,
.landing-kicker {
    margin: 0 0 13px;
    color: var(--ctr-theme-accent);
    font: 800 0.72rem/1.3 Arial, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.landing-eyebrow span {
    margin: 0 7px;
    color: #8e6a32;
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
    color: var(--ctr-theme-heading);
    text-shadow: 0 3px 5px #000;
}

.landing-page h1 {
    max-width: 12em;
    margin: 0;
    font-size: clamp(3rem, 4.3vw, 4.7rem);
    letter-spacing: -0.015em;
    line-height: 0.94;
    text-wrap: balance;
    text-transform: uppercase;
}

.landing-title-secondary {
    display: block;
    margin-top: 0.48em;
    color: var(--ctr-theme-accent-bright);
    font: 700 0.43em/1.1 Arial, sans-serif;
    letter-spacing: 0.13em;
}

.landing-hero-lead {
    margin: 28px 0 12px;
    color: var(--ctr-theme-text);
    font-size: clamp(1.08rem, 1.35vw, 1.34rem);
    line-height: 1.64;
    text-shadow: 0 2px 4px #000;
}

.landing-browser-note {
    margin: 0;
    color: var(--ctr-theme-muted);
    font: 700 0.84rem/1.4 Arial, sans-serif;
}

.landing-actions {
    display: flex;
    max-width: none;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.landing-button {
    display: inline-flex;
    min-width: 190px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid var(--ctr-theme-border);
    border-radius: 3px;
    font: 800 0.79rem/1 Arial, sans-serif;
    letter-spacing: 0.075em;
    text-decoration: none;
    text-transform: uppercase;
}

.landing-button-primary {
    border-color: var(--ctr-theme-accent);
    background: linear-gradient(180deg, var(--ctr-theme-button-top), var(--ctr-theme-button-bottom));
    box-shadow: 0 8px 24px var(--ctr-theme-shadow);
    color: var(--ctr-theme-button-text);
}

.landing-button-secondary {
    background: rgba(23, 31, 36, 0.88);
    color: var(--ctr-theme-heading);
}

.landing-button:hover {
    filter: brightness(1.1);
}

.landing-text-link {
    margin-left: 12px;
    color: var(--ctr-theme-accent-bright);
    font: 700 0.82rem/1.3 Arial, sans-serif;
    text-underline-offset: 5px;
}

.landing-section {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding: clamp(78px, 8vw, 130px) 0;
}

.landing-section h2 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1;
    text-wrap: balance;
}

.landing-intro {
    padding-bottom: clamp(52px, 5vw, 82px);
    text-align: center;
}

.landing-intro h2 {
    margin-inline: auto;
}

.landing-intro-copy {
    display: grid;
    max-width: 1080px;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    margin: 40px auto 0;
    color: var(--ctr-theme-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    text-align: left;
}

.landing-intro-copy p {
    margin: 0;
}

.landing-gameplay {
    position: relative;
    width: min(2160px, calc(100% - 40px));
    padding-block: clamp(62px, 5.5vw, 88px);
    isolation: isolate;
}

.landing-gameplay::before {
    position: absolute;
    inset: 0 50%;
    z-index: -1;
    width: 100vw;
    border-block: 1px solid var(--ctr-theme-border-soft);
    background:
        radial-gradient(ellipse at 50% 45%, rgba(197, 160, 106, 0.08), transparent 58%),
        linear-gradient(180deg, var(--ctr-theme-page-top), var(--ctr-theme-page));
    content: '';
    transform: translateX(-50%);
}

.landing-gameplay-frame {
    width: min(2040px, 100%);
    margin: 0 auto;
}

.landing-gameplay-composition {
    position: relative;
    margin-bottom: clamp(64px, 5.4vw, 86px);
}

.landing-gameplay-desktop {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(185, 133, 61, 0.7);
    border-radius: 4px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.76);
}

.landing-gameplay-mobile {
    position: absolute;
    right: clamp(18px, 3.4vw, 66px);
    bottom: clamp(-105px, -6vw, -70px);
    z-index: 2;
    display: block;
    width: clamp(190px, 15vw, 280px);
    height: auto;
    border: 1px solid rgba(224, 175, 91, 0.92);
    border-radius: 9px;
    background: #080706;
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.85),
        0 0 28px rgba(168, 101, 36, 0.28);
}

.landing-section-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.landing-gameplay .landing-section-heading {
    margin-bottom: 34px;
}

.landing-section-heading-left {
    max-width: 760px;
    margin-left: 0;
    text-align: left;
}

.landing-section-heading > p:last-child {
    color: var(--ctr-theme-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.landing-pillars {
    position: relative;
}

.landing-pillars::before {
    position: absolute;
    inset: 5% 50% -4%;
    z-index: -1;
    width: 100vw;
    background:
        radial-gradient(circle at 18% 34%, rgba(131, 77, 27, 0.13), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(119, 86, 40, 0.11), transparent 30%);
    content: '';
    transform: translateX(-50%);
}

.landing-pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.landing-pillar {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid rgba(160, 112, 49, 0.58);
    border-radius: 5px;
    background: #090908;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.landing-pillar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.landing-pillar:hover img {
    transform: scale(1.025);
}

.landing-pillar > div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 90px clamp(24px, 3vw, 45px) 34px;
    background: linear-gradient(transparent, rgba(5, 5, 4, 0.97) 52%);
}

.landing-pillar span {
    color: #b68138;
    font: 800 0.7rem Arial, sans-serif;
    letter-spacing: 0.18em;
}

.landing-pillar h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.65rem, 2.4vw, 2.55rem);
}

.landing-pillar p {
    max-width: 680px;
    margin: 0;
    color: #cfc1a8;
    line-height: 1.55;
}

.landing-frontier {
    width: 100%;
    max-width: none;
    padding-inline: max(32px, calc((100% - 980px) / 2));
    border-block: 1px solid rgba(187, 132, 57, 0.48);
    background:
        linear-gradient(90deg, rgba(6, 5, 4, 0.97), rgba(12, 8, 5, 0.76) 50%, rgba(6, 5, 4, 0.95)),
        linear-gradient(0deg, rgba(6, 5, 4, 0.92), rgba(6, 5, 4, 0.16) 48%, rgba(6, 5, 4, 0.84)),
        url('../images/public/legendary_red_mesa-2471f459069a-1916.webp') center 48% / cover no-repeat;
    box-shadow: inset 0 28px 70px rgba(0, 0, 0, 0.5), inset 0 -28px 70px rgba(0, 0, 0, 0.58);
    text-align: center;
    text-shadow: 0 2px 5px #000;
}

.landing-frontier-rule {
    width: 84px;
    height: 1px;
    margin: 0 auto 36px;
    background: #b37d38;
    box-shadow: 0 0 25px #a36a28;
}

.landing-frontier > p:not(.landing-kicker) {
    margin: 32px auto 0;
    color: #d2c4ac;
    font-size: clamp(1.1rem, 1.55vw, 1.35rem);
    line-height: 1.75;
}

.landing-frontier strong {
    display: block;
    margin-top: 26px;
    color: #edcb8b;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.45;
}

.landing-landmarks {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1320px, calc(100% - 64px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: -48px auto 0;
}

.landing-landmarks figure {
    position: relative;
    min-height: 300px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(194, 142, 67, 0.68);
    border-radius: 4px;
    background: #090806;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
}

.landing-landmarks img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-landmarks figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 5px;
    padding: 70px 22px 19px;
    background: linear-gradient(transparent, rgba(5, 5, 4, 0.96));
    text-shadow: 0 2px 4px #000;
}

.landing-landmarks figcaption span {
    color: #f0ce8e;
    font-size: 1.24rem;
    font-weight: 700;
}

.landing-landmarks figcaption small {
    color: #c3b49b;
    font: 0.74rem/1.4 Arial, sans-serif;
}

.landing-learn {
    position: relative;
    width: min(1180px, calc(100% - 64px));
    isolation: isolate;
}

.landing-learn::before {
    position: absolute;
    inset: 0 50%;
    z-index: -1;
    width: 100vw;
    border-block: 1px solid var(--ctr-theme-border-soft);
    background:
        linear-gradient(110deg, var(--ctr-theme-surface-raised), var(--ctr-theme-page) 40%, var(--ctr-theme-surface)),
        repeating-linear-gradient(3deg, rgba(197, 160, 106, 0.025) 0 1px, transparent 1px 7px);
    box-shadow: inset 0 20px 55px rgba(0, 0, 0, 0.38), inset 0 -20px 55px rgba(0, 0, 0, 0.46);
    content: '';
    transform: translateX(-50%);
}

.landing-manual-grid,
.landing-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.landing-manual-grid a {
    display: grid;
    min-height: 116px;
    align-content: center;
    gap: 7px;
    padding: 22px;
    border: 1px solid var(--ctr-theme-border);
    border-radius: 3px;
    background:
        linear-gradient(145deg, var(--ctr-theme-surface-raised), var(--ctr-theme-surface) 70%),
        repeating-linear-gradient(0deg, rgba(197, 160, 106, 0.035) 0 1px, transparent 1px 5px);
    color: var(--ctr-theme-heading);
    text-decoration: none;
}

.landing-manual-grid a:hover {
    border-color: var(--ctr-theme-accent-bright);
    transform: translateY(-2px);
}

.landing-manual-grid span {
    font-size: 1.05rem;
    font-weight: 700;
}

.landing-manual-grid small {
    color: var(--ctr-theme-muted);
    font: 0.78rem/1.4 Arial, sans-serif;
}

.landing-learn-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.landing-learn-links a {
    color: var(--ctr-theme-accent-bright);
    font: 800 0.79rem/1.4 Arial, sans-serif;
    letter-spacing: 0.05em;
    text-underline-offset: 5px;
    text-transform: uppercase;
}

.landing-faq {
    border-top: 1px solid var(--ctr-theme-border-soft);
    background: radial-gradient(ellipse at 50% 48%, rgba(197, 160, 106, 0.06), transparent 68%);
}

.landing-faq-grid {
    max-width: 1040px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto;
}

.landing-faq-grid article {
    padding: 25px;
    border-left: 2px solid var(--ctr-theme-border);
    background: var(--ctr-theme-surface);
}

.landing-faq-grid h3 {
    margin: 0 0 12px;
    color: var(--ctr-theme-heading);
    font-size: 1.15rem;
}

.landing-faq-grid p {
    margin: 0;
    color: var(--ctr-theme-muted);
    line-height: 1.6;
}

.landing-final {
    display: grid;
    width: 100%;
    min-height: 570px;
    place-items: center;
    padding-inline: 32px;
    border-block: 1px solid rgba(173, 121, 50, 0.54);
    background:
        linear-gradient(90deg, rgba(4, 4, 3, 0.96), rgba(5, 5, 4, 0.75) 50%, rgba(4, 4, 3, 0.88)),
        url('../images/public/legendary_natural_bridge-7b06aa9cd5c6-1916.webp') center 54% / cover no-repeat;
    text-align: center;
}

.landing-final > div {
    max-width: 800px;
}

.landing-final h2 {
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.landing-final p:not(.landing-kicker) {
    margin: 24px 0 0;
    color: #d5c7ae;
    font-size: 1.12rem;
    line-height: 1.65;
}

.landing-final .landing-actions {
    justify-content: center;
}

.landing-footer {
    display: grid;
    justify-items: center;
    gap: 13px;
    padding: 38px 24px;
    color: var(--ctr-theme-muted);
    font: 0.76rem/1.5 Arial, sans-serif;
    letter-spacing: 0.035em;
    text-align: center;
}

.landing-footer p {
    margin: 0;
}

.landing-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.landing-footer a {
    color: var(--ctr-theme-accent-bright);
}

@media (max-width: 900px) {
    .landing-topbar {
        width: calc(100% - 36px);
    }

    .landing-brand {
        width: min(290px, 42vw);
    }

    .landing-nav a:not(.landing-nav-cta):not(.landing-nav-signin) {
        display: none;
    }

    .landing-hero-content,
    .landing-section,
    .landing-learn,
    .landing-gameplay {
        width: calc(100% - 40px);
    }

    .landing-frontier {
        width: 100%;
        padding-inline: 32px;
    }

    .landing-landmarks {
        width: calc(100% - 40px);
        grid-template-columns: 1fr 1fr;
    }

    .landing-landmarks figure:first-child {
        grid-column: 1 / -1;
    }

    .landing-hero-content {
        padding-top: 130px;
    }

    .landing-intro-copy,
    .landing-pillar-grid,
    .landing-manual-grid,
    .landing-faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        scroll-behavior: auto;
    }

    .landing-topbar {
        width: calc(100% - 28px);
        gap: 10px;
        padding-top: 13px;
    }

    .landing-brand {
        width: min(150px, 39vw);
    }

    .landing-nav {
        gap: 9px;
    }

    .landing-nav .landing-nav-signin {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        padding-inline: 2px;
        font-size: 0.64rem;
        letter-spacing: 0.06em;
        line-height: 1;
        white-space: nowrap;
    }

    .landing-nav .landing-nav-cta {
        padding: 10px 11px;
        font-size: 0.62rem;
    }

    .landing-hero {
        min-height: 700px;
    }

    .landing-hero-content,
    .landing-section,
    .landing-learn,
    .landing-gameplay {
        width: calc(100% - 28px);
    }

    .landing-frontier {
        width: 100%;
        padding-inline: 20px;
    }

    .landing-landmarks {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        margin-top: -34px;
    }

    .landing-landmarks figure:first-child {
        grid-column: auto;
    }

    .landing-landmarks figure {
        min-height: 250px;
    }

    .landing-hero-content {
        padding: 106px 0 36px;
    }

    .landing-eyebrow {
        font-size: 0.61rem;
        letter-spacing: 0.11em;
    }

    .landing-page h1 {
        font-size: clamp(1.85rem, 8.7vw, 2.6rem);
        line-height: 0.96;
    }

    .landing-title-secondary {
        margin-top: 0.55em;
        font-size: 0.52em;
    }

    .landing-hero-lead {
        margin-top: 18px;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .landing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-button {
        width: 100%;
    }

    .landing-text-link {
        margin: 10px 0 0;
        text-align: center;
    }

    .landing-section {
        padding-block: 70px;
    }

    .landing-section:not(.landing-gameplay) {
        padding-block: 56px;
    }

    .landing-section h2 {
        font-size: clamp(1.75rem, 9vw, 2.6rem);
    }

    .landing-section:not(.landing-gameplay) .landing-section-heading {
        margin-bottom: 34px;
    }

    .landing-section-heading > p:last-child {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .landing-intro-copy,
    .landing-pillar-grid,
    .landing-manual-grid,
    .landing-faq-grid {
        grid-template-columns: 1fr;
    }

    .landing-intro-copy {
        gap: 20px;
        margin-top: 30px;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .landing-intro {
        padding-bottom: 42px;
    }

    .landing-pillar {
        min-height: 440px;
    }

    .landing-pillar > div {
        padding-inline: 22px;
    }

    .landing-pillar h3 {
        font-size: 1.4rem;
    }

    .landing-pillar p {
        font-size: 0.9rem;
    }

    .landing-pillar:nth-child(4) img {
        object-position: 68% center;
    }

    .landing-frontier > p:not(.landing-kicker) {
        margin-top: 26px;
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .landing-frontier strong {
        margin-top: 22px;
        font-size: 1.08rem;
    }

    .landing-learn-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-final {
        min-height: 520px;
        padding-inline: 20px;
    }

    .landing-final h2 {
        font-size: 2.2rem;
    }

    .landing-final p:not(.landing-kicker) {
        margin-top: 20px;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .landing-faq-grid h3 {
        font-size: 1rem;
    }

    .landing-faq-grid p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .landing-gameplay-composition {
        margin-bottom: 68px;
    }

    .landing-gameplay-mobile {
        right: 12px;
        bottom: -64px;
        width: clamp(104px, 31vw, 138px);
        border-radius: 6px;
    }
}

@media (min-width: 2400px) {
    .landing-topbar,
    .landing-hero-content {
        width: min(1720px, calc(100% - 128px));
    }

    .landing-page h1 {
        font-size: 4.7rem;
    }

    .landing-section:not(.landing-gameplay):not(.landing-frontier),
    .landing-landmarks {
        max-width: 1440px;
    }

    .landing-gameplay {
        width: min(2160px, calc(100% - 128px));
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }

    .landing-pillar img,
    .landing-manual-grid a {
        transition: none;
    }
}
