/* Base Styles & Design System */
:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #131b2f;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6; /* A vibrant blue fitting for a ski app */
    --accent-secondary: #0ea5e9;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(19, 27, 47, 0.7);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.bg-subtle { background-color: var(--bg-secondary); }
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.shadow-lg { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: white;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 5;
}

.hero-image {
    max-width: 320px;
    width: 100%;
    border-radius: 40px;
    border: 8px solid #000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* Feature Sections */
.feature-section {
    padding: 120px 0;
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-section.reverse .feature-container {
    direction: rtl;
}

.feature-section.reverse .feature-text,
.feature-section.reverse .feature-images {
    direction: ltr;
}

.feature-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-secondary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.feature-list .icon {
    font-size: 1.5rem;
    margin-right: 16px;
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.feature-images {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    width: 250px;
    border-radius: 36px;
    border: 6px solid #000;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
}

.app-screenshot:nth-child(1) {
    z-index: 2;
    transform: translateX(-40px) scale(1);
}

.feature-images.right .app-screenshot:nth-child(1) {
    transform: translateX(-40px) scale(1);
}
.feature-images.left .app-screenshot:nth-child(1) {
    transform: translateX(40px) scale(1);
}


.offset-img {
    z-index: 1;
    transform: translateX(40px) scale(0.9) translateY(40px) !important;
    opacity: 0.6;
}

.feature-images.left .offset-img {
    transform: translateX(-40px) scale(0.9) translateY(40px) !important;
}

/* CTA Section */
.cta-section {
    padding: 150px 0;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
    pointer-events: none;
}

.cta-btn {
    margin-top: 32px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px;
    background-color: var(--bg-primary);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.footer-links {
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.875rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

/* Scroll Reveals & Fly Ins (Handled by JS Intersection Observer) */
.scroll-reveal {
    opacity: 0;
    transition: all var(--transition-slow);
}

.scroll-reveal.left { transform: translateX(-50px); }
.scroll-reveal.right { transform: translateX(50px); }
.scroll-reveal.up { transform: translateY(50px); }

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate(0);
}

.fly-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-images.right .fly-in { transform: translateX(100px) scale(0.9); }
.feature-images.left .fly-in { transform: translateX(-100px) scale(0.9); }

.fly-in.is-visible {
    opacity: 1;
}

.feature-images.right .fly-in.is-visible:nth-child(1) { transform: translateX(-40px) scale(1); }
.feature-images.left .fly-in.is-visible:nth-child(1) { transform: translateX(40px) scale(1); }

.feature-images.right .offset-img.is-visible { transform: translateX(40px) scale(0.9) translateY(40px) !important; opacity: 0.6; }
.feature-images.left .offset-img.is-visible { transform: translateX(-40px) scale(0.9) translateY(40px) !important; opacity: 0.6; }


/* Responsive */
@media (max-width: 992px) {
    .hero-container, .feature-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-list li {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-image-wrapper {
        margin-top: 40px;
    }
    
    .feature-images {
        height: 500px;
    }
    
    .feature-section.reverse .feature-container {
        direction: ltr;
    }
    
    .feature-images.right .fly-in.is-visible:nth-child(1),
    .feature-images.left .fly-in.is-visible:nth-child(1) {
        transform: translateX(-40px) scale(1);
    }
    
    .feature-images.right .offset-img.is-visible,
    .feature-images.left .offset-img.is-visible {
        transform: translateX(40px) scale(0.9) translateY(40px) !important;
    }
}

@media (max-width: 576px) {
    .app-screenshot {
        width: 200px;
    }
    
    .feature-images.right .fly-in.is-visible:nth-child(1),
    .feature-images.left .fly-in.is-visible:nth-child(1) {
        transform: translateX(-20px) scale(1);
    }
    
    .feature-images.right .offset-img.is-visible,
    .feature-images.left .offset-img.is-visible {
        transform: translateX(20px) scale(0.9) translateY(20px) !important;
    }
}
