/* ── Reset & Base ─────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0f1a;
    color: #c8cdd6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: #f0f2f5;
    line-height: 1.2;
}

/* ── Nav ──────────────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: #db5948;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(219, 89, 72, 0.4);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
    background: rgba(219, 89, 72, 0.1);
    border-color: #db5948;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    cursor: pointer;
}

.btn-primary {
    padding: 0.875rem 2rem;
    color: #fff;
    background: #db5948;
}

.btn-primary:hover {
    background: #c94d3d;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(219, 89, 72, 0.25);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: #8b93a1;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-tagline {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #5a6170;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Features ─────────────────────────────────────────── */

.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    color: #db5948;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #8b93a1;
    line-height: 1.6;
}

/* ── How it works ─────────────────────────────────────── */

.how-it-works {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(219, 89, 72, 0.15);
    color: #db5948;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 1rem;
    border: 1px solid rgba(219, 89, 72, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-example {
    font-size: 0.9rem;
    color: #db5948;
    font-style: italic;
    margin-bottom: 0.75rem;
    min-height: 2.5em;
}

.step p:last-child {
    font-size: 0.95rem;
    color: #8b93a1;
}

.step-connector {
    width: 48px;
    flex-shrink: 0;
    margin-top: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(219, 89, 72, 0.3), rgba(219, 89, 72, 0.1));
}

/* ── Orchestration visual ─────────────────────────────── */

.orchestration {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    text-align: center;
}

.orchestration h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.orchestration-sub {
    color: #8b93a1;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.orchestration-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.layer-top {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(219, 89, 72, 0.1);
    border: 1px solid rgba(219, 89, 72, 0.3);
    border-radius: 10px;
    text-align: center;
}

.layer-label {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #db5948;
    margin-bottom: 0.25rem;
}

.layer-desc {
    font-size: 0.85rem;
    color: #8b93a1;
}

.layer-connectors {
    display: flex;
    justify-content: space-around;
    width: 80%;
    height: 32px;
}

.connector {
    width: 1px;
    height: 100%;
    background: rgba(219, 89, 72, 0.25);
}

.layer-providers {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.provider {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #c8cdd6;
}

.provider-direct {
    color: #8b93a1;
    font-weight: 400;
}

/* ── CTA ──────────────────────────────────────────────── */

.cta {
    max-width: 600px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta > p:first-of-type {
    color: #8b93a1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #5a6170;
}

/* ── Footer ───────────────────────────────────────────── */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: #3d4450;
}

/* ── Responsive ───────────────────────────────────────── */

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

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step {
        padding: 0;
    }

    .step-connector {
        width: 1px;
        height: 32px;
        margin-top: 0;
        background: linear-gradient(180deg, rgba(219, 89, 72, 0.3), rgba(219, 89, 72, 0.1));
    }

    .layer-providers {
        flex-wrap: wrap;
    }

    .provider {
        flex-basis: calc(50% - 0.5rem);
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-cta {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .hero {
        padding: 7rem 1rem 3rem;
    }

    .orchestration-visual {
        font-size: 0.85rem;
    }
}
