/* ============================================
   Lost List — AI-Powered Marketing Site
   Clean White + Tech Accents
   ============================================ */

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

:root {
    /* Palette: white-forward with green/red accents */
    --rose: #C41E3A;
    --rose-light: #D94F63;
    --rose-glow: rgba(196, 30, 58, 0.15);
    --gold: #C7893E;
    --gold-light: #D9A45E;
    --green-deep: #0F2B1F;
    --green-dark: #1A3D2E;
    --green-mid: #2E6B4F;
    --green-accent: #3D8B68;
    --green-subtle: rgba(46, 107, 79, 0.08);
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --cream: #F7F5F2;
    --light-gray: #F0EEEB;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.14);
    --text-dark: #1A1A1A;
    --text-body: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-muted: #999999;

    --font-heading: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-height: 72px;
    --container-width: 1200px;
    --container-padding: 24px;
    --radius: 16px;
    --radius-sm: 10px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--green-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   Neural Network Canvas (subtle on white)
   ============================================ */
.neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}


/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.nav-logo:hover { opacity: 0.7; }

.nav-logo-icon {
    height: 48px;
    width: auto;
}

.nav-logo-text {
    height: 28px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-mid);
    transition: width 0.3s var(--ease-out);
    border-radius: 1px;
}

.nav-links a:hover { color: var(--text-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-signin {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-mid);
    color: var(--white);
    font-weight: 600;
}

.nav-links a.nav-signin::after { display: none; }

.nav-links a.nav-signin:hover {
    color: var(--white);
    background: var(--green-dark);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav--open .nav-toggle span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav--open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav-toggle span:nth-child(3) { top: 9px; transform: rotate(-45deg); }


/* ============================================
   Hero — White background, dark text
   ============================================ */
.hero {
    position: relative;
    background: var(--white);
    overflow: hidden;
    z-index: 1;
}

.hero-stage {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 72px;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(46, 107, 79, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46, 107, 79, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 107, 79, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    max-width: 780px;
    padding: 0 var(--container-padding);
    margin: 0 auto 0 max(var(--container-padding), calc((100vw - var(--container-width)) / 2 + var(--container-padding)));
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
}

/* CTA buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--green-mid);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(46, 107, 79, 0.25);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(46, 107, 79, 0.3);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-dark);
    background: var(--off-white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* Hero stats sit below the first screen */
.hero-stats-band {
    padding: 8px 0 96px;
}

.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.hero-stat {
    padding: 0 32px;
    border-left: 3px solid var(--rose);
    min-width: 180px;
    text-align: center;
}

.hero-stat:first-child {
    padding-left: 0;
    border-left: none;
}

.hero-stat:last-child {
    border-right: 3px solid var(--rose);
    padding-right: 32px;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--rose);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* Logo sits in the space beside the copy, and scales down instead of sliding under it */
.hero-logo-float {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: max(24px, 4vw);
    padding-left: 32px;
    opacity: 0.18;
    pointer-events: none;
}

.hero-logo-img {
    width: min(500px, 100%);
    height: auto;
    animation: float 6s ease-in-out infinite;
}

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


/* ============================================
   Sections
   ============================================ */
.section {
    position: relative;
    padding: 120px 0;
    z-index: 1;
    background: var(--white);
}

.section--alt {
    background: var(--cream);
}

.section--dark {
    background: var(--green-deep);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 16px;
}

.section-label--light {
    color: var(--gold);
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.section--dark .section-header h2,
.heading--light {
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.65);
}


/* ============================================
   About Cards
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--border-hover);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-subtle);
    border-radius: 12px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}


/* ============================================
   Steps / How It Works (dark section)
   ============================================ */
.steps-timeline {
    max-width: 680px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.step-number-ring {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(46, 107, 79, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 50, 35, 0.6);
}

.step-number-ring span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--green-accent);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 14px;
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(46, 107, 79, 0.15);
    color: var(--green-accent);
    border: 1px solid rgba(46, 107, 79, 0.25);
    letter-spacing: 0.02em;
}

.step-connector {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, rgba(46, 107, 79, 0.4), transparent);
    margin: 0 0 0 27px;
}


/* ============================================
   Technology Grid
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s ease;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(46, 107, 79, 0.2);
}

.tech-icon {
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1;
}

.tech-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ============================================
   CTA Banner — green accent
   ============================================ */
.cta-banner {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}

.cta-inner {
    text-align: center;
    position: relative;
}

.cta-inner h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-inner p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ============================================
   Contact Cards (dark section)
   ============================================ */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 48px;
    background: rgba(20, 50, 35, 0.6);
    border: 1px solid rgba(46, 107, 79, 0.25);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 240px;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-accent);
    box-shadow: 0 8px 32px rgba(46, 107, 79, 0.15);
}

.contact-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 18px;
    color: var(--white);
    font-weight: 500;
}

.contact-signin {
    margin-top: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-signin a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-signin a:hover { color: var(--gold-light); }


/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--green-deep);
    padding: 40px 0;
    border-top: 1px solid rgba(46, 107, 79, 0.15);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    height: 24px;
    width: auto;
    opacity: 0.6;
}

.footer-logo-text {
    height: 16px;
    width: auto;
    opacity: 0.4;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

.footer-signin {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.footer-signin:hover { color: var(--white); }


/* ============================================
   Fade-in Animation
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        margin: 0 auto;
        text-align: center;
        max-width: 640px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-logo-float {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav--open .nav-links { display: flex; }
    .nav-toggle { display: block; }

    .nav-signin-item { display: flex; }

    .nav-links a.nav-signin {
        justify-content: center;
        width: 100%;
    }

    /* Start on the stacked hero mark. The compact header lockup appears once you scroll. */
    .nav-logo {
        opacity: 0;
        visibility: hidden;
    }

    .nav--scrolled .nav-logo {
        opacity: 1;
        visibility: visible;
    }

    .hero-stage {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: calc(var(--nav-height) + 8px) 0 28px;
    }

    .hero-logo-float {
        display: flex;
        position: relative;
        flex: 0 0 auto;
        order: -1;
        width: min(210px, 54vw);
        margin: 0 auto;
        padding-left: 0;
        opacity: 1;
        pointer-events: none;
    }

    .hero-logo-img {
        width: 100%;
        height: auto;
        animation: none;
    }

    @media (max-height: 740px) {
        .hero-stage {
            gap: 10px;
            padding: 12px 0 16px;
        }

        .hero-logo-float {
            width: min(100px, 30vw);
        }

        .hero-subtitle {
            margin-bottom: 16px;
        }
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-stat {
        border-left: 3px solid var(--rose);
        border-right: none !important;
        padding: 8px 0 8px 20px;
        text-align: left;
    }

    .hero-stat:first-child {
        border-left: 3px solid var(--rose);
        padding-left: 20px;
    }

    .hero-stat:last-child {
        border-right: none;
        padding-right: 0;
    }

    .hero-cta-group,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn { width: 100%; justify-content: center; max-width: 300px; }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 320px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
    }

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

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-connector {
        margin: 0 auto;
    }

    .step-tags {
        justify-content: center;
    }
}
