/* ============================================
   GHOSTS WITH HATS - Landing Page Styles
   Desenvolvido por Pinatra Studios
   ============================================ */

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
    /* Primary Colors - Dark Ethereal Theme */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a25;

    /* Accent Colors */
    --color-accent: #8b7fcc;
    --color-accent-light: #a99fe0;
    --color-accent-glow: rgba(139, 127, 204, 0.4);

    /* Text Colors */
    --color-text-primary: #e8e6f0;
    --color-text-secondary: #a8a4b8;
    --color-text-muted: #6b6880;

    /* Decorative */
    --color-border: rgba(139, 127, 204, 0.15);
    --color-border-hover: rgba(139, 127, 204, 0.3);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

strong {
    color: var(--color-accent-light);
    font-weight: 600;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.section-background.dark {
    background: var(--color-bg-secondary);
}

.section-background.accent {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 70%);
    opacity: 0.3;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 3vw 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 3vw;
}

/* Logo Left */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    transition: var(--transition-base);
}

.header-logo:hover .header-logo-img {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Social Links Right */
.header-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    transition: var(--transition-base);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: #ffffff;
    opacity: 0.7;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile menu language */
.mobile-lang {
    margin-top: 24px;
    justify-content: center;
}

.mobile-menu .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;

    width: 100%;
    justify-content: center;
}

/* Esconde o switcher do header no mobile */
@media (max-width: 768px) {
    .header-social .lang-switcher {
        display: none;
    }
}

.lang-btn {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition-base);
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    color: #ffffff;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 999;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.mobile-menu a:hover {
    color: var(--color-accent-light);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* YouTube Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Mobile MP4 Video Background */
.hero-video-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Fallback background for mobile or when video doesn't load */
.hero-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/4040130/7c96ea81f18b7d16775f09fd234f1603f5ea8820/header.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.2) 0%,
        rgba(10, 10, 15, 0.5) 70%,
        var(--color-bg-primary) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Hero Logo */
.hero-logo-link {
    display: block;
    transition: var(--transition-base);
}

.hero-logo {
    max-width: 700px;
    width: 85vw;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 60px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: logoMagnify 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               logoBreathing 4s ease-in-out 2.5s infinite;
}

@keyframes logoMagnify {
    0% {
        opacity: 0;
        transform: scale(0.75);
        filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0))
                drop-shadow(0 0 60px rgba(0, 0, 0, 0));
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6))
                drop-shadow(0 0 60px rgba(0, 0, 0, 0.4));
    }
}

@keyframes logoBreathing {
    0%, 100% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.08);
    }
}

.hero-logo-link:hover .hero-logo {
    transform: scale(1.03);
    filter: drop-shadow(0 10px 50px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 80px rgba(139, 127, 204, 0.3));
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 2px;
    transition: var(--transition-base);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--color-accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-hover);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 42px;
    font-size: 0.85rem;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: var(--color-text-primary);
}

.section-title.centered {
    text-align: center;
}

/* ============================================
   Story Section
   ============================================ */
.section-story {
    background: var(--color-bg-secondary);
    padding: 120px 0;
}

.story-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 60px 80px;
    background: linear-gradient(135deg, rgba(139, 127, 204, 0.03) 0%, transparent 50%, rgba(139, 127, 204, 0.03) 100%);
    border: 1px solid rgba(139, 127, 204, 0.15);
}

.story-decoration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.story-decoration-top {
    top: 0;
}

.story-decoration-bottom {
    bottom: 0;
}

.story-decoration::before,
.story-decoration::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    transform: rotate(45deg);
}

.story-decoration::before {
    left: 0;
}

.story-decoration::after {
    right: 0;
}

.story-content {
    text-align: center;
}

.story-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: 30px;
}

.story-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.story-divider span {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text-muted));
}

.story-divider span:last-child {
    background: linear-gradient(90deg, var(--color-text-muted), transparent);
}

.story-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    opacity: 0.7;
}

.story-text {
    max-width: 700px;
    margin: 0 auto;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    line-height: 2;
    letter-spacing: 0.02em;
}

.story-lead {
    font-size: 1.25rem !important;
    color: var(--color-text-primary) !important;
    font-weight: 300;
}

.story-lead strong {
    color: var(--color-accent-light);
    font-weight: 500;
}

.story-closing {
    font-style: italic;
    color: var(--color-text-muted) !important;
    margin-bottom: 0 !important;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Features Section
   ============================================ */
.section-features {
    background: var(--color-bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.feature-block {
    text-align: center;
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-icon span {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.feature-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.feature-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.9;
}

/* ============================================
   Gameplay Section
   ============================================ */
.section-gameplay {
    background: var(--color-bg-secondary);
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.gameplay-text .lead {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: 30px;
    line-height: 1.9;
}

.gameplay-list {
    list-style: none;
}

.gameplay-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.gameplay-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 1px;
    background: var(--color-accent);
}

.gameplay-list li strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.visual-frame {
    position: relative;
    border: 1px solid var(--color-border);
    padding: 8px;
}

.visual-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--color-accent);
}

.visual-frame::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--color-accent);
}

.visual-frame img {
    width: 100%;
    display: block;
}

/* ============================================
   Characters Section
   ============================================ */
.section-characters {
    background: #000000;
    padding: 100px 0;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    margin-top: 70px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition-base);
}

.character-card:hover {
    background: rgba(139, 127, 204, 0.08);
    border-color: rgba(139, 127, 204, 0.3);
    transform: translateY(-5px);
}

.character-portrait {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-base);
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    transition: var(--transition-base);
}

.character-card:hover .character-img {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 25px rgba(139, 127, 204, 0.4));
}

.character-info {
    text-align: left;
}

.character-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.character-role {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0.02em;
    font-style: italic;
}

/* ============================================
   Platforms Section
   ============================================ */
.section-platforms {
    background: var(--color-bg-primary);
    padding: 80px 0;
}

.platforms-content {
    text-align: center;
}

.all-ghosts-showcase {
    position: relative;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.all-ghosts-img {
    max-width: 100%;
    height: auto;
}

.platform-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition: var(--transition-base);
    z-index: 2;
}

.platform-logo-overlay svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.platform-logo-overlay span {
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.platform-logo-overlay:hover {
    color: var(--color-accent-light);
    transform: translate(-50%, -50%) scale(1.1);
}

.platform-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.info-value {
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

/* ============================================
   CTA Section
   ============================================ */
.section-cta {
    background: var(--color-bg-secondary);
    padding: 140px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Studio Section
   ============================================ */
.section-studio {
    background: var(--color-bg-secondary);
    padding: 50px 0 30px;
}

.studio-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.studio-logo-link {
    display: block;
    transition: var(--transition-base);
}

.studio-logo-img {
    max-width: 750px;
    width: 85vw;
    height: auto;
    filter: drop-shadow(0 5px 30px rgba(0, 0, 0, 0.4));
    transition: var(--transition-base);
}

.studio-logo-link:hover .studio-logo-img {
    transform: scale(1.02);
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-secondary);
    padding: 50px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--color-text-muted);
    transition: var(--transition-base);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-social-link:hover {
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.footer-copyright {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* ============================================
   Animations
   ============================================ */
@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

.fade-in.delay-2 {
    animation-delay: 0.4s;
}

.fade-in.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.features-grid .feature-block:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-block:nth-child(2) { transition-delay: 0.15s; }
.features-grid .feature-block:nth-child(3) { transition-delay: 0.3s; }

.characters-grid .character-card:nth-child(1) { transition-delay: 0s; }
.characters-grid .character-card:nth-child(2) { transition-delay: 0.1s; }
.characters-grid .character-card:nth-child(3) { transition-delay: 0.2s; }
.characters-grid .character-card:nth-child(4) { transition-delay: 0.3s; }
.characters-grid .character-card:nth-child(5) { transition-delay: 0.4s; }
.characters-grid .character-card:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .story-wrapper {
        padding: 50px 50px;
    }

    .story-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 500px;
        margin: 0 auto;
    }

    .gameplay-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .gameplay-visual {
        order: -1;
    }

    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 25px;
    }

    .character-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .character-info {
        text-align: center;
    }

    .platform-info {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    /* Hide YouTube iframe on mobile */
    .hero-video-container {
        display: none;
    }

    /* Show MP4 video on mobile */
    .hero-video-mobile {
        display: block;
    }

    /* Keep image as ultimate fallback */
    .hero-fallback-bg {
        opacity: 0.35;
        z-index: -1;
    }

    .container {
        padding: 0 24px;
    }

    .section-story {
        padding: 80px 0;
    }

    .story-wrapper {
        padding: 40px 30px;
    }

    .story-title {
        font-size: 1.6rem;
        letter-spacing: 0.1em;
    }

    .story-divider span {
        width: 50px;
    }

    .story-lead {
        font-size: 1.1rem !important;
    }

    .story-text p {
        font-size: 1rem;
    }

    .header-container {
        padding: 0 20px;
    }

    .header-social {
        display: none;
    }

    .header-logo-img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-logo {
        max-width: 450px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }

    .character-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 15px;
    }

    .character-info {
        text-align: center;
    }

    .character-portrait {
        width: 90px;
        height: 90px;
    }

    .platform-info {
        flex-direction: column;
        gap: 24px;
    }

    .platform-logo-overlay svg {
        width: 60px;
        height: 60px;
    }

    .platform-logo-overlay span {
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
    }

}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero-logo {
        max-width: 320px;
    }

    .characters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .character-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 20px;
    }

    .character-info {
        text-align: left;
    }

    .character-portrait {
        width: 70px;
        height: 70px;
    }

    .character-name {
        font-size: 1rem;
    }

    .character-role {
        font-size: 0.8rem;
    }

    .section-cta {
        padding: 100px 0;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .scroll-indicator,
    .cta-buttons {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        break-inside: avoid;
        padding: 40px 0;
    }
}
