/* ============================================
   SPECTER - Ghost 3D Horror Game Landing Page
   Design System: Dark Horror Aesthetic
   ============================================ */

/* CSS Variables */
:root {
    /* Color Palette - Volcanic Glass */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    --color-accent: #ff6b2b;
    --color-accent-glow: #ff8c5a;
    --color-accent-dark: #cc4a1a;
    --color-ghost: #e8e4df;
    --color-ghost-glow: rgba(232, 228, 223, 0.3);
    --color-danger: #ff3333;
    
    /* Typography */
    --font-display: 'Creepster', cursive;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 107, 43, 0.3);
    --shadow-ghost: 0 0 60px rgba(232, 228, 223, 0.15);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   ATMOSPHERIC EFFECTS
   ============================================ */

/* Fog Layers */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.03) 75%, 
        transparent 100%
    );
    animation: fog-move 20s linear infinite;
}

.fog-layer-1 {
    top: 20%;
    animation-duration: 25s;
    opacity: 0.6;
}

.fog-layer-2 {
    top: 50%;
    animation-duration: 35s;
    animation-delay: -10s;
    opacity: 0.4;
}

.fog-layer-3 {
    top: 80%;
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.3;
}

@keyframes fog-move {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.4) 100%
    );
}

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(20px);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: var(--space-sm) var(--space-xl);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(255, 107, 43, 0.5);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-bg-primary) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-accent-glow);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3xl) var(--space-xl);
    padding-top: calc(var(--space-3xl) + 80px);
    overflow: hidden;
    z-index: 10;
}

.hero-content {
    max-width: 600px;
    z-index: 20;
}

.hero-badge {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 40px rgba(255, 107, 43, 0.3);
}

.title-line {
    display: block;
}

.title-line-1 {
    color: var(--color-text-primary);
    animation: title-fade-in 1s ease-out 0.3s both;
}

.title-line-2 {
    color: var(--color-accent);
    animation: title-fade-in 1s ease-out 0.6s both;
}

@keyframes title-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 450px;
    animation: fade-in 1s ease-out 0.9s both;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fade-in 1s ease-out 1.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

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

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-muted);
}

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

.btn-icon {
    font-size: 0.8rem;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    animation: fade-in 1s ease-out 1.5s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Visual - Ghost Figure */
.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 500px;
    z-index: 15;
}

.ghost-figure {
    position: relative;
    width: 100%;
    height: 100%;
    animation: ghost-float 4s ease-in-out infinite;
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ghost-body {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 280px;
    background: linear-gradient(180deg, 
        rgba(232, 228, 223, 0.9) 0%, 
        rgba(232, 228, 223, 0.4) 70%,
        transparent 100%
    );
    border-radius: 100px 100px 60px 60px;
    box-shadow: var(--shadow-ghost);
    animation: ghost-pulse 3s ease-in-out infinite;
}

@keyframes ghost-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.ghost-eyes {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.eye {
    width: 20px;
    height: 25px;
    background: var(--color-bg-primary);
    border-radius: 50%;
    animation: eye-blink 4s infinite;
}

.eye-left {
    animation-delay: 0.5s;
}

@keyframes eye-blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.ghost-mouth {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: var(--color-bg-primary);
    border-radius: 0 0 20px 20px;
    animation: mouth-move 3s ease-in-out infinite;
}

@keyframes mouth-move {
    0%, 100% { height: 20px; }
    50% { height: 30px; }
}

.shadow-hands {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
}

.hand {
    position: absolute;
    width: 80px;
    height: 120px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        transparent 100%
    );
    border-radius: 40px;
    filter: blur(8px);
    animation: hand-reach 5s ease-in-out infinite;
}

.hand-left {
    left: 0;
    transform: rotate(-20deg);
    animation-delay: 0.5s;
}

.hand-right {
    right: 0;
    transform: rotate(20deg);
}

@keyframes hand-reach {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); opacity: 0.6; }
    50% { transform: translateY(-30px) rotate(var(--rotation, 0deg)); opacity: 0.8; }
}

.hand-left { --rotation: -20deg; }
.hand-right { --rotation: 20deg; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fade-in 1s ease-out 2s both;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    position: relative;
    padding: var(--space-3xl) var(--space-xl);
    z-index: 10;
    background: linear-gradient(to bottom, transparent, var(--color-bg-secondary) 20%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: var(--space-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 43, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* ============================================
   GAMEPLAY SECTION
   ============================================ */

.gameplay {
    position: relative;
    padding: var(--space-3xl) var(--space-xl);
    z-index: 10;
    background: var(--color-bg-secondary);
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.gameplay-text {
    max-width: 500px;
}

.gameplay-text .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.gameplay-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.gameplay-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gameplay-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.item-marker {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-accent);
    min-width: 40px;
}

.item-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Game Screen Visual */
.gameplay-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    background: var(--color-bg-tertiary);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.screen-content {
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.game-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

.scene-room {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 800px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
}

.room-wall {
    position: absolute;
    top: 0;
    height: 70%;
    width: 40%;
    background: linear-gradient(90deg, #1a1a2e, #2a2a3e);
}

.wall-left {
    left: 0;
    transform: skewY(10deg);
    transform-origin: bottom left;
}

.wall-right {
    right: 0;
    transform: skewY(-10deg);
    transform-origin: bottom right;
}

.room-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
}

.furniture {
    position: absolute;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet {
    bottom: 30%;
    left: 15%;
    width: 60px;
    height: 80px;
}

.door {
    bottom: 30%;
    right: 20%;
    width: 50px;
    height: 120px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
}

.ghost-silhouette {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: rgba(232, 228, 223, 0.3);
    border-radius: 30px 30px 20px 20px;
    filter: blur(4px);
    animation: ghost-appear 4s ease-in-out infinite;
}

@keyframes ghost-appear {
    0%, 100% { opacity: 0.2; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.6; transform: translateX(-50%) translateY(-10px); }
}

.screen-glare {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%
    );
    pointer-events: none;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    position: relative;
    padding: var(--space-3xl) var(--space-xl);
    z-index: 10;
    background: var(--color-bg-primary);
}

.testimonials-slider {
    display: flex;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
}

.testimonials-slider::-webkit-scrollbar {
    height: 4px;
}

.testimonials-slider::-webkit-scrollbar-track {
    background: var(--color-bg-tertiary);
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
}

.testimonial-card {
    flex: 0 0 350px;
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: var(--space-xl);
    scroll-snap-align: start;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 43, 0.2);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    letter-spacing: 0.2em;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.author-platform {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */

.download {
    position: relative;
    padding: var(--space-3xl) var(--space-xl);
    z-index: 10;
    background: linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
    text-align: center;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-md);
}

.download-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.download-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: var(--space-md) var(--space-lg);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: var(--transition-normal);
    min-width: 180px;
}

.platform-btn:hover {
    border-color: var(--color-accent);
    background: rgba(255, 107, 43, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 43, 0.2);
}

.platform-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

.platform-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.platform-small {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-large {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    z-index: 10;
    background: var(--color-bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 250px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.footer-link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-visual {
        right: 5%;
        width: 300px;
        height: 400px;
    }
    
    .ghost-body {
        width: 150px;
        height: 210px;
    }
    
    .gameplay-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .gameplay-text {
        max-width: 100%;
        text-align: center;
    }
    
    .gameplay-text .section-title {
        text-align: center;
    }
    
    .gameplay-list {
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .nav {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transition: var(--transition-normal);
        padding: var(--space-xl);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 101;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--space-2xl) + 80px);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 250px;
        height: 350px;
        margin-top: var(--space-xl);
    }
    
    .ghost-body {
        width: 120px;
        height: 170px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 300px;
    }
    
    .download-platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fog-layer,
    .particle {
        display: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text-secondary: #cccccc;
        --color-text-muted: #999999;
    }
}