:root {
    --bg: #0f1726;
    --bg-deep: #05070d;
    --sand: #f7be59;
    --lava: #ff6a3d;
    --mint: #88ffd5;
    --text: #f8f3ea;
    --muted: #cbbfb0;
    --panel: rgba(11, 16, 29, 0.72);
    --panel-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(255, 122, 62, 0.2), transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(247, 190, 89, 0.17), transparent 25%),
        linear-gradient(180deg, #111827 0%, var(--bg) 55%, var(--bg-deep) 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
    pointer-events: none;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 28px clamp(20px, 4vw, 52px) 40px;
}

.noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.6px, transparent 0.6px);
    background-size: 18px 18px;
    opacity: 0.18;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.topbar,
.hero {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 38px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--sand), var(--lava));
    box-shadow: 0 0 25px rgba(255, 132, 72, 0.5);
}

.brand-name {
    font-family: "Anton", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-pill {
    padding: 10px 14px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.9rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    min-height: calc(100vh - 120px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--sand);
    letter-spacing: 0.24em;
    font-size: 0.8rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    max-width: 8ch;
    font-family: "Anton", sans-serif;
    font-size: clamp(4rem, 11vw, 7.2rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lead {
    max-width: 640px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 16px;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--sand), var(--lava));
    color: #22140c;
    box-shadow: 0 18px 40px rgba(255, 115, 61, 0.25);
}

.secondary-btn {
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.primary-btn:hover,
.secondary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
    transform: translateY(-2px);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.meta-grid article,
.floating-card {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.meta-grid article {
    padding: 18px;
    border-radius: 18px;
}

.meta-grid span,
.card-tag {
    display: inline-block;
    color: var(--mint);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    text-transform: uppercase;
}

.meta-grid strong {
    display: block;
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.4;
}

.hero-visual {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-core {
    position: absolute;
    top: 10%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff0c9 0%, #ffd681 22%, #ff974d 58%, rgba(255, 92, 48, 0.18) 100%);
    filter: blur(2px);
    opacity: 0.95;
}

.grid-plane {
    position: absolute;
    bottom: 12%;
    width: min(92%, 540px);
    height: 280px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(rgba(255, 202, 120, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 202, 120, 0.2) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(420px) rotateX(68deg);
    transform-origin: center bottom;
    opacity: 0.7;
}

.floating-card {
    position: absolute;
    border-radius: 26px;
}

.card-main {
    top: 30%;
    left: 8%;
    width: min(430px, 78%);
    padding: 28px;
    animation: drift 7s ease-in-out infinite;
}

.card-main h2 {
    margin: 16px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.card-side {
    right: 5%;
    bottom: 16%;
    width: min(270px, 60%);
    padding: 22px;
    animation: drift 9s ease-in-out infinite reverse;
}

.card-side p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.cubes {
    position: absolute;
    inset: 0;
}

.cube {
    position: absolute;
    display: block;
    width: 54px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 209, 122, 0.18), rgba(136, 255, 213, 0.08));
    box-shadow: var(--shadow);
    transform: rotate(16deg);
}

.cube-a {
    top: 18%;
    right: 14%;
    animation: float-up 9s linear infinite;
}

.cube-b {
    top: 26%;
    left: 2%;
    width: 32px;
    animation: float-up 12s linear infinite reverse;
}

.cube-c {
    bottom: 24%;
    left: 22%;
    width: 80px;
    animation: float-up 11s linear infinite;
}

.cube-d {
    bottom: 8%;
    right: 24%;
    width: 36px;
    animation: float-up 13s linear infinite reverse;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 24px);
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(8, 11, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 3;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0);
    }
}

@keyframes float-up {
    0% {
        transform: translate3d(0, 0, 0) rotate(16deg);
    }
    50% {
        transform: translate3d(0, -18px, 0) rotate(26deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(16deg);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-bottom: 24px;
    }

    .hero-visual {
        min-height: 520px;
        order: -1;
    }

    .card-main {
        left: 4%;
    }

    .card-side {
        right: 2%;
        bottom: 14%;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding-inline: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .hero {
        min-height: auto;
    }

    h1 {
        max-width: 100%;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 440px;
    }

    .sun-core {
        width: 180px;
        height: 180px;
        top: 16%;
    }

    .grid-plane {
        height: 210px;
        bottom: 14%;
    }

    .card-main,
    .card-side {
        width: auto;
        left: 0;
        right: 0;
        margin-inline: 10px;
    }

    .card-main {
        top: 32%;
    }

    .card-side {
        bottom: 8%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* MinePashers: medieval + Minecraft override layer */
:root {
    --mx-gold: #d9b06e;
    --mx-stone: #7a8497;
    --mx-dirt: #5f3f2d;
    --mx-grass: #6fd14f;
    --mx-diamond: #88ecff;
    --mx-obsidian: #45385f;
}

.topbar {
    background:
        linear-gradient(180deg, rgba(49, 36, 29, 0.94), rgba(16, 15, 19, 0.93)),
        linear-gradient(90deg, rgba(217, 176, 110, 0.11), transparent 40%);
}

.status-pill--minecraft {
    font-family: "Press Start 2P", sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    color: #ddffce;
    background: linear-gradient(180deg, rgba(80, 132, 61, 0.94), rgba(33, 61, 29, 0.95));
    border-color: rgba(164, 241, 129, 0.42);
}

.hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: clamp(24px, 4vw, 56px);
}

.hero-copy {
    background:
        linear-gradient(180deg, rgba(44, 32, 27, 0.95), rgba(17, 15, 20, 0.96)),
        linear-gradient(135deg, rgba(217, 176, 110, 0.13), transparent 54%);
}

h1 {
    max-width: 8ch;
    font-family: "Cinzel Decorative", serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.93;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.lead {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.2rem, 2vw, 1.42rem);
    line-height: 1.5;
}

.meta-grid article {
    background: linear-gradient(180deg, rgba(18, 22, 27, 0.78), rgba(14, 14, 20, 0.9));
}

.hero-quote {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(217, 176, 110, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(96, 69, 40, 0.28), rgba(19, 16, 19, 0.42));
}

.hero-quote__label {
    display: inline-block;
    margin-bottom: 8px;
    color: #f5ddb0;
    font-family: "Cinzel Decorative", serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.hero-quote p {
    margin: 0;
    color: #f0e8d6;
    font-size: 1.12rem;
    line-height: 1.45;
}

.inventory-bar {
    margin-top: 16px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(29, 27, 34, 0.94), rgba(15, 13, 19, 0.96));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.inventory-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fef7e9;
    font-family: "Press Start 2P", sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
}

.inventory-slot--grass {
    background: linear-gradient(180deg, var(--mx-grass) 0 30%, #4f8539 30% 48%, var(--mx-dirt) 48% 100%);
}

.inventory-slot--stone {
    background: linear-gradient(180deg, #a5adbc 0%, #6f788a 46%, #41495a 100%);
}

.inventory-slot--diamond {
    background: linear-gradient(180deg, var(--mx-diamond) 0%, #4ab6cf 46%, #295f71 100%);
}

.inventory-slot--obsidian {
    background: linear-gradient(180deg, #7a65a2 0%, var(--mx-obsidian) 46%, #1b1627 100%);
}

.hero-visual {
    background:
        radial-gradient(circle at 74% 16%, rgba(255, 232, 187, 0.2), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 10, 14, 0.14) 40%, rgba(8, 10, 14, 0) 100%);
}

.moon-disc {
    position: absolute;
    top: 54px;
    right: 78px;
    width: 158px;
    height: 158px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff5dd 0%, #e6c996 42%, #b5793f 100%);
    box-shadow: 0 0 0 14px rgba(235, 198, 130, 0.08), 0 0 90px rgba(181, 121, 63, 0.28);
}

.castle-silhouette {
    position: absolute;
    left: 50%;
    bottom: 70px;
    width: min(90%, 560px);
    height: 350px;
    transform: translateX(-50%);
}

.castle-wall,
.castle-gate,
.castle-tower {
    position: absolute;
    display: block;
    background: linear-gradient(180deg, #9098a8 0%, #626b7d 40%, #2a3041 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.castle-wall {
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 150px;
    clip-path: polygon(0 20%, 8% 20%, 8% 0, 14% 0, 14% 20%, 20% 20%, 20% 0, 26% 0, 26% 20%, 32% 20%, 32% 0, 38% 0, 38% 20%, 44% 20%, 44% 0, 50% 0, 50% 20%, 56% 20%, 56% 0, 62% 0, 62% 20%, 68% 20%, 68% 0, 74% 0, 74% 20%, 80% 20%, 80% 0, 86% 0, 86% 20%, 92% 20%, 92% 0, 100% 0, 100% 100%, 0 100%);
}

.castle-gate {
    left: 50%;
    bottom: 0;
    width: 106px;
    height: 118px;
    transform: translateX(-50%);
    border-radius: 56px 56px 0 0;
    background: linear-gradient(180deg, #4f3223 0%, #21160f 100%);
}

.castle-tower {
    bottom: 104px;
    width: 102px;
    height: 206px;
    clip-path: polygon(0 14%, 18% 14%, 18% 0, 32% 0, 32% 14%, 46% 14%, 46% 0, 60% 0, 60% 14%, 74% 14%, 74% 0, 88% 0, 88% 14%, 100% 14%, 100% 100%, 0 100%);
}

.castle-tower--left {
    left: 10%;
}

.castle-tower--center {
    left: 50%;
    width: 128px;
    height: 268px;
    transform: translateX(-50%);
}

.castle-tower--right {
    right: 10%;
}

.banner {
    position: absolute;
    top: 220px;
    width: 30px;
    height: 174px;
    background: linear-gradient(180deg, #7b1d20, #3c0e15);
}

.banner::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -56px;
    width: 8px;
    height: 62px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #c89b5f, #6f4c2a);
}

.banner::after {
    content: "";
    position: absolute;
    inset: auto 0 -30px;
    height: 34px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 36%, 50% 100%, 0 36%);
}

.banner--left {
    left: 74px;
}

.banner--right {
    right: 74px;
}

.torch-glow {
    position: absolute;
    bottom: 120px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 175, 102, 0.58) 0%, rgba(255, 132, 44, 0.2) 50%, transparent 74%);
}

.torch-glow--left {
    left: 110px;
}

.torch-glow--right {
    right: 110px;
}

.voxel-strip {
    position: absolute;
    left: 24px;
    bottom: 16px;
    display: inline-flex;
    gap: 9px;
}

.voxel-block {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.voxel-block--grass {
    background: linear-gradient(180deg, var(--mx-grass) 0 32%, #4f8b37 32% 50%, var(--mx-dirt) 50% 100%);
}

.voxel-block--stone {
    background: linear-gradient(180deg, #a2acbb 0%, #6e7889 46%, #414a5b 100%);
}

.voxel-block--gold {
    background: linear-gradient(180deg, #ffe49f 0%, #cd9f49 46%, #744f24 100%);
}

.voxel-block--obsidian {
    background: linear-gradient(180deg, #7f67aa 0%, #463962 46%, #1c1728 100%);
}

.embers {
    position: absolute;
    inset: 0;
}

.ember {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 222, 172, 1) 0%, rgba(255, 136, 55, 0.82) 56%, rgba(255, 136, 55, 0) 100%);
}

.ember-a {
    right: 156px;
    top: 180px;
    animation: float-up 7.8s ease-in-out infinite;
}

.ember-b {
    right: 286px;
    top: 244px;
    animation: float-up 9.2s ease-in-out infinite reverse;
}

.ember-c {
    left: 92px;
    bottom: 158px;
    animation: float-up 8.6s ease-in-out infinite;
}

.ember-d {
    left: 162px;
    bottom: 224px;
    animation: float-up 11.4s ease-in-out infinite;
}

@media (max-width: 980px) {
    .inventory-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .moon-disc {
        width: 104px;
        height: 104px;
        right: 34px;
    }

    .castle-silhouette {
        height: 292px;
        bottom: 40px;
    }

    .banner--left {
        left: 18px;
    }

    .banner--right {
        right: 18px;
    }

    .torch-glow--left {
        left: 34px;
    }

    .torch-glow--right {
        right: 34px;
    }
}

@media (max-width: 560px) {
    .status-pill--minecraft {
        font-size: 0.5rem;
    }

    .inventory-bar {
        grid-template-columns: 1fr;
    }

    .banner,
    .torch-glow,
    .voxel-strip {
        display: none;
    }
}