/* ===================================================
   AI ENGINEERING & MODERNIZATION AUDIT PAGE
   Extends tokens from style.css (--primary, --navy, etc.)
   All rules namespaced with "ea-" to avoid collisions.
=================================================== */

body.ea-page {
    background: var(--navy);
}

.ea-page section[id] { scroll-margin-top: 88px; }

/* ---------- Scroll reveal ---------- */
.ea-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

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

/* Staggered reveal within any grid marked .ea-stagger */
.ea-stagger > .ea-reveal:nth-child(1)  { transition-delay: 0s; }
.ea-stagger > .ea-reveal:nth-child(2)  { transition-delay: .06s; }
.ea-stagger > .ea-reveal:nth-child(3)  { transition-delay: .12s; }
.ea-stagger > .ea-reveal:nth-child(4)  { transition-delay: .18s; }
.ea-stagger > .ea-reveal:nth-child(5)  { transition-delay: .24s; }
.ea-stagger > .ea-reveal:nth-child(6)  { transition-delay: .3s; }
.ea-stagger > .ea-reveal:nth-child(7)  { transition-delay: .36s; }
.ea-stagger > .ea-reveal:nth-child(8)  { transition-delay: .42s; }
.ea-stagger > .ea-reveal:nth-child(9)  { transition-delay: .48s; }
.ea-stagger > .ea-reveal:nth-child(10) { transition-delay: .54s; }
.ea-stagger > .ea-reveal:nth-child(11) { transition-delay: .6s; }
.ea-stagger > .ea-reveal:nth-child(12) { transition-delay: .66s; }

@media (prefers-reduced-motion: reduce) {
    .ea-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Shared section shell ---------- */
.ea-section { padding: 104px 0; position: relative; }
.ea-section-alt { background: rgba(255,255,255,.02); }
.ea-section-tight { padding: 72px 0; }

.ea-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 14px;
}

.ea-eyebrow::before {
    content: '';
    width: 16px;
    height: 1px;
    background: #93c5fd;
}

.ea-h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.ea-h2 span {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ea-lede {
    font-size: 1.05rem;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    max-width: 640px;
    margin: 0;
}

.ea-head { margin-bottom: 52px; }
.ea-head.center { text-align: center; }
.ea-head.center .ea-h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.ea-head.center .ea-lede { margin: 0 auto; }
.ea-head.center .ea-eyebrow::before { display: none; }

.ea-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
    transition: gap .25s ease, color .2s ease;
}

.ea-inline-link:hover { color: #bfdbfe; gap: 12px; }

/* ---------- Hero ---------- */
.ea-hero {
    background: radial-gradient(ellipse 120% 70% at 50% -10%, rgba(124,58,237,.35) 0%, transparent 55%),
                radial-gradient(ellipse 90% 60% at 85% 30%, rgba(37,99,235,.28) 0%, transparent 55%),
                linear-gradient(180deg, #0a0f1f 0%, #0f172a 45%, #0f172a 100%);
    padding: 156px 0 100px;
    position: relative;
    overflow: hidden;
}

.ea-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
    pointer-events: none;
}

.ea-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }

.ea-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,.14);
    border: 1px solid rgba(124,58,237,.4);
    color: #c4b5fd;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 26px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ea-hero-badge .ea-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 0 rgba(167,139,250,.6);
    animation: ea-pulse-dot 2.2s infinite;
}

@keyframes ea-pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(167,139,250,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(167,139,250,0); }
    100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); }
}

.ea-hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -.03em;
}

.ea-hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: ea-gradient-pan 6s ease infinite;
}

@keyframes ea-gradient-pan {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ea-hero-sub {
    font-size: 1.14rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto 36px;
}

.ea-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.ea-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(37,99,235,.5);
}

.ea-btn-primary:hover { background: var(--primary-dark); color:#fff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,.55); }

.ea-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,.22);
    transition: var(--transition);
}

.ea-btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

/* ---------- Hero trust chips ---------- */
.ea-hero-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 90px;
}

.ea-chip {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    padding: 5px 13px;
    transition: color .25s ease, border-color .25s ease;
}

.ea-chip:hover { color: #93c5fd; border-color: rgba(96,165,250,.45); }

/* ---------- Hero system map (hub & spoke) ---------- */
.ea-map {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.ea-map-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ea-map-col.ea-map-col-out { align-items: flex-end; }

.ea-map-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 2px;
}

.ea-map-col-out .ea-map-label { text-align: right; }

.ea-map-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    width: 100%;
    transition: border-color .4s ease, background .4s ease, transform .3s ease;
}

.ea-map-col-out .ea-map-node { flex-direction: row-reverse; text-align: right; }

.ea-map.is-visible .ea-map-node {
    border-color: rgba(96,165,250,.4);
    background: rgba(255,255,255,.06);
}

.ea-map-node:hover { transform: translateX(4px); }
.ea-map-col-out .ea-map-node:hover { transform: translateX(-4px); }

.ea-map-node .ea-map-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #60a5fa;
    flex-shrink: 0;
}

.ea-map-col-out .ea-map-node .ea-map-dot { background: #a78bfa; }

.ea-map.is-visible .ea-map-node .ea-map-dot {
    animation: ea-node-pulse 2.6s ease-in-out infinite;
    animation-delay: calc(var(--n, 0) * .18s);
}

@keyframes ea-node-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(96,165,250,.5); }
    50% { box-shadow: 0 0 0 5px rgba(96,165,250,0); }
}

.ea-map-col-out .ea-map-node .ea-map-dot { animation-name: ea-node-pulse-out; }

@keyframes ea-node-pulse-out {
    0%, 100% { box-shadow: 0 0 0 0 rgba(167,139,250,.5); }
    50% { box-shadow: 0 0 0 5px rgba(167,139,250,0); }
}

.ea-map-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 12px;
}

.ea-engine {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, rgba(96,165,250,.35), rgba(124,58,237,.25) 60%, transparent 75%);
    border: 1px solid rgba(167,139,250,.4);
}

.ea-engine::before,
.ea-engine::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(167,139,250,.18);
}

.ea-engine::after { inset: -32px; border-color: rgba(96,165,250,.1); }

.ea-map.is-visible .ea-engine::before { animation: ea-ring-pulse 3s ease-out infinite; }
.ea-map.is-visible .ea-engine::after { animation: ea-ring-pulse 3s ease-out infinite 1s; }

@keyframes ea-ring-pulse {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.18); opacity: 0; }
}

.ea-engine-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.ea-engine-core svg { width: 26px; height: 26px; color: #fff; }

.ea-engine-core span {
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 100px;
}

.ea-map-flowline {
    margin-top: 18px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    text-align: center;
    white-space: nowrap;
}

.ea-map-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease .3s;
}

.ea-map.is-visible .ea-map-links { opacity: 1; }

.ea-map-col, .ea-map-center { position: relative; z-index: 1; }

.ea-map-links .ea-link {
    fill: none;
    stroke-width: 1.5;
}

.ea-map-links .ea-link-in { stroke: rgba(96,165,250,.28); }
.ea-map-links .ea-link-out { stroke: rgba(167,139,250,.28); }

.ea-map-links .ea-flow-in { fill: #93c5fd; }
.ea-map-links .ea-flow-out { fill: #c4b5fd; }

@media (max-width: 991px) {
    .ea-map-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ea-map-node .ea-map-dot { animation: none !important; }
}

/* ---------- Problem cards ---------- */
.ea-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.ea-problem-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
    border-left: 3px solid rgba(251,191,36,.55);
    border-radius: 12px;
    padding: 18px 20px;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.ea-problem-card:has(.ea-problem-dot.danger) { border-left-color: rgba(248,113,113,.55); }

.ea-problem-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.16);
}

.ea-problem-dot {
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-top: 7px;
}

.ea-problem-dot.warn { background: #fbbf24; }
.ea-problem-dot.danger { background: #f87171; box-shadow: 0 0 0 0 rgba(248,113,113,.5); animation: ea-status-pulse 2.4s infinite; }

.ea-problem-card p {
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
    margin: 0;
}

/* ---------- Positioning: copy + layered stack ---------- */
.ea-pos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ea-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.ea-stack-layer {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(96,165,250,.22);
    border-radius: 10px;
    padding: 13px 18px;
    text-align: center;
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1),
                border-color .3s ease, background .3s ease;
    transition-delay: calc(var(--s, 0) * .1s + .15s);
}

.ea-stack.is-visible .ea-stack-layer { opacity: 1; transform: translateY(0); }

.ea-stack-layer:hover {
    border-color: rgba(96,165,250,.6);
    background: rgba(96,165,250,.1);
}

.ea-stack-layer span {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    letter-spacing: .01em;
}

.ea-stack-top {
    background: linear-gradient(135deg, rgba(37,99,235,.35), rgba(124,58,237,.3));
    border-color: rgba(167,139,250,.45);
}

.ea-stack-top span { color: #fff; }

.ea-stack-caption {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .ea-stack-layer { opacity: 1; transform: none; transition: border-color .3s ease, background .3s ease; }
}

/* ---------- Assess grid (8 premium cards) ---------- */
.ea-inspect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.ea-inspect-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ea-inspect-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(96,165,250,.65), rgba(167,139,250,.65));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.ea-inspect-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,.14); }
.ea-inspect-card:hover::before { opacity: 1; }

.ea-inspect-icon {
    grid-row: 1 / 3;
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(96,165,250,.14);
    color: #93c5fd;
    margin-top: 2px;
}

.ea-inspect-icon svg { width: 20px; height: 20px; }

.ea-inspect-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.ea-inspect-card p {
    font-size: 13px;
    color: rgba(255,255,255,.58);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Horizontal process flow ---------- */
.ea-flow { position: relative; }

.ea-flow-track {
    position: absolute;
    top: 21px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(96,165,250,.5), rgba(167,139,250,.5), rgba(52,211,153,.4));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.6s cubic-bezier(.16,1,.3,1) .2s;
}

.ea-flow.is-visible .ea-flow-track { transform: scaleX(1); }

.ea-flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.ea-flow-step {
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
    transition-delay: calc(var(--t, 0) * .16s + .3s);
}

.ea-flow.is-visible .ea-flow-step { opacity: 1; transform: translateY(0); }

.ea-flow-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid rgba(96,165,250,.5);
    color: #93c5fd;
    font-size: 14px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.ea-flow-step:hover .ea-flow-marker {
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(96,165,250,.12);
}

.ea-flow-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.ea-flow-step p {
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .ea-flow-track { display: none; }
    .ea-flow-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

@media (max-width: 575px) {
    .ea-flow-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ea-flow-track { transform: scaleX(1); transition: none; }
    .ea-flow-step { opacity: 1; transform: none; transition: none; }
}

/* ---------- Deliverables grid ---------- */
.ea-deliv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ea-deliv-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 18px 18px;
    transition: var(--transition);
}

.ea-deliv-item:hover { border-color: rgba(52,211,153,.4); background: rgba(255,255,255,.05); }

.ea-deliv-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(52,211,153,.15);
    color: #34d399;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}

.ea-deliv-icon svg { width: 16px; height: 16px; }

.ea-deliv-item span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.45;
}

/* ---------- Beyond the report (build grid) ---------- */
.ea-build-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ea-build-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition: var(--transition);
}

.ea-build-card:hover {
    border-color: rgba(167,139,250,.45);
    background: rgba(255,255,255,.06);
    transform: translateY(-4px);
}

.ea-build-icon {
    width: 40px; height: 40px;
    margin: 0 auto 14px;
    border-radius: 10px;
    background: rgba(167,139,250,.16);
    color: #c4b5fd;
    display: flex; align-items: center; justify-content: center;
}

.ea-build-icon svg { width: 20px; height: 20px; }

.ea-build-card span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.82);
    line-height: 1.4;
    display: block;
}

/* ---------- Differentiation comparison ---------- */
.ea-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.ea-compare-col {
    border-radius: 18px;
    padding: 32px 32px;
}

.ea-compare-them {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.08);
}

.ea-compare-us {
    background: linear-gradient(160deg, rgba(37,99,235,.16), rgba(124,58,237,.1));
    border: 1px solid rgba(96,165,250,.4);
    box-shadow: 0 16px 48px rgba(37,99,235,.16);
}

.ea-compare-col h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .01em;
    margin-bottom: 20px;
}

.ea-compare-them h3 { color: rgba(255,255,255,.5); }
.ea-compare-us h3 { color: #fff; }

.ea-compare-col ul { list-style: none; margin: 0; padding: 0; }

.ea-compare-col li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 0;
}

.ea-compare-them li { color: rgba(255,255,255,.5); }
.ea-compare-us li { color: rgba(255,255,255,.88); font-weight: 500; }

.ea-x, .ea-ck {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}

.ea-x { background: rgba(248,113,113,.12); color: #f87171; }
.ea-ck { background: rgba(52,211,153,.15); color: #34d399; }

.ea-compare-line {
    text-align: center;
    margin: 36px auto 0;
    max-width: 640px;
    font-size: 1.08rem;
    color: rgba(255,255,255,.6);
}

.ea-compare-line strong { color: #fff; font-weight: 700; }

/* ---------- Technical focus badges ---------- */
.ea-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}

.ea-tech-badge {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    padding: 8px 18px;
    transition: color .25s ease, border-color .25s ease, transform .25s ease, background .25s ease;
}

.ea-tech-badge:hover {
    color: #fff;
    border-color: rgba(96,165,250,.55);
    background: rgba(96,165,250,.1);
    transform: translateY(-2px);
}

/* ---------- Ideal clients ---------- */
.ea-fit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ea-fit-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 22px 20px;
    transition: var(--transition);
}

.ea-fit-card:hover { border-color: rgba(96,165,250,.35); background: rgba(255,255,255,.05); transform: translateY(-3px); }

.ea-fit-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(96,165,250,.14);
    color: #93c5fd;
    display: flex; align-items: center; justify-content: center;
}

.ea-fit-icon svg { width: 18px; height: 18px; }

.ea-fit-card p {
    font-size: 13.5px;
    color: rgba(255,255,255,.78);
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Sample report dashboard ---------- */
.ea-dash {
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,.4);
}

.ea-dash-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
}

.ea-dash-dots { display: flex; gap: 6px; }
.ea-dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }

.ea-dash-title {
    font-size: 12.5px;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    letter-spacing: .02em;
}

.ea-dash-tabs {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.ea-dash-tab {
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    padding: 5px 12px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.04);
    transition: color .2s ease, background .2s ease;
}

.ea-dash-tab:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }

.ea-dash-tab.active { color: #93c5fd; background: rgba(96,165,250,.15); }

.ea-dash-tab:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

.ea-dash-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ea-dash-hint {
    display: none;
    padding: 10px 20px 0;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    letter-spacing: .02em;
}

@media (max-width: 767px) {
    .ea-dash-hint { display: block; }
}

.ea-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.ea-table th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}

.ea-table td {
    padding: 16px 18px;
    font-size: 13.5px;
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.06);
    vertical-align: middle;
}

.ea-table tr:last-child td { border-bottom: none; }
.ea-table tbody tr { transition: background .2s ease; }
.ea-table tbody tr:hover { background: rgba(255,255,255,.03); }

.ea-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.ea-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }

.ea-pill-high { background: rgba(239,68,68,.15); color: #f87171; }
.ea-pill-high::before { background: #f87171; }
.ea-pill-medium { background: rgba(245,158,11,.15); color: #fbbf24; }
.ea-pill-medium::before { background: #fbbf24; }
.ea-pill-low { background: rgba(52,211,153,.15); color: #34d399; }
.ea-pill-low::before { background: #34d399; }

.ea-dash-note {
    padding: 12px 20px;
    font-size: 12px;
    color: rgba(255,255,255,.32);
    border-top: 1px solid rgba(255,255,255,.06);
}

/* ---------- Dashboard status dots + row stagger ---------- */
.ea-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.ea-status-high { background: #f87171; box-shadow: 0 0 0 0 rgba(248,113,113,.5); animation: ea-status-pulse 2s infinite; }
.ea-status-medium { background: #fbbf24; }
.ea-status-low { background: #34d399; }

@keyframes ea-status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.5); }
    70% { box-shadow: 0 0 0 5px rgba(248,113,113,0); }
}

.ea-table tbody tr {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease, background .2s ease;
    transition-delay: calc(var(--r, 0) * 90ms);
}

.ea-dash.is-visible .ea-dash-body.ea-rows-in .ea-table tbody tr { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .ea-table tbody tr { opacity: 1; transform: none; transition: background .2s ease; }
    .ea-status-high, .ea-problem-dot.danger { animation: none; }
}

/* ---------- Generic badges (used in tables) ---------- */
.ea-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
    line-height: 1.6;
}

.ea-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.ea-badge-danger { background: rgba(239,68,68,.14); color: #f87171; }
.ea-badge-danger::before { background: #f87171; }
.ea-badge-warn { background: rgba(245,158,11,.14); color: #fbbf24; }
.ea-badge-warn::before { background: #fbbf24; }
.ea-badge-ok { background: rgba(52,211,153,.14); color: #34d399; }
.ea-badge-ok::before { background: #34d399; }
.ea-badge-info { background: rgba(96,165,250,.14); color: #93c5fd; }
.ea-badge-info::before { background: #60a5fa; }

/* ---------- Generic live dot ---------- */
.ea-live-dot {
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 0 rgba(167,139,250,.6);
    animation: ea-pulse-dot 2.2s infinite;
    flex-shrink: 0;
}

.ea-dash-live { margin-right: 8px; vertical-align: middle; }

/* ---------- Scroll progress bar ---------- */
.ea-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    background: transparent;
    pointer-events: none;
}

.ea-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

/* ---------- Final CTA ---------- */
.ea-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ea-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 55%);
    pointer-events: none;
}

.ea-cta h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -.02em;
    position: relative;
}

.ea-cta p {
    color: rgba(255,255,255,.85);
    font-size: 1.08rem;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.ea-cta .ea-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 15px 34px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
    position: relative;
}

.ea-cta .ea-btn-white:hover { background: #f0f4ff; transform: translateY(-2px); }

.ea-cta-card {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    padding: 32px 36px;
    backdrop-filter: blur(6px);
}

.ea-cta-prompt {
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px !important;
    max-width: none !important;
}

.ea-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.ea-cta-alt {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.ea-cta-alt:hover { color: #fff; }

.ea-cta-scope {
    font-size: 12.5px;
    color: rgba(255,255,255,.6);
    margin: 0 !important;
    letter-spacing: .01em;
}

/* ---------- Trust strip (below hero) ---------- */
.ea-section-trust { padding: 44px 0 8px; position: relative; }

.ea-trust-card {
    background: linear-gradient(160deg, rgba(52,211,153,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(52,211,153,.28);
    border-radius: 18px;
    padding: 36px 40px;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.ea-trust-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    margin-bottom: 22px;
}

.ea-trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    margin-bottom: 22px;
}

.ea-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 100px;
    padding: 7px 16px;
}

.ea-trust-item .ea-ck { width: 16px; height: 16px; font-size: 9px; margin-top: 0; }

.ea-trust-copy {
    font-size: 13.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Featured offer card ---------- */
.ea-offer {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(37,99,235,.16), rgba(124,58,237,.09));
    border: 1px solid rgba(96,165,250,.4);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(37,99,235,.14);
    padding: 44px 46px 40px;
}

.ea-offer-flag {
    position: absolute;
    top: -13px;
    left: 44px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    border-radius: 100px;
    padding: 5px 14px;
}

.ea-offer h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.ea-offer-best {
    font-size: 14.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin-bottom: 28px;
}

.ea-offer-best strong { color: #fff; }

.ea-offer-includes {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 26px;
}

.ea-offer-includes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}

.ea-offer-includes .ea-ck { width: 18px; height: 18px; font-size: 10px; margin-top: 2px; }

.ea-offer-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.ea-price-tier {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 22px 24px;
}

.ea-price-tier.featured-tier {
    background: rgba(124,58,237,.14);
    border-color: rgba(167,139,250,.5);
}

.ea-price-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 6px;
}

.ea-price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.ea-price-note {
    font-size: 12.5px;
    color: rgba(255,255,255,.62);
    line-height: 1.6;
    margin: 0;
}

.ea-offer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.ea-offer-note {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
}

/* ---------- Report preview CTA (sample PDF placeholder) ---------- */
.ea-report-cta { text-align: center; margin-top: 32px; }

.ea-btn-disabled { opacity: .55; cursor: default; }
.ea-btn-disabled:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.22); background: transparent; }

.ea-report-cta-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: rgba(255,255,255,.42);
}

.ea-report-cta-note a { color: #93c5fd; font-weight: 600; }
.ea-report-cta-note a:hover { color: #bfdbfe; }

/* ---------- Evidence & confidence ---------- */
.ea-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.ea-evidence-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 24px 24px;
    transition: var(--transition);
}

.ea-evidence-card:hover { border-color: rgba(96,165,250,.35); background: rgba(255,255,255,.055); }

.ea-evidence-card .ea-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 12px; }

.ea-evidence-card p {
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Assessment request form ---------- */
.ea-request-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
}

.ea-request-list {
    list-style: none;
    margin: 28px 0;
    padding: 0;
}

.ea-request-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
    margin-bottom: 12px;
}

.ea-request-list .ea-ck { width: 20px; height: 20px; font-size: 11px; margin-top: 1px; }

.ea-request-alt { font-size: 14px; color: rgba(255,255,255,.55); margin: 0; }
.ea-request-alt a { color: #93c5fd; font-weight: 600; }
.ea-request-alt a:hover { color: #bfdbfe; }

.ea-form-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 38px 36px;
}

.ea-form-msg:not(:empty) { margin-bottom: 20px; }

.ea-form-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ea-form-group { margin-bottom: 18px; }

.ea-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    margin-bottom: 7px;
    letter-spacing: .01em;
}

.ea-req { color: #f87171; }

.ea-form-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ea-form-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,.18);
    background: rgba(255,255,255,.07);
}

.ea-form-input::placeholder { color: rgba(255,255,255,.32); }

select.ea-form-input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* native dropdown list renders on the OS surface — keep options legible */
select.ea-form-input option { color: var(--text); background: #fff; }

textarea.ea-form-input { resize: vertical; min-height: 104px; }

.ea-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: .01em;
    margin-top: 4px;
    box-shadow: 0 4px 20px rgba(37,99,235,.35);
}

.ea-submit-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,99,235,.45); }
.ea-submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }

.ea-form-note {
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    text-align: center;
    margin: 14px 0 0;
}

.ea-form-privacy-note {
    font-size: 12px;
    color: rgba(255,255,255,.38);
    line-height: 1.6;
    text-align: center;
    margin: 10px 0 0;
}

.ea-form-privacy-note a { color: #93c5fd; font-weight: 600; }
.ea-form-privacy-note a:hover { color: #bfdbfe; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ea-build-grid { grid-template-columns: repeat(3, 1fr); }
    .ea-fit-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .ea-section { padding: 76px 0; }
    .ea-hero { padding: 130px 0 70px; }
    .ea-request-grid { grid-template-columns: 1fr; gap: 40px; }
    .ea-evidence-grid { grid-template-columns: 1fr; max-width: 560px; }
    .ea-problem-grid { grid-template-columns: repeat(2, 1fr); }
    .ea-pos-grid { grid-template-columns: 1fr; gap: 48px; }
    .ea-deliv-grid { grid-template-columns: repeat(2, 1fr); }
    .ea-fit-grid { grid-template-columns: repeat(2, 1fr); }
    .ea-map { grid-template-columns: 1fr; gap: 40px; }
    /* compound selector needed to beat the base .ea-map-col.ea-map-col-out rule */
    .ea-map-col.ea-map-col-out { align-items: flex-start; }
    .ea-map-col-out .ea-map-node { flex-direction: row; text-align: left; }
    .ea-map-col-out .ea-map-label { text-align: left; }
    .ea-map-center { order: -1; }
    .ea-compare { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .ea-hero h1 { font-size: 2.1rem; }
    .ea-hero-badge { border-radius: 14px; line-height: 1.6; text-align: center; }
    .ea-hero-actions { flex-direction: column; align-items: stretch; }
    .ea-hero-actions .ea-btn-primary,
    .ea-hero-actions .ea-btn-secondary { justify-content: center; }
    .ea-hero-chips { margin-bottom: 64px; }
    /* Compact the system map: nodes in a 2-col grid instead of a long list */
    .ea-map { gap: 28px; }
    .ea-map-col,
    .ea-map-col.ea-map-col-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
    .ea-map-label { grid-column: 1 / -1; }
    .ea-map-node { font-size: 12px; padding: 9px 11px; gap: 8px; }
    .ea-map-node:hover,
    .ea-map-col-out .ea-map-node:hover { transform: none; }
    .ea-problem-grid { grid-template-columns: 1fr; }
    .ea-inspect-grid { grid-template-columns: 1fr; }
    .ea-deliv-grid { grid-template-columns: 1fr; }
    .ea-build-grid { grid-template-columns: repeat(2, 1fr); }
    .ea-fit-grid { grid-template-columns: 1fr; }
    .ea-head { margin-bottom: 36px; }
    .ea-engine { width: 120px; height: 120px; }
    .ea-compare-col { padding: 26px 22px; }
    .ea-cta-card { padding: 26px 22px; }
    .ea-cta-actions { flex-direction: column; gap: 12px; }
    .ea-trust-card { padding: 28px 22px; }
    .ea-offer { padding: 36px 24px 32px; }
    .ea-offer-flag { left: 24px; }
    .ea-offer-includes { grid-template-columns: 1fr; }
    .ea-offer-pricing { grid-template-columns: 1fr; }
    .ea-offer-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .ea-offer-actions .ea-btn-primary { justify-content: center; }
    .ea-form-card { padding: 28px 20px; }
    .ea-form-cols { grid-template-columns: 1fr; gap: 0; }
}
