/* ==========================================================
   AI Agent Development page - hero animation (.aiagent-hero-section)
   ========================================================== */
.aiagent-hero-section .aiagent-stage{position:relative;width:100%;max-width:560px;margin:0 auto;padding:36px 28px 44px;z-index:4}
.aiagent-hero-section .aiagent-window{position:relative;background:#fff;border-radius:18px;box-shadow:0 30px 60px -20px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08);overflow:hidden;animation:aiagentFloat 6s ease-in-out infinite}
.aiagent-hero-section .aiagent-bar{display:flex;align-items:center;gap:6px;padding:12px 14px;background:#f1f5fd;border-bottom:1px solid #e3eaf8}
.aiagent-hero-section .aiagent-bar>span{width:10px;height:10px;border-radius:50%;background:#ff6b6b}
.aiagent-hero-section .aiagent-bar>span:nth-child(2){background:#ffc14d}
.aiagent-hero-section .aiagent-bar>span:nth-child(3){background:#46c97a}
.aiagent-hero-section .aiagent-url{flex:1;height:14px;margin-left:12px;border-radius:7px;background:#fff;position:relative;overflow:hidden}
.aiagent-hero-section .aiagent-url:after{content:"";position:absolute;inset:0;width:40%;background:linear-gradient(90deg,transparent,#dbe8ff,transparent);animation:aiagentShimmer 2.4s linear infinite}
.aiagent-hero-section .aiagent-body{padding:18px;display:grid;gap:14px;color:#0b1b3a}
.aiagent-hero-section .aiagent-head{display:flex;align-items:center;gap:12px}
.aiagent-hero-section .aiagent-avatar{position:relative;flex:none;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#2f6bff,#8fb3ff)}
.aiagent-hero-section .aiagent-avatar:before{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px dashed #ffb300;animation:aiagentSpin 12s linear infinite}
.aiagent-hero-section .aiagent-avatar svg{position:absolute;inset:9px;width:24px;height:24px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aiagent-hero-section .aiagent-name{flex:1;display:grid;gap:6px}
.aiagent-hero-section .aiagent-name b{font-size:14px;line-height:1}
.aiagent-hero-section .aiagent-name i{display:block;width:60%;height:7px;border-radius:4px;background:#d5def2}
.aiagent-hero-section .aiagent-badge{position:relative;flex:none;width:76px;height:24px;border-radius:12px;background:#eaf1ff;font-size:11px;font-weight:700}
.aiagent-hero-section .aiagent-badge span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:5px}
.aiagent-hero-section .aiagent-badge-run{color:#2f6bff;animation:aiagentRun 10s linear infinite}
.aiagent-hero-section .aiagent-badge-done{color:#1a9d55;opacity:0;animation:aiagentDone 10s linear infinite}
.aiagent-hero-section .aiagent-badge-run:before, .aiagent-hero-section .aiagent-badge-done:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;animation:aiagentBlink 1.2s ease-in-out infinite}
.aiagent-hero-section .aiagent-request{padding:10px 12px;border-radius:12px 12px 12px 3px;background:#f5f8ff;border:1px solid #e3eaf8;font-size:13px;font-weight:600;line-height:1.35}
.aiagent-hero-section .aiagent-steps{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.aiagent-hero-section .aiagent-step{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;opacity:.35;animation:aiagentStep 10s ease-in-out infinite}
.aiagent-hero-section .aiagent-step:nth-child(2), .aiagent-hero-section .aiagent-step:nth-child(2) .aiagent-check{animation-delay:1.8s}
.aiagent-hero-section .aiagent-step:nth-child(3), .aiagent-hero-section .aiagent-step:nth-child(3) .aiagent-check{animation-delay:3.6s}
.aiagent-hero-section .aiagent-step:nth-child(4), .aiagent-hero-section .aiagent-step:nth-child(4) .aiagent-check{animation-delay:5.4s}
.aiagent-hero-section .aiagent-check{position:relative;flex:none;width:20px;height:20px;border-radius:50%;border:2px solid #c3d6fb;animation:aiagentCheck 10s ease-in-out infinite}
.aiagent-hero-section .aiagent-check:after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.aiagent-hero-section .aiagent-tag{margin-left:auto;padding:2px 8px;border-radius:10px;background:#eaf1ff;color:#2f6bff;font-size:10px;font-weight:700}
.aiagent-hero-section .aiagent-progress{height:6px;border-radius:3px;background:#e3eaf8;overflow:hidden}
.aiagent-hero-section .aiagent-progress i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#2f6bff,#ffb300);transform-origin:left;animation:aiagentProgress 10s ease-in-out infinite}
.aiagent-hero-section .aiagent-chip{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:30px;background:#fff;color:#0b1b3a;font-size:13px;font-weight:600;box-shadow:0 12px 28px -10px rgba(0,0,0,.5);white-space:nowrap}
.aiagent-hero-section .aiagent-chip-dot{width:8px;height:8px;border-radius:50%;background:#ffb300;animation:aiagentBlink 1.6s ease-in-out infinite}
.aiagent-hero-section .aiagent-chip-llm{top:0;left:0;animation:aiagentBob 5s ease-in-out infinite}
.aiagent-hero-section .aiagent-chip-tools{top:40%;right:-6px;animation:aiagentBob 6s ease-in-out -2s infinite}
.aiagent-hero-section .aiagent-chip-tools .aiagent-chip-dot{background:#2f6bff}
.aiagent-hero-section .aiagent-chip-memory{bottom:6px;left:6px;animation:aiagentBob 5.5s ease-in-out -1s infinite}
.aiagent-hero-section .aiagent-chip-memory .aiagent-chip-dot{background:#46c97a}
.aiagent-hero-section .aiagent-stat{position:absolute;z-index:2;right:0;bottom:0;width:150px;padding:12px 14px;border-radius:14px;background:#0b1b3a;color:#fff;border:1px solid rgba(255,255,255,.15);box-shadow:0 16px 30px -10px rgba(0,0,0,.6);animation:aiagentBob 5s ease-in-out -2.5s infinite}
.aiagent-hero-section .aiagent-stat-num{font-size:24px;font-weight:700;line-height:1}
.aiagent-hero-section .aiagent-stat-label{margin:4px 0 6px;font-size:12px;opacity:.8}
.aiagent-hero-section .aiagent-stat svg{width:100%;height:28px;display:block}
.aiagent-hero-section .aiagent-stat polyline{stroke-dasharray:1;stroke-dashoffset:1;animation:aiagentLine 5s ease-in-out infinite}
@keyframes aiagentFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes aiagentBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes aiagentShimmer{from{transform:translateX(-100%)}to{transform:translateX(260%)}}
@keyframes aiagentSpin{to{transform:rotate(360deg)}}
@keyframes aiagentBlink{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes aiagentStep{0%,4%{opacity:.35}12%,88%{opacity:1}100%{opacity:.35}}
@keyframes aiagentCheck{0%,10%{background:transparent;border-color:#c3d6fb}18%,88%{background:#2f6bff;border-color:#2f6bff}100%{background:transparent;border-color:#c3d6fb}}
@keyframes aiagentProgress{0%{transform:scaleX(0)}75%,92%{transform:scaleX(1)}100%{transform:scaleX(0)}}
@keyframes aiagentRun{0%,78%{opacity:1}82%,96%{opacity:0}100%{opacity:1}}
@keyframes aiagentDone{0%,78%{opacity:0}82%,96%{opacity:1}100%{opacity:0}}
@keyframes aiagentLine{0%,15%{stroke-dashoffset:1}55%,90%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@media (max-width:991px){.aiagent-hero-section .aiagent-stage{max-width:480px;margin-top:20px}}
@media (max-width:575px){.aiagent-hero-section .aiagent-stage{padding:30px 6px 40px}.aiagent-hero-section .aiagent-chip{font-size:11px;padding:6px 10px}.aiagent-hero-section .aiagent-chip-tools{right:0}.aiagent-hero-section .aiagent-stat{width:120px}.aiagent-hero-section .aiagent-step{font-size:12px}}
@media (prefers-reduced-motion:reduce){.aiagent-hero-section .aiagent-stage *{animation:none!important}.aiagent-hero-section .aiagent-step{opacity:1}.aiagent-hero-section .aiagent-stat polyline{stroke-dashoffset:0}.aiagent-hero-section .aiagent-progress i{transform:none}.aiagent-hero-section .aiagent-badge-run{opacity:1}}

