@import url('https://fonts.googleapis.com/css2?family=Darumadrop+One&display=swap');

:root {
    --bg: #000000;
    --line: #000000;
    --white: #f6f7fb;
    --title-font: 'Darumadrop One', sans-serif;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, 
.hero-title, .tagline, .trailer-title, .title-word, .page-title {
    font-family: var(--title-font);
}

html,
body {
    height: auto;
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--white);
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -80px;
    background-image: url('../bg/FilmGrain.png');
    background-size: 2048px 2048px;
    opacity: .15;
    mix-blend-mode: screen;
    filter: contrast(1.5) brightness(10);
    animation: grainShift 0.8s steps(1) infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -2%); }
    20% { transform: translate(2%, 1%); }
    30% { transform: translate(-2%, 2%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 2%); }
    60% { transform: translate(-2%, -1%); }
    70% { transform: translate(2%, 1%); }
    80% { transform: translate(1%, -2%); }
    90% { transform: translate(-1%, 1%); }
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-width: 80%;
    width: 400px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.9));
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.1em;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    transition: transform 0.2s ease;
}

.download-btn img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.download-btn:hover {
    transform: scale(1.05);
}

/* CONTENT SECTIONS BENEATH HERO */
.content-sections {
    position: relative;
    z-index: 2;
}

.eyes-bg-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.eyes-bg-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2; /* Needs to be above the #eyes wrap */
    pointer-events: none;
}

.sections-container {
    position: relative;
    z-index: 2;
    padding-bottom: 6rem;
    margin-top: -100vh; /* Pull content up over the sticky background */
}

/* FEATURES */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50vh;
    padding: 6rem 10vw;
    gap: 4rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0) 100%);
    margin-bottom: 4rem;
}

.feature-section.right-text {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-text .tagline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

.feature-text .description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.feature-art {
    flex: 1;
    display: flex;
    justify-content: center;
}

.art-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

/* TRAILER SECTION */
.trailer-section {
    padding: 6rem 10vw;
    text-align: center;
    margin-top: 4rem;
}

.trailer-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: #000;
}

.trailer-video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 820px) {
    .feature-section, 
    .feature-section.right-text {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5vw;
        gap: 3rem;
    }
}

.wrap {
    width: 92vw;
    height: 85vh;
    display: grid;
    grid-auto-rows: 1fr;
    z-index: 1;
    gap: min(2vmin, 16px);
}

@media (max-width: 820px) {
    .wrap {
        row-gap: 0;
    }
}

.eye {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.title-cell {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    gap: clamp(0.15rem, 0.8vw, 0.5rem);
    letter-spacing: 0.08em;
    container-type: inline-size;
}

.title-word {
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
    font-size: 30cqw;
}


.eye.linked {
    cursor: pointer;
    position: relative;
    outline: none;
}

.eye.linked svg .pupil {
    fill: #cc1e1e;
    transition: fill .2s ease;
}

.eye.linked.armed svg .pupil {
    fill: #ff2e2e;
}

.eye.linked:hover svg .pupil,
.eye.linked:focus-visible svg .pupil {
    fill: #ff2e2e;
}

.eye.linked svg .logo {
    opacity: 0;
    transition: opacity .2s ease;
}

.eye.linked.armed svg .logo {
    opacity: 1;
}

.eye.linked:hover svg .logo,
.eye.linked:focus-visible svg .logo,
.eye.linked.touch-hover svg .logo {
    opacity: 1;
}

.eye svg .lid-top,
.eye svg .lid-bottom {
    transform: scaleY(0);
    transform-box: fill-box;
    transition: transform .12s ease-in;
    pointer-events: none;
}

.eye svg .lid-top {
    transform-origin: top center;
}

.eye svg .lid-bottom {
    transform-origin: bottom center;
}

.eye.blinking svg .lid-top,
.eye.blinking svg .lid-bottom {
    transform: scaleY(1);
}

svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Text/Legal pages (e.g. /privacy) */
body.page-body {
    display: block;
    place-items: unset;
    overflow: auto;
}

.page {
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: clamp(18px, 4vw, 36px) 0;
}

.page-header {
    margin-bottom: 22px;
}

.page-title {
    margin: 0 0 8px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-subtitle,
.page-meta {
    margin: 0;
    opacity: 0.85;
}

.page-section {
    margin: 18px 0;
}

.page h2 {
    margin: 0 0 8px 0;
}

.page p,
.page li {
    line-height: 1.6;
}

.page a {
    color: var(--white);
    text-underline-offset: 3px;
}

.page a:hover,
.page a:focus-visible {
    text-decoration-thickness: 2px;
}

.page-footer {
    margin-top: 26px;
    opacity: 0.9;
}

/* Small fixed link for the main game page */
.corner-link {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 150;
    font-size: 14px;
    opacity: 0.8;
    text-decoration: none;
}

.corner-link:hover,
.corner-link:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* FOOTER SECTION */
.site-footer {
    position: relative;
    z-index: 2;
    background: #000;
    padding: 4rem 10vw 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
}

.footer-info h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--white);
}

.footer-info p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* DISCORD SECTION */
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #5865F2;
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.discord-btn:hover {
    transform: scale(1.05);
    background: #4752c4;
}

.discord-btn img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.discord-art {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2f33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-art img {
    width: 40%;
    opacity: 0.1;
    filter: brightness(0) invert(1);
}

/* COMMUNITY SECTION */
.community-section {
    padding: 6rem 10vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.community-section .tagline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

.community-section .description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    max-width: 600px;
    margin: 0 auto;
}
