/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: white;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: clamp(52px, 10vh, 64px); /* Match fluid navbar height */
    /* Improve touch interactions on mobile */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
}

/* Optimize all images for responsive display */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent image dragging and selection */
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent text overflow globally */
h1, h2, h3, h4, h5, h6, p, a, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

/* Ensure all containers respect their bounds */
section, div, main, header, footer {
    max-width: 100%;
    box-sizing: border-box;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: clamp(52px, 10vh, 64px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo-img {
    height: clamp(22px, 4vh, 26px);
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #545455;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #333;
}

.nav-logo a:focus {
    outline: 2px solid #545455;
    outline-offset: 2px;
    border-radius: 4px;
}

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

.demo-button {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 500;
    color: white;
    background-color: #000000;
    border: none;
    border-radius: 4px;
    padding: clamp(7px, 1.2vh, 18px) clamp(12px, 2vw, 22px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: auto;
}

.demo-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.demo-button:active {
    transform: translateY(0);
}

.demo-button:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.main-image-container {
    width: 100%;
    max-width: min(1200px, 95vw);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(20px, 4vh, 40px) auto;
    padding: 0 clamp(16px, 2vw, 20px);
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: subtle rounded corners */
    pointer-events: none; /* Completely non-interactive */
}

/* Hero Text Styles */
.hero-text-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: clamp(85%, 90%, 95%);
    max-width: min(800px, 90vw);
    padding: 0 clamp(12px, 2vw, 20px);
    box-sizing: border-box;
}

.hero-title {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1.75rem, 4.5vw + 0.5rem, 4.5rem);
    font-weight: 300;
    color: white;
    margin: 0 0 clamp(12px, 2vh, 20px) 0;
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
}

.hero-description {
    font-family: 'Inria Serif', serif;
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1.125rem);
    font-weight: 300;
    color: white;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
    max-width: min(600px, 85vw);
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
}

/* Y Combinator Button Styles */
.yc-button-container {
    position: absolute;
    top: clamp(68%, 72%, 75%);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.yc-button {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(9px, 1vw + 0.125rem, 11px);
    font-weight: 500;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(16px, 2.5vw, 20px);
    padding: clamp(6px, 1vh, 8px) clamp(12px, 2vw, 16px);
    cursor: default;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.5vw, 6px);
    min-height: clamp(22px, 3vh, 28px);
    white-space: nowrap;
}

.yc-logo {
    width: clamp(12px, 1.5vw + 0.25rem, 16px);
    height: clamp(12px, 1.5vw + 0.25rem, 16px);
    object-fit: contain;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.2);
}

.yc-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.yc-button:active {
    transform: translateY(0);
}

.yc-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Logos Section Styles */
.logos-section {
    width: 100%;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: clamp(40px, 6vh, 60px) 0;
    margin: clamp(50px, 6vh, 80px) 0;
    text-align: center;
}

.logos-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
}

.logos-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 40px 0;
}

.logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
}

.partner-logo {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Slightly larger sizes for Harvard and Broad logos */
.harvard-logo,
.broad-logo {
    max-width: 120px;
    max-height: 72px;
}

/* Hide mobile duplicates on desktop */
.mobile-duplicate {
    display: none;
}

/* Mobile Carousel Styles */
@media (max-width: 768px) {
    .logos-container {
        overflow: hidden;
        justify-content: flex-start;
        flex-wrap: nowrap;
        animation: carousel 20s linear infinite;
        gap: 80px;
        width: calc(200% + 80px); /* Width for 8 logos + gaps */
    }
    
    .logo-item {
        flex-shrink: 0;
        min-width: 120px;
    }
    
    /* Show mobile duplicates */
    .mobile-duplicate {
        display: flex;
    }
    
    .logos-section {
        overflow: hidden; /* Hide overflowing logos */
        padding: clamp(35px, 5vh, 50px) 0;
        margin: clamp(40px, 5vh, 60px) 0;
    }
    
    .logos-inner {
        padding: 0 clamp(16px, 3vw, 24px);
    }
}

@keyframes carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move by half width to create seamless loop */
    }
}

/* Autonomous Section Styles */
.autonomous-section {
    width: 100%;
    max-width: 1200px;
    margin: clamp(60px, 8vh, 100px) auto;
    padding: 0 clamp(20px, 3vw, 40px);
    text-align: left;
}

.autonomous-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 clamp(16px, 2.5vh, 24px) 0;
}

.autonomous-title {
    font-family: 'Inria Serif', serif;
    font-size: clamp(2.5rem, 5vw + 0.5rem, 4rem);
    font-weight: 700;
    color: #000;
    margin: 0 0 clamp(20px, 3vh, 30px) 0;
    line-height: 1.2;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
}

.autonomous-description {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1.1rem, 2vw + 0.25rem, 1.4rem);
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: min(700px, 90%);
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Workflow Section Styles */
.workflow-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.workflow-text-container {
    width: 45%;
    max-width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
    flex-shrink: 1;
    min-width: 0;
}

.workflow-title {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
}

.workflow-description {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.workflow-container {
    width: 45%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    flex-shrink: 1;
    min-width: 0;
}

.workflow-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none; /* Completely non-interactive */
}


/* Agents Section Styles */
.agents-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.agents-container {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.agents-text-container {
    width: 45%;
    padding-left: 40px;
}

.agents-title {
    font-family: 'Inria Serif', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
}

.agents-description {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.agents-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

/* Staircase Section Styles */
.staircase-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.staircase-container {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.staircase-text-container {
    width: 45%;
    padding-left: 40px;
}

.staircase-title {
    font-family: 'Inria Serif', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
}

.staircase-description {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.staircase-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none; /* Completely non-interactive */
}


/* CTA Box Section Styles */
.cta-box-section {
    width: 100%;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: clamp(40px, 6vh, 60px) 0;
    margin: clamp(60px, 8vh, 80px) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-box-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
    text-align: center;
}

.cta-box-text {
    font-family: 'Inria Serif', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    margin: 0 0 clamp(24px, 3vh, 32px) 0;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
}

.cta-box-button {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 6px;
    padding: clamp(12px, 1.5vh, 16px) clamp(24px, 3vw, 32px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    white-space: nowrap;
}

.cta-box-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-box-button:active {
    transform: translateY(0);
}

.cta-box-button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Logo Icon Section Styles */
.logo-icon-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(40px, 5vh, 60px) 0;
    margin: 0;
}

.logo-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon {
    width: clamp(40px, 4vw, 60px);
    height: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logo-icon:hover {
    opacity: 0.8;
}

/* Footer Styles */
.footer {
    width: 100%;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 40px 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #333;
}

.footer-link:focus {
    outline: 2px solid #545455;
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-divider {
    color: #ccc;
    font-size: 14px;
}

/* Overlay Text Styles */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to image */
    width: 90%; /* Increased width border for text */
    max-width: 1000px; /* Maximum width constraint */
}

.overlay-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem); /* Larger responsive font size */
    font-weight: 400; /* Less bold - normal weight */
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .main-image-container {
        padding: 0 clamp(20px, 3vw, 32px);
        margin: clamp(24px, 3vh, 40px) auto;
    }
    
    .workflow-section,
    .agents-section,
    .staircase-section {
        padding: 48px 32px;
    }
    
    .workflow-text-container,
    .agents-text-container,
    .staircase-text-container {
        padding-right: 20px;
        padding-left: 20px;
    }
    
    .cta-box-section {
        padding: clamp(35px, 5vh, 50px) 0;
        margin: clamp(50px, 6vh, 64px) 0;
    }

    .cta-box-container {
        padding: 0 clamp(24px, 4vw, 32px);
    }
}

/* Tablet landscape - adjust two-column layouts */
@media (max-width: 900px) {
    .workflow-section,
    .agents-section,
    .staircase-section {
        padding: 40px 24px;
    }
    
    .workflow-text-container {
        width: 48%;
    }
    
    .workflow-container {
        width: 48%;
    }
    
    .agents-container {
        width: 48%;
    }
    
    .agents-text-container {
        width: 48%;
    }
    
    .staircase-container {
        width: 48%;
    }
    
    .staircase-text-container {
        width: 48%;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Navigation adjustments - most sizing now handled by clamp() */
    .nav-logo a {
        font-size: 18px;
    }
    
    /* Ensure button remains touch-friendly on mobile */
    .demo-button {
        min-height: 38px;
        min-width: 65px;
        padding: clamp(8px, 1.2vh, 10px) clamp(14px, 2.5vw, 18px);
    }
    
    /* Main hero section - Switch to height-based on mobile */
    .main-image-container {
        margin: 0 auto;
        padding: 0;
        max-width: none;
        width: 100vw;
        height: clamp(60vh, 85vh, 90vh);
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Mobile: Height-based image sizing */
    .main-image {
        width: auto;
        height: 100%;
        max-width: none;
        min-width: 100%;
        object-fit: cover;
        object-position: center center;
        border-radius: 0;
    }
    
    /* Hero text adjustments */
    .hero-text-container {
        width: 90%;
        top: 40%;
        padding: 0 clamp(8px, 3vw, 20px);
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 7.5vw, 3.25rem);
        margin: 0 0 clamp(12px, 2.5vh, 18px) 0;
        line-height: 1.15;
        word-break: keep-all;
        hyphens: none;
        -webkit-hyphens: none;
    }
    
    .hero-description {
        font-size: clamp(1rem, 4vw, 1.25rem);
        max-width: 90%;
        line-height: 1.5;
        word-break: keep-all;
        hyphens: none;
        -webkit-hyphens: none;
    }
    
    /* YC Button mobile adjustments */
    .yc-button-container {
        top: 68%;
    }
    
    .yc-button {
        font-size: clamp(10px, 2vw, 13px);
        padding: clamp(7px, 1.5vh, 10px) clamp(14px, 3vw, 18px);
        min-height: clamp(26px, 3.5vh, 32px);
    }
    
    .yc-logo {
        width: clamp(14px, 2.5vw, 18px);
        height: clamp(14px, 2.5vw, 18px);
    }
    
    /* Logos section mobile */
    .logos-section {
        margin: clamp(35px, 5vh, 50px) 0;
        padding: clamp(30px, 4vh, 40px) 0;
    }
    
    .logos-inner {
        padding: 0 16px;
    }
    
    .logos-title {
        font-size: 12px;
        margin: 0 0 30px 0;
        letter-spacing: 1.5px;
    }
    
    .partner-logo {
        max-width: 80px;
        max-height: 48px;
    }
    
    .harvard-logo,
    .broad-logo {
        max-width: 90px;
        max-height: 54px;
    }
    
    /* Autonomous section mobile */
    .autonomous-section {
        margin: clamp(50px, 7vh, 80px) auto;
        padding: 0 clamp(20px, 4vw, 32px);
    }
    
    .autonomous-subtitle {
        font-size: clamp(10px, 1.5vw, 12px);
        margin: 0 0 clamp(14px, 2vh, 20px) 0;
        letter-spacing: 1.5px;
    }
    
    .autonomous-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin: 0 0 clamp(18px, 2.5vh, 24px) 0;
    }
    
    .autonomous-description {
        font-size: clamp(1rem, 4vw, 1.2rem);
        max-width: 95%;
    }
    
    /* Stack workflow section vertically */
    .workflow-section {
        flex-direction: column;
        padding: 48px 20px;
        gap: 32px;
    }

    .workflow-text-container {
        width: 100%;
        padding-right: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .workflow-container {
        width: 100%;
        padding: 0;
    }
    
    .workflow-image {
        /* Lighter shadow for mobile */
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    .workflow-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 16px;
    }
    
    .workflow-description {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
        line-height: 1.6;
    }
    
    /* Stack agents section vertically (image first, then text) */
    .agents-section {
        flex-direction: column-reverse;
        padding: 48px 20px;
        gap: 32px;
    }

    .agents-container {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }

    .agents-image {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .agents-text-container {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }
    
    .agents-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 16px;
    }
    
    .agents-description {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
        line-height: 1.6;
    }
    
    /* Stack staircase section vertically (image first, then text) */
    .staircase-section {
        flex-direction: column-reverse;
        padding: 48px 20px;
        gap: 32px;
    }

    .staircase-container {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }

    .staircase-image {
        /* Lighter shadow for mobile */
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .staircase-text-container {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }
    
    .staircase-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 16px;
    }
    
    .staircase-description {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
        line-height: 1.6;
    }
    
    .content-spacer {
        height: 100px;
    }
    
    /* CTA box section mobile */
    .cta-box-section {
        margin: clamp(50px, 6vh, 64px) 0;
        padding: clamp(32px, 4vh, 40px) 0;
    }

    .cta-box-container {
        padding: 0 20px;
    }
    
    .cta-box-text {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        margin-bottom: clamp(20px, 2.5vh, 28px);
    }
    
    .cta-box-button {
        font-size: clamp(13px, 1.5vw, 15px);
        padding: clamp(12px, 1.5vh, 14px) clamp(22px, 3vw, 28px);
        min-height: 44px;
    }
    
    /* Logo icon section mobile */
    .logo-icon-section {
        padding: clamp(32px, 4vh, 48px) 0;
    }

    .logo-icon {
        width: clamp(36px, 5vw, 50px);
    }

    /* Footer mobile */
    .footer {
        padding: 32px 20px;
        margin-top: 0;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-text {
        font-size: 14px;
    }
    
    .footer-link {
        font-size: 14px;
        /* Ensure links are easy to tap */
        padding: 8px 12px;
        display: inline-block;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    /* Sizing now handled by clamp() - keep only essential overrides */
    .nav-logo a {
        font-size: 16px;
    }
    
    /* Maintain reasonable touch target */
    .demo-button {
        min-height: 34px;
        min-width: 60px;
    }
    
    .main-image-container {
        margin: 0 auto;
        padding: 0;
        height: clamp(65vh, 90vh, 95vh);
    }
    
    .hero-text-container {
        padding: 0 clamp(12px, 4vw, 20px);
        width: 92%;
        top: 38%;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.2;
        margin: 0 0 clamp(10px, 2vh, 14px) 0;
        word-break: keep-all;
        hyphens: none;
        -webkit-hyphens: none;
    }
    
    .hero-description {
        font-size: clamp(1rem, 4.25vw, 1.15rem);
        line-height: 1.5;
        word-break: keep-all;
        hyphens: none;
        -webkit-hyphens: none;
    }
    
    .yc-button-container {
        top: 66%;
    }
    
    .yc-button {
        font-size: clamp(11px, 2.5vw, 14px);
        padding: clamp(8px, 1.75vh, 11px) clamp(15px, 3.5vw, 20px);
    }
    
    .yc-logo {
        width: clamp(15px, 3vw, 19px);
        height: clamp(15px, 3vw, 19px);
    }
    
    .logos-section {
        margin: clamp(30px, 4vh, 40px) 0;
        padding: clamp(25px, 3.5vh, 35px) 0;
    }
    
    .logos-inner {
        padding: 0 12px;
    }
    
    .autonomous-section {
        margin: clamp(40px, 6vh, 60px) auto;
        padding: 0 16px;
    }
    
    .autonomous-subtitle {
        font-size: 10px;
        letter-spacing: 1.2px;
    }
    
    .autonomous-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .autonomous-description {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem);
    }
    
    .workflow-section,
    .agents-section,
    .staircase-section {
        padding: 40px 16px;
    }
    
    .cta-box-section {
        margin: clamp(40px, 5vh, 48px) 0;
        padding: clamp(28px, 3.5vh, 36px) 0;
    }

    .cta-box-container {
        padding: 0 16px;
    }
    
    .cta-box-text {
        font-size: clamp(1.125rem, 5.5vw, 1.5rem);
        margin-bottom: clamp(18px, 2vh, 24px);
    }
    
    .cta-box-button {
        font-size: 13px;
        padding: 12px 20px;
    }
    
    .logo-icon-section {
        padding: clamp(28px, 3.5vh, 40px) 0;
    }

    .logo-icon {
        width: clamp(32px, 6vw, 45px);
    }

    .footer {
        padding: 28px 16px;
        margin-top: 0;
    }
}

/* Extra small screens and ultra small screens */
/* YC button sizing now handled by adaptive clamp() in base styles */