/* ==========================================================================
   ENTERPRISE — Redesigned client portal (dark theme)
   ========================================================================== */
@import url('site-header.css');

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

:root {
    --primary-blue: #0ea5e9;
    --light-blue: #38bdf8;
    --dark-bg: #0b1120;
    --surface: #111827;
    --surface-raised: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #94a3b8;
    --text-heading: #f8fafc;
}

.ent-page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--dark-bg);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ent-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Nav (bar + link sizing in site-header.css) --- */
.ent-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.portal-toggle-container {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.portal-btn {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.portal-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    transition: color 0.2s;
}

/* Logo badge — skeleton.css */
.ent-nav .logo-home-link {
    margin-right: 0.35rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff !important;
    padding: 12px 24px;
}

.btn-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn-login {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
}

.btn-login:hover {
    border-color: var(--light-blue);
    color: var(--light-blue) !important;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 10px;
}

.ent-btn-ghost {
    background: transparent;
    color: #e2e8f0 !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
}

.ent-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Hero --- */
.ent-hero {
    padding: 5rem 0 5.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.ent-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ent-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.ent-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    border: 1px solid var(--border);
    border-radius: 50px;
}

.ent-hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.12;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.ent-hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0 0 2rem;
    max-width: 560px;
}

.ent-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ent-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.ent-hero-stat {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ent-hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.ent-hero-stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

/* --- Sections --- */
.ent-section {
    padding: 5rem 0;
}

.ent-section:nth-child(even) {
    background: var(--surface);
}

.ent-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.ent-section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.ent-section-head p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-main);
    margin: 0;
}

/* --- Services --- */
.ent-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ent-service-card {
    padding: 1.75rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s, border-color 0.2s;
}

.ent-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.35);
}

.ent-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.ent-service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
}

.ent-service-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* --- Industries --- */
.ent-industry-shell {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.ent-industry-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
}

.industry-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.industry-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
}

.industry-btn.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.35);
    color: #fff;
}

.ent-industry-panel {
    padding: 2rem 2.25rem;
    min-height: 280px;
}

.industry-pane {
    display: none;
}

.industry-pane.active {
    display: block;
    animation: entFadeIn 0.35s ease;
}

@keyframes entFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ent-industry-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.industry-pane h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
}

.industry-pane p {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-main);
    margin: 0;
    max-width: 640px;
}

.ent-link {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ent-link:hover { color: #fff; }

.ent-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.ent-metric {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ent-metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.ent-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

/* --- Process --- */
.ent-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ent-process-card {
    padding: 1.75rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s;
}

.ent-process-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.ent-process-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 1rem;
}

.ent-process-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
}

.ent-process-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* --- Value --- */
.ent-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.ent-value-card {
    padding: 2rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s;
}

.ent-value-card:hover {
    transform: translateY(-3px);
}

.ent-value-card > i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.ent-value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.ent-value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* --- CTA --- */
.ent-cta {
    padding: 0 0 5rem;
}

.ent-cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.ent-cta-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
}

.ent-cta-text p {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

/* --- Footer --- */
.ent-footer {
    margin-top: auto;
    background: #0f172a;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 3rem 2rem;
}

.ent-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ent-footer .footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ent-footer .footer-links a:hover { color: #fff; }

.ent-footer p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Scroll reveal --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #0f172a;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 540px;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
}

.modal-close:hover { color: #fff; }

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: #fff;
    margin: 0 0 8px;
}

.modal-header p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.glass-modal {
    max-width: 820px !important;
    padding: 44px !important;
    background: rgba(15, 23, 42, 0.95) !important;
}

.dashboard-modal-split {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.split-card {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 32px 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.split-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 10px;
}

.split-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 24px;
    flex: 1;
}

.split-divider {
    width: 1px;
    background: var(--border);
}

.ent-modal-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.ent-modal-icon-alt { color: #fbbf24; }

.split-btn {
    width: 100%;
    margin-top: auto;
    padding: 14px;
}

.ent-split-outline {
    background: transparent !important;
    border: 2px solid #fbbf24 !important;
    color: #fbbf24 !important;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group { flex: 1; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group label {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    cursor: pointer;
}

.ent-form-submit {
    width: 100%;
    margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .ent-hero-grid {
        grid-template-columns: 1fr;
    }

    .ent-services-grid,
    .ent-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ent-industry-top {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ent-nav .nav-links { display: none; }

    .ent-services-grid,
    .ent-process-grid,
    .ent-metrics,
    .ent-value-grid {
        grid-template-columns: 1fr;
    }

    .ent-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .dashboard-modal-split {
        flex-direction: column;
    }

    .split-divider {
        width: 100%;
        height: 1px;
    }

    .glass-modal { padding: 28px !important; }

    .form-row { flex-direction: column; }
}
