:root {
    --bg-primary: #2d1b3d;
    --bg-secondary: #1a0f24;
    --bg-card: #3d2a4d;
    --purple-accent: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --red-accent: #ef4444;
    --red-light: #f87171;
    --text-primary: #ffffff;
    --text-secondary: #c4b5d0;
    --text-muted: #9a8aad;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.fog-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fog {
    position: absolute;
    bottom: -50px;
    width: 200%;
    height: 200px;
    background: linear-gradient(to top, rgba(45, 27, 61, 0.9) 0%, transparent 100%);
    opacity: 0.6;
}

.fog-1 {
    animation: fogMove1 20s linear infinite;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.3;
}

.fog-2 {
    animation: fogMove2 25s linear infinite;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

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

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

.spirit-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(139, 92, 246, 0.2) 40%, 
        rgba(139, 92, 246, 0.05) 70%, 
        transparent 100%);
    filter: blur(1px);
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 8px;
    height: 8px;
    top: 15%;
    left: 8%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.orb-2 {
    width: 12px;
    height: 12px;
    top: 55%;
    right: 12%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 6px;
    height: 6px;
    top: 35%;
    left: 75%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.orb-4 {
    width: 10px;
    height: 10px;
    top: 70%;
    left: 25%;
    animation-duration: 28s;
    animation-delay: -15s;
}

.orb-5 {
    width: 5px;
    height: 5px;
    top: 25%;
    right: 30%;
    animation-duration: 18s;
    animation-delay: -8s;
}

.orb-6 {
    width: 14px;
    height: 14px;
    top: 80%;
    right: 45%;
    animation-duration: 35s;
    animation-delay: -20s;
}

.orb-7 {
    width: 7px;
    height: 7px;
    top: 45%;
    left: 40%;
    animation-duration: 24s;
    animation-delay: -12s;
}

.orb-8 {
    width: 9px;
    height: 9px;
    top: 10%;
    right: 20%;
    animation-duration: 27s;
    animation-delay: -3s;
}

@keyframes floatOrb {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-60px) translateX(30px); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-30px) translateX(-20px); 
        opacity: 0.2;
    }
    75% { 
        transform: translateY(-80px) translateX(15px); 
        opacity: 0.4;
    }
    90% {
        opacity: 0.3;
    }
    100% { 
        transform: translateY(0) translateX(0); 
        opacity: 0;
    }
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, transparent 100%);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-ghost {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-family: 'Creepster', cursive;
    font-size: 1.8rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn-login {
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--purple-accent);
}

.nav-btn-login:hover {
    background: rgba(139, 92, 246, 0.2);
}

.nav-btn-signup {
    background: var(--purple-accent);
    color: white;
    border: 2px solid var(--purple-accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.nav-btn-signup:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-family: 'Nosifer', cursive;
    font-size: clamp(1.5rem, 5vw, 3rem);
    line-height: 1.3;
    letter-spacing: 3px;
}

.title-accent {
    color: var(--red-accent);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.flickering {
    animation: flicker 4s linear infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, var(--purple-accent) 0%, var(--purple-dark) 100%);
    color: white;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
    border: none;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.7);
}

.cta-primary .cta-icon {
    font-size: 1.3rem;
}

.cta-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.cta-secondary:hover {
    color: var(--text-primary);
    border-color: var(--purple-accent);
}

.cta-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    color: var(--purple-accent);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    display: none;
}

.section-title {
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.features {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    z-index: 2;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-accent);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-icon img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.feature-title {
    font-family: 'Creepster', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.locations-preview {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.locations-preview .section-title {
    padding: 0 2rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollCarousel 40s linear infinite;
    width: max-content;
    padding: 1rem 0;
}

.carousel-track:hover {
    animation-play-state: paused;
}

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

.location-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    opacity: 1;
    flex-shrink: 0;
    width: 300px;
}

.location-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.location-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.location-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
}

.location-info {
    padding: 1.5rem;
}

.location-type {
    display: inline-block;
    background: var(--purple-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.location-info h3 {
    font-family: 'Creepster', cursive;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.location-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Nosifer', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.landing-footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-ghost {
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-email {
    color: var(--purple-accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-email:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features, .locations-preview, .cta-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
