:root {
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
    --surface-dark: #18181b;
    --surface-dark-transparent: rgba(24, 24, 27, 0.8);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 1️⃣ Fixed Two-Halves Layout */
.split-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: -10;
}

.bg-half-left {
    width: 50%;
    height: 100%;
    /* Warm gradient (Orange tones) */
    background: linear-gradient(135deg, #1c110a 0%, #2a1b0e 100%);
    position: relative;
    overflow: hidden;
}

.bg-half-left::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.1) 0%, transparent 60%);
}

.bg-half-right {
    width: 50%;
    height: 100%;
    /* Cool gradient (Blue tones) */
    background: linear-gradient(135deg, #090e1a 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.bg-half-right::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fb923c, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
}

.btn-primary {
    background: #ffffff;
    color: #0a0a0a;
    position: relative;
    z-index: 20;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.05em;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 1rem;
    z-index: 10;
    overflow: hidden;
}

/* Background Image Container */
.hero-bg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 1;
    /* Full brightness */
}

/* Ensure wide image covers */
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Soft fade at the bottom only to blend with page content if any */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.hero-container.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: 0;
}


.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Pop against image */
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Glass Panel Variant - Removed borders for seamless blend */
.glass-panel {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    /* Remove padding to let image float */
}

@media (max-width: 768px) {
    .hero-bg-img {
        object-fit: cover;
        opacity: 0.6;
        /* Dim more on mobile for text readability */
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Scroll Story Container */
.scroll-story-container {
    position: relative;
    width: 100%;
}

/* 2️⃣ Central Wave Path */
.path-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    /* Width to accommodate wave amplitude */
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.scroll-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2px;
}

/* 3️⃣ Logo Scroll Animation */
.floating-logo {
    position: absolute;
    /* Changed from fixed for MotionPath placement context initially, JS might pin it or absolute it */
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 20;
    /* Initial state hidden, controlled by JS */
    opacity: 0;
    visibility: hidden;
}

.floating-logo img {
    width: 60%;
    height: auto;
    display: block;
}

/* 4️⃣ Alternating Feature Sections */
.feature-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 4rem 0;
}

.feature-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Exact split match */
    gap: 0;
    /* Removing gap to align with bg split perfectly if needed, but we'll use padding in children */
}

.feature-left {
    padding: 0 4rem 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-right {
    padding: 0 2rem 0 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Text Content */
.feature-text {
    opacity: 0;
    /* for animation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.feature-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    display: block;
    font-weight: 700;
}

.feature-heading {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: white;
}

/* Visual Content */
.feature-visual {
    width: 100%;
    max-width: 600px;
    opacity: 0;
    /* for animation */
}

.ui-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.ui-card img {
    width: 100%;
    border-radius: 1rem;
    display: block;
}

/* 6️⃣ Tablet & Small Laptop (1024px) */
@media (max-width: 1024px) {
    .feature-container {
        gap: 2rem;
        padding: 0 1rem;
    }

    .feature-heading {
        font-size: 2.5rem;
    }

    .feature-left {
        padding-right: 2rem;
    }

    .feature-right {
        padding-left: 2rem;
    }
}

/* 7️⃣ Mobile Fallback (< 768px) */
@media (max-width: 768px) {
    .split-bg {
        flex-direction: column;
    }

    .bg-half-left,
    .bg-half-right {
        width: 100%;
        height: 50vh;
        position: absolute;
    }

    .bg-half-left {
        top: 0;
        background: linear-gradient(180deg, #1c110a 0%, #0f172a 100%);
    }

    .bg-half-right {
        display: none;
    }

    .split-bg {
        background: var(--bg-dark);
    }

    .bg-half-left {
        display: none;
    }

    .feature-container {
        grid-template-columns: 1fr;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 2.5rem;
        /* Increased slightly for vertical breathing room */
    }

    .feature-left,
    .feature-right {
        padding: 0;
        text-align: center;
        align-items: center;
        /* Center align text on mobile */
    }

    .feature-text {
        align-items: center;
        /* Center align flex items */
        text-align: center;
    }

    .feature-section {
        padding: 3rem 0;
        /* Reduced from 4rem */
        min-height: auto;
        /* Allow natural height on mobile */
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .feature-visual {
        margin-top: 2rem;
        order: 2;
    }

    /* Reorder text to top */
    .feature-container>div.feature-text {
        order: 1;
    }

    .feature-container>div.feature-visual {
        order: 2;
    }

    /* Straight Line Path using pseudo element */
    .scroll-story-container::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-50%);
        z-index: 1;
    }

    .path-container {
        display: none;
    }

    .floating-logo {
        display: none !important;
        /* disabled on mobile as requested */
    }
}