/* ═══════════════════════════════════════════════════════════════════
   MIT Solutions — Product family banners (index.html #products)
   MIT Eyes · GenePulse · MIT Platform · MIT Stones.
   Each banner keeps its product's own accent; the card shell follows the
   site's classic (light) / glass (dark) themes via bundles.css tokens.
   ═══════════════════════════════════════════════════════════════════ */

.products-section { position: relative; padding: var(--space-3xl) 0 var(--space-4xl); }

.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.pd-banner {
    --pa: #00C2CB; --pa2: #8A328A; --pa-soft: rgba(0,194,203,0.12);
    position: relative; display: flex; flex-direction: column;
    border-radius: 30px; overflow: hidden; isolation: isolate;
    background: var(--bx-surface); border: 1px solid var(--bx-line); box-shadow: var(--bx-shadow);
    color: var(--bx-ink);
    transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s ease;
}
.pd-banner:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -36px rgba(31,38,73,0.5); }
[data-theme="glass"] .pd-banner {
    background: linear-gradient(152deg, var(--pa-soft) 0%, rgba(255,255,255,0.045) 70%);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.pd--eyes     { --pa: #2f7bff; --pa2: #00C2CB; --pa-soft: rgba(47,123,255,0.14); }
.pd--gene     { --pa: #16a34a; --pa2: #00C2CB; --pa-soft: rgba(22,163,74,0.13); }
.pd--platform { --pa: #8A328A; --pa2: #00C2CB; --pa-soft: rgba(138,50,138,0.14); }
.pd--stones   { --pa: #a27b52; --pa2: #3b3530; --pa-soft: rgba(162,123,82,0.16); }

/* illustration stage */
.pd-art { position: relative; height: 250px; overflow: hidden; }
.pd-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; flex: 1; }
.pd-kicker {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    padding: 4px 11px; border-radius: var(--radius-full);
    font-family: var(--font-heading); font-size: 0.7rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--pa); background: var(--pa-soft);
}
[data-theme="glass"] .pd-kicker { color: #fff; background: rgba(255,255,255,0.10); }
.pd-kicker .material-icons-round { font-size: 15px; }
.pd-name { margin: 2px 0 0; font-family: var(--font-heading); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 900; letter-spacing: -0.6px; line-height: 1.05; color: var(--bx-ink); }
.pd-tag { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--bx-ink); line-height: 1.45; }
.pd-desc { margin: 0; font-size: 0.92rem; color: var(--bx-ink-soft); line-height: 1.55; }
.pd-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chips li {
    font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full);
    color: var(--bx-ink-soft); background: var(--bx-surface-2); border: 1px solid var(--bx-line);
}
.pd-cta {
    margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; color: var(--pa);
    transition: gap var(--transition-fast);
}
[data-theme="glass"] .pd-cta { color: #fff; }
.pd-cta .material-icons-round { font-size: 19px; }
.pd-banner:hover .pd-cta { gap: 10px; }
.pd-cta small { font-weight: 600; color: var(--bx-ink-faint); font-size: 0.8rem; margin-left: 4px; }


/* ── MIT EYES: camera feed with live detections ───────────────────── */
.pd--eyes .pd-art {
    background:
        radial-gradient(400px 200px at 70% 10%, rgba(47,123,255,0.35), transparent 70%),
        linear-gradient(180deg, #0a1428 0%, #0d1d38 55%, #13284a 100%);
}
.pde-ground {
    position: absolute; left: -20%; right: -20%; bottom: -10px; height: 120px;
    background-image: linear-gradient(rgba(120,170,255,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,255,0.18) 1px, transparent 1px);
    background-size: 36px 22px; transform: perspective(260px) rotateX(58deg); transform-origin: bottom;
}
.pde-person { position: absolute; left: 22%; bottom: 34px; width: 34px; height: 92px; }
.pde-person::before { content: ''; position: absolute; left: 9px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #2a3d63; }
.pde-person::after { content: ''; position: absolute; left: 2px; top: 19px; width: 30px; height: 73px; border-radius: 14px 14px 6px 6px; background: #2a3d63; }
.pde-car { position: absolute; right: 16%; bottom: 30px; width: 150px; height: 52px; }
.pde-car::before { content: ''; position: absolute; left: 26px; right: 30px; top: 0; height: 26px; border-radius: 16px 20px 0 0; background: #24375a; }
.pde-car::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 26px; border-radius: 10px; background: #2a3d63; box-shadow: inset 8px 0 0 -2px rgba(255,220,140,0.6); }
.pde-box {
    position: absolute; border: 2px solid var(--c, #00C2CB); border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 0 16px -2px var(--c, #00C2CB);
    animation: pdeTrack 6s ease-in-out infinite;
}
.pde-box b {
    position: absolute; left: -2px; top: -22px; white-space: nowrap;
    padding: 2px 7px; border-radius: 5px 5px 5px 0; background: var(--c, #00C2CB); color: #071022;
    font-family: var(--font-heading); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px;
}
.pde-box--person { --c: #00C2CB; left: calc(22% - 10px); bottom: 26px; width: 54px; height: 110px; }
.pde-box--car { --c: #ffd166; right: calc(16% - 8px); bottom: 22px; width: 166px; height: 70px; animation-delay: -2s; }
.pde-box--face { --c: #ff6fb5; left: calc(22% + 3px); bottom: 113px; width: 28px; height: 26px; border-width: 1.5px; animation-delay: -1s; }
.pde-box--face b { top: 2px; left: calc(100% + 6px); border-radius: 5px; }
@keyframes pdeTrack { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4px,-2px); } }
.pde-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 60px;
    background: linear-gradient(180deg, transparent, rgba(0,194,203,0.16), transparent);
    animation: pdeScan 4s linear infinite;
}
@keyframes pdeScan { from { transform: translateY(-60px); } to { transform: translateY(260px); } }
.pde-hud {
    position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; font-weight: 700; color: rgba(210,225,255,0.85);
}
.pde-hud span { display: inline-flex; align-items: center; gap: 6px; }
.pde-rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; animation: bxBlink 1.2s steps(2) infinite; }
.pde-modules { position: absolute; left: 16px; top: 38px; display: flex; flex-wrap: wrap; gap: 6px; }
.pde-modules span {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
    background: rgba(10,20,40,0.6); border: 1px solid rgba(120,170,255,0.25); color: #cfe0ff;
    font-size: 0.66rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pde-modules .material-icons-round { font-size: 13px; color: #6fb0ff; }


/* ── GENEPULSE: a messy report becomes structured rows ───────────── */
.pd--gene .pd-art {
    background:
        radial-gradient(360px 200px at 20% 0%, rgba(22,163,74,0.28), transparent 70%),
        radial-gradient(300px 200px at 100% 100%, rgba(0,194,203,0.22), transparent 70%),
        linear-gradient(160deg, #06201a 0%, #0a2b25 60%, #0c3030 100%);
    display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 24px;
}
.pdg-helix { position: absolute; left: 50%; top: 0; bottom: 0; width: 60px; margin-left: -30px; display: grid; align-content: space-evenly; opacity: 0.55; }
.pdg-helix i {
    position: relative; display: block; height: 2px; margin: 0 6px;
    background: linear-gradient(90deg, #34d399, rgba(52,211,153,0.15), #22d3ee);
    animation: pdgSpin 3s ease-in-out infinite;
}
.pdg-helix i::before, .pdg-helix i::after { content: ''; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; }
.pdg-helix i::before { left: -4px; background: #34d399; } .pdg-helix i::after { right: -4px; background: #22d3ee; }
@keyframes pdgSpin { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.pdg-helix i:nth-child(2) { animation-delay: -0.25s; } .pdg-helix i:nth-child(3) { animation-delay: -0.5s; }
.pdg-helix i:nth-child(4) { animation-delay: -0.75s; } .pdg-helix i:nth-child(5) { animation-delay: -1s; }
.pdg-helix i:nth-child(6) { animation-delay: -1.25s; } .pdg-helix i:nth-child(7) { animation-delay: -1.5s; }
.pdg-helix i:nth-child(8) { animation-delay: -1.75s; } .pdg-helix i:nth-child(9) { animation-delay: -2s; }
.pdg-helix i:nth-child(10) { animation-delay: -2.25s; }
.pdg-doc {
    position: relative; z-index: 1; width: 120px; height: 168px; flex: 0 0 auto; border-radius: 8px; padding: 12px 10px;
    background: #f4f7f5; box-shadow: 0 18px 30px -14px rgba(0,0,0,0.6); transform: rotate(-5deg);
    display: grid; gap: 6px; align-content: start;
}
.pdg-doc b { font-size: 0.55rem; letter-spacing: 1px; color: #0a5c36; font-family: var(--font-heading); }
.pdg-doc i { height: 4px; border-radius: 2px; background: #c9d4ce; }
.pdg-doc i:nth-of-type(3n) { width: 70%; } .pdg-doc i:nth-of-type(4n) { width: 85%; background: #9fd8b6; }
.pdg-arrow { position: relative; z-index: 1; color: #6ee7b7; display: flex; }
.pdg-arrow .material-icons-round { font-size: 30px; animation: pdgNudge 1.6s ease-in-out infinite; }
@keyframes pdgNudge { 50% { transform: translateX(5px); } }
.pdg-table {
    position: relative; z-index: 1; flex: 0 1 230px; min-width: 0; border-radius: 12px; overflow: hidden;
    background: rgba(6,32,26,0.75); border: 1px solid rgba(110,231,183,0.28);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; color: #d1fae5;
}
.pdg-table div { display: grid; grid-template-columns: 0.9fr 1.3fr 1fr; gap: 6px; padding: 7px 10px; border-bottom: 1px solid rgba(110,231,183,0.12); white-space: nowrap; }
.pdg-table div span { overflow: hidden; text-overflow: ellipsis; }
.pdg-table div:first-child { color: #6ee7b7; font-weight: 800; letter-spacing: 0.6px; background: rgba(22,163,74,0.18); }
.pdg-table div:not(:first-child) { animation: pdgRow 6s ease-in-out infinite backwards; }
.pdg-table div:nth-child(3) { animation-delay: 0.4s; } .pdg-table div:nth-child(4) { animation-delay: 0.8s; } .pdg-table div:nth-child(5) { animation-delay: 1.2s; }
@keyframes pdgRow { 0%, 5% { opacity: 0; transform: translateX(-8px); } 15%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.pdg-tag { padding: 1px 6px; border-radius: 4px; font-weight: 800; }
.pdg-tag--p { background: rgba(255,111,145,0.2); color: #ffb3c4; }
.pdg-tag--v { background: rgba(255,209,102,0.18); color: #ffe199; }
.pdg-tag--b { background: rgba(110,231,183,0.18); color: #a7f3d0; }


/* ── MIT PLATFORM: modules light up, Lumina answers ──────────────── */
.pd--platform .pd-art {
    background:
        radial-gradient(360px 220px at 90% 0%, rgba(199,125,186,0.35), transparent 70%),
        radial-gradient(320px 200px at 0% 100%, rgba(0,194,203,0.25), transparent 70%),
        linear-gradient(160deg, #1a0e2e 0%, #24143d 60%, #2a1340 100%);
}
.pdp-grid { position: absolute; left: 22px; top: 22px; bottom: 22px; width: 51%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-content: center; }
.pdp-grid span {
    aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.55);
    animation: pdpLit 7.5s ease-in-out infinite;
}
.pdp-grid .material-icons-round { font-size: 19px; }
@keyframes pdpLit {
    0%, 8%, 100% { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.55); box-shadow: none; }
    3% { background: linear-gradient(135deg, #00C2CB, #8A328A); color: #fff; box-shadow: 0 0 18px rgba(0,194,203,0.5); }
}
.pdp-grid span:nth-child(1)  { animation-delay: 0s; }    .pdp-grid span:nth-child(2)  { animation-delay: 2.5s; }
.pdp-grid span:nth-child(3)  { animation-delay: 5s; }    .pdp-grid span:nth-child(4)  { animation-delay: 1.2s; }
.pdp-grid span:nth-child(5)  { animation-delay: 3.7s; }  .pdp-grid span:nth-child(6)  { animation-delay: 6.2s; }
.pdp-grid span:nth-child(7)  { animation-delay: 0.6s; }  .pdp-grid span:nth-child(8)  { animation-delay: 3.1s; }
.pdp-grid span:nth-child(9)  { animation-delay: 5.6s; }  .pdp-grid span:nth-child(10) { animation-delay: 1.8s; }
.pdp-grid span:nth-child(11) { animation-delay: 4.3s; }  .pdp-grid span:nth-child(12) { animation-delay: 6.8s; }
.pdp-grid span:nth-child(13) { animation-delay: 0.9s; }  .pdp-grid span:nth-child(14) { animation-delay: 3.4s; }
.pdp-grid span:nth-child(15) { animation-delay: 5.9s; }
.pdp-chat {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 37%; min-width: 170px;
    display: grid; gap: 8px; padding: 12px; border-radius: 16px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff;
}
.pdp-chat-head { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 0.74rem; font-weight: 800; }
.pdp-chat-head .material-icons-round { font-size: 16px; color: #FFB1FF; }
.pdp-q { justify-self: end; max-width: 92%; padding: 6px 9px; border-radius: 10px 10px 2px 10px; background: linear-gradient(135deg, #00C2CB, #0a8f9a); font-size: 0.68rem; font-weight: 600; }
.pdp-a { padding: 8px; border-radius: 10px 10px 10px 2px; background: rgba(255,255,255,0.08); display: flex; align-items: flex-end; gap: 4px; height: 58px; }
.pdp-a i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #FFB1FF, #8A328A); transform-origin: bottom; animation: bxEq 3s ease-in-out infinite; }
.pdp-a i:nth-child(1) { height: 90%; } .pdp-a i:nth-child(2) { height: 70%; animation-delay: -0.6s; } .pdp-a i:nth-child(3) { height: 55%; animation-delay: -1.2s; }
.pdp-a i:nth-child(4) { height: 40%; animation-delay: -1.8s; } .pdp-a i:nth-child(5) { height: 28%; animation-delay: -2.4s; }


/* ── MIT STONES: a slab with cuts, a defect and a usable offcut ──── */
.pd--stones .pd-art {
    background:
        radial-gradient(300px 200px at 85% 0%, rgba(214,180,140,0.35), transparent 70%),
        linear-gradient(160deg, #24201c 0%, #2e2924 60%, #3a332c 100%);
    display: flex; align-items: center; justify-content: center;
}
.pds-slab { height: 68%; width: auto; max-width: 86%; margin-top: 18px; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.5)); }
.pds-piece { animation: pdsDrop 7s cubic-bezier(.22,1,.36,1) infinite backwards; }
.pds-piece--2 { animation-delay: 0.5s; }
.pds-piece--3 { animation-delay: 1s; }
@keyframes pdsDrop { 0%, 4% { opacity: 0; transform: translateY(-14px); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.pds-free { animation: pdsDash 1.6s linear infinite; }
@keyframes pdsDash { to { stroke-dashoffset: -16; } }
.pds-label {
    position: absolute; left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 8px; background: rgba(36,32,28,0.75); border: 1px solid rgba(214,180,140,0.35);
    color: #f1e4d3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 700;
}
.pds-label .material-icons-round { font-size: 14px; color: #d6b48c; }
.pds-slab text { font-family: var(--font-heading); font-size: 10px; font-weight: 800; fill: #f1e4d3; letter-spacing: 0.3px; }
.pds-slab .pds-t-dark { fill: #6b4f33; }
.pds-slab .pds-t-defect { fill: #c0392b; font-size: 8px; }
.pds-slab .pds-t-free { fill: #23704d; font-size: 9px; }
.pds-chip {
    position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px; border-radius: 10px; background: #f1e4d3; color: #3b3530;
    font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.6); animation: bxBob 5s ease-in-out infinite;
}
.pds-chip .material-icons-round { font-size: 15px; color: #a27b52; }


/* ── responsive + reduced motion ─────────────────────────────────── */
@media (max-width: 900px) {
    .pd-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 520px) {
    .pd-art { height: 220px; }
    .pd-body { padding: 20px 20px 24px; }
    .pdg-table div { padding: 6px 7px; gap: 4px; }
    .pdp-grid { gap: 6px; left: 14px; }
    .pdp-chat { right: 12px; min-width: 0; }
    .pde-modules { display: none; }
    .pdg-doc, .pdg-arrow { display: none; }
    .pdg-table { flex: 1 1 auto; font-size: 0.66rem; }
    .pdp-grid { width: 47%; }
    .pdp-chat { width: 45%; }
    .pd-cta small { display: none; }
    .pd-banner:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pde-box, .pde-scan, .pde-rec, .pdg-helix i, .pdg-arrow .material-icons-round, .pdg-table div,
    .pdp-grid span, .pdp-a i, .pds-piece, .pds-free, .pds-chip { animation: none !important; }
    .pdg-table div, .pds-piece { opacity: 1; }
    .pd-banner:hover { transform: none; }
}
