/**
 * XEO Engine ecosystem page — scoped under .xeosol-ecosystem
 * Class prefix: xeo-ecosystem-
 */

.xeosol-ecosystem {
    --xeo-navy: #07182F;
    --xeo-navy-mid: #0E2342;
    --xeo-orange: #F5A623;
    --xeo-orange-dark: #e09410;
    --xeo-surface: #F5F7FB;
    --xeo-text: #0f1a2e;
    --xeo-muted: #5a6778;
    --xeo-border: rgba(15, 26, 46, 0.08);
    --xeo-shadow: 0 8px 32px rgba(7, 24, 47, 0.08);
    --xeo-radius: 12px;
    --xeo-radius-lg: 16px;
    --eco-max: 1180px;
    overflow-x: hidden;
    color: var(--xeo-text);
    background: #fff;
}

.xeosol-ecosystem * { box-sizing: border-box; }

html:has(.xeosol-ecosystem) { scroll-behavior: smooth; }

.page-wrapper:has(.xeosol-ecosystem) .main-footer { margin-top: 0; }

/* Header — dark hero */
.page-wrapper:has(.xeosol-ecosystem) .main-header.header-style-four .header-lower {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-wrapper:has(.xeosol-ecosystem) .main-header.header-style-four .main-menu .navigation > li > a {
    color: rgba(255, 255, 255, 0.88);
}
.page-wrapper:has(.xeosol-ecosystem) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-ecosystem) .main-header.header-style-four .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange);
}
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .sticky-header .site-logo--light {
    display: block;
}
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .sticky-header .site-logo--dark {
    display: none;
}
.page-wrapper:has(.xeosol-ecosystem) .sticky-header.fixed-header {
    background: rgba(7, 24, 47, 0.98);
    backdrop-filter: blur(12px);
}
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .sticky-header.fixed-header .main-menu .navigation > li > a {
    color: rgba(255, 255, 255, 0.88);
}
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .sticky-header.fixed-header .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-ecosystem:not(.xeosol-ecosystem--past-hero)) .sticky-header.fixed-header .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange);
}

.page-wrapper:has(.xeosol-ecosystem--past-hero) .main-header.header-style-four .header-lower {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--xeo-border);
}
.page-wrapper:has(.xeosol-ecosystem--past-hero) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-ecosystem--past-hero) .sticky-header .site-logo--light {
    display: none;
}
.page-wrapper:has(.xeosol-ecosystem--past-hero) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-ecosystem--past-hero) .sticky-header .site-logo--dark {
    display: block;
}
.page-wrapper:has(.xeosol-ecosystem--past-hero) .main-header.header-style-four .main-menu .navigation > li > a,
.page-wrapper:has(.xeosol-ecosystem--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a {
    color: var(--xeo-text);
}
.page-wrapper:has(.xeosol-ecosystem--past-hero) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-ecosystem--past-hero) .main-header.header-style-four .main-menu .navigation > li > a:hover,
.page-wrapper:has(.xeosol-ecosystem--past-hero) .sticky-header.fixed-header .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-ecosystem--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange-dark);
}
.page-wrapper:has(.xeosol-ecosystem--past-hero) .sticky-header.fixed-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--xeo-border);
}

.xeo-ecosystem-shell {
    width: 100%;
    max-width: var(--eco-max);
    margin: 0 auto;
    padding: 0 24px;
}

.xeo-ecosystem-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--xeo-orange);
    margin: 0 0 16px;
}

.xeo-ecosystem-heading {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--xeo-text);
    margin: 0 0 16px;
}

.xeo-ecosystem-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--xeo-muted);
    margin: 0;
}
.xeo-ecosystem-lead + .xeo-ecosystem-lead {
    margin-top: 14px;
}

.xeo-ecosystem-section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.xeo-ecosystem-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.xeo-ecosystem-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.xeo-ecosystem-btn:hover { text-decoration: none; transform: translateY(-1px); }

.xeo-ecosystem-btn--primary {
    background: var(--xeo-orange);
    color: var(--xeo-navy);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.22);
}
.xeo-ecosystem-btn--primary:hover {
    color: var(--xeo-navy);
    background: #ffb53a;
}

.xeo-ecosystem-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.xeo-ecosystem-btn--ghost:hover {
    color: #fff;
    border-color: #fff;
}

.xeo-ecosystem-btn--navy {
    background: var(--xeo-navy);
    color: #fff;
}
.xeo-ecosystem-btn--navy:hover { color: #fff; background: var(--xeo-navy-mid); }

.xeo-ecosystem-btn--outline {
    background: #fff;
    color: var(--xeo-navy);
    border-color: var(--xeo-border);
}
.xeo-ecosystem-btn--outline:hover {
    color: var(--xeo-navy);
    border-color: rgba(15, 26, 46, 0.2);
}

/* ── Hero ── */
.xeo-ecosystem-hero {
    position: relative;
    padding: 118px 0 20px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.12), transparent 46%),
        linear-gradient(180deg, #07182F 0%, #0B1F3A 100%);
    color: #fff;
    overflow: hidden;
}
.xeo-ecosystem-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
    pointer-events: none;
}
.xeo-ecosystem-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.25fr);
    grid-template-areas:
        "eyebrow visual"
        "copy visual"
        "actions visual";
    gap: 0 28px;
    align-items: center;
}
.xeo-ecosystem-hero__grid > .xeo-ecosystem-eyebrow { grid-area: eyebrow; margin-bottom: 16px; padding-top: 15px; }
.xeo-ecosystem-hero__copy { grid-area: copy; }
.xeo-ecosystem-hero__visual { grid-area: visual; }
.xeo-ecosystem-hero__grid > .xeo-ecosystem-actions { grid-area: actions; }
.xeo-ecosystem-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    color: #fff;
}
.xeo-ecosystem-hero__also {
    display: block;
    margin-top: 12px;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}
.xeo-ecosystem-hero__lead {
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
    margin: 0;
    max-width: 38rem;
}
.xeo-ecosystem-hero__grid > .xeo-ecosystem-actions {
    margin-top: 32px;
}

.xeo-ecosystem-hero__visual {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}
.xeo-ecosystem-connect {
    display: block;
    width: 108%;
    max-width: none;
    height: auto;
    margin: -2% 0 -4% 0;
    transform: scale(1.08);
    transform-origin: left center;
}

/* ── Catalogue ── */
.xeo-ecosystem-systems {
    padding: 88px 0 96px;
    background: #E8EDF4;
    scroll-margin-top: 96px;
}

.xeo-ecosystem-suite {
    background: #fff;
    border-radius: var(--xeo-radius-lg);
    box-shadow: 0 18px 48px rgba(7, 24, 47, 0.1);
    overflow: hidden;
    border-top: 3px solid var(--xeo-navy);
}
.xeo-ecosystem-suite__group {
    padding: 18px 22px 14px;
    border-top: 1px solid rgba(7, 24, 47, 0.06);
}
.xeo-ecosystem-suite__group:first-child { border-top: 0; }
.xeo-ecosystem-suite__group--market { background: #FFF8EE; }
.xeo-ecosystem-suite__group--ops { background: #F4F7FB; }
.xeo-ecosystem-suite__group--people { background: #F2F6FA; }
.xeo-ecosystem-suite__group--ai { background: #FFF6E8; }
.xeo-ecosystem-suite__group--schools { background: #F7F4FA; }
.xeo-ecosystem-suite__group--health { background: #F0F6F5; }
.xeo-ecosystem-suite__group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--xeo-navy);
}
.xeo-ecosystem-suite__group h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: currentColor;
}
.xeo-ecosystem-suite__group--market h3 { color: #C48412; }
.xeo-ecosystem-suite__group--ops h3 { color: var(--xeo-navy); }
.xeo-ecosystem-suite__group--people h3 { color: #1E4A6E; }
.xeo-ecosystem-suite__group--ai h3 { color: #C48412; }
.xeo-ecosystem-suite__group--schools h3 { color: #5E35B1; }
.xeo-ecosystem-suite__group--health h3 { color: #0F4C4A; }
.xeo-ecosystem-suite__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}
.xeo-ecosystem-suite__group:last-child .xeo-ecosystem-suite__list {
    grid-template-columns: 1fr;
}
.xeo-ecosystem-icons {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.xeo-ecosystem-mod {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 0;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
a.xeo-ecosystem-mod:hover {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.72);
}
.xeo-ecosystem-mod__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(7, 24, 47, 0.08);
    box-shadow: 0 1px 2px rgba(7, 24, 47, 0.05);
}
.xeo-ecosystem-mod__icon svg {
    width: 30px;
    height: 30px;
    display: block;
}
.xeo-ecosystem-mod__icon--hub { color: #E87722; }
.xeo-ecosystem-mod__icon--sellers { color: #2F80ED; }
.xeo-ecosystem-mod__icon--portal { color: #0277BD; }
.xeo-ecosystem-mod__icon--pos { color: #1A73E8; }
.xeo-ecosystem-mod__icon--purchase { color: #5C6BC0; }
.xeo-ecosystem-mod__icon--inventory { color: #0B9A5D; }
.xeo-ecosystem-mod__icon--mfg { color: #546E7A; }
.xeo-ecosystem-mod__icon--banking { color: #1565C0; }
.xeo-ecosystem-mod__icon--ledgers { color: #6C5CE7; }
.xeo-ecosystem-mod__icon--reports { color: #00897B; }
.xeo-ecosystem-mod__icon--team { color: #3949AB; }
.xeo-ecosystem-mod__icon--payroll { color: #00838F; }
.xeo-ecosystem-mod__icon--marketing { color: #E53935; }
.xeo-ecosystem-mod__icon--seo { color: #43A047; }
.xeo-ecosystem-mod__icon--sales { color: #1E88E5; }
.xeo-ecosystem-mod__icon--edu { color: #8E24AA; }
.xeo-ecosystem-mod__icon--dsm { color: #6A1B9A; }
.xeo-ecosystem-mod__icon--health { color: #0F9D8A; }
.xeo-ecosystem-mod__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.xeo-ecosystem-mod strong {
    font-size: 0.95rem;
    color: var(--xeo-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.xeo-ecosystem-mod em {
    font-style: normal;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--xeo-muted);
}
.xeo-ecosystem-mod__go {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--xeo-navy);
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

/* ── Connected + Engine ── */
.xeo-ecosystem-connect-how {
    padding: 88px 0;
    background: #fff;
}
.xeo-ecosystem-engine {
    padding: 88px 0;
    background: #E8EDF4;
}
.xeo-ecosystem-engine__markets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -16px auto 36px;
    padding: 0;
    max-width: 640px;
    list-style: none;
}
.xeo-ecosystem-engine__markets li {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--xeo-border);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--xeo-navy);
}
.xeo-ecosystem-engine__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
a.xeo-ecosystem-step--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.xeo-ecosystem-step--link:hover,
a.xeo-ecosystem-step--link:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.45);
    box-shadow: 0 12px 28px rgba(7, 24, 47, 0.1);
}
.xeo-ecosystem-step__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--xeo-navy);
}
.xeo-ecosystem-step__go i {
    font-size: 11px;
    color: var(--xeo-orange);
    transition: transform 0.2s ease;
}
a.xeo-ecosystem-step--link:hover .xeo-ecosystem-step__go i {
    transform: translateX(4px);
}

/* ── Options ── */
.xeo-ecosystem-options {
    padding: 88px 0;
    background: #fff;
}
.xeo-ecosystem-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.xeo-ecosystem-step {
    padding: 28px 24px;
    border-radius: var(--xeo-radius-lg);
    background: var(--xeo-surface);
    border: 1px solid var(--xeo-border);
}
.xeo-ecosystem-step__num {
    display: block;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--xeo-orange);
}
.xeo-ecosystem-step h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: var(--xeo-navy);
}
.xeo-ecosystem-step p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--xeo-muted);
}
.xeo-ecosystem-regions {
    margin-top: 44px;
    text-align: center;
    scroll-margin-top: 96px;
}
.xeo-ecosystem-regions__label {
    margin: 0 0 22px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--xeo-navy);
}
.xeo-ecosystem-regions__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}
.xeo-ecosystem-portal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 196px;
    height: 100%;
    padding: 28px 28px 24px;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    color: #fff;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(245, 166, 35, 0.18) 0%, transparent 55%),
        linear-gradient(165deg, #123056 0%, var(--xeo-navy) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--xeo-radius-lg);
    box-shadow: 0 18px 40px rgba(7, 24, 47, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.xeo-ecosystem-portal:hover,
.xeo-ecosystem-portal:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.45);
    box-shadow: 0 24px 48px rgba(7, 24, 47, 0.28);
}
.xeo-ecosystem-portal__place {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--xeo-orange);
}
.xeo-ecosystem-portal__name {
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.xeo-ecosystem-portal__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--xeo-orange);
    color: var(--xeo-navy);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(245, 166, 35, 0.28);
}
.xeo-ecosystem-portal__go i {
    font-size: 11px;
    transition: transform 0.2s ease;
}
.xeo-ecosystem-portal:hover .xeo-ecosystem-portal__go i {
    transform: translateX(4px);
}
.xeo-ecosystem-regions a.is-suggested {
    box-shadow: 0 0 0 2px var(--xeo-orange), 0 18px 40px rgba(7, 24, 47, 0.2);
}
.xeo-ecosystem-regions a.is-suggested:hover,
.xeo-ecosystem-regions a.is-suggested:focus {
    box-shadow: 0 0 0 2px var(--xeo-orange), 0 24px 48px rgba(7, 24, 47, 0.28);
}
.xeo-ecosystem-regions__note {
    margin: 18px auto 0;
    max-width: 36rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--xeo-muted);
}

@media (max-width: 991px) {
    .xeo-ecosystem-hero { padding: 112px 0 28px; }
    .xeo-ecosystem-hero__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "eyebrow"
            "visual"
            "copy"
            "actions";
        gap: 20px;
    }
    .xeo-ecosystem-hero__grid > .xeo-ecosystem-eyebrow { margin-bottom: 0; padding-top: 0; }
    .xeo-ecosystem-hero__grid > .xeo-ecosystem-actions {
        margin-top: 0;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
    }
    .xeo-ecosystem-hero__grid > .xeo-ecosystem-actions .xeo-ecosystem-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding: 12px 10px;
        font-size: 13px;
        line-height: 1.25;
    }
    .xeo-ecosystem-hero__visual { justify-content: center; }
    .xeo-ecosystem-connect {
        width: 100%;
        max-width: 560px;
        margin: 0;
        transform: none;
    }
    .xeo-ecosystem-suite__group { padding: 18px 16px 10px; }
    .xeo-ecosystem-steps,
    .xeo-ecosystem-engine__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .xeo-ecosystem-hero {
        padding: 108px 0 16px;
        overflow: visible;
    }
    .xeo-ecosystem-connect { max-width: 100%; margin: 0; transform: none; }
    .xeo-ecosystem-systems,
    .xeo-ecosystem-connect-how,
    .xeo-ecosystem-engine,
    .xeo-ecosystem-options { padding: 64px 0; }
    .xeo-ecosystem-suite__list { grid-template-columns: 1fr; }
    .xeo-ecosystem-regions__actions { grid-template-columns: 1fr; }
}
