@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-red: #E30613;
    --primary-dark: #1D1D1F;
    --text-charcoal: #1D1D1F;
    --text-grey: #6E6E73;
    --bg-white: #FFFFFF;
    --bg-soft: #F9F9FB;
    --border-color: #E5E5E5;
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1400px; /* Increased from 1200px */
    width: 92%; /* Added to ensure fluid behavior on smaller screens */
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: radial-gradient(circle at 90% 10%, rgba(227, 6, 19, 0.03) 0%, rgba(255, 255, 255, 1) 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem; /* Increased to push content to edges */
    align-items: center;
}

.hero-text {
    text-align: left;
    order: 1;
}

.hero-visual {
    order: 2;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9) translateX(30px);
    animation: zoomInRight 1.2s forwards 0.2s;
}

.hero h1 {
    font-weight: 800;
    line-height: 1.1;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s forwards 0.4s;
}

/* --- Split Feature Sections --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding: 8rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.split-section.active {
    opacity: 1;
    transform: translateY(0);
}

.split-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.split-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-charcoal);
}

.split-text .tag {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mini-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

.mini-card ul {
    list-style: none;
    font-size: 0.95rem;
}

.mini-card ul li {
    margin-bottom: 0.4rem;
    color: var(--text-grey);
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--bg-soft);
    padding: 3rem;
    border-radius: 30px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-white);
    border-color: #E5E5E5;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.1rem;
    color: var(--primary-red);
}

.feature-card ul {
    list-style: none;
}

.feature-card ul li {
    margin-bottom: 0.8rem;
    color: var(--text-charcoal);
    position: relative;
    padding-left: 1.5rem;
}

.feature-card ul li::before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Process Walkthrough (Sticky Section) --- */
.process-section {
    height: 400vh; /* Long scroll for sticky effect */
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.process-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    gap: 5rem;
}

.process-text {
    flex: 1;
}

.process-step {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transition: var(--transition-fast);
}

.process-step.active {
    opacity: 1;
}

.process-step h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.process-step p {
    font-size: 1.5rem;
    color: var(--text-grey);
}

.process-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 350px;
    height: 700px;
    background: #000;
    border-radius: 50px;
    border: 12px solid #1D1D1F;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    position: relative;
}

.screen-content {
    position: absolute;
    width: 400%; /* Quadruple width for 4 screens */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

.screen-image {
    width: 25%; /* Each screen takes 1/4 of the container */
    height: 100%;
    object-fit: cover; /* Changed to cover for better filling */
    background: #fff;
}

/* --- Animations --- */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomInLeft {
    from {
        opacity: 0;
        transform: scale(0.9) translateX(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes zoomInRight {
    from {
        opacity: 0;
        transform: scale(0.9) translateX(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

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

/* --- Responsive Enhancements --- */
@media (max-width: 1024px) {
    .hero .container, .split-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text, .hero-visual, .split-text, .split-image {
        order: unset;
    }
    
    .hero-visual img, .split-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    nav .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    nav div[style*="display: flex; gap: 2rem"] {
        gap: 1rem !important;
        font-size: 0.8rem !important;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .split-text h2 {
        font-size: 2rem !important;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    /* Process Section Mobile Fix */
    .process-section {
        height: auto !important;
        padding: 4rem 0 !important;
    }

    .sticky-container {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    .process-content {
        flex-direction: column !important;
        gap: 3rem !important;
    }

    .process-text {
        height: auto !important;
        overflow: visible !important;
    }

    #process-steps-inner {
        transform: none !important;
    }

    .process-step {
        height: auto !important;
        margin-bottom: 3rem;
        opacity: 1 !important;
        text-align: center;
        align-items: center;
    }

    .process-step h2 {
        font-size: 2rem !important;
    }

    .process-step p {
        font-size: 1.1rem !important;
    }

    .process-visual {
        width: 100%;
    }

    .phone-frame {
        width: 260px;
        height: 520px;
        margin: 0 auto;
    }

    /* AI Section Mobile Fix */
    .ai-container {
        flex-direction: column !important;
        padding: 3rem 2rem !important;
        gap: 3rem !important;
        text-align: center;
    }

    .ai-container > div {
        flex: none !important;
        width: 100% !important;
    }

    .ai-features-grid {
        grid-template-columns: 1fr !important;
        text-align: left;
    }

    .ai-visual-box {
        width: 280px !important;
        height: 280px !important;
    }

    .ai-visual-box img {
        width: 100% !important;
    }

    /* Footer Mobile Fix */
    footer div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    footer div[style*="grid-column: span 1.5"] {
        grid-column: span 1 !important;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    footer li {
        justify-content: center !important;
    }
}
