/* Client portal — Orbit layout (also styles the panel when slid onto the homepage) */

body.client-orbit {
    position: relative;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    color: #f4f6ff;
    background-color: #05060f;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 78% 32%, rgba(103, 232, 249, 0.7), transparent),
        linear-gradient(180deg, #07091a 0%, #05060f 42%, #0a0d22 100%);
    background-attachment: fixed;
}

body.client-orbit::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 36% at 16% 22%, rgba(34, 211, 238, 0.22), transparent 58%),
        radial-gradient(ellipse 38% 42% at 86% 12%, rgba(129, 140, 248, 0.22), transparent 56%),
        radial-gradient(ellipse 46% 34% at 48% 88%, rgba(167, 139, 250, 0.16), transparent 52%);
    filter: blur(16px);
}

body.client-orbit > .portal-stage {
    position: fixed;
    top: var(--site-header-min-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    background: transparent !important;
}

body.client-orbit .portal-panel {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.client-orbit > .main-nav {
    z-index: 5000 !important;
}

body.client-orbit .nav-links a:not(.btn),
body.home-orbit .nav-links a:not(.btn) {
    color: #e2e8f0 !important;
}

body.client-orbit .btn-primary,
.ent-portal-shell .btn-primary {
    background: linear-gradient(135deg, #22d3ee, #818cf8) !important;
    color: #061018 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.client-orbit .btn-login {
    color: #f8fafc !important;
    border-color: rgba(226, 232, 255, 0.5) !important;
    background: rgba(8, 12, 32, 0.55) !important;
}

.ent-portal-shell {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    color: #e8ecff;
    background: transparent !important;
}

.ent-portal-shell .ent-container {
    width: min(1180px, calc(100% - 8%));
    margin: 0 auto;
    padding: 0;
}

.ent-portal-shell .ent-hero {
    padding: 2rem 0 2.5rem;
    border: 0;
    overflow: visible;
}

.ent-portal-shell .ent-hero::before {
    display: none;
}

.ent-portal-shell .ent-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
}

.ent-portal-shell .ent-eyebrow {
    margin: 0 0 0.7rem;
    padding: 0;
    border: 0;
    color: #67e8f9;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.ent-portal-shell .ent-hero h1 {
    margin: 0 0 0.85rem;
    color: #f8fafc;
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.ent-portal-shell .ent-hero-lead {
    margin: 0 0 1.4rem;
    max-width: 38rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ent-portal-shell .ent-hero-actions {
    gap: 0.75rem;
}

.ent-portal-shell .ent-btn-ghost {
    color: #e2e8f0 !important;
    border: 1px solid rgba(165, 180, 252, 0.28);
    background: rgba(8, 12, 32, 0.45);
    border-radius: 10px;
}

.ent-portal-shell .ent-hero-panel {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
    background: rgba(12, 16, 36, 0.7);
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 20px;
}

.ent-portal-shell .ent-hero-stat {
    padding: 0.95rem 1.05rem;
    background: rgba(8, 12, 32, 0.45);
    border: 1px solid rgba(165, 180, 252, 0.12);
    border-radius: 14px;
}

.ent-portal-shell .ent-hero-stat-value {
    color: #67e8f9;
    font-size: 1.45rem;
}

.ent-portal-shell .ent-hero-stat-label {
    color: #94a3b8;
}

.ent-portal-shell .client-pipelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 0 0 1.5rem;
}

.ent-portal-shell .client-pipeline-card {
    padding: 1.2rem 1.3rem;
    background: rgba(12, 16, 36, 0.7);
    border: 1px solid rgba(165, 180, 252, 0.16);
    border-radius: 18px;
}

.ent-portal-shell .client-pipeline-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: #67e8f9;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ent-portal-shell .client-pipeline-card h3 {
    margin: 0 0 0.4rem;
    color: #f8fafc;
    font-size: 1.15rem;
}

.ent-portal-shell .client-pipeline-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
}

.ent-portal-shell .ent-section {
    padding: 1.75rem 0 2.4rem;
    background: transparent !important;
}

.ent-portal-shell .ent-section-head {
    max-width: none;
    margin: 0 0 1.35rem;
    text-align: left;
}

.ent-portal-shell .ent-section-head h2 {
    margin: 0 0 0.4rem;
    color: #f8fafc;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.ent-portal-shell .ent-section-head p {
    color: #94a3b8;
    font-size: 0.98rem;
}

.ent-portal-shell .ent-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.ent-portal-shell .ent-service-card {
    padding: 1.2rem 1.15rem;
    background: rgba(12, 16, 36, 0.7);
    border: 1px solid rgba(165, 180, 252, 0.16);
    border-radius: 18px;
}

.ent-portal-shell .ent-service-card:hover {
    transform: none;
    border-color: rgba(103, 232, 249, 0.35);
}

.ent-portal-shell .ent-service-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.85rem;
    background: rgba(103, 232, 249, 0.12);
    color: #67e8f9;
    border-radius: 10px;
    font-size: 0.95rem;
}

.ent-portal-shell .ent-service-card h3 {
    color: #f8fafc;
    font-size: 1.02rem;
}

.ent-portal-shell .ent-service-card p {
    color: #94a3b8;
    font-size: 0.88rem;
}

.ent-portal-shell .ent-industry-shell {
    background: rgba(12, 16, 36, 0.7);
    border: 1px solid rgba(165, 180, 252, 0.16);
    border-radius: 20px;
}

.ent-portal-shell .ent-industry-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem;
    background: transparent;
    border-bottom: 1px solid rgba(165, 180, 252, 0.12);
}

.ent-portal-shell .industry-btn {
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    cursor: pointer;
}

.ent-portal-shell .industry-btn.active {
    background: rgba(103, 232, 249, 0.14);
    color: #e0f2fe;
}

.ent-portal-shell .ent-industry-panel {
    padding: 1.25rem 1.3rem 1.4rem;
}

.ent-portal-shell .ent-industry-top h3 {
    margin: 0 0 0.4rem;
    color: #f8fafc;
}

.ent-portal-shell .ent-industry-top p,
.ent-portal-shell .ent-metric-label {
    color: #94a3b8;
}

.ent-portal-shell .ent-link {
    color: #67e8f9;
    text-decoration: none;
    font-weight: 700;
}

.ent-portal-shell .ent-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.ent-portal-shell .ent-metric {
    padding: 0.9rem 1rem;
    background: rgba(8, 12, 32, 0.5);
    border: 1px solid rgba(165, 180, 252, 0.12);
    border-radius: 14px;
}

.ent-portal-shell .ent-metric-value {
    display: block;
    color: #67e8f9;
    font-size: 1.35rem;
    font-weight: 800;
}

.ent-portal-shell .ent-process-grid,
.ent-portal-shell .ent-value-grid {
    display: grid;
    gap: 0.85rem;
}

.ent-portal-shell .ent-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ent-portal-shell .ent-value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ent-portal-shell .ent-process-card,
.ent-portal-shell .ent-value-card {
    padding: 1.2rem 1.15rem;
    background: rgba(12, 16, 36, 0.7);
    border: 1px solid rgba(165, 180, 252, 0.16);
    border-radius: 18px;
}

.ent-portal-shell .ent-process-num {
    display: block;
    margin-bottom: 0.65rem;
    color: #67e8f9;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.ent-portal-shell .ent-process-card h4,
.ent-portal-shell .ent-value-card h3 {
    margin: 0 0 0.45rem;
    color: #f8fafc;
}

.ent-portal-shell .ent-process-card p,
.ent-portal-shell .ent-value-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
}

.ent-portal-shell .ent-value-card i {
    margin-bottom: 0.7rem;
    color: #67e8f9;
}

.ent-portal-shell .ent-cta {
    padding: 0 0 2.5rem;
}

.ent-portal-shell .ent-cta-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.5rem;
    background: rgba(12, 16, 36, 0.72);
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 20px;
}

.ent-portal-shell .ent-cta-text h2 {
    margin: 0 0 0.35rem;
    color: #f8fafc;
    font-size: 1.45rem;
}

.ent-portal-shell .ent-cta-text p {
    margin: 0;
    color: #94a3b8;
}

.ent-portal-shell .ent-footer {
    padding: 1.4rem 0 2rem;
    border-top: 1px solid rgba(165, 180, 252, 0.14);
    background: transparent;
    text-align: left;
}

.ent-portal-shell .ent-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-bottom: 0.7rem;
    justify-content: flex-start;
}

.ent-portal-shell .ent-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}

.ent-portal-shell .ent-footer a:hover {
    color: #67e8f9;
}

.ent-portal-shell .ent-footer p {
    color: #64748b;
    font-size: 0.82rem;
}

body.client-orbit > .modal-overlay,
body.home-orbit > .modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    background: rgba(3, 6, 16, 0.9) !important;
}

body.client-orbit .modal-overlay.active,
body.home-orbit .modal-overlay.active {
    background: rgba(3, 6, 16, 0.9) !important;
}

body.client-orbit .modal-container,
body.home-orbit #demo-modal .modal-container,
body.home-orbit #dashboard-modal .modal-container {
    background: #10152c !important;
    border: 1px solid rgba(165, 180, 252, 0.22) !important;
    color: #e8ecff !important;
}

@media (max-width: 980px) {
    .ent-portal-shell .ent-hero-grid,
    .ent-portal-shell .client-pipelines,
    .ent-portal-shell .ent-services-grid,
    .ent-portal-shell .ent-process-grid,
    .ent-portal-shell .ent-value-grid,
    .ent-portal-shell .ent-metrics {
        grid-template-columns: 1fr;
    }

    .ent-portal-shell .ent-industry-tabs {
        overflow-x: auto;
    }
}
