:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #555555;
    --accent: #111111;
    --light-bg: #f8f8f8;
    --border: #e5e5e5;


}

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

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 15px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-cta {
    background: var(--text);
    color: white !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14.5px;
}

.nav-cta:hover {
    background: #222;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-1px);
}

/* Hero with background */
.hero.hero-with-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/main-background.jpg');;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    padding: 100px 16px 80px;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-with-bg h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2.8px;
    margin-bottom: 20px;
    color: white;
}

.hero-sub {
    font-size: 22px;
    line-height: 1.45;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-arrow {
    animation: scrollBounce 2s infinite ease-in-out;
    color: rgba(255,255,255,0.9);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Robot presentation section (second section) */
.robot-presentation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 12px;
    background: #ffffff;
}

.robot-presentation .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.robot-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Make sure robot image doesn't stack under text on desktop */
@media (min-width: 901px) {
    .robot-text {
        padding-right: 20px;
    }
}

.robot-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.robot-description {
    margin: 20px 0 32px;
}

.robot-description p {
    font-size: 18px;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.45;
    max-width: 520px;
}

.robot-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.robot-features .feature {
    background: #f4f4f4;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.robot-visual {
    display: flex;
    justify-content: center;
}

.robot-image-wrapper {
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    will-change: transform, opacity;
}

.robot-image-wrapper.is-visible {
    opacity: 1;
}

.robot-large {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.12));
}



/* Word-by-word scroll text animation (beautiful sites style) */
.words {
    display: inline;
}

.words span {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}

.words.revealed span {
    opacity: 1;
    transform: translateY(0);
}

/* New Avride-style autonomous navigation section with videos */
.autonomous-nav {
    padding: 60px 12px 80px;
    background: #f8f8f8;
}



.autonomous-nav .container {
    max-width: 1400px;
    margin: 0 auto;
}

.autonomous-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.autonomous-text p {
    font-size: 18px;
    color: var(--muted);
    max-width: 800px;
    margin-bottom: 12px;
}

.nav-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 24px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.video-square {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #111;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-square video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.video-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
}

/* LiDAR points simulation */
.lidar-points {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, white 1px, transparent 2px),
        radial-gradient(circle at 70% 60%, white 1px, transparent 2px),
        radial-gradient(circle at 40% 80%, white 1px, transparent 2px);
    background-size: 40px 40px;
    animation: lidarScan 3s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes lidarScan {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* CV detection boxes */
.cv-detection {
    position: absolute;
    border: 2px solid #22ff22;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(34, 255, 34, 0.3);
    animation: cvDetect 2.5s ease-in-out infinite;
}

.cv-detection.box1 {
    top: 18%;
    left: 22%;
    width: 28%;
    height: 22%;
    animation-delay: 0s;
}

.cv-detection.box2 {
    top: 48%;
    left: 58%;
    width: 22%;
    height: 18%;
    animation-delay: 800ms;
}

.cv-detection.box3 {
    top: 65%;
    left: 15%;
    width: 18%;
    height: 25%;
    animation-delay: 1600ms;
}

@keyframes cvDetect {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Responsive for videos */
@media (max-width: 768px) {
    .nav-videos {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments for new hero + split */
@media (max-width: 900px) {
    .robot-split {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .hero-with-bg {
        min-height: 100vh;
        padding: 80px 12px 60px;
    }
    
    .hero-with-bg h1 {
        font-size: 48px;
    }
}

/* Narrative / feature cards */
.narrative {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 12px;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.narrative-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 94vh;
}

.feature-card {
    background: #f8f8f8;
    border: none;
    border-radius: 0;
    padding: 14px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    box-shadow: none;
    height: 100%;
}

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.feature-img {
    width: 60%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #111;
    line-height: 1.25;
}

.feature-card p {
    font-size: 18px;
    color: #444;
    margin: 0;
    line-height: 1.4;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
    .narrative-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: auto;
        gap: 12px;
    }
    .feature-card {
        flex-direction: column;
        padding: 12px;
    }
    .feature-img {
        width: 100%;
        max-width: none;
        order: 2;
        margin-top: 8px;
    }
    .card-content {
        order: 1;
    }
    .feature-card h3 {
        font-size: 20px;
    }
    .feature-card p {
        font-size: 15px;
    }
}

/* Tech section */
.tech {
    background: var(--light-bg);
    padding: 80px 16px;
}

.tech-header {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.tech-header h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.tech-header p {
    font-size: 18px;
    color: var(--muted);
}

.tech-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.tech-item {
    padding: 8px 0;
}

.tech-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #222;
}

.tech-desc {
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* Deploy / Steps */
.deploy {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 16px;
}

.deploy-header {
    max-width: 800px;
    margin: 0 auto 50px;
}

.deploy-header h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    gap: 20px;
}

.step-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    min-width: 34px;
    padding-top: 3px;
}

.step h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: 16px;
}

/* Scale / Stats */
.scale {
    background: var(--light-bg);
    padding: 100px 16px;
}

.scale-header {
    max-width: 1400px;
    margin: 0 auto 50px;
}

.scale-header h2 {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
}

.stats {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.stat {
    background: white;
    padding: 32px 28px;
    border-radius: 8px;
}

.stat-num {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Specs */
.specs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 16px;
}

.specs h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px;
    font-size: 15.5px;
}

.specs-grid strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* CTA */
.cta {
    background: var(--light-bg);
    padding: 90px 16px 100px;
    text-align: center;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 28px;
}

.cta-small {
    margin-top: 18px;
    font-size: 15px;
    color: var(--muted);
}

.cta-small a {
    color: var(--text);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 16px;
    font-size: 13px;
    color: #888;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    .hero-sub {
        font-size: 19px;
    }
    .narrative-block h2 {
        font-size: 32px;
    }
    .tech-header h2,
    .deploy-header h2,
    .scale-header h2,
    .cta h2 {
        font-size: 30px;
    }
    .nav-links {
        gap: 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 38px;
    }
    .rover-hero {
        max-width: 100%;
    }
}

/* Image placeholders for future photos */
.image-placeholder {
    background: #f1f1f1;
    border: 2px dashed #c5c5c5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.image-placeholder:hover {
    border-color: #999;
}

.image-placeholder::before {
    content: "🖼️";
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.image-placeholder .placeholder-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    max-width: 80%;
}

.image-placeholder .placeholder-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* Different sizes */
.placeholder-wide {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

.placeholder-square {
    aspect-ratio: 1 / 1;
    min-height: 220px;
}

.placeholder-product {
    aspect-ratio: 4 / 3;
    min-height: 260px;
}

.placeholder-gallery {
    aspect-ratio: 3 / 2;
    min-height: 180px;
}

/* Layout helpers for images */
.image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.image-row img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.image-block {
    margin: 40px 0;
}

.placeholder-img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

/* Gallery section */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 16px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-header p {
    color: var(--muted);
}

.narrative-with-image {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .narrative-with-image {
        grid-template-columns: 1fr;
    }
}
