/* programs.css: Why now (the AI-vs-student card) and the Blockduino hardware block. */

/* ═════════ WHY NOW ═════════ */
.why-in { max-width: 1240px; margin: 0 auto; }
.why-head { max-width: 820px; }
.think { position: relative; color: #8B5CF6; white-space: nowrap; }
.think::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 1em; background: linear-gradient(90deg, #8B5CF6, #2D9CDB); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s .5s var(--swift); }
.r.in .think::after, html:not(.js) .think::after { transform: none; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; margin-top: 44px; }
.vs-card { position: relative; border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.ai-side { background: #0F172A; color: #E2E8F0; box-shadow: 0 30px 60px -30px rgba(16,24,40,.6); }
.kid-side { background: #fff; box-shadow: 0 30px 60px -34px rgba(139,92,246,.55), 0 0 0 2px rgba(139,92,246,.25); }
.vs-tag { align-self: flex-start; font: 900 12px var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.1); color: #9FB3D3; }
.kid-side .vs-tag { background: rgba(139,92,246,.12); color: #8B5CF6; }
.vs-code { margin: 0; font: 600 17px/1.7 var(--mono); white-space: pre; overflow-x: auto; }
.vs-bug { border-radius: 6px; padding: 1px 4px; margin: -1px -4px; }
.vs.in .vs-bug { animation: bug 3.2s 1.2s ease-in-out infinite; }
@keyframes bug { 0%, 30% { background: transparent; box-shadow: none; } 45%, 90% { background: rgba(244,63,94,.22); box-shadow: 0 0 0 2px #F43F5E; } 100% { background: transparent; box-shadow: none; } }
.vs-note { margin-top: auto; font: 800 15px var(--body); color: #FDA4AF; }
.vs-note.ok { color: #8B5CF6; font-size: 17px; }
.vs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font: 700 17px/1.4 var(--body); color: var(--muted); }
.js .vs-list li { opacity: 0; transform: translateX(-12px); transition: all .6s var(--swift); }
.js .vs.in .vs-list li { opacity: 1; transform: none; }
.vs.in .vs-list li:nth-child(1) { transition-delay: .8s; } .vs.in .vs-list li:nth-child(2) { transition-delay: 1.3s; } .vs.in .vs-list li:nth-child(3) { transition-delay: 1.8s; }
.vs-list b { color: var(--ink); }
.vs-arrow { align-self: center; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8B5CF6, #2D9CDB); color: #fff; font: 800 24px var(--display); box-shadow: 0 14px 30px -10px rgba(139,92,246,.7); }

/* ═════════ HARDWARE: BLOCKDUINO ═════════ */
.hw-in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.hw-logo { display: block; height: clamp(80px, 8vw, 118px); width: auto; margin: 14px 0 0 -6px; }
.hw-feats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hw-feats li { position: relative; padding-left: 26px; font: 700 16px/1.5 var(--body); color: var(--muted); }
.hw-feats li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #FFB820, #4FB6DE); }
.hw-feats b { color: var(--ink); }
.hw-cta { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.btn.dark-btn { background: #101828; color: #fff; box-shadow: 0 14px 30px -12px rgba(16,24,40,.6); }
.btn.dark-btn:hover { transform: translateY(-2px); background: #1D2939; }
.labs { height: 72px; width: auto; }
.hw-board { position: relative; border-radius: 24px; background: #fff; padding: 12px;
            box-shadow: 0 60px 110px -50px rgba(16,24,40,.55), 0 0 0 1px rgba(16,24,40,.06), 0 0 90px -40px rgba(255,184,32,.6);
            transform: perspective(1800px) rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--swift); }
.hw-art:hover .hw-board { transform: perspective(1800px) rotateY(-2deg) rotateX(1deg); }
.hw-board img { display: block; width: 100%; border-radius: 14px; }
.hs { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; z-index: 2; }
.hs i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #FF8A00; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 6px 14px rgba(0,0,0,.35); position: relative; }
.hs i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid #FF8A00; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.hs span { position: absolute; left: 50%; bottom: 28px; transform: translate(-50%, 6px); white-space: nowrap; padding: 6px 12px; border-radius: 10px; background: #101828; color: #fff; font: 800 13px var(--body); opacity: 0; pointer-events: none; transition: all .35s var(--swift); }
.hs:hover span, .hs:focus-visible span, .hs.on span { opacity: 1; transform: translate(-50%, 0); }
