/* ================= REMX:317 ================= */
:root {
    --bg: #0a0a0c;
    --ink: #f2f0ea;
    --red: #ff2d2d;
    --red-deep: #8f0f0f;
    --blurple: #5865f2;
    --blurple-deep: #2b2f8f;
    --slash-w: 16vw;
    --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
    --body: 'Inter', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    overflow: hidden;
}

/* --- wordmark --- */
.hero__mark {
    position: absolute;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    text-align: center;
    pointer-events: none;
    will-change: transform;
}

.mark {
    position: relative;
    font-family: var(--display);
    font-size: clamp(3.4rem, 11vw, 10.5rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    display: inline-block;
}

.mark__main {
    position: relative;
    z-index: 2;
    color: var(--ink);
    text-shadow:
        0.045em 0.045em 0 #000,
        0.09em 0.09em 0 var(--red-deep);
}

.mark__colon { color: var(--red); }

.mark__num {
    color: transparent;
    -webkit-text-stroke: 3px var(--red);
    text-shadow: none;
}

.mark__echo {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 240, 234, 0.18);
    transform: translate(-0.14em, -0.1em);
    animation: echo-drift 6s ease-in-out infinite alternate;
}

@keyframes echo-drift {
    from { transform: translate(-0.14em, -0.1em); }
    to   { transform: translate(-0.06em, -0.16em); }
}

.mark__tag {
    margin-top: 14px;
    font-weight: 800;
    font-size: clamp(0.6rem, 1.1vw, 0.85rem);
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    color: rgba(242, 240, 234, 0.72);
}

/* --- panels --- */
.panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    outline: none;
}

.panel__inner {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6vh 6vw;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel:hover .panel__inner { transform: translateY(-10px); }

.panel__label { display: flex; flex-direction: column; gap: 12px; }

.panel__eyebrow {
    font-weight: 800;
    font-size: clamp(0.58rem, 0.95vw, 0.8rem);
    letter-spacing: 0.35em;
    opacity: 0.75;
}

.panel__title {
    font-family: var(--display);
    font-size: clamp(2.6rem, 6.2vw, 6rem);
    line-height: 0.95;
    text-shadow: 0.06em 0.06em 0 rgba(0, 0, 0, 0.55);
}

.panel__cta {
    align-self: flex-start;
    font-weight: 800;
    font-size: clamp(0.75rem, 1.05vw, 0.95rem);
    letter-spacing: 0.12em;
    padding: 12px 22px;
    border: 2px solid currentColor;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.panel:hover .panel__cta { transform: translateX(8px); }
.panel__cta--blurple { color: #cdd3ff; }
.panel--discord:hover .panel__cta--blurple { background: #cdd3ff; color: var(--blurple-deep); }
.panel__cta--red { color: #ffc9c9; }
.panel--play:hover .panel__cta--red { background: var(--red); border-color: var(--red); color: #fff; }

/* discord panel */
.panel--discord {
    clip-path: polygon(0 0, calc(58% - var(--slash-w) / 2) 0, calc(42% - var(--slash-w) / 2) 100%, 0 100%);
    background:
        radial-gradient(120% 90% at 20% 15%, rgba(88, 101, 242, 0.55), transparent 60%),
        linear-gradient(160deg, #1c1e3a 0%, #101124 55%, #0a0a14 100%);
}

.panel--discord::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.028) 0 2px,
        transparent 2px 26px
    );
    z-index: 1;
    pointer-events: none;
}

.discord-logo {
    position: absolute;
    top: 50%;
    left: 24%;
    width: clamp(140px, 17vw, 280px);
    transform: translate(-50%, -58%);
    color: var(--blurple);
    filter: drop-shadow(0 18px 50px rgba(88, 101, 242, 0.55));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
    z-index: 4;
}

.panel--discord:hover .discord-logo {
    transform: translate(-50%, -62%) scale(1.07) rotate(-4deg);
    color: #7a86ff;
}

/* play panel */
.panel--play {
    clip-path: polygon(calc(58% + var(--slash-w) / 2) 0, 100% 0, 100% 100%, calc(42% + var(--slash-w) / 2) 100%);
    background: #16090b;
}

.panel--play .panel__inner { align-items: flex-end; }
.panel--play .panel__label { text-align: right; align-items: flex-end; }
.panel--play .panel__cta { align-self: flex-end; }

.panel__shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(to top, rgba(8, 4, 6, 0.92) 8%, rgba(8, 4, 6, 0.25) 45%, rgba(8, 4, 6, 0.35) 100%),
        linear-gradient(115deg, rgba(143, 15, 15, 0.35), transparent 45%);
    pointer-events: none;
}

/* slideshow */
.slideshow { position: absolute; inset: 0; z-index: 1; }

.slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.6s ease;
    will-change: opacity, transform;
}

.slide.is-active {
    opacity: 1;
    animation: kenburns 9s ease-out forwards;
}

.slide--render {
    background-size: contain;
    background-color: #140a0e;
    background-image: radial-gradient(80% 70% at 50% 45%, rgba(255, 45, 45, 0.22), transparent 70%);
}

.slide--render::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--render);
    background-position: center 58%;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
}

@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

/* the slash */
.slash {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    clip-path: polygon(calc(58% - var(--slash-w) / 2) 0, calc(58% + var(--slash-w) / 2) 0, calc(42% + var(--slash-w) / 2) 100%, calc(42% - var(--slash-w) / 2) 100%);
    background: linear-gradient(115deg, rgba(255, 45, 45, 0.16), rgba(255, 45, 45, 0.04));
    backdrop-filter: blur(2px) saturate(1.2);
}

.slash__core {
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 50%;
    width: clamp(6px, 0.7vw, 12px);
    background: linear-gradient(to bottom, var(--red), #ff7a7a 40%, var(--red));
    transform: translateX(-50%) rotate(9.1deg);
    transform-origin: center;
    box-shadow:
        0 0 24px rgba(255, 45, 45, 0.9),
        0 0 80px rgba(255, 45, 45, 0.5);
    animation: slash-pulse 2.8s ease-in-out infinite;
}

@keyframes slash-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: 30px;
    height: 52px;
    border: 2px solid rgba(242, 240, 234, 0.5);
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
}

.scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 10px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--red);
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(22px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ================= SCROLL SECTIONS ================= */
.reveal {
    opacity: 0;
    transform: translateY(56px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s),
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
    will-change: opacity, transform;
}

.reveal.is-in { opacity: 1; transform: none; }

.statement {
    padding: 18vh 8vw 10vh;
    text-align: center;
}

.statement__kicker {
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--red);
    font-size: 0.8rem;
    margin-bottom: 26px;
}

.statement__text {
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 3.4rem);
    line-height: 1.18;
}

.statement__text em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 2px var(--red);
}

.statement__chips {
    margin-top: 54px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.chip {
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    padding: 14px 26px;
    border: 2px solid rgba(242, 240, 234, 0.25);
    transition-property: opacity, transform, border-color;
}

.chip.is-in:hover { border-color: var(--red); }

/* features */
.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding: 6vh 6vw 12vh;
    max-width: 1500px;
    margin: 0 auto;
}

.card {
    background: #121216;
    border: 1px solid #232329;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease,
        opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
}

.card:nth-child(2) { --d: 0.12s; }
.card:nth-child(3) { --d: 0.24s; }

.card.is-in:hover {
    transform: translateY(-10px);
    border-color: var(--red);
}

.card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d0d10;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card__img img { transform: scale(1.07); }

.card__img--render {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(70% 70% at 50% 50%, rgba(255, 45, 45, 0.18), #0d0d10 75%);
}

.card__img--render img {
    object-fit: contain;
    height: 88%;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.7));
}

.card__body { padding: 26px 26px 32px; }

.card__body h3 {
    font-family: var(--display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card__body h3 span { color: var(--red); }

.card__body p {
    color: rgba(242, 240, 234, 0.7);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* marquee */
.marquee {
    overflow: hidden;
    border-top: 1px solid #232329;
    border-bottom: 1px solid #232329;
    background: #0d0d10;
    padding: 18px 0;
}

.marquee__track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track img {
    height: 170px;
    width: auto;
    image-rendering: pixelated;
    border: 1px solid #232329;
    filter: saturate(1.1) contrast(1.05);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* cta */
.cta {
    text-align: center;
    padding: 16vh 8vw;
}

.cta__title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 6vw, 5rem);
    margin-bottom: 48px;
}

.cta__title span {
    color: transparent;
    -webkit-text-stroke: 2px var(--red);
}

.cta__row {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--display);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    padding: 22px 46px;
    border: 3px solid;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover { transform: translateY(-5px) skewX(-3deg); }

.btn--blurple { border-color: var(--blurple); color: #cdd3ff; }
.btn--blurple:hover { background: var(--blurple); color: #fff; box-shadow: 0 18px 45px rgba(88, 101, 242, 0.45); }

.btn--red { border-color: var(--red); color: #ffc9c9; }
.btn--red:hover { background: var(--red); color: #fff; box-shadow: 0 18px 45px rgba(255, 45, 45, 0.45); }

/* footer */
.footer {
    border-top: 1px solid #232329;
    padding: 46px 8vw 60px;
    text-align: center;
}

.footer__links {
    display: flex;
    gap: 34px;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    margin-bottom: 22px;
}

.footer__links a { opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.footer__links a:hover { opacity: 1; color: var(--red); }

.footer__legal {
    font-size: 0.72rem;
    color: rgba(242, 240, 234, 0.4);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================= MOBILE ================= */
@media (max-width: 860px) {
    .hero { flex-direction: column; height: auto; min-height: 100svh; }

    .hero__mark { position: relative; top: 0; left: 0; transform: none; padding: 8vh 4vw 4vh; z-index: 30; }

    .panel { position: relative; inset: auto; min-height: 52svh; clip-path: none !important; }

    .panel--discord {
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%) !important;
        order: 2;
    }

    .panel--play {
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%) !important;
        order: 1;
        margin-top: -1px;
    }

    .discord-logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 8vh auto 0;
    }

    .panel--discord .panel__inner { padding-top: 0; }

    .slash { display: none; }
    .scroll-hint { display: none; }

    .features { grid-template-columns: 1fr; }

    .panel--play .panel__label { text-align: left; align-items: flex-start; }
    .panel--play .panel__cta { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .slide.is-active { animation: none; }
    .mark__echo, .slash__core, .marquee__track, .scroll-hint span { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
