/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===== VARIABLES ===== */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f4f4;
    --text: #111111;
    --text-muted: #888888;
    --text-mid: #555555;
    --border: rgba(0,0,0,0.08);
    --border-mid: rgba(0,0,0,0.16);
    --border-dark: rgba(0,0,0,0.7);
    --max-w: 1200px;
    --green: #00aa3c; /* terminal green — toned down for white bg */
}

/* ===== HIGHLIGHTS ===== */
/* On white sections: italic emphasis — editorial, no colour */
.highlight {
    font-style: italic;
}
/* On dark (slider) sections: glowing white */
.dark-section .highlight,
.hero .highlight,
.scroll-story-sticky .highlight {
    font-style: normal;
    text-shadow: 0 0 28px rgba(255,255,255,0.4);
}

/* ===== UTILITY ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: inline-block;
}

/* ===== SECTION VARIANTS ===== */
.section-grey {
    background: var(--bg-alt);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

/* ===== NAV — always white ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

    nav.scrolled {
        box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    }

    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #000;
}

    .nav-logo span {
        color: var(--text-muted);
        font-weight: 400;
    }

.nav-links {
    display: flex;
    gap: 36px;
    font-size: .8rem;
    color: var(--text-muted);
}

    .nav-links a:hover {
        color: #000;
    }

.nav-cta {
    background: #000;
    color: #fff;
    padding: 8px 20px;
    font-size: .8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}

    .nav-cta:hover {
        opacity: .8;
    }

/* ===== HERO — BLACK ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
    background: #000;
    color: #fff;
}

/* ===== HERO SLIDER ===== */
.slider-viewport {
    position: relative;
    width: 100%;
    max-width: 860px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    width: 300%;
}

.slide {
    flex: 0 0 33.3333%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

    .slide h1 {
        font-size: clamp(2.6rem, 6vw, 5rem);
        font-weight: 800;
        letter-spacing: -.04em;
        line-height: 1.05;
        max-width: 800px;
        margin-bottom: 24px;
        color: #fff;
    }

    .slide p {
        font-size: 2rem;
        color: #7EF96D;
        max-width: 900px;
    }

    /* Mobile: tighten the gap between wrapped lines of the green slider subtitle */
    @media (max-width: 768px) {
        .slide p {
            line-height: 1.0;
        }

        /* Raise the taller "Developing an Inventory" slide so it sits higher on mobile */
        #slider-track-2 .slide.raise-on-mobile {
            transform: translateY(-5vh);
        }
    }

    .slide .hero-buttons {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

/* slider dots — white on dark hero */
.slider-dots {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 52px;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #fff;
    opacity: 1;
    transition: opacity .3s, transform .3s;
}

    .slider-dot:hover {
        opacity: .55;
    }

    .slider-dot.active {
        opacity: 1;
        transform: scale(1.7);
    }

/* ===== BUTTONS ===== */
/* Primary: black on white context / white on dark context */
.btn-primary {
    background: #fff;
    color: #000;
    padding: 14px 32px;
    font-size: .9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

    .btn-primary:hover {
        opacity: .88;
        transform: translateY(-1px);
    }

/* outside dark sections, invert the primary button */
section:not(.hero) .btn-primary,
.section-grey .btn-primary,
.cta-section .btn-primary,
.faq .btn-primary,
.footer-cta .btn-primary {
    background: #000;
    color: #fff;
}

    section:not(.hero) .btn-primary:hover,
    .cta-section .btn-primary:hover,
    .footer-cta .btn-primary:hover {
        opacity: .8;
    }

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}

    .btn-secondary:hover {
        border-color: #fff;
        background: rgba(255,255,255,0.06);
    }

/* ===== MARQUEE ===== */
.marquee-wrap {
    overflow: hidden;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

    .marquee-track span {
        white-space: nowrap;
        padding: 0 28px;
        font-size: .68rem;
        font-weight: 600;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

        .marquee-track span::before {
            content: '\00B7';
            margin-right: 28px;
            color: var(--text-mid);
        }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== SECTION COMMON ===== */
section {
    padding: 100px 0;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 56px;
}

/* ===== PROBLEMS — white bg ===== */
.problems {
    background: var(--bg-alt);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 1px;
    background: var(--border);
}

.problem-card {
    background: var(--bg-card);
    padding: 40px 28px;
    transition: background .2s;
}

    .problem-card:hover {
        background: var(--bg-card-hover);
    }

    .problem-card .num {
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .25em;
        color: var(--text-muted);
        margin-bottom: 20px;
        font-family: monospace;
    }

    .problem-card h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 12px;
        color: #000;
    }

    .problem-card p {
        font-size: .875rem;
        color: var(--text-muted);
        line-height: 1.7;
    }

/* ===== PRODUCT INTRO ===== */
.product-intro {
    text-align: center;
    background: var(--bg);
}

.product-visual {
    margin: 56px auto 0;
    max-width: 820px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 48px;
}

.product-visual-inner {
    position: relative;
    z-index: 1;
}

.visual-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 5px 12px;
    border: 1px solid var(--border-mid);
    display: inline-block;
    margin-bottom: 28px;
}

.visual-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.flow-box {
    padding: 12px 20px;
    border: 1px solid var(--border-mid);
    background: var(--bg);
    color: var(--text-muted);
}

    .flow-box.active {
        border-color: #000;
        color: #000;
        background: #fff;
    }

.flow-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== SCROLL STORY — BLACK (like the hero) ===== */
.scroll-story {
    position: relative;
    height: 350vh;
}

.scroll-story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .scroll-story-sticky > .label {
        position: absolute;
        top: 32px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        opacity: 0;
        transition: opacity .5s;
        color: rgba(255,255,255,0.4);
    }

    .scroll-story-sticky.is-active > .label {
        opacity: 1;
    }

.scroll-story-track {
    display: flex;
    width: 300%;
    will-change: transform;
}

.scroll-panel {
    flex: 0 0 33.3333%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    min-height: 100vh;
    position: relative;
}

    .scroll-panel::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 60px;
        transform: translateY(-50%);
        width: 1px;
        height: 80px;
        background: rgba(255,255,255,0.15);
    }

.scroll-panel-inner {
    max-width: 660px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-panel-num {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 24px;
    font-family: monospace;
    text-transform: uppercase;
}

.scroll-panel-heading {
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin-bottom: 28px;
    color: #fff;
    font-style: normal;
}

    .scroll-panel-heading .sp-highlight {
        text-shadow: 0 0 40px rgba(255,255,255,0.5);
    }

.scroll-panel-body {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.scroll-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .25s, color .25s;
}

    .scroll-panel-tag::after {
        transition: transform .25s;
    }

    .scroll-panel-tag:hover {
        border-color: #fff;
        color: #fff;
    }

        .scroll-panel-tag:hover::after {
            transform: translateX(4px);
        }

.scroll-story-progress {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
}

.scroll-story-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: .2;
    transition: opacity .35s, transform .35s;
}

    .scroll-story-dot.active {
        opacity: 1;
        transform: scale(2);
    }

.scroll-story-hint {
    position: absolute;
    bottom: 28px;
    right: 48px;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity .4s;
}

.scroll-story-sticky.is-active .scroll-story-hint {
    opacity: 1;
}

.scroll-story-hint-arrow {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.3);
    animation: hintPulse 1.6s ease-in-out infinite;
}

@keyframes hintPulse {
    0%,100% {
        opacity: .2;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 1px;
    background: var(--border);
}

.feature-card {
    background: #fff;
    padding: 36px 28px;
    border-top: 2px solid transparent;
    transition: background .2s, border-color .2s;
}

    .feature-card:hover {
        background: var(--bg-alt);
        border-top-color: #000;
    }

.feature-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.feature-card p {
    font-size: .875rem;
    color: var(--text-muted);
}

/* ===== APPROACH ===== */
.approach {
    background: #fff;
}

.steps {
    display: flex;
    flex-direction: column;
    margin-top: 56px;
    max-width: 680px;
}

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

    .step:last-child {
        border-bottom: none;
    }

.step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-mid);
    font-family: monospace;
}

.step-content h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.step-content p {
    font-size: .875rem;
    color: var(--text-muted);
}

/* ===== COMPARISON BARS ===== */
.comparison {
    margin-top: 64px;
}

.bar-group {
    margin-bottom: 28px;
}

    .bar-group .bar-label {
        font-size: .75rem;
        font-weight: 600;
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
        color: #000;
    }

.bar-label span:last-child {
    color: var(--text-muted);
    font-weight: 400;
}

.bar-track {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.1);
    overflow: visible;
    position: relative;
}

.bar-fill {
    height: 1px;
    width: 0;
    position: relative;
    background: #000;
    transition: width 1.2s cubic-bezier(.16,1,.3,1);
}

    .bar-fill::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #000;
    }

    .bar-fill.accent {
        background: #000;
    }

    .bar-fill.warm {
        background: #555;
    }

        .bar-fill.warm::after {
            background: #555;
        }

/* ===== CAPABILITIES ===== */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
    gap: 1px;
    background: var(--border);
    margin-top: 56px;
}

.cap-card {
    background: #fff;
    padding: 32px 28px;
    transition: background .2s;
}

    .cap-card:hover {
        background: var(--bg-alt);
    }

    .cap-card .cap-num {
        font-size: .62rem;
        font-weight: 700;
        color: var(--text-muted);
        font-family: monospace;
        margin-bottom: 14px;
        letter-spacing: .1em;
    }

    .cap-card h3 {
        font-size: .9rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #000;
    }

    .cap-card p {
        font-size: .875rem;
        color: var(--text-muted);
    }

/* ===== STATS BAR ===== */
.stats-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.stat {
    text-align: center;
    padding: 48px 24px;
    border-right: 1px solid var(--border);
}

    .stat:last-child {
        border-right: none;
    }

    .stat .stat-value {
        font-size: 2.6rem;
        font-weight: 800;
        letter-spacing: -.04em;
        color: #000;
    }

    .stat .stat-label {
        font-size: .68rem;
        color: var(--text-muted);
        margin-top: 6px;
        text-transform: uppercase;
        letter-spacing: .12em;
    }

/* ===== TECH PILLS ===== */
.tech {
    text-align: center;
    background: var(--bg-alt);
}

.tech-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
    margin-top: 48px;
    background: var(--border);
}

.pill {
    padding: 14px 22px;
    border: none;
    background: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-mid);
    cursor: default;
    transition: background .2s, color .2s;
}

    .pill:hover {
        background: #000;
        color: #fff;
    }

    .pill small {
        display: block;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: var(--text-muted);
        font-size: .7rem;
        margin-top: 3px;
    }

    .pill:hover small {
        color: rgba(255,255,255,0.6);
    }

/* ===== TERMINAL ===== */
.terminal-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.terminal {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--border-mid);
    overflow: hidden;
    background: #000;
    font-family: 'Cascadia Code','Fira Code','SF Mono', Consolas, monospace;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .terminal-dot.red {
        background: #333;
    }

    .terminal-dot.yellow {
        background: #444;
    }

    .terminal-dot.green {
        background: #555;
    }

.terminal-title {
    font-size: .68rem;
    color: rgba(255,255,255,0.35);
    margin-left: 12px;
    letter-spacing: .1em;
}

.terminal-body {
    padding: 28px;
    font-size: .84rem;
    line-height: 2;
    min-height: 260px;
}

    .terminal-body .prompt {
        color: #fff;
    }

    .terminal-body .success {
        color: var(--green);
    }

    .terminal-body .info {
        color: rgba(255,255,255,0.4);
    }

    .terminal-body .cursor {
        display: inline-block;
        width: 8px;
        height: 16px;
        background: var(--green);
        animation: blink 1s step-end infinite;
        vertical-align: middle;
        margin-left: 2px;
    }

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 120px 24px;
    background: #fff;
}

    .cta-section h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 800;
        letter-spacing: -.04em;
        margin-bottom: 16px;
        color: #000;
    }

    .cta-section p {
        color: var(--text-muted);
        margin-bottom: 36px;
        font-size: 1rem;
    }

/* ===== FAQ ===== */
.faq {
    background: var(--bg-alt);
}

.faq-list {
    max-width: 700px;
    margin-top: 48px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #000;
    font-size: .9rem;
    font-weight: 600;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

    .faq-question:hover {
        color: #000;
        opacity: .7;
    }

    .faq-question .faq-num {
        color: var(--text-muted);
        font-family: monospace;
        font-size: .8rem;
        margin-right: 16px;
        flex-shrink: 0;
    }

    .faq-question .faq-icon {
        font-size: 1.2rem;
        transition: transform .3s;
        flex-shrink: 0;
        margin-left: 16px;
        color: var(--text-muted);
    }

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: #000;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.16,1,.3,1), padding .3s;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}

.faq-answer p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== FOOTER CTA — white ===== */
.footer-cta {
    text-align: center;
    padding: 100px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
}

    .footer-cta h2 {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
        font-weight: 800;
        letter-spacing: -.04em;
        margin-bottom: 32px;
        color: #000;
    }

    .footer-cta .btn-primary {
        margin-bottom: 20px;
    }

    .footer-cta .fine-print {
        font-size: .7rem;
        color: var(--text-muted);
        letter-spacing: .08em;
    }

/* ===== FOOTER ===== */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .68rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .step {
        flex-direction: column;
        gap: 12px;
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }

    .visual-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .scroll-panel::before {
        display: none;
    }

    .tech-pills {
        display: flex;
    }
}
