/* =========================================================
   Vision theme — cinematic hero + module section 2
   ========================================================= */

.hp.hp--layout-vision {
    --vx-navy: #04122b;
    --vx-deep: #020814;
    --vx-blue: #3d9eff;
    --vx-blue-soft: #7ec8ff;
    --vx-ink: #0f172a;
    --vx-muted: #64748b;
    --vx-line: #e2e8f0;
    --vx-soft: #f1f5f9;
    --vx-accent: #2563eb;
    --pro-wrap: min(100%, calc(100% - clamp(2rem, 5vw, 5.5rem)));
    --pro-header-h: 58px;
    --pro-logo-h: none;
    background: #f8fafc !important;
    color: var(--vx-ink);
}

.hp.hp--layout-vision .hp-bg,
.hp.hp--layout-vision .hp-bg-overlay {
    display: none !important;
}

/* ── White header (logo readable) ── */
.hp.hp--layout-vision .hp-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--vx-line) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}
.hp.hp--layout-vision .hp-header.is-scrolled {
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}
.hp.hp--layout-vision .hp-header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem;
}
.hp.hp--layout-vision .hp-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.hp.hp--layout-vision .hp-header-end {
    flex: 0 0 auto;
    margin-left: auto;
}
.hp.hp--layout-vision .hp-header .hp-home-logo,
.hp.hp--layout-vision .hp-header-logo {
    width: auto !important;
    max-width: min(var(--hp-home-logo-width, 220px), 32vw) !important;
    height: auto !important;
    max-height: calc(var(--pro-header-h, 58px) - 14px) !important;
    object-fit: contain !important;
    object-position: left center !important;
}
.hp.hp--layout-vision .hp-nav-btn:not(.hp-nav-signin):not(.hp-nav-signup) {
    position: relative;
    color: #334155 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 0.55rem 1rem !important;
}
.hp.hp--layout-vision .hp-nav-btn:not(.hp-nav-signin):not(.hp-nav-signup):hover,
.hp.hp--layout-vision .hp-nav-btn:not(.hp-nav-signin):not(.hp-nav-signup):focus-visible {
    color: var(--vx-accent) !important;
    background: #eff6ff !important;
}
.hp.hp--layout-vision .hp-nav-signup {
    color: #0f172a !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}
.hp.hp--layout-vision .hp-nav-signin {
    border-radius: 10px !important;
}
.hp.hp--layout-vision .hp-menu-btn {
    color: #0f172a !important;
    background: var(--vx-soft) !important;
}
.hp.hp--layout-vision .hp-mobile-nav {
    background: #fff !important;
    border-top: 1px solid var(--vx-line);
}
.hp.hp--layout-vision .hp-mobile-nav a,
.hp.hp--layout-vision .hp-mobile-nav button {
    color: #0f172a !important;
}

/* ── Hexaware-style cinematic hero ── */
.hp.hp--layout-vision .hp-main {
    padding: 0 !important;
}
.vx-hero {
    position: relative;
    min-height: auto;
    padding: 2rem 0 2.25rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.vx-hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.vx-hero-bgmedia {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    filter: saturate(1.05) contrast(1.05) brightness(0.92);
    transform: none;
    animation: none;
}
.vx-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(2, 8, 20, 0.92) 0%, rgba(2, 8, 20, 0.62) 42%, rgba(2, 8, 20, 0.2) 72%, rgba(2, 8, 20, 0.45) 100%),
        linear-gradient(180deg, rgba(2, 8, 20, 0.35) 0%, rgba(2, 8, 20, 0.08) 40%, rgba(2, 8, 20, 0.7) 100%);
}
.vx-hero-glow {
    position: absolute;
    inset: auto auto -18% -8%;
    width: 52%;
    height: 68%;
    background: radial-gradient(circle at center, rgba(61, 158, 255, 0.32), transparent 68%);
    pointer-events: none;
}
.vx-hero-inner {
    position: relative;
    z-index: 1;
    width: var(--pro-wrap, min(100%, calc(100% - 5rem)));
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem 0 1.75rem;
    margin-left: max(clamp(1.25rem, 5.5vw, 6rem), calc((100% - var(--pro-wrap, 100%)) / 2));
}
.vx-kicker {
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--vx-blue-soft);
}
.vx-title {
    margin: 0 0 1.35rem;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(2.8rem, 6.4vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.038em;
    font-weight: 800;
}
.vx-title-line {
    display: block;
    color: #fff;
}
.vx-title-accent {
    display: block;
    color: var(--vx-blue);
}
.vx-lead {
    margin: 0 0 2rem;
    max-width: 36rem;
    font-size: clamp(1.05rem, 1.55vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}
.vx-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}
.vx-cta,
button.vx-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
}
.vx-cta:hover {
    color: var(--vx-blue-soft);
}
.vx-cta:hover i {
    transform: translateX(6px);
}
.vx-cta i {
    transition: transform 0.25s ease;
    font-size: 1.15em;
}

/* ── Section: capability cards ── */
.vx-modules {
    position: relative;
    padding: 4rem 0 4.5rem !important;
    background: #ffffff !important;
    overflow: hidden;
}
.vx-modules .hp-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, calc(100% - clamp(1rem, 2.5vw, 2.5rem))) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.vx-modules-head {
    margin: 0 auto 2.25rem;
    max-width: min(1100px, 92%);
    text-align: center;
}
.vx-modules-lead {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0a1f44;
    white-space: nowrap;
}
.vx-modules-lead--stack {
    white-space: normal;
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    line-height: 1.2;
    max-width: min(1100px, 94%);
    margin: 0 auto;
}
.vx-modules-sub {
    margin: 0.75rem auto 0;
    max-width: 720px;
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    line-height: 1.5;
    font-weight: 700;
    color: #475569;
}
.vx-modules-hint {
    display: none;
}
.vx-accent {
    color: #1d6ef5;
    font-weight: 800;
}

@media (max-width: 720px) {
    .vx-modules-lead:not(.vx-modules-lead--stack) {
        white-space: normal;
    }
}
.vx-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}
.vx-module-card {
    --vx-blue: #1d4ed8;
    --vx-blue-deep: #153e9c;
    position: relative;
    min-height: 360px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    isolation: isolate;
    color: #fff;
    background: #0b1f44;
    box-shadow: 0 12px 28px rgba(10, 31, 68, 0.14);
    animation: vx-enter 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(var(--vx-i, 0) * 0.06s);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vx-module-card:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1d6ef5;
}
.vx-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 31, 68, 0.2);
}
@keyframes vx-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Photo layer (default / closed) */
.vx-module-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.vx-module-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.7s ease;
}
.vx-module-card:hover .vx-module-bg img {
    transform: scale(1.1);
}
.vx-module-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 20, 48, 0.22) 0%,
        rgba(8, 20, 48, 0.4) 40%,
        rgba(8, 20, 48, 0.88) 100%
    );
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Hexaware blue reveal layer (open) */
.vx-module-blue {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, #2563eb 0%, #1d4ed8 48%, #1e3a8a 100%);
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.vx-module-card.is-open .vx-module-bg,
.vx-module-card.is-open .vx-module-shade {
    opacity: 0;
}
.vx-module-card.is-open .vx-module-blue {
    opacity: 1;
    transform: scale(1);
    animation: vx-blue-in 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.vx-module-card.is-closing .vx-module-blue {
    animation: vx-blue-out 0.32s ease forwards;
}
.vx-module-card.is-closing .vx-module-bg,
.vx-module-card.is-closing .vx-module-shade {
    opacity: 1;
}
@keyframes vx-blue-in {
    0% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes vx-blue-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.04); }
}

.vx-module-face {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 360px;
    padding: 1.35rem 1.35rem 1.25rem;
    text-align: center;
}

.vx-module-label {
    display: none;
}

.vx-module-title {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.vx-module-card.is-open .vx-module-title {
    transform: translateY(-2px);
}

/* Hidden until click — pop in / pop out */
.vx-module-detail {
    margin-top: 1rem;
    width: 100%;
    flex: 1 1 auto;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transform-origin: top center;
    pointer-events: none;
    text-align: left;
}
.vx-module-card.is-open .vx-module-detail {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: vx-detail-in 0.42s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
.vx-module-card.is-closing .vx-module-detail {
    animation: vx-detail-out 0.3s ease forwards;
}
@keyframes vx-detail-in {
    0% { opacity: 0; transform: translateY(22px) scale(0.92); }
    70% { opacity: 1; transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vx-detail-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(14px) scale(0.94); }
}
.vx-module-detail ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.vx-module-detail li {
    position: relative;
    padding-left: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}
.vx-module-detail li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

/* Circular chevron CTA */
.vx-module-go {
    margin-top: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.25s ease;
}
.vx-module-card:hover .vx-module-go {
    transform: translateX(3px);
}
.vx-module-card.is-open .vx-module-go {
    background: #fff;
    transform: rotate(90deg) scale(1.06);
}
.vx-module-card.is-open .vx-module-go i {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .vx-hero-bgmedia,
    .vx-module-card,
    .vx-module-bg img,
    .vx-module-detail {
        animation: none !important;
        transition: none !important;
    }
    .vx-module-card.is-open .vx-module-detail {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .vx-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vx-module-card,
    .vx-module-face {
        min-height: 320px;
    }
    .vx-hero-inner {
        margin-left: auto;
        max-width: none;
        padding: 1.25rem 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .vx-module-grid {
        grid-template-columns: 1fr;
    }
    .vx-module-card,
    .vx-module-face {
        min-height: 270px;
    }
    .hp.hp--layout-vision {
        --pro-header-h: 54px;
        --pro-logo-h: none;
    }
}

/* ── Vision below-fold polish ── */
.hp.hp--layout-vision .hp-section-title {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0b1f44;
}
.hp.hp--layout-vision .hp-section-sub {
    color: #64748b;
}
.hp.hp--layout-vision .hp-cta.hx-cta {
    background: #ffffff !important;
    padding: 0 0 4.5rem !important;
}
.hp.hp--layout-vision .hx-cta-band h2 {
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.hp.hp--layout-vision .hx-cta-btn,
.hp.hp--layout-vision .hx-contact-submit {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.5rem !important;
}
.hp.hp--layout-vision .hp-industry-card,
.hp.hp--layout-vision .inn-industry-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp.hp--layout-vision .hp-industry-card:hover,
.hp.hp--layout-vision .inn-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* ── Panel text — Zoho Agents–style Inter UI font ── */
.hp {
    --hp-panel-font: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hp-panel-title: #2c2c2c;
    --hp-panel-body: #555555;
}

.hp .vx-module-card,
.hp .hx-card,
.hp .hx-about-badge,
.hp .hx-about-panel,
.hp .hx-about-checks,
.hp .hx-contact-stage,
.hp .hx-contact-panel,
.hp .hx-contact-form,
.hp .hx-cta-band,
.hp .hx-cta-btn,
.hp .inn-industry-card,
.hp .hp-industry-card,
.hp .inn-sim-card,
.hp .inn-sim-body {
    font-family: var(--hp-panel-font) !important;
}

/* Panel titles */
.hp .vx-module-title,
.hp .hx-card h3,
.hp .hx-about-badge strong,
.hp .hx-about-panel-title,
.hp .hx-contact-panel-title,
.hp .hx-contact-form-title,
.hp .hx-contact-link strong,
.hp .hx-cta-band h2,
.hp .inn-industry-card h4,
.hp .hp-industry-card h4,
.hp .inn-sim-body h3 {
    font-family: var(--hp-panel-font) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.hp .hx-about-badge strong,
.hp .hx-contact-form-title,
.hp .inn-industry-card h4,
.hp .hp-industry-card h4,
.hp .inn-sim-body h3 {
    font-size: 1.125rem !important; /* ~18px */
    color: var(--hp-panel-title);
    line-height: 1.35 !important;
}

.hp .hx-card h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.hp .vx-module-title {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
    font-weight: 600 !important;
}

/* Panel body copy */
.hp .vx-module-detail,
.hp .vx-module-detail li,
.hp .hx-card p,
.hp .hx-about-badge span,
.hp .hx-about-checks li,
.hp .hx-contact-panel-sub,
.hp .hx-contact-link span,
.hp .hx-contact-form label,
.hp .hx-contact-form input,
.hp .hx-contact-form textarea,
.hp .hx-cta-band p,
.hp .inn-industry-card p,
.hp .hp-industry-card p,
.hp .inn-sim-body p,
.hp .inn-feed {
    font-family: var(--hp-panel-font) !important;
    font-weight: 400 !important;
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
}

.hp .hx-about-badge span,
.hp .inn-industry-card p,
.hp .hp-industry-card p,
.hp .inn-sim-body p {
    color: var(--hp-panel-body) !important;
}

.hp .hx-about-badge > span:last-child {
    color: rgba(226, 232, 240, 0.9) !important;
}

.hp .hx-about-badge-icon,
.hp .hx-about-badge-icon i {
    color: #ffffff !important;
}

.hp .hx-card p {
    color: rgba(255, 255, 255, 0.82) !important;
}

.hp .hx-about-badge strong {
    color: #ffffff !important;
}

.hp .hx-cta-btn,
.hp .hx-contact-submit {
    font-family: var(--hp-panel-font) !important;
    font-weight: 600 !important;
}
