/* ================================================
   NTELLIGENCE - ENTERPRISE
   Font: Inter (single family, weights 400–800)
   ================================================ */

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

:root {
    --bg:         #0c0908;
    --surface:    #130d0c;
    --text:       #EDE8DF;
    --text-soft:  rgba(237, 232, 223, 0.82);
    --muted:      rgba(237, 232, 223, 0.55);
    --subtle:     rgba(237, 232, 223, 0.12);
    --accent:     #DC2626;
    --accent-hot: #FF4747;
    --line:       rgba(237, 232, 223, 0.10);
    --line-warm:  rgba(220, 38, 38, 0.30);
    --glow:       rgba(220, 38, 38, 0.18);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── NAV ─────────────────────────────────── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: padding 0.4s ease, background 0.5s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(12, 9, 8, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--line);
}

.nav-logo-link { display: flex; }

.nav-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
}

.nav-cta {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 0.6rem 1.3rem;
    border-radius: 2px;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    white-space: nowrap;
}

.nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── HERO ────────────────────────────────── */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#earth-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
}

.hero-logo-large {
    width: clamp(280px, 56vw, 720px);
    height: auto;
    object-fit: contain;
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(20px);
    filter: drop-shadow(0 0 60px rgba(12, 9, 8, 0.5));
}

.hero-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text);
    margin-bottom: 2.5rem;
    opacity: 0;
    max-width: 620px;
}

.hero-rule {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
}

.rule-line {
    width: 60px;
    height: 1px;
    background: var(--line);
}

.hero-rule-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text);
    white-space: nowrap;
    text-transform: uppercase;
    margin: 0;
}

.scroll-hint {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--subtle);
    z-index: 10;
    text-decoration: none;
    animation: bounce 2.5s ease-in-out infinite;
    opacity: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.25; }
    50%      { transform: translateX(-50%) translateY(6px); opacity: 0.7;  }
}

/* ─── SHARED SECTION STRUCTURE ────────────── */

.section {
    border-top: 1px solid var(--line);
    padding: 7rem 0;
    position: relative;
}

.section-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.20em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.section-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 2.5rem;
    max-width: 880px;
}

.section-headline em {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.section-body {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.005em;
    color: var(--text-soft);
    max-width: 720px;
}

.section-body + .section-body {
    margin-top: 1.25rem;
}

/* ─── THE SEAM - main showcase ──────────────── */

.seam {
    border-top: 1px solid var(--line);
}

/* ── Bridge diagram - centerpiece ── */

.bridge-diagram {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0;
    margin: 5.5rem 0 5rem;
    align-items: stretch;
}

.bridge-side {
    padding: 2.5rem 2rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.012);
    display: flex;
    flex-direction: column;
}

.bridge-side:first-child {
    border-right: none;
}

.bridge-side:last-child {
    border-left: none;
}

.bridge-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 2rem 0.5rem;
    gap: 0.6rem;
    position: relative;
}

.flow-arrow {
    display: flex;
    align-items: center;
    height: 1.5rem;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.flow-arrow-bottom {
    flex-direction: row-reverse;
}

.flow-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.05), var(--accent), rgba(220, 38, 38, 0.05));
}

.flow-arrow-bottom .flow-line {
    background: linear-gradient(to left, rgba(220, 38, 38, 0.05), var(--accent), rgba(220, 38, 38, 0.05));
}

.flow-tip {
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 400;
    flex-shrink: 0;
}

.bridge-center {
    padding: 2.5rem 1.5rem;
    border: 1.5px solid var(--accent);
    background: rgba(220, 38, 38, 0.06);
    text-align: center;
    box-shadow:
        0 0 60px var(--glow),
        inset 0 0 30px rgba(220, 38, 38, 0.04);
    animation: pulseGlow 4.5s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 0 60px rgba(220, 38, 38, 0.12),
            inset 0 0 30px rgba(220, 38, 38, 0.04);
    }
    50% {
        box-shadow:
            0 0 110px rgba(220, 38, 38, 0.28),
            inset 0 0 50px rgba(220, 38, 38, 0.08);
    }
}

.bridge-label,
.bridge-label-center {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
}

.bridge-label {
    color: var(--muted);
}

.bridge-label-center {
    color: var(--accent);
    border-bottom-color: var(--line-warm);
}

.bridge-list,
.bridge-actions {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.bridge-list li {
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--text);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.005em;
}

.bridge-list li:last-child {
    border-bottom: none;
}

.bridge-actions li {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    padding: 0.45rem 0;
    letter-spacing: -0.01em;
}

/* ── Tech carousel - breadth of integration ── */

.tech-marquee {
    margin: 4rem 0 1rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--line);
    position: relative;
}

.tech-marquee-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.20em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
}

.marquee-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    animation: marquee 32s linear infinite;
    padding: 0.5rem 0;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

.tech-pill {
    flex-shrink: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.tech-pill img {
    max-height: 42px;
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tech-pill:hover img {
    opacity: 0.95;
}

/* ── Seam values - 3 selling features ── */

.seam-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--line);
    gap: 2.5rem;
}

.seam-value {
    padding-right: 1rem;
}

.seam-value .value-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.85rem;
    letter-spacing: -0.005em;
}

.seam-value .value-desc {
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
}

/* ─── OFFERING - capability cards ──────────── */

.offering-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4.5rem;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.offering-card {
    padding: 2.5rem 2.5rem 3rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.offering-card .card-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.offering-card .card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.9rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.offering-card .card-desc {
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

/* ─── OUTCOMES - numeric callouts ──────────── */

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4.5rem;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.outcome-card {
    padding: 3rem 2.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.outcome-num {
    display: block;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.outcome-num sup {
    font-size: 0.5em;
    vertical-align: top;
    position: relative;
    top: 0.45em;
    font-weight: 600;
    margin-left: 0.05em;
}

.outcome-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.outcome-desc {
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

/* ─── WHY US - typographic, with one earned anchor ─── */

.why-us-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 5rem;
    align-items: start;
}

.why-us-text .section-headline {
    margin-bottom: 2.25rem;
}

.why-us-text .section-body + .section-body {
    margin-top: 1.5rem;
}

.why-us-anchor {
    border-left: 1px solid var(--line-warm);
    padding: 0.5rem 0 0.5rem 3rem;
}

.anchor-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(4.5rem, 8.5vw, 7.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.anchor-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--muted);
    max-width: 240px;
}

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

.cta .cta-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 1.05rem 2.4rem;
    border-radius: 2px;
    background: rgba(220, 38, 38, 0.08);
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.cta-button:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.cta-email-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s;
}

.cta-email-link:hover {
    color: var(--text);
}

/* ─── FOOTER ───────────────────────────────── */

.footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    height: 32px;
    opacity: 1;
    object-fit: contain;
}

.footer-copy {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.25s, opacity 0.25s;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 0.95;
}

/* ─── RESPONSIVE ───────────────────────────── */

@media (max-width: 980px) {
    /* ── Mobile bridge - compact, one-screen, vertical flow ── */
    .bridge-diagram {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 3rem 0 2.5rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Side cards - slim banners with inline · separated items */
    .bridge-side {
        padding: 1rem 1.25rem 1.1rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.018);
        border: 1px solid var(--line);
    }
    .bridge-side:first-child  { border-radius: 6px 6px 0 0; }
    .bridge-side:last-child   { border-radius: 0 0 6px 6px; }

    .bridge-label {
        font-size: 0.66rem;
        margin: 0 0 0.7rem;
        padding-bottom: 0.5rem;
        letter-spacing: 0.24em;
        border-bottom: 1px solid var(--line);
    }

    .bridge-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 0;
    }
    .bridge-list li {
        display: inline-flex;
        align-items: center;
        border: none;
        padding: 0;
        font-size: 0.78rem;
        font-weight: 400;
        color: var(--text-soft, rgba(237, 232, 223, 0.78));
        line-height: 1.4;
    }
    .bridge-list li:not(:last-child)::after {
        content: '\00B7';
        margin: 0 0.55rem;
        color: var(--accent);
        font-weight: 700;
        opacity: 0.7;
    }

    /* Flow column - vertical with arrows around center */
    .bridge-flow {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .flow-arrow {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 2rem;
        width: 100%;
        gap: 0;
        padding: 0;
    }

    .flow-line {
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom,
            rgba(220, 38, 38, 0.05),
            var(--accent),
            rgba(220, 38, 38, 0.05));
        flex: 1;
    }
    .flow-arrow-bottom .flow-line {
        background: linear-gradient(to top,
            rgba(220, 38, 38, 0.05),
            var(--accent),
            rgba(220, 38, 38, 0.05));
    }

    .flow-tip {
        font-size: 1rem;
        line-height: 0;
        transform: rotate(90deg);
        margin: -0.15rem 0;
    }

    /* Ntelligence center - the focal point */
    .bridge-center {
        flex: none;
        max-width: 100%;
        padding: 1.5rem 1.5rem 1.4rem;
        border-radius: 8px;
        /* slightly stronger glow on mobile so it pops as the focal point */
        animation-duration: 3.5s;
    }

    .bridge-label-center {
        font-size: 0.72rem;
        margin: 0 0 1rem;
        padding-bottom: 0.7rem;
        letter-spacing: 0.26em;
    }

    .bridge-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem 0;
    }
    .bridge-actions li {
        display: inline-flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 600;
        padding: 0;
        line-height: 1.3;
    }
    .bridge-actions li:not(:last-child)::after {
        content: '\00B7';
        margin: 0 0.6rem;
        color: var(--accent);
        font-weight: 700;
    }

    /* Seam values stack vertically below diagram */
    .seam-values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .seam-value {
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--line);
    }
    .seam-value:first-child {
        border-top: none;
        padding-top: 0;
    }
}

@media (max-width: 860px) {
    .nav { padding: 1.1rem 1.5rem; }
    .nav.scrolled { padding: 0.8rem 1.5rem; }
    .nav-cta { font-size: 0.74rem; padding: 0.5rem 1rem; }

    .hero-logo-large {
        width: clamp(240px, 78vw, 520px);
        margin-bottom: 1.8rem;
    }
    .hero-sub { margin-bottom: 2rem; font-size: 0.95rem; }
    .rule-line { width: 36px; }
    .hero-rule { gap: 1rem; }
    .hero-rule-text { font-size: 0.62rem; }

    .section { padding: 5rem 0; }
    .section-inner { padding: 0 1.5rem; }
    .section-headline { font-size: clamp(1.85rem, 8vw, 2.6rem); margin-bottom: 1.75rem; }
    .section-body { font-size: 0.98rem; }

    .offering-grid {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }
    .offering-card { padding: 2rem 1.75rem; }

    .outcomes-grid {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }
    .outcome-card { padding: 2.25rem 1.75rem; }
    .outcome-num { font-size: clamp(2.4rem, 12vw, 3.4rem); }

    .why-us-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .why-us-anchor {
        border-left: none;
        border-top: 1px solid var(--line-warm);
        padding: 2rem 0 0;
    }
    .anchor-num { font-size: clamp(3.5rem, 14vw, 5rem); }
    .anchor-label { max-width: none; }

    .cta-button { font-size: 0.88rem; padding: 0.95rem 2rem; }

    /* Tech carousel - tighter on mobile */
    .tech-marquee { margin: 2.5rem 0 0.5rem; padding-top: 2.5rem; }
    .tech-marquee-label { font-size: 0.62rem; margin-bottom: 1.5rem; }
    .marquee-track { gap: 2.75rem; animation-duration: 26s; }
    .tech-pill { height: 38px; min-width: 80px; }
    .tech-pill img { max-height: 30px; max-width: 110px; }

    .footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-headline { font-size: clamp(1.7rem, 9vw, 2.2rem); }
    .outcome-num { font-size: clamp(2.1rem, 11vw, 3rem); }

    /* tighter spacing for narrow phones */
    .bridge-list li { font-size: 0.74rem; }
    .bridge-list li:not(:last-child)::after { margin: 0 0.45rem; }
    .bridge-actions li { font-size: 0.94rem; }
    .bridge-actions li:not(:last-child)::after { margin: 0 0.5rem; }
    .bridge-center { padding: 1.25rem 1.25rem 1.15rem; }
}
