/* =========================================
   E-DIGIT SYSTEMS HERO SECTION
========================================= */

/* -----------------------------------------
   Hero wrapper
----------------------------------------- */
.hero{

background:

radial-gradient(
circle at 78% 18%,
rgba(35,190,230,.22),
transparent 38%
),

radial-gradient(
circle at 20% 82%,
rgba(128,0,32,.07),
transparent 45%
),

linear-gradient(
135deg,

#46698F 0%,

#5D86AF 45%,

#7EB1D6 100%
);

}


/* Branded overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(5, 24, 48, 0.12) 0%,
            rgba(5, 24, 48, 0.05) 55%,
            rgba(5, 24, 48, 0.01) 100%
        );

    pointer-events: none;
}

/* Decorative wine glow */
.hero::before {
    content: "";

    position: absolute;
    left: -170px;
    bottom: -150px;
    z-index: 1;

    width: 480px;
    height: 480px;

    border-radius: 50%;

    background: rgba(160, 20, 55, 0.25);
    filter: blur(40px);

    pointer-events: none;
}

/* Decorative technology grid */
.hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );

    background-size: 56px 56px;

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.22) 55%,
            rgba(0, 0, 0, 0.7) 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.22) 55%,
            rgba(0, 0, 0, 0.7) 100%
        );

    pointer-events: none;
}

/* Main content container */
.hero-container {
    position: relative;
    z-index: 3;

    width: 100%;

    padding-top: 40px;
    padding-bottom: 110px;
}

/* -----------------------------------------
   Hero text content
----------------------------------------- */

.hero-content {
    position: relative;
    z-index: 4;

    max-width: 700px;
}

/* Eyebrow label */


.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    width: fit-content;

    margin-bottom: 1.4rem;
    padding: 0.58rem 0.95rem;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;

    background: rgba(128, 0, 32, 0.62);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hero-eyebrow i {
    color: #f4b400;
    font-size: 0.95rem;
}

/* ==========================================
   Main Headline
========================================== */

.hero-title {
    max-width: 680px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 5vw, 5.15rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
}

/* Supporting paragraph */
.hero-text {
    max-width: 610px;

    margin: 1.6rem 0 0;

    color: rgba(255, 255, 255, 0.90);

    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.75;
}
/* -----------------------------------------
   Hero calls to action
----------------------------------------- */

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

    margin-top: 2.2rem;
}

.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    min-height: 56px;
    padding: 0.9rem 1.65rem;

    border-radius: 7px;

    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Primary CTA */
.btn-primary-custom {
    border: 2px solid #a90028;

    background: #a90028;
    color: #ffffff;

    box-shadow:
        0 14px 30px rgba(128, 0, 32, 0.28);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);

    border-color: #c70a38;

    background: #c70a38;
    color: #ffffff;

    box-shadow:
        0 18px 38px rgba(128, 0, 32, 0.4);
}

.btn-primary-custom i {
    transition: transform 0.25s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(4px);
}

/* Secondary CTA */
.btn-secondary-custom {
    border: 2px solid rgba(255, 255, 255, 0.72);

    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;

    backdrop-filter: blur(6px);
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);

    border-color: #ffffff;

    background: #ffffff;
    color: #0b2545;
}

/* Keyboard accessibility */

.btn-primary-custom:focus-visible,
.btn-secondary-custom:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 4px;
}

/* -----------------------------------------
   Compact capability list
----------------------------------------- */

.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.35rem;

    margin: 2rem 0 0;
    padding: 0;

    list-style: none;
}

.hero-capabilities li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.9rem;
    font-weight: 600;
}

.hero-capabilities i {
    color: #f4b400;
    font-size: 0.85rem;
}

/* =========================================
   HERO DASHBOARD VISUAL
========================================= */

.hero-visual {
    position: relative;
    z-index: 3;

    max-width: 680px;

    margin-left: auto;
    padding: 2rem 0 3rem;
}

/* Dashboard glow */

.hero-visual-glow {
    position: absolute;
    top: 10%;
    left: 10%;

    width: 80%;
    height: 75%;

    border-radius: 50%;

    background: rgba(11, 154, 170, 0.30);
    filter: blur(75px);

    pointer-events: none;
}

/* Dashboard frame */

.hero-dashboard-frame {
    position: relative;
    z-index: 2;

    overflow: hidden;
    padding: 1.25rem;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(239, 244, 250, 0.96)
        );

box-shadow:

0 45px 90px rgba(0,0,0,.18),

0 12px 35px rgba(20,60,120,.15),

inset 0 1px 0 rgba(255,255,255,.9);

    color: #081f3d;

    transform:
        perspective(1200px)
        rotateY(-4deg)
        rotateX(1deg);
}

/* -----------------------------------------
   Dashboard header
----------------------------------------- */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 1rem;
}

.dashboard-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dashboard-label {
    color: #718096;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-header strong {
    color: #081f3d;
    font-size: 1.05rem;
}

/* Live status */
.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.35rem 0.65rem;

    border-radius: 999px;

    background: rgba(34, 197, 94, 0.1);
    color: #15803d;

    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-status i {
    font-size: 0.45rem;
}

/* -----------------------------------------
   Dashboard KPI cards
----------------------------------------- */

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;

    margin-bottom: 0.85rem;
}

.dashboard-kpi {
    min-width: 0;
    padding: 0.85rem;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #ffffff;
}

.dashboard-kpi span,
.dashboard-kpi strong,
.dashboard-kpi small {
    display: block;
}

.dashboard-kpi span {
    margin-bottom: 0.35rem;

    color: #64748b;

    font-size: 0.68rem;
    font-weight: 650;
}

.dashboard-kpi strong {
    margin-bottom: 0.25rem;

    color: #081f3d;

    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-kpi small {
    color: #718096;

    font-size: 0.62rem;
    line-height: 1.4;
}

.dashboard-kpi small i {
    color: #15803d;
}

/* -----------------------------------------
   Dashboard main content
----------------------------------------- */

.dashboard-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(150px, 0.8fr);

    gap: 0.85rem;
}

.dashboard-chart,
.dashboard-pipeline {
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #ffffff;
}

/* Chart card */
.dashboard-chart {
    padding: 0.9rem;
}

.chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.chart-heading div {
    display: flex;
    flex-direction: column;
}

.chart-heading span {
    color: #718096;
    font-size: 0.63rem;
}

.chart-heading strong {
    margin-top: 0.1rem;

    color: #081f3d;
    font-size: 0.82rem;
}

/* Illustrative bar chart */
.chart-bars {
    height: 150px;

    display: flex;
    align-items: flex-end;
    gap: 0.5rem;

    margin-top: 1rem;
    padding: 0 0.25rem 0.3rem;

    border-bottom: 1px solid #e2e8f0;

    background-image:
        linear-gradient(
            to top,
            rgba(8, 31, 61, 0.055) 1px,
            transparent 1px
        );

    background-size: 100% 33.33%;
}

.chart-bars span {
    flex: 1;

    min-width: 8px;
    height: var(--bar-height);

    border-radius: 5px 5px 1px 1px;

    background:
        linear-gradient(
            180deg,
            #a90028 0%,
            #800020 100%
        );

    box-shadow:
        0 5px 12px rgba(128, 0, 32, 0.16);
}

/* -----------------------------------------
   Data pipeline card
----------------------------------------- */

.dashboard-pipeline {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 0.9rem;
}

.pipeline-title {
    margin-bottom: 0.75rem;

    color: #64748b;

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.52rem 0.6rem;

    border-radius: 8px;

    background: #f8fafc;
    color: #334155;

    font-size: 0.68rem;
    font-weight: 700;
}

.pipeline-step i {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    border-radius: 7px;

    background: rgba(128, 0, 32, 0.09);
    color: #800020;

    font-size: 0.78rem;
}

.pipeline-connector {
    width: 1px;
    height: 9px;

    margin-left: 1.4rem;

    background: #cbd5e1;
}

/* -----------------------------------------
   Floating insight status card
----------------------------------------- */

.hero-status-card {
    position: absolute;
    right: -18px;
    bottom: 8px;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    min-width: 190px;
    padding: 0.85rem 1rem;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.24);

    color: #081f3d;
}

.hero-status-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 41px;
    height: 41px;

    border-radius: 10px;

    background: rgba(244, 180, 0, 0.14);
    color: #a16207;

    font-size: 1.1rem;
}

.hero-status-card span,
.hero-status-card strong {
    display: block;
}

.hero-status-card span {
    margin-bottom: 0.12rem;

    color: #64748b;
    font-size: 0.7rem;
}

.hero-status-card strong {
    color: #081f3d;
    font-size: 0.88rem;
}

.hero{

    position:relative;

    overflow:hidden;
}

.hero::after{

    content:"";

    position:absolute;

    left:-5%;
    bottom:-35px;

    width:110%;

    height:70px;

    background:#0d2b45;

    border-radius:50% 50% 0 0;

    z-index:4;
}
/* ==========================================================
   E-DIGIT HERO ATTENTION SYSTEM
   Technology → Data → Research synchronized with dashboard.
   ========================================================== */
.hero-title{max-width:720px}.hero-keyword{display:inline-block;margin:0;color:#fff;font:inherit;line-height:inherit;letter-spacing:inherit;transition:color 420ms ease,transform 420ms cubic-bezier(.16,1,.3,1),text-shadow 420ms ease,opacity 420ms ease}.hero-keyword.is-active{color:#8eefff;transform:translateY(-4px);text-shadow:0 8px 24px rgba(25,194,222,.24),0 0 18px rgba(25,194,222,.12)}.hero-keyword:not(.is-active){opacity:.96}
.hero.hero-motion:not(.hero-ready) .hero-eyebrow,.hero.hero-motion:not(.hero-ready) .hero-title,.hero.hero-motion:not(.hero-ready) .hero-text,.hero.hero-motion:not(.hero-ready) .hero-actions,.hero.hero-motion:not(.hero-ready) .hero-capabilities,.hero.hero-motion:not(.hero-ready) .hero-visual{opacity:0}.hero.hero-ready .hero-eyebrow{animation:heroFadeUp 620ms cubic-bezier(.16,1,.3,1) 80ms both}.hero.hero-ready .hero-title{animation:heroFadeUp 760ms cubic-bezier(.16,1,.3,1) 180ms both}.hero.hero-ready .hero-text{animation:heroFadeUp 720ms cubic-bezier(.16,1,.3,1) 330ms both}.hero.hero-ready .hero-actions{animation:heroFadeUp 700ms cubic-bezier(.16,1,.3,1) 470ms both}.hero.hero-ready .hero-capabilities{animation:heroFadeUp 700ms cubic-bezier(.16,1,.3,1) 600ms both}.hero.hero-ready .hero-visual{animation:heroVisualIn 900ms cubic-bezier(.16,1,.3,1) 260ms both}@keyframes heroFadeUp{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}@keyframes heroVisualIn{from{opacity:0;transform:translateX(34px) scale(.975)}to{opacity:1;transform:translateX(0) scale(1)}}
.hero-focus-target{transition:transform 420ms cubic-bezier(.16,1,.3,1),border-color 420ms ease,box-shadow 420ms ease,background-color 420ms ease}.hero-focus-target.is-highlighted{transform:translateY(-3px);border-color:rgba(25,194,222,.55);box-shadow:0 16px 34px rgba(8,31,61,.10),0 0 0 3px rgba(25,194,222,.08)}.dashboard-kpis.is-highlighted .dashboard-kpi{border-color:rgba(82,120,159,.28);box-shadow:0 8px 20px rgba(8,31,61,.055)}
.chart-bars span{transform-origin:bottom;transform:scaleY(1)}.hero.hero-ready .chart-bars span{animation:heroBarGrow 760ms cubic-bezier(.16,1,.3,1) both;animation-delay:calc(720ms + (var(--bar-index) * 75ms))}.dashboard-chart.is-highlighted .chart-bars span{animation:heroBarPulse 680ms cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--bar-index) * 55ms)}@keyframes heroBarGrow{from{transform:scaleY(0);opacity:.25}to{transform:scaleY(1);opacity:1}}@keyframes heroBarPulse{0%{transform:scaleY(1)}45%{transform:scaleY(1.08)}100%{transform:scaleY(1)}}
.dashboard-pipeline.is-highlighted .pipeline-step{animation:pipelineFocus 720ms cubic-bezier(.16,1,.3,1) both}.dashboard-pipeline.is-highlighted .pipeline-step:nth-of-type(2){animation-delay:60ms}.dashboard-pipeline.is-highlighted .pipeline-step:nth-of-type(4){animation-delay:130ms}.dashboard-pipeline.is-highlighted .pipeline-step:nth-of-type(6){animation-delay:200ms}.dashboard-pipeline.is-highlighted .pipeline-step:nth-of-type(8){animation-delay:270ms}@keyframes pipelineFocus{0%{background:#f8fafc;transform:translateX(0)}50%{background:#e7f7fb;transform:translateX(5px)}100%{background:#f8fafc;transform:translateX(0)}}
.hero.hero-ready .hero-status-card{animation:heroStatusIn 700ms cubic-bezier(.16,1,.3,1) 1.05s both}@keyframes heroStatusIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.hero-visual-glow{animation:heroGlowBreathe 6s ease-in-out infinite}@keyframes heroGlowBreathe{0%,100%{opacity:.72;transform:scale(1)}50%{opacity:1;transform:scale(1.055)}}
@media (max-width:991.98px){.hero-keyword.is-active{transform:translateY(-2px)}.hero.hero-ready .hero-visual{animation-name:heroFadeUp}}
@media (prefers-reduced-motion:reduce){.hero-eyebrow,.hero-title,.hero-text,.hero-actions,.hero-capabilities,.hero-visual,.hero-status-card,.hero-keyword,.hero-focus-target,.chart-bars span,.pipeline-step,.hero-visual-glow{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}.hero-keyword.is-active{color:#fff;text-shadow:none}}



/* ==========================================================
   HERO FAIL-SAFE
   Content is visible by default. Motion only hides content when
   JavaScript explicitly enables .hero-motion.
   ========================================================== */

.hero:not(.hero-motion) .hero-eyebrow,
.hero:not(.hero-motion) .hero-title,
.hero:not(.hero-motion) .hero-text,
.hero:not(.hero-motion) .hero-actions,
.hero:not(.hero-motion) .hero-capabilities,
.hero:not(.hero-motion) .hero-visual,
.hero:not(.hero-motion) .hero-status-card {
    opacity: 1;
    transform: none;
}

/* If JS loads, briefly establish the entrance state. */
.hero.hero-motion:not(.hero-ready) .hero-status-card {
    opacity: 0;
}


/* ==========================================================
   HERO HEADLINE FIX
   Keep Technology, Data & Research on a normal inline flow.
   ========================================================== */

.hero-title {
    max-width: 680px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-title .hero-keyword {
    display: inline;
    margin: 0;
    color: #ffffff;
    font: inherit;
    font-size: 1em;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
    white-space: normal;
}

/* Only the active word changes color/position. */
.hero-title .hero-keyword.is-active {
    display: inline-block;
    color: #9beeff;
    transform: translateY(-3px);
    text-shadow:
        0 8px 24px rgba(25, 194, 222, .20),
        0 0 16px rgba(25, 194, 222, .10);
}

/* Keep punctuation attached naturally to the surrounding words. */
.hero-title .hero-keyword:not(.is-active) {
    opacity: 1;
}

/* Prevent awkward orphaning of the final ampersand/word where possible. */
.hero-title .hero-title-tail {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: clamp(2.55rem, 12vw, 4rem);
        line-height: 1.04;
    }
}


/* ==========================================================
   HERO KEYWORD MOTION — VISIBLE VERSION
   Each keyword performs a short lift/slide when activated.
   ========================================================== */

.hero-title .hero-keyword {
    position: relative;
    display: inline-block;
    will-change: transform, color, opacity;
    transform: translateY(0) scale(1);
}

.hero-title .hero-keyword.is-active {
    color: #9beeff;
    animation: heroKeywordMove 780ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes heroKeywordMove {
    0% {
        opacity: .72;
        transform: translateY(18px) scale(.97);
    }
    55% {
        opacity: 1;
        transform: translateY(-7px) scale(1.035);
    }
    100% {
        opacity: 1;
        transform: translateY(-3px) scale(1);
    }
}

/* A very short underline sweep makes the active word obvious. */
.hero-title .hero-keyword::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.08em;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #19c2de, rgba(255,255,255,.15));
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
}

.hero-title .hero-keyword.is-active::after {
    animation: heroKeywordUnderline 620ms ease-out 100ms both;
}

@keyframes heroKeywordUnderline {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .hero-keyword,
    .hero-title .hero-keyword.is-active,
    .hero-title .hero-keyword::after,
    .hero-title .hero-keyword.is-active::after {
        animation: none !important;
        transform: none !important;
    }

    .hero-title .hero-keyword.is-active {
        color: #ffffff;
    }
}

