:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

/* ── Fixed Background Layer ── */
.hero-bg {
    position: fixed;
    inset: 0;
    background-image: url('hero.jpg');
    background-position: center;
    background-size: cover;
    will-change: transform;
    transform: scale(1.1) translate(0px, 0px);
    transform-origin: center center;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-bg {
        transform: none !important;
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        display: none;
    }

    .carousel-track {
        overflow: hidden;
    }
}


/* ── Scroll Container with Snap ── */
.scroll-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-top: 3rem;
}

.content-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section:last-child {
    padding-bottom: 5rem;
}

.content-inner {
    text-align: center;
    padding: 0 2rem;
    width: 100%;
}

/* ── Animations ── */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 250px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.logo {
    background-image: url('logo_small.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    max-width: 800px;
    width: 100%;
    padding: 1rem;
    height: 170px;
}

.subheadline {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.sectionheader,
h2.sectionheader {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* ── About Cards ── */
.about-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.about-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-white-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
}

.about-card h3 {
    font-size: 1.15em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
}

.about-card p {
    font-size: .99em;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-light);
    line-height: 1.5;
    margin: 0;
}

.about-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 8px 30px rgba(99,102,241,0.15), 0 2px 8px rgba(0,0,0,0.3);
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.25s; }
.about-card:nth-child(3) { animation-delay: 0.4s; }
.about-card:nth-child(4) { animation-delay: 0.55s; }

/* ── Corner Brackets ── */
.bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.bracket.tl { top: 10px; left: 10px; border-top: 2px solid var(--color-primary-subtle); border-left: 2px solid var(--color-primary-subtle); }
.bracket.tr { top: 10px; right: 10px; border-top: 2px solid var(--color-primary-subtle); border-right: 2px solid var(--color-primary-subtle); }
.bracket.bl { bottom: 10px; left: 10px; border-bottom: 2px solid var(--color-primary-subtle); border-left: 2px solid var(--color-primary-subtle); }
.bracket.br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--color-primary-subtle); border-right: 2px solid var(--color-primary-subtle); }

.about-card:hover .bracket {
    border-color: rgba(99,102,241,0.5);
}

/* ── Card Content Wrapper ── */
.card-content {
    position: relative;
    z-index: 1;
}

/* ── Section Dividers ── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
}

.section-divider.divider-top {
    animation-delay: 0s;
}

.section-divider.divider-bottom {
    margin-bottom: 0;
    margin-top: 2.5rem;
    opacity: 1;
    animation: none;
}

.divider-line {
    flex: 1;
    max-width: 300px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
}

.section-divider.divider-bottom .divider-line {
    background: linear-gradient(to left, transparent, rgba(255,255,255,0.3), transparent);
}

.divider-symbol {
    color: var(--color-text-light);
    font-size: 1rem;
    letter-spacing: 0.3em;
}

@media (max-width: 640px) {
    .content-section.section-2 {
        min-height: 160vh;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 14rem;
    }

    .sectionheader {
        margin-top: 3rem;
    }

    .about-card {
        padding: 1.25rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    #subscribeBtn {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }

    #emailInput {
        width: 100%;
    }
}

/* ── Newsletter ── */
.newsletter {
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding: 0rem 0;
    animation: fadeInUp 1s ease-out 1.0s both;
}

.newsletter-form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-white-border);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 8px 32px var(--color-shadow-20);
}

.newsletter-form::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, rgba(99,102,241,0.6), rgba(99,102,241,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.newsletter-form::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.08), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.newsletter-form:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 6px 24px rgba(99,102,241,0.15), 0 2px 8px rgba(0,0,0,0.3);
}

.newsletter-form:hover::before {
    opacity: 1;
}

.newsletter-form:hover::after {
    opacity: 1;
}

#emailInput:focus + #subscribeBtn:not([style*="background"]) {
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

#emailInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
}

#emailInput::placeholder {
    color: var(--color-white-text);
}

#subscribeBtn {
    background: var(--color-primary);
    border: none;
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

#subscribeBtn:hover {
    background: var(--color-primary);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-error);
    color: var(--color-text);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.notification-badge.success {
    background: var(--color-success);
}

.notification-badge.success.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

#subscribeBtn .notification-badge.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#subscribeBtn .notification-badge:not(.visible) {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scale(1);
}

.disclaimer {
    margin-top: 1rem;
}

.disclaimer p {
    font-size: clamp(.5rem, .5vw, 1.25rem);
    color: var(--color-text-dim);
    font-weight: var(--font-weight-medium);
    max-width: 700px;
    margin: 0 auto 0rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ── Social Links ── */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.15);
}

.social-link.inactive:hover .social-icon {
    transform: none;
}

.youtube-icon {
    width: 42px;
}

.steam-icon {
    width: 32px;
}

.egs-icon {
    width: 18px;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-white-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    text-decoration: none;
    animation: fadeInUp 1s ease-out 0.9s both;
    min-width: 90px;
    max-width: 90px;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, rgba(99,102,241,0.6), rgba(99,102,241,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.social-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.08), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.social-link:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.15), 0 2px 8px rgba(0,0,0,0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover::after {
    opacity: 1;
}

.social-link.inactive {
    background: var(--color-white-border);
    border-color: var(--color-white-border);
    color: var(--color-white-text);
    cursor: default;
    position: relative;
}

.social-link.inactive:hover {
    border-color: var(--color-white-border);
    transform: none;
    box-shadow: none;
}

.social-link.inactive:hover::before,
.social-link.inactive:hover::after {
    opacity: 0 !important;
}

.coming-soon {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.social-link.inactive:hover .coming-soon {
    opacity: 1;
    visibility: visible;
}

.coming-soon.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ── Footer ── */
.footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-footer-subtle);
    z-index: 25;
    pointer-events: none;
}

.footer a,
.footer span {
    pointer-events: auto;
}

.footer-left { display: flex; gap: 1.5rem; pointer-events: auto; }
.footer a { color: var(--color-text-footer); text-decoration: none; transition: color var(--transition-speed) ease; }
.footer a:hover { color: var(--color-text-footer-hover); }

.inline-link {
    color: var(--color-link-blue);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.inline-link:hover {
    color: var(--color-link-blue-hover);
}

/* ── Particles ── */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0) scale(1);   opacity: 0; }
    5%   { opacity: 1; }
    50%  { transform: translateY(-45vh) translateX(var(--drift)) scale(1.2); opacity: 0.7; }
    95%  { opacity: 0.2; }
    100% { transform: translateY(-95vh) translateX(calc(var(--drift) * 1.5)) scale(0.5); opacity: 0; }
}

/* ── Carousel ── */
.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1rem;
    overflow: hidden;
    padding-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    perspective: 1200px;
    position: relative;
}

.carousel-slide {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-white-border);
    box-shadow: 0 8px 32px var(--color-shadow);
    cursor: pointer;
    width: 650px;
    max-width: 75vw;
    height: 420px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide.active {
    z-index: 3;
    transform: translateX(0) translateZ(0) scale(1);
    opacity: 1;
    filter: brightness(1);
}

.carousel-slide.prev,
.carousel-slide.next {
    z-index: 2;
    transform: translateX(-280px) translateZ(-60px) scale(0.85);
    opacity: 0.5;
    filter: brightness(0.5) saturate(0.7);
}

.carousel-slide.next {
    transform: translateX(280px) translateZ(-60px) scale(0.85);
}

.carousel-slide.hidden {
    z-index: 1;
    transform: translateX(0) translateZ(-120px) scale(0.7);
    opacity: 0;
    filter: brightness(0.3);
    pointer-events: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--color-white-border);
    border: 1px solid var(--color-white-bg);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.carousel-nav:hover {
    background: var(--color-white-bg);
    border-color: var(--color-primary-subtle);
    transform: translateY(-50%) scale(1.12);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-white-bg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary-active);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--color-white-bg);
}

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--color-black-90);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-white-border);
    box-shadow: 0 8px 32px var(--color-shadow);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: var(--color-white-border);
    border: 1px solid var(--color-white-bg);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0;
    visibility: hidden;
    transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.lightbox-overlay.visible ~ .lightbox-close,
.lightbox-close.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-close:hover {
    background: var(--color-white-bg);
    border-color: var(--color-primary-subtle);
    transform: scale(1.12);
}

.lightbox-close:active {
    transform: scale(0.92);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: var(--color-white-border);
    border: 1px solid var(--color-white-bg);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0;
    visibility: hidden;
    transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.lightbox-overlay.visible ~ .lightbox-nav,
.lightbox-nav.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-nav:hover {
    background: var(--color-white-bg);
    border-color: var(--color-primary-subtle);
    transform: translateY(-50%) scale(1.12);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.92);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .logo-container {
        min-height: auto;
    }
    
    .logo {
        width: 90vw;
        height: 108px;
    }

    .footer {
        position: fixed;
        justify-content: center;
        padding: 1rem;
    }

    .carousel-track {
        height: 300px;
    }

    .carousel-slide {
        width: 85vw;
        height: 240px;
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        transform: translateX(-100px) translateZ(-60px) scale(0.75);
    }

    .carousel-slide.next {
        transform: translateX(100px) translateZ(-60px) scale(0.75);
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }

    .lightbox-content img,
    .lightbox-content video {
        max-width: 65vw;
        max-height: 75vh;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}
