/* =====================================================================
   TechAzhon · AI ecosystem hero (home page)
   White hero with a Three.js AI core (ai-ecosystem-hero.js) and HTML
   glass cards. Scoped under .eco-hero; reuses .pxh-* helpers
   (pxh-wrap, pxh-btn, pxh-reveal, pxh-eyebrow, pxh-serif).
   Layouts: "orbit" (cards around the core) at >= 1280px,
            "carousel" (core above a swipeable card row) below that.
   ===================================================================== */

.eco-hero {
    --eco-navy: #0b1530;
    --eco-blue: #2563eb;
    --eco-cyan: #0891b2;
    --eco-gold: #b07d28;
    --eco-gold-2: #c99a45;
    /* one colour per business pillar; the 3D rings read these too */
    --eco-fsm: #b8862f;
    --eco-crm: #2563eb;
    --eco-ai: #0891b2;
    --eco-data: #4f46e5;
    --eco-cloud: #0ea5e9;
    --eco-exp: #0d9488;
    /* page tokens re-pointed for the hero */
    --px-ink: #0b1530;
    --px-ink-2: #3b4766;
    --px-muted: #5d6a88;
    --px-line: rgba(15, 30, 70, .09);
    --px-line-2: rgba(15, 30, 70, .18);
    --eco-glass: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 250, 255, .92));
    --eco-core-h: 360px;

    position: relative; isolation: isolate; overflow: hidden;
    padding: 56px 0 44px;
    background: #ffffff;
    color: var(--px-ink-2);
}
.eco-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 50% at 72% 48%, rgba(37, 99, 235, .08), transparent 70%),
        radial-gradient(24% 28% at 74% 52%, rgba(8, 145, 178, .07), transparent 70%),
        #ffffff; }
.eco-hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .7;
    background-image: radial-gradient(rgba(37, 70, 160, .16) 1px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(60% 70% at 70% 45%, #000, transparent 75%);
    mask-image: radial-gradient(60% 70% at 70% 45%, #000, transparent 75%); }

.eco-hero .pxh-wrap.eco-hero-inner { max-width: 1400px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.eco-hero-copy { max-width: 560px; }

.eco-hero .eco-eyebrow { margin-bottom: 26px; }
.eco-hero-title { font-size: clamp(36px, 3.5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.03em; }
html body .pxh .eco-hero-title { color: var(--px-ink); }
.eco-hero-title .eco-gold { display: inline; font-size: 1.08em; letter-spacing: -0.015em;
    background: linear-gradient(100deg, #9c6b1c 0%, #c4913a 55%, #a8741f 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--eco-gold); }
.eco-hero-lede { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--px-ink-2); margin-top: 24px; max-width: 540px; }

.eco-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.eco-btn-primary { background: var(--eco-navy); color: #ffffff !important; box-shadow: 0 14px 30px -14px rgba(11, 21, 48, .6), inset 0 0 0 1px rgba(201, 154, 69, .35); }
.eco-btn-primary:hover, .eco-btn-primary:focus { background: #13204a; color: #ffffff !important; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(11, 21, 48, .7), inset 0 0 0 1px rgba(201, 154, 69, .6); }
.eco-btn-ghost { background: #ffffff; border-color: var(--px-line-2); color: var(--px-ink) !important; }
.eco-btn-ghost:hover, .eco-btn-ghost:focus { background: #f5f8ff; border-color: rgba(37, 99, 235, .45); color: var(--px-ink) !important; transform: translateY(-2px); }
.eco-btn-ghost i { font-size: 13px; }
.eco-hero a.eco-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--px-ink-2); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.eco-hero a.eco-wa i { color: #16a34a; font-size: 16px; }
.eco-hero a.eco-wa:hover { color: var(--px-ink); border-bottom-color: rgba(22, 163, 74, .45); }

.eco-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--px-line); font-size: 13.5px; color: var(--px-ink-2); }
.eco-trust li { display: inline-flex; align-items: center; gap: 8px; }
.eco-trust i { color: var(--eco-gold); }

/* ---------- Stage ---------- */
.eco-scene { position: relative; min-width: 0; }
.eco-stage { position: relative; --cx: 50%; --cy: 50%; --cr: 56px; }
.eco-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.eco-stage.is-3d .eco-canvas { opacity: 1; }

/* CSS core: shown until WebGL is up, and kept when WebGL is unavailable */
.eco-fallback { position: absolute; z-index: 0; pointer-events: none; left: var(--cx); top: var(--cy);
    width: calc(var(--cr) * 7); height: calc(var(--cr) * 7); transform: translate(-50%, -50%); transition: opacity 1s ease; }
.eco-fallback b { position: absolute; left: 50%; top: 50%; width: calc(var(--cr) * 1.5); height: calc(var(--cr) * 1.5); transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffffff 0%, #9be8ff 16%, #2f6bff 52%, #12307a 88%);
    box-shadow: 0 0 50px 6px rgba(37, 99, 235, .22), 0 0 0 1px rgba(37, 99, 235, .25); }
.eco-fallback i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(37, 99, 235, .3); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.eco-fallback i:nth-child(1) { width: 56%; height: 18%; --r: -8deg; border-color: rgba(176, 125, 40, .55); }
.eco-fallback i:nth-child(2) { width: 78%; height: 26%; --r: 10deg; border-color: rgba(37, 99, 235, .4); }
.eco-fallback i:nth-child(3) { width: 98%; height: 32%; --r: -4deg; border-color: rgba(8, 145, 178, .35); }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; transition: opacity 1s ease; }
.eco-lines path { fill: none; stroke: rgba(60, 90, 170, .35); stroke-width: 1; stroke-dasharray: 3 5; transition: stroke .35s, stroke-width .35s; }
.eco-lines path.is-hl { stroke: var(--eco-c, #2563eb); stroke-width: 1.5; stroke-dasharray: none; }
.eco-stage.is-3d .eco-fallback, .eco-stage.is-3d .eco-lines { opacity: 0; }

.eco-core-label { position: absolute; z-index: 1; pointer-events: none; left: var(--cx); top: calc(var(--cy) + var(--cr) * 2.55); transform: translateX(-50%);
    font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--px-muted); white-space: nowrap; }
.eco-core-label span { color: var(--eco-gold); }

/* ---------- Cards ---------- */
.eco-cards { position: relative; z-index: 2; }
.eco-card {
    --eco-c: var(--eco-fsm);
    position: relative; min-width: 0; min-height: 132px; padding: 12px 13px;
    border-radius: 14px; background: var(--eco-glass);
    border: 1px solid rgba(15, 30, 70, .1);
    -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 18px 40px -22px rgba(15, 30, 70, .32), 0 1px 2px rgba(15, 30, 70, .05);
    font-size: 11.5px; line-height: 1.4; color: var(--px-ink-2);
    transition: border-color .4s, box-shadow .4s, transform .4s var(--px-ease, ease), opacity .4s;
}
.eco-card[data-pillar="crm"] { --eco-c: var(--eco-crm); }
.eco-card[data-pillar="ai"] { --eco-c: var(--eco-ai); }
.eco-card[data-pillar="data"] { --eco-c: var(--eco-data); }
.eco-card[data-pillar="cloud"] { --eco-c: var(--eco-cloud); }
.eco-card[data-pillar="exp"] { --eco-c: var(--eco-exp); }
.eco-card:hover { transform: translateY(-2px); }
.eco-card.is-hl {
    border-color: rgba(37, 99, 235, .4);
    border-color: color-mix(in srgb, var(--eco-c) 55%, transparent);
    box-shadow: 0 22px 46px -22px rgba(15, 30, 70, .4), 0 0 0 3px color-mix(in srgb, var(--eco-c) 12%, transparent);
}
.eco-flagship { border-color: rgba(176, 125, 40, .32); background: linear-gradient(180deg, #fffdf8, rgba(255, 255, 255, .95)); }
.eco-flagship::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--eco-gold-2), transparent); }

.eco-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.eco-ico { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: 12px;
    color: var(--eco-c); background: rgba(37, 99, 235, .1); background: color-mix(in srgb, var(--eco-c) 12%, transparent); }
html body .pxh .eco-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; line-height: 1.25; font-weight: 600; letter-spacing: -.005em; color: var(--px-ink); }
.eco-tag { flex: none; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a6116; background: rgba(201, 154, 69, .12); border: 1px solid rgba(176, 125, 40, .35); padding: 2px 7px; border-radius: 999px; }

/* connection port: where the data line meets the card */
.eco-port { position: absolute; z-index: 3; width: 7px; height: 7px; border-radius: 50%; background: var(--eco-c); box-shadow: 0 0 0 2px #ffffff; pointer-events: none; }
.eco-port::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--eco-c); opacity: .6; animation: ecoPort 2.4s ease-out infinite; }
@keyframes ecoPort { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }

/* status pills */
.eco-card .st { flex: none; font-style: normal; font-size: 9.5px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px; white-space: nowrap; }
.st-route { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.st-prog { background: rgba(8, 145, 178, .1); color: #0e7490; }
.st-done { background: rgba(5, 150, 105, .1); color: #047857; }
.st-p1 { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.st-lead { background: rgba(201, 154, 69, .14); color: #8a6116; }

/* Opsenva FSM */
.eco-queue { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 10.5px; color: var(--px-muted); }
.eco-queue span { flex: 1; }
.eco-queue b { font-weight: 600; font-size: 10px; color: var(--px-ink); background: rgba(15, 30, 70, .05); padding: 2px 6px; border-radius: 6px; }
.eco-wo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id st" "t st"; column-gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--px-line); }
.eco-wo-id { grid-area: id; font-size: 9.5px; letter-spacing: .04em; color: var(--px-muted); font-variant-numeric: tabular-nums; }
.eco-wo-t { grid-area: t; color: var(--px-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eco-wo .st { grid-area: st; }
.eco-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--px-line); }
.eco-steps li { position: relative; padding-top: 12px; text-align: center; font-size: 9px; color: var(--px-muted); white-space: nowrap; }
.eco-steps li::before { content: ""; position: absolute; top: 3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: rgba(15, 30, 70, .16); z-index: 1; }
.eco-steps li + li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 1px; background: rgba(15, 30, 70, .12); }
.eco-steps li.is-done::before { background: var(--eco-gold-2); }
.eco-steps li.is-now { color: var(--px-ink); font-weight: 600; }
.eco-steps li.is-now::before { background: var(--eco-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.eco-steps li.is-now::after, .eco-steps li.is-done::after { background: var(--eco-gold-2); }
.eco-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 7px; font-size: 9.5px; color: var(--px-muted); }
.eco-by b { color: var(--eco-gold); font-weight: 600; }

/* dispatch */
.eco-techs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.eco-techs li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--px-ink); }
.eco-techs em { font-style: normal; font-size: 9px; color: var(--px-muted); }
.eco-techs em.on { color: #047857; }
.eco-card .av { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 8.5px; font-weight: 700; color: var(--eco-navy); background: linear-gradient(135deg, #dbe6ff, #a9c3ff); }
.eco-sched { position: relative; height: 8px; margin: 9px 0 8px; border-radius: 4px; background: rgba(15, 30, 70, .06); }
.eco-sched span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgba(37, 99, 235, .55); }
.eco-sched span.p1 { background: rgba(220, 38, 38, .6); }
.eco-prio { display: flex; align-items: center; gap: 6px; color: var(--px-ink); margin-bottom: 7px; }
.eco-ai { display: flex; gap: 7px; padding: 7px 8px; border-radius: 9px; font-size: 10.5px; line-height: 1.4; color: var(--px-ink-2);
    background: linear-gradient(100deg, rgba(8, 145, 178, .07), rgba(37, 99, 235, .06)); border: 1px solid rgba(8, 145, 178, .2); }
.eco-ai i { color: var(--eco-cyan); }
.eco-ai b { color: var(--px-ink); font-weight: 600; }

/* technician app */
.eco-app { display: flex; gap: 10px; align-items: stretch; }
.eco-phone { flex: 0 0 104px; padding: 7px 6px; border-radius: 14px; background: #f5f8ff; border: 1px solid rgba(15, 30, 70, .14); box-shadow: inset 0 0 0 3px #ffffff, 0 8px 18px -10px rgba(15, 30, 70, .3); font-size: 9px; }
.eco-phone-top { font-weight: 600; color: var(--px-ink); padding: 0 2px 4px; border-bottom: 1px solid var(--px-line); }
.eco-phone-job { display: flex; flex-direction: column; padding: 5px 2px; }
.eco-phone-job b { color: var(--px-ink); font-weight: 600; }
.eco-phone-job span { color: var(--px-muted); }
.eco-phone-job .nav { color: #1d4ed8; margin-top: 2px; }
.eco-check li { position: relative; padding: 2px 0 2px 13px; color: var(--px-ink-2); }
.eco-check li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 7px; height: 7px; border-radius: 2px; border: 1px solid rgba(15, 30, 70, .3); }
.eco-check li.ok::before { background: var(--eco-exp); border-color: var(--eco-exp); }
.eco-app-side { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; font-size: 10px; }
.eco-app-side span { display: flex; gap: 6px; align-items: flex-start; }
.eco-off { color: #a16207; }
.eco-photo { color: var(--px-ink-2); }
.eco-complete { color: #047857; font-weight: 600; }

/* CRM */
.eco-cust { display: flex; align-items: center; gap: 8px; }
.eco-cust div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eco-cust b { color: var(--px-ink); font-weight: 600; }
.eco-cust span { font-size: 10px; color: var(--px-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eco-hist { display: flex; gap: 5px; margin: 8px 0 7px; }
.eco-hist span { font-size: 9.5px; padding: 3px 6px; border-radius: 6px; background: rgba(15, 30, 70, .05); color: var(--px-ink-2); white-space: nowrap; }
.eco-sync { margin-top: 7px; font-size: 10px; color: #1d4ed8; display: flex; gap: 6px; align-items: center; }

/* voice */
.eco-call { display: flex; align-items: center; gap: 7px; }
.eco-call b { color: var(--px-ink); font-weight: 600; white-space: nowrap; }
.eco-call span:last-child { margin-left: auto; font-size: 9.5px; color: var(--px-muted); white-space: nowrap; }
.eco-wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.eco-wave i { width: 2px; height: 100%; border-radius: 1px; background: var(--eco-ai); animation: ecoWave 1.1s ease-in-out infinite; }
.eco-wave i:nth-child(2) { animation-delay: -.2s; } .eco-wave i:nth-child(3) { animation-delay: -.45s; } .eco-wave i:nth-child(4) { animation-delay: -.7s; } .eco-wave i:nth-child(5) { animation-delay: -.9s; }
@keyframes ecoWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eco-hero .eco-sum { margin: 6px 0 7px; font-size: 10.5px; color: var(--px-ink-2); }
.eco-flow { display: flex; flex-wrap: wrap; gap: 4px 3px; }
.eco-flow li { display: inline-flex; align-items: center; gap: 3px; padding: 0; font-size: 9.5px; color: var(--px-ink); white-space: nowrap; }
.eco-flow li + li::before { content: "\2192"; color: var(--px-muted); margin-right: 1px; }
.eco-alert { margin-top: 7px; font-size: 10px; color: #a16207; display: flex; gap: 6px; }

/* GST & UPI */
.eco-inv { display: flex; gap: 10px; align-items: center; }
.eco-inv-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 10px; font-variant-numeric: tabular-nums; }
.eco-inv-lines span { display: flex; justify-content: space-between; gap: 6px; color: var(--px-ink); }
.eco-inv-lines span:first-child { color: var(--px-muted); font-size: 9.5px; letter-spacing: .03em; }
.eco-inv-lines em { font-style: normal; color: var(--px-muted); white-space: nowrap; }
.eco-inv-lines .tot { border-top: 1px solid var(--px-line); padding-top: 2px; margin-top: 1px; font-weight: 700; }
.eco-qr { flex: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(15, 30, 70, .14); background: #ffffff center / 36px 36px no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' shape-rendering='crispEdges' fill='%230b1530'><path d='M0 0h7v7H0zM1 1v5h5V1zM2 2h3v3H2zM14 0h7v7h-7zM15 1v5h5V1zM16 2h3v3h-3zM0 14h7v7H0zM1 15v5h5v-5zM2 16h3v3H2zM8 0h2v1H8zM11 1h2v2h-2zM8 3h1v3H8zM10 4h3v1h-3zM9 8h3v2H9zM0 8h2v1H0zM3 8h3v2H3zM14 8h2v1h-2zM17 9h4v1h-4zM8 11h2v3H8zM12 11h3v1h-3zM16 12h2v2h-2zM19 11h2v3h-2zM11 13h2v2h-2zM8 16h3v1H8zM14 15h3v2h-3zM18 15h1v3h-1zM9 18h2v3H9zM12 18h4v1h-4zM20 17h1v4h-1zM14 20h4v1h-4zM0 11h2v1H0zM4 11h2v2H4z'/></svg>"); }
.eco-paid { display: flex; align-items: center; gap: 6px; margin: 7px 0 6px; font-size: 10.5px; font-weight: 600; color: #047857; }

/* integrations */
.eco-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.eco-chips li { font-size: 10px; padding: 4px 8px; border-radius: 999px; color: var(--px-ink); background: rgba(14, 165, 233, .07); border: 1px solid rgba(14, 165, 233, .25); white-space: nowrap; }

/* analytics */
.eco-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 0; }
.eco-kpis div { min-width: 0; }
.eco-kpis dt { font-size: 9.5px; font-weight: 400; color: var(--px-muted); white-space: nowrap; }
.eco-kpis dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--px-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.eco-spark { display: block; width: 100%; height: 30px; margin-top: 6px; }
.eco-spark .a { fill: rgba(79, 70, 229, .08); }
.eco-spark .l { fill: none; stroke: var(--eco-data); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- Click / tap: capability detail ---------- */
.eco-hit { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.eco-hero .eco-hit:focus-visible { outline: 2px solid var(--eco-blue); outline-offset: 3px; border-radius: 15px; }
.eco-card.is-open { z-index: 5; }
/* at least the card's height; on short cards it grows downward over its neighbour */
.eco-back { position: absolute; left: 0; right: 0; top: 0; min-height: 100%; z-index: 4; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: inherit;
    border: 1px solid rgba(15, 30, 70, .14); box-shadow: 0 24px 50px -20px rgba(15, 30, 70, .4);
    background: #ffffff;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.eco-card.is-open .eco-back { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
html body .pxh .eco-back h4 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--px-ink); text-transform: none; letter-spacing: -.005em; line-height: 1.3; font-family: var(--px-sans); }
.eco-hero .eco-back p { flex: 1; font-size: 12px; line-height: 1.5; color: var(--px-ink-2); }
.eco-back-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eco-hero a.eco-more { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #1d4ed8; border-bottom: 1px solid rgba(29, 78, 216, .35); padding-bottom: 1px; }
.eco-hero a.eco-more:hover { color: var(--eco-navy); border-color: var(--eco-navy); }
.eco-close { font: inherit; font-size: 11.5px; color: var(--px-muted); background: transparent; border: 1px solid var(--px-line-2); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.eco-close:hover { color: var(--px-ink); border-color: rgba(15, 30, 70, .35); }

/* ---------- Step-through controls ---------- */
.eco-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.eco-step { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 14px;
    color: var(--px-ink); background: #ffffff; border: 1px solid var(--px-line-2); transition: background .3s, border-color .3s; }
.eco-step:hover { background: #f5f8ff; border-color: rgba(37, 99, 235, .45); }
.eco-hero .eco-status { min-width: 230px; text-align: center; font-size: 13px; color: var(--px-ink); }
.eco-status b { font-weight: 600; color: var(--eco-gold); margin-right: 6px; font-variant-numeric: tabular-nums; }
.eco-hero .eco-note { margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--px-muted); }

/* =====================================================================
   ORBIT layout (>= 1280px): 8 cards on a grid around the core
   ===================================================================== */
@media (min-width: 1280px) {
    .eco-cards {
        display: grid; min-height: 690px; gap: 14px 16px;
        grid-template-columns: minmax(200px, 236px) minmax(180px, 1fr) minmax(200px, 236px);
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "fsm int crm" "dsp . voice" "app bi gst";
    }
    .eco-card[data-side="l"] .eco-port { right: -4px; top: 50%; margin-top: -3.5px; }
    .eco-card[data-side="r"] .eco-port { left: -4px; top: 50%; margin-top: -3.5px; }
    .eco-card[data-side="t"] .eco-port { bottom: -4px; left: 50%; margin-left: -3.5px; }
    .eco-card[data-side="b"] .eco-port { top: -4px; left: 50%; margin-left: -3.5px; }
    .eco-card[data-area="fsm"] { grid-area: fsm; align-self: start; }
    .eco-card[data-area="crm"] { grid-area: crm; align-self: start; }
    .eco-card[data-area="dsp"] { grid-area: dsp; align-self: center; }
    .eco-card[data-area="voice"] { grid-area: voice; align-self: center; }
    .eco-card[data-area="app"] { grid-area: app; align-self: end; }
    .eco-card[data-area="gst"] { grid-area: gst; align-self: end; }
    .eco-card[data-area="int"] { grid-area: int; align-self: start; }
    .eco-card[data-area="bi"] { grid-area: bi; align-self: end; }
    .eco-card-mid { justify-self: center; width: 100%; max-width: 250px; }
    /* cards float every frame while the 3D scene runs: give them their own layers
       so moving them never repaints (halves frame time on integrated GPUs) */
    .eco-stage.is-3d .eco-card { will-change: translate; }

    /* the whole hero fits the first screen under the header (--eco-top is set by the JS) */
    .eco-hero { min-height: calc(100vh - var(--eco-top, 98px)); min-height: calc(100svh - var(--eco-top, 98px)); display: flex; align-items: center; }
    .eco-hero .pxh-wrap.eco-hero-inner { width: 100%; }
}

/* Shorter desktop screens (most laptops): compact cards keep the key lines,
   full detail stays one click away, and the copy column tightens. */
@media (min-width: 1280px) and (max-height: 1000px) {
    .eco-hero { padding: 20px 0; }
    .eco-hero .eco-eyebrow { margin-bottom: 16px; }
    .eco-hero-title { font-size: clamp(34px, min(3.4vw, 6.2vh), 52px); }
    .eco-hero-lede { margin-top: 16px; font-size: 16px; line-height: 1.55; }
    .eco-hero-ctas { margin-top: 22px; }
    .eco-hero a.eco-wa { margin-top: 12px; }
    .eco-trust { margin-top: 16px; padding-top: 14px; }

    .eco-cards { min-height: 440px; gap: 10px 14px; }
    .eco-card { min-height: 0; padding: 10px 12px; }
    .eco-head { margin-bottom: 7px; }
    .eco-queue, .eco-wo li:nth-child(3), .eco-steps, .eco-foot > span:first-child,
    .eco-techs, .eco-check, .eco-app-side .eco-photo, .eco-hist, .eco-sum, .eco-alert,
    .eco-card[data-area="gst"] .eco-flow, .eco-spark { display: none; }
    .eco-foot { justify-content: flex-end; margin-top: 4px; }
    .eco-sched { margin-top: 2px; }
    .eco-controls { margin-top: 10px; }
    .eco-step { width: 32px; height: 32px; }
    .eco-hero .eco-note { margin-top: 4px; }
}
/* very short windows: drop the eyebrow and tighten the copy further */
@media (min-width: 1280px) and (max-height: 700px) {
    .eco-hero .eco-eyebrow { display: none; }
    .eco-hero-title { font-size: clamp(32px, min(3.2vw, 6vh), 48px); }
    .eco-hero-lede { font-size: 15px; margin-top: 12px; }
    .eco-hero-ctas { margin-top: 16px; }
    .eco-trust { font-size: 12.5px; gap: 6px 16px; margin-top: 12px; padding-top: 10px; }
}

/* =====================================================================
   CAROUSEL layout (< 1280px): core on top, swipeable card row below
   ===================================================================== */
@media (max-width: 1279px) {
    .eco-hero .pxh-wrap.eco-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .eco-hero-copy { max-width: 720px; }
    .eco-cards {
        display: flex; gap: 12px; align-items: stretch;
        overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 32px;
        padding: calc(var(--eco-core-h) + 6px) 32px 14px; margin: 0 -32px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    }
    .eco-cards::-webkit-scrollbar { display: none; }
    .eco-card { flex: 0 0 clamp(264px, 31%, 300px); scroll-snap-align: center; }
    .eco-card:hover { transform: none; }
    .eco-card .eco-port { top: -4px; left: 50%; margin-left: -3.5px; }
    /* the data lines run downward here, so the label goes above the core */
    .eco-core-label { top: calc(var(--cy) - var(--cr) * 2.6); }
}
@media (max-width: 767px) {
    .eco-hero { --eco-core-h: 290px; padding: 40px 0 36px; }
    .eco-hero-title { font-size: clamp(31px, 8.6vw, 40px); }
    .eco-hero-lede { font-size: 16px; margin-top: 18px; }
    .eco-hero-ctas { margin-top: 26px; }
    .eco-hero-ctas .pxh-btn { width: 100%; }
    .eco-trust { gap: 8px 16px; font-size: 12.5px; }
    .eco-card { flex-basis: min(300px, 82vw); }
    .eco-hero .eco-status { min-width: 0; flex: 1; font-size: 12.5px; }
}
@media (max-width: 640px) {
    /* .pxh-wrap drops to 20px side padding here: bleed the card row to the screen edge */
    .eco-cards { scroll-padding: 0 20px; padding-left: 20px; padding-right: 20px; margin: 0 -20px; }
}

@media (prefers-reduced-motion: reduce) {
    .eco-canvas, .eco-fallback, .eco-lines, .eco-card, .eco-back { transition: none; }
    .eco-port::after, .eco-wave i { animation: none; }
}
