/*
 * EDI Integration Landing Page — CerebrumCity
 * Enqueue via functions.php:
 *   wp_enqueue_style( 'edi-integration', get_template_directory_uri() . '/css/edi-integration.css' );
 * Requires Poppins to already be loaded by the theme.
 * All classes are prefixed with .edi- to avoid conflicts with the theme.
 */

/* ══════════════════════════════════════
   DESIGN TOKENS — on :root so var() resolves
   everywhere regardless of DOM structure
══════════════════════════════════════ */
:root {
    --edi-bg:          #f4f7fb;
    --edi-bg-alt:      #eef2f8;
    --edi-white:       #ffffff;
    --edi-border:      rgba(30, 64, 120, 0.10);
    --edi-border-h:    rgba(30, 64, 120, 0.22);

    --edi-navy:        #0f2651;
    --edi-blue:        #1d6fc4;
    --edi-blue-light:  #3b8fd6;
    --edi-teal:        #0ea5c8;

    --edi-grad:        linear-gradient(135deg, #1d6fc4 0%, #0ea5c8 100%);
    --edi-grad-hero:   linear-gradient(160deg, #0f2651 0%, #163776 40%, #1d6fc4 80%, #0ea5c8 100%);
    --edi-grad-btn:    linear-gradient(135deg, #1d6fc4 0%, #0ea5c8 100%);

    --edi-text:        #0f2651;
    --edi-text-2:      #3d5a80;
    --edi-text-3:      #7a93b4;

    --edi-glass-bg:    rgba(255, 255, 255, 0.65);
    --edi-glass-b:     rgba(255, 255, 255, 0.90);
    --edi-glass-b-h:   rgba(29, 111, 196, 0.25);
    --edi-glass-blur:  18px;
    --edi-shadow:      0 4px 28px rgba(15, 38, 81, 0.09), 0 1px 4px rgba(15, 38, 81, 0.06);
    --edi-shadow-h:    0 8px 40px rgba(15, 38, 81, 0.14), 0 2px 8px rgba(15, 38, 81, 0.08);

    --edi-r:    16px;
    --edi-r-sm: 10px;
    --edi-font: 'Poppins', sans-serif;
    --edi-max-w: 1200px;
    --edi-gap:   5.5rem;
}

/* ══════════════════════════════════════
   BASE — scoped to the page wrapper id
══════════════════════════════════════ */
#edi-landing *,
#edi-landing *::before,
#edi-landing *::after {
    box-sizing: border-box;
}

#edi-landing {
    background: var(--edi-bg);
    color: var(--edi-text);
    font-family: var(--edi-font);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ══════════════════════════════════════
   THEME COLLISION OVERRIDES
   Force our backgrounds against the theme's
   global section/div colour rules
══════════════════════════════════════ */
#edi-landing section,
#edi-landing div {
    background-color: transparent;
}
.edi-hero            { background: linear-gradient(160deg, #09234d 0%, #201676 40%, #1d6fc4 80%, #0ea5c8 100%) !important; }
.edi-logos-strip     { background: #ffffff !important; }
.edi-stats           { background: linear-gradient(180deg, #daebff 0%, #dbd1fa, rgba(255, 255, 255, 1) 90%) !important; }
.edi-intro           { background: #ffffff !important; }
.edi-tab-sec         { background: linear-gradient(145deg, #fff 0%, #fff 10%, #daebff 30%, #dbd1fa9e, rgba(255, 255, 255, 1) 90%) !important; }
.edi-sol-sec         { background: #ffffff !important; }
.edi-testi-sec       { background: #eef2f8 !important; }
.edi-standards-sec   { background: #f4f7fb !important; }
.edi-int-sec         { background: #ffffff !important; }
.edi-ql-sec          { background: #eef2f8 !important; }
.edi-final-cta       { background: linear-gradient(160deg, #0f2651 0%, #163776 40%, #1d6fc4 80%, #0ea5c8 100%) !important; }
.edi-testi-card      { background: #ffffff !important; }
.edi-hero__card      { background: rgba(255,255,255,.14) !important; }
.edi-glass           { background: rgba(255,255,255,.65) !important; }
.edi-stat-card       { background: rgba(255,255,255,.65) !important; }
.edi-std-item        { background: #ffffff !important; }
.edi-int-item        { background: #f4f7fb !important; }
.edi-ql-item         { background: #ffffff !important; }
.edi-cta-card        { background: rgba(255,255,255,.12) !important; }

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.edi-wrap {
    width: 100%;
    max-width: var(--edi-max-w);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ══════════════════════════════════════
   GLASS CARD
══════════════════════════════════════ */
.edi-glass {
    background: var(--edi-glass-bg);
    backdrop-filter: blur(var(--edi-glass-blur));
    -webkit-backdrop-filter: blur(var(--edi-glass-blur));
    border: 1px solid var(--edi-glass-b);
    border-radius: var(--edi-r);
    box-shadow: var(--edi-shadow);
    transition: border-color .3s, box-shadow .3s, transform .25s;
}
.edi-glass:hover {
    border-color: var(--edi-glass-b-h);
    box-shadow: var(--edi-shadow-h);
}

/* ══════════════════════════════════════
   SECTION CHROME
══════════════════════════════════════ */
.edi-sec-label {
    display: inline-block;
    font-family: var(--edi-font);
    font-size: .71rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--edi-blue);
    background: rgba(29, 111, 196, .09);
    border: 1px solid rgba(29, 111, 196, .18);
    border-radius: 6px;
    padding: .22rem .9rem;
    margin-bottom: .85rem;
}

.edi-sec-title {
    font-family: var(--edi-font);
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--edi-navy);
    margin-bottom: 1.1rem;
}

.edi-sec-body {
    font-family: var(--edi-font);
    font-size: 1.05rem;
    color: var(--edi-text-2);
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.edi-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--edi-font);
    font-size: .92rem;
    font-weight: 500;
    border-radius: var(--edi-r-sm);
    padding: .72rem 1.65rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, filter .2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.edi-btn:hover { transform: translateY(-2px); }

.edi-btn--primary {
    background: var(--edi-grad-btn);
    color: #fff;
    box-shadow: 0 4px 18px rgba(29, 111, 196, .28);
}
.edi-btn--primary:hover {
    box-shadow: 0 8px 28px rgba(29, 111, 196, .38);
    filter: brightness(1.05);
}

.edi-btn--outline {
    background: transparent;
    color: var(--edi-blue);
    border: 1.5px solid var(--edi-blue);
}
.edi-btn--outline:hover { background: rgba(29, 111, 196, .06); }

.edi-btn--hero-primary {
    background: #ffffff;
    color: var(--edi-navy);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}
.edi-btn--hero-primary:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

.edi-btn--hero-ghost {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .92);
    border: 1.5px solid rgba(255, 255, 255, .28);
}
.edi-btn--hero-ghost:hover { background: rgba(255, 255, 255, .2); }

.edi-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--edi-font);
    font-size: .92rem;
    font-weight: 500;
    color: var(--edi-blue);
    text-decoration: none;
    margin-top: 1.2rem;
    transition: gap .2s;
}
.edi-link-arrow:hover { gap: .7rem; }

/* ══════════════════════════════════════
   BULLET LIST
══════════════════════════════════════ */
.edi-bullet-list {
    list-style: none;
    margin-top: .9rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 0;
}
.edi-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-family: var(--edi-font);
    font-size: .93rem;
    color: var(--edi-text-2);
}
.edi-bullet-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--edi-teal);
    margin-top: .52rem;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.edi-hero {
    background: var(--edi-grad-hero);
    position: relative;
    padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem);
    overflow: hidden;
}
.edi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.edi-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--edi-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.edi-hero .edi-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.edi-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--edi-font);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: .28rem 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.edi-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7ee8f8;
    box-shadow: 0 0 8px #7ee8f8;
    animation: edi-pulse 2s ease infinite;
}
@keyframes edi-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.65); }
}

.edi-hero__head {
    font-family: var(--edi-font);
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.09;
    color: #ffffff;
    margin-bottom: 1.3rem;
}
.edi-hero__head em {
    font-style: normal;
    color: #7ee8f8;
}

.edi-hero__sub {
    font-family: var(--edi-font);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 2.25rem;
    max-width: 500px;
    line-height: 1.75;
}

.edi-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.edi-hero__visual { display: flex; justify-content: flex-end; }

.edi-hero__card {
    width: 100%;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
    padding: 1.3rem;
    overflow: hidden;
    position: relative;
}
.edi-hero__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(126, 232, 248, .7), transparent);
}
.edi-hero__img { width: 100%; border-radius: 12px; display: block; }
.edi-hero__placeholder {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    color: rgba(255, 255, 255, .4);
    font-size: .85rem;
}

/* ══════════════════════════════════════
   LOGOS STRIP
══════════════════════════════════════ */
.edi-logos-strip {
    background: var(--edi-white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--edi-border);
}
.edi-logos__label {
    text-align: center;
    font-family: var(--edi-font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--edi-text-3);
    margin-bottom: 1.5rem;
}
.edi-logos__marquee-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.edi-logos__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: edi-logo-scroll 30s linear infinite;
}
.edi-logos__track:hover { animation-play-state: paused; }
@keyframes edi-logo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.edi-logo-chip {
    flex-shrink: 0;
    font-family: var(--edi-font);
    font-size: .8rem;
    font-weight: 600;
    color: var(--edi-text-3);
    white-space: nowrap;
    padding: .35rem .9rem;
    border: 1px solid var(--edi-border);
    border-radius: 9px;
    background: var(--edi-bg);
    transition: color .2s, border-color .2s;
}
.edi-logo-chip:hover { color: var(--edi-blue); border-color: rgba(29, 111, 196, .25); }

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.edi-stats { padding: var(--edi-gap) 0; }
.edi-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
.edi-stat-card {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    position: relative;
    overflow: hidden;
    transition: transform .25s;
}
.edi-stat-card:hover { transform: translateY(-3px); }
.edi-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--edi-grad);
    border-radius: 3px 3px 0 0;
}
.edi-stat-card__num {
    font-family: var(--edi-font);
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--edi-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.edi-stat-card__label {
    font-family: var(--edi-font);
    font-size: .85rem;
    color: var(--edi-text-2);
    line-height: 1.4;
}

/* ══════════════════════════════════════
   INTRO
══════════════════════════════════════ */
.edi-intro {
    padding: var(--edi-gap) 0;
    background: var(--edi-white);
}
.edi-intro__inner { max-width: 800px; }

/* ══════════════════════════════════════
   FEATURE TABS  /  SOLUTIONS TABS
══════════════════════════════════════ */
.edi-tab-sec {
    padding: var(--edi-gap) 0;
    border-top: 0px solid var(--edi-border);
}
.edi-sol-sec {
    padding: var(--edi-gap) 0;
    background: var(--edi-white);
    border-top: 1px solid var(--edi-border);
}

.edi-tabs { margin-top: 2.25rem; }

/* underline nav */
.edi-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--edi-border);
    margin-bottom: 2.5rem;
}
.edi-tab-btn {
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    color: var(--edi-text-3);
    font-family: var(--edi-font);
    font-size: .88rem;
    font-weight: 500;
    padding: .75rem 1.3rem;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    margin-bottom: -2px;
    white-space: nowrap;
}
.edi-tab-btn:hover { color: var(--edi-text-2); }
.edi-tab-btn.active { color: var(--edi-blue); border-bottom-color: var(--edi-blue); font-weight: 600; }

/* pill nav */
.edi-pills-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.25rem;
}
.edi-pill-btn {
    background: transparent;
    border: 1.5px solid var(--edi-border);
    border-radius: 8px;
    color: var(--edi-text-2);
    font-family: var(--edi-font);
    font-size: .83rem;
    font-weight: 500;
    padding: .42rem 1.1rem;
    cursor: pointer;
    transition: all .2s;
}
.edi-pill-btn:hover { color: var(--edi-navy); border-color: var(--edi-border-h); }
.edi-pill-btn.active {
    background: rgba(29, 111, 196, .09);
    border-color: rgba(29, 111, 196, .30);
    color: var(--edi-blue);
    font-weight: 600;
}

/* panels */
.edi-panel { display: none; }
.edi-panel.active { display: block; }

.edi-panel__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.edi-panel__text h3 {
    font-family: var(--edi-font);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--edi-navy);
    margin-bottom: .75rem;
    text-align: left;
}
.edi-panel__text p {
    font-family: var(--edi-font);
    color: var(--edi-text-2);
    line-height: 1.75;
    font-size: .97rem;
}
.edi-panel__img-wrap {
    flex: 1.5;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(6px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edi-panel__img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.edi-testi-sec {
    padding: var(--edi-gap) 0;
    background: var(--edi-bg-alt);
    border-top: 1px solid var(--edi-border);
}
.edi-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.edi-testi-card {
    background: var(--edi-white);
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    transition: transform .25s, box-shadow .25s;
}
.edi-testi-card:hover { transform: translateY(-3px); }
.edi-testi-card__icon { color: var(--edi-teal); opacity: .7; }
.edi-testi-card__text {
    font-family: var(--edi-font);
    font-size: .94rem;
    color: var(--edi-text-2);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
}
.edi-testi-card__footer {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-top: .9rem;
    border-top: 1px solid var(--edi-border);
}
.edi-testi-card__footer strong {
    font-family: var(--edi-font);
    font-size: .9rem;
    color: var(--edi-navy);
    font-weight: 600;
}
.edi-testi-card__footer span {
    font-family: var(--edi-font);
    font-size: .8rem;
    color: var(--edi-text-3);
}

/* ══════════════════════════════════════
   STANDARDS MARQUEE
══════════════════════════════════════ */
.edi-standards-sec {
    padding: var(--edi-gap) 0;
    background: var(--edi-bg);
    border-top: 1px solid var(--edi-border);
}
.edi-marquee-wrap {
    overflow: hidden;
    margin-top: 2.25rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.edi-marquee-track {
    display: flex;
    gap: .85rem;
    width: max-content;
    animation: edi-marquee 28s linear infinite;
}
.edi-marquee-track:hover { animation-play-state: paused; }
@keyframes edi-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.edi-std-item {
    flex-shrink: 0;
    padding: .8rem 1.6rem;
    min-width: 130px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edi-white);
    border: 1px solid var(--edi-border);
    border-radius: var(--edi-r-sm);
    box-shadow: 0 2px 8px rgba(15, 38, 81, .05);
    transition: border-color .2s, box-shadow .2s;
}
.edi-std-item:hover { border-color: rgba(29, 111, 196, .25); }
.edi-std-item span {
    font-family: var(--edi-font);
    font-size: .78rem;
    font-weight: 700;
    color: var(--edi-text-2);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.edi-std-item:hover span { color: var(--edi-blue); }
.edi-std-item img { max-width: 120px; max-height: 46px; object-fit: contain; }

/* ══════════════════════════════════════
   INTEGRATIONS
══════════════════════════════════════ */
.edi-int-sec {
    padding: var(--edi-gap) 0;
    background: var(--edi-white);
    border-top: 1px solid var(--edi-border);
}
.edi-int-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.25rem;
}
.edi-int-item {
    padding: .75rem 1.6rem;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edi-bg);
    border: 1px solid var(--edi-border);
    border-radius: var(--edi-r-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.edi-int-item:hover {
    border-color: rgba(29, 111, 196, .28);
    box-shadow: 0 4px 16px rgba(15, 38, 81, .08);
    transform: translateY(-2px);
}
.edi-int-item span {
    font-family: var(--edi-font);
    font-size: .83rem;
    font-weight: 600;
    color: var(--edi-text-2);
    transition: color .2s;
}
.edi-int-item:hover span { color: var(--edi-blue); }
.edi-int-item img { max-width: 100px; max-height: 36px; object-fit: contain; }

/* ══════════════════════════════════════
   QUICK LINKS
══════════════════════════════════════ */
.edi-ql-sec {
    padding: var(--edi-gap) 0;
    background: var(--edi-bg-alt);
    border-top: 1px solid var(--edi-border);
}
.edi-ql-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.edi-ql-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
    padding: 1.4rem 1.25rem;
    text-decoration: none;
    color: var(--edi-text);
    background: var(--edi-white);
    border: 1px solid var(--edi-border);
    border-radius: var(--edi-r);
    box-shadow: 0 2px 10px rgba(15, 38, 81, .05);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.edi-ql-item:hover {
    border-color: rgba(29, 111, 196, .28);
    box-shadow: 0 8px 28px rgba(15, 38, 81, .1);
    transform: translateY(-3px);
}
.edi-ql-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(14, 165, 200, .12);
}
.edi-ql-label {
    font-family: var(--edi-font);
    font-size: .9rem;
    font-weight: 500;
    color: var(--edi-navy);
}
.edi-ql-arrow {
    font-size: .82rem;
    color: var(--edi-blue);
    opacity: 0;
    transition: opacity .2s, transform .2s;
}
.edi-ql-item:hover .edi-ql-arrow { opacity: 1; transform: translateX(3px); }

/* ══════════════════════════════════════
   FINAL CTA
══════════════════════════════════════ */
.edi-final-cta {
    padding: var(--edi-gap) 0 calc(var(--edi-gap) * 1.3);
    background: var(--edi-grad-hero);
    position: relative;
    overflow: hidden;
}
.edi-final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.edi-cta-card {
    position: relative;
    max-width: 680px;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.edi-cta-card h2 {
    font-family: var(--edi-font);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}
.edi-cta-card p {
    font-family: var(--edi-font);
    color: rgba(255, 255, 255, .78);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    .edi-hero__content { animation: edi-fade-up .65s ease both; }
    .edi-hero__visual  { animation: edi-fade-up .65s ease .15s both; }
    @keyframes edi-fade-up {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
    .edi-hero .edi-wrap   { grid-template-columns: 1fr; }
    .edi-hero__visual     { order: -1; }
    .edi-panel__inner     { grid-template-columns: 1fr; }
    .edi-stats__grid      { grid-template-columns: repeat(2, 1fr); }
    .edi-testi-grid       { grid-template-columns: 1fr 1fr; }
    .edi-ql-grid          { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    :root                 { --edi-gap: 3.5rem; }
    .edi-testi-grid       { grid-template-columns: 1fr; }
    .edi-ql-grid          { grid-template-columns: 1fr 1fr; }
    .edi-stats__grid      { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════
   MOCK EDI CONSOLE DASHBOARD
   Shown in hero when no image is uploaded
══════════════════════════════════════ */
.edi-mock-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: .55rem .9rem;
    margin-bottom: 1rem;
}
.edi-mock-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.edi-mock-dot:nth-child(1) { background: #ff6b6b; }
.edi-mock-dot:nth-child(2) { background: #ffd166; }
.edi-mock-dot:nth-child(3) { background: #6bcb77; }
.edi-mock-url {
    flex: 1;
    font-family: var(--edi-font);
    font-size: .68rem;
    color: rgba(255,255,255,.45);
    text-align: center;
    letter-spacing: .04em;
}
.edi-mock-body { display: flex; flex-direction: column; gap: .9rem; }
.edi-mock-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .4rem;
}
.edi-mock-section-head h4 {
    font-family: var(--edi-font);
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin: 0;
}
.edi-mock-pill {
    font-size: .6rem;
    font-weight: 600;
    border-radius: 100px;
    padding: .14rem .55rem;
    letter-spacing: .05em;
}
.edi-mock-pill--live { background: rgba(107,203,119,.18); color: #6bcb77; border: 1px solid rgba(107,203,119,.28); }
.edi-mock-pill--warn { background: rgba(255,209,102,.15); color: #ffd166; border: 1px solid rgba(255,209,102,.25); }
.edi-mock-flow {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.edi-mock-node { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; }
.edi-mock-node-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; background: rgba(255,255,255,.1);
}
.edi-mock-node-label { font-size: .58rem; color: rgba(255,255,255,.6); text-align: center; line-height: 1.3; }
.edi-mock-conn { display: flex; flex-direction: column; align-items: center; gap: .15rem; flex-shrink: 0; }
.edi-mock-conn-line {
    width: 26px; height: 1.5px;
    background: linear-gradient(90deg, #7ee8f8, #a78bfa);
    position: relative;
}
.edi-mock-conn-line::after {
    content: '';
    position: absolute;
    right: -4px; top: -3px;
    border: 3.5px solid transparent;
    border-left: 5px solid #a78bfa;
}
.edi-mock-conn-label { font-size: .55rem; color: rgba(255,255,255,.4); letter-spacing: .03em; }
.edi-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.edi-mock-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .6rem;
    text-align: center;
}
.edi-mock-stat strong { display: block; font-family: var(--edi-font); font-size: .9rem; font-weight: 700; color: #7ee8f8; }
.edi-mock-stat span { font-size: .58rem; color: rgba(255,255,255,.5); }
.edi-mock-feed { display: flex; flex-direction: column; gap: .4rem; }
.edi-mock-feed-item {
    display: flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    padding: .45rem .7rem;
}
.edi-mock-feed-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.edi-mock-feed-text { flex: 1; font-size: .63rem; color: rgba(255,255,255,.65); line-height: 1.35; }
.edi-mock-feed-time { font-size: .58rem; color: rgba(255,255,255,.35); flex-shrink: 0; }