/*
 * Enterprise Solutions hub and project pages. Loaded after site.css.
 * Same dark theme and #1a1b24 panels as the rest of the site. The project
 * page is one continuous journey on a vertical rail; each step carries its
 * own accent (orange, blue, violet, theme green) echoing the infographics.
 */

.ent-hero,
.ent-journey-wrap,
.ent-faq,
.ent-cta,
.ent-hub-area {
    --accent: var(--tg-theme-primary);
    --accent-rgb: 69, 248, 130;
    --panel: #1a1b24;
    --line: rgba(255, 255, 255, 0.08);
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.ent-step--orange { --accent: #ff6a3d; --accent-rgb: 255, 106, 61; }
.ent-step--blue   { --accent: #6b8bff; --accent-rgb: 107, 139, 255; }
.ent-step--violet { --accent: #a98cff; --accent-rgb: 169, 140, 255; }
.ent-step--green  { --accent: #45f882; --accent-rgb: 69, 248, 130; }

/* ── Hub page ────────────────────────────────────────────────────────────── */

.ent-hub-intro {
    max-width: 680px;
    margin: 0 auto 50px;
    font-size: 18px;
    text-align: center;
}

.ent-project {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ent-project:hover {
    transform: translateY(-4px);
    border-color: rgba(69, 248, 130, 0.45);
}

.ent-project__shot {
    display: block;
    background: #f4f5f9;
}

.ent-project__shot img {
    display: block;
    width: 100%;
    height: auto;
}

.ent-project__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
}

.ent-project__kicker {
    margin-bottom: 10px;
    font: 600 12px var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tg-theme-primary);
}

.ent-project__title {
    margin-bottom: 12px;
    font-size: 30px;
}

.ent-project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.ent-project__tags li {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: #d7d9e2;
}

.ent-project .tg-btn-1 {
    margin-top: auto;
}

.ent-project--next {
    justify-content: center;
    border-style: dashed;
    border-color: rgba(69, 248, 130, 0.35);
    background: linear-gradient(140deg, rgba(69, 248, 130, 0.08), rgba(107, 139, 255, 0.08));
}

.ent-project--next .ent-project__body {
    justify-content: center;
}

.ent-project--next .tg-btn-1 {
    margin-top: 8px;
}

/* ── Project page: hero ──────────────────────────────────────────────────── */

.ent-hero {
    position: relative;
    padding: 170px 0 70px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--tg-common-color-black);
}

.ent-hero__glow {
    position: absolute;
    inset: -20% -10% auto auto;
    width: 70%;
    height: 90%;
    pointer-events: none;
    background:
        radial-gradient(40% 50% at 70% 30%, rgba(69, 248, 130, 0.16), transparent 70%),
        radial-gradient(35% 45% at 40% 70%, rgba(107, 139, 255, 0.14), transparent 70%);
}

.ent-hero .container {
    position: relative;
}

.ent-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font: 600 12px var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ent-crumbs i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tg-theme-primary);
}

.ent-crumbs span {
    color: #fff;
}

.ent-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ent-eyebrow > span {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--tg-common-color-black);
    background: var(--tg-theme-primary);
}

.ent-hero__title {
    margin: 0 0 20px;
    font-size: clamp(46px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -1px;
    color: var(--tg-theme-primary);
}

.ent-hero__lead {
    max-width: 440px;
    margin-bottom: 30px;
    font-size: 18px;
}

.ent-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 30px;
}

.ent-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
}

.ent-link i {
    transition: transform 0.2s ease;
}

.ent-link:hover i {
    transform: translateY(4px);
}

.ent-hero__shot {
    position: relative;
    margin: 0;
}

.ent-hero__shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 10px rgba(255, 255, 255, 0.03);
}

.ent-hero__shot figcaption,
.ent-poster figcaption {
    margin-top: 14px;
    font: 500 12px var(--mono);
    letter-spacing: 0.06em;
    color: #7d8190;
}

.ent-chip {
    position: absolute;
    top: -14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font: 600 12px var(--mono);
    letter-spacing: 0.06em;
    color: var(--tg-theme-primary);
    background: rgba(15, 22, 27, 0.9);
}

.ent-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tg-theme-primary);
    box-shadow: 0 0 0 4px rgba(69, 248, 130, 0.2);
}

.ent-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 60px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.ent-stats li {
    padding: 22px 26px;
    background: #12191f;
}

.ent-stats strong {
    display: block;
    font: 800 clamp(26px, 3vw, 38px)/1.1 var(--tg-heading-font-family);
    color: var(--tg-theme-primary);
}

.ent-stats span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

/* ── The journey: one rail, four steps ───────────────────────────────────── */

.ent-journey-wrap {
    padding: 90px 0 40px;
    border-top: 1px solid var(--line);
}

.ent-journey {
    position: relative;
    margin: 0;
    padding-left: 76px;
}

/* the rail */
.ent-journey::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 0;
    left: 23px;
    width: 2px;
    background: linear-gradient(#ff6a3d, #6b8bff 38%, #a98cff 66%, #45f882);
    opacity: 0.55;
}

.ent-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 50px;
    padding-bottom: 100px;
}

.ent-step:last-child {
    padding-bottom: 50px;
}

.ent-step:nth-child(even) .ent-step__text {
    order: 2;
}

.ent-step__node {
    position: absolute;
    top: 0;
    left: -76px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    font: 800 20px var(--tg-heading-font-family);
    color: var(--accent);
    background: #0f161b;
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.ent-step__tag {
    display: inline-block;
    margin-bottom: 14px;
    font: 600 12px var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.ent-step h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
}

.ent-step__text > p {
    margin-bottom: 26px;
    font-size: 16.5px;
}

/* step 1: chain + costs */
.ent-chain {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ent-chain li {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 600 11.5px var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.ent-chain li + li::before {
    content: "\2192";
    margin-right: 10px;
    color: var(--accent);
}

.ent-costs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ent-costs li,
.ent-safe li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: #e2e4ec;
    background: var(--panel);
}

.ent-costs i,
.ent-safe i {
    width: 18px;
    text-align: center;
    color: var(--accent);
}

/* step 2: six stages */
.ent-stages {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 10px;
}

.ent-stages li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font: 600 12px var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.ent-stages li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(var(--accent-rgb), 0.5);
    border-radius: 50%;
    font-size: 19px;
    color: var(--accent);
    background: #0f161b;
}

/* dashed connectors between neighbours in a row */
.ent-stages li:not(:nth-child(3n))::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 34px);
    width: calc(100% - 68px + 10px);
    border-top: 2px dashed rgba(var(--accent-rgb), 0.4);
}

/* step 3: devices → suite → people */
.ent-hub {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.ent-hub ul {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ent-hub li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e4ec;
    background: var(--panel);
}

.ent-hub li i {
    width: 18px;
    text-align: center;
    color: var(--accent);
}

.ent-hub__core {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 104px;
    height: 104px;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    border-radius: 26px;
    text-align: center;
    color: #fff;
    background: #0a0e12;
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25);
}

.ent-hub__core::before,
.ent-hub__core::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    border-top: 2px dashed rgba(var(--accent-rgb), 0.6);
}

.ent-hub__core::before { right: 100%; }
.ent-hub__core::after  { left: 100%; }

.ent-hub__core i {
    font-size: 24px;
    color: var(--accent);
}

.ent-hub__core span {
    font: 700 11px var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ent-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ent-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e4ec;
    background: rgba(var(--accent-rgb), 0.12);
}

.ent-badges b {
    font: 700 10px/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.ent-badges b.is-roadmap {
    color: var(--tg-theme-secondary);
}

.ent-motto {
    margin: 0;
    font: 700 15px var(--tg-heading-font-family);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

/* step 4: safeguards + outcome */
.ent-safe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
}

.ent-outcome {
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-size: 15px;
}

.ent-outcome strong {
    color: #fff;
}

/* ── Infographic figures ─────────────────────────────────────────────────── */

.ent-poster {
    margin: 0;
}

.ent-poster__btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: #f4f5f9;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ent-poster__btn:hover,
.ent-poster__btn:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 40px 90px rgba(var(--accent-rgb), 0.28);
}

.ent-poster__btn img {
    display: block;
    width: 100%;
    height: auto;
}

.ent-poster__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    font: 600 12px var(--mono);
    color: #fff;
    background: rgba(15, 22, 27, 0.9);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ent-poster__btn:hover .ent-poster__zoom,
.ent-poster__btn:focus-visible .ent-poster__zoom {
    opacity: 1;
}

@media (hover: none) {
    .ent-poster__zoom { opacity: 1; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.ent-faq {
    padding: 40px 0 80px;
}

.ent-faq__box {
    max-width: 860px;
    margin: 0 auto;
}

.ent-faq__box h2 {
    margin-bottom: 24px;
    font-size: 28px;
}

.ent-faq details {
    border-bottom: 1px solid var(--line);
}

.ent-faq summary {
    position: relative;
    padding: 18px 40px 18px 0;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
}

.ent-faq summary::-webkit-details-marker {
    display: none;
}

.ent-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    font: 400 24px var(--mono);
    color: var(--tg-theme-primary);
}

.ent-faq details[open] summary::after {
    content: "\2212";
}

.ent-faq details p {
    margin: 0 0 20px;
    font-size: 15.5px;
}

/* ── Closing call to action ──────────────────────────────────────────────── */

.ent-cta {
    padding: 0 0 100px;
}

.ent-cta__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px 45px;
    border: 1px solid rgba(69, 248, 130, 0.3);
    border-radius: 15px;
    background: linear-gradient(120deg, rgba(69, 248, 130, 0.1), rgba(107, 139, 255, 0.1));
}

.ent-cta__box > div {
    flex: 1 1 380px;
    max-width: 640px;
}

.ent-cta__box h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.2vw, 38px);
}

.ent-cta__box p {
    margin: 0;
}

.ent-footnote {
    margin: 24px 0 0;
    font: 500 12px var(--mono);
    letter-spacing: 0.04em;
    text-align: center;
    color: #6f7380;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */

.ent-lightbox {
    width: min(94vw, 980px);
    max-width: none;
    max-height: 96vh;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 14px;
    background: #f4f5f9;
}

.ent-lightbox::backdrop {
    background: rgba(5, 8, 10, 0.86);
}

.ent-lightbox img {
    display: block;
    width: 100%;
    height: auto;
}

.ent-lightbox button {
    position: fixed;
    top: 16px;
    right: 22px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    background: rgba(15, 22, 27, 0.9);
    cursor: pointer;
}

/* ── Scroll reveal (only when JS is on, and motion is welcome) ───────────── */

@media (prefers-reduced-motion: no-preference) {
    .ent-js .ent-reveal {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .ent-js .ent-reveal.is-in {
        opacity: 1;
        transform: none;
    }
}

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

@media (max-width: 991.98px) {
    .ent-hero {
        padding-top: 140px;
    }

    .ent-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ent-journey {
        padding-left: 56px;
    }

    .ent-journey::before {
        left: 17px;
    }

    .ent-step {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 70px;
    }

    .ent-step:nth-child(even) .ent-step__text {
        order: 0;
    }

    .ent-step__node {
        left: -56px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .ent-step__media {
        max-width: 520px;
    }
}

@media (max-width: 575.98px) {
    .ent-hero__lead {
        font-size: 16px;
    }

    .ent-journey {
        padding-left: 42px;
    }

    .ent-journey::before {
        left: 11px;
    }

    .ent-step__node {
        left: -42px;
        width: 24px;
        height: 24px;
        border-width: 1.5px;
        font-size: 12px;
        box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
    }

    .ent-costs,
    .ent-safe {
        grid-template-columns: 1fr;
    }

    .ent-hub {
        grid-template-columns: 1fr;
    }

    .ent-hub__core {
        width: 100%;
        height: 72px;
        flex-direction: row;
    }

    .ent-hub__core::before,
    .ent-hub__core::after {
        display: none;
    }

    .ent-cta__box {
        padding: 30px 22px;
    }

    .ent-project__body {
        padding: 24px 22px;
    }
}
