/* Icons + animated module scenes. Base styles are the finished state (shown under reduced motion);
   keyframes start from hidden and loop. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico, .tab-ico, .card-ico, .step-ico, .s-qico { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: rgba(0, 174, 239, .12); color: var(--brand); }
.tab-ico { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.card-ico { width: 40px; height: 40px; padding: 9px; margin-bottom: 14px; border-radius: 10px; color: var(--brand); background: rgba(0, 174, 239, .1); border: 1px solid rgba(0, 174, 239, .22); transition: transform .3s var(--ease), background .3s; }
.card:hover .card-ico { transform: rotate(-6deg) scale(1.08); background: rgba(0, 174, 239, .2); }
.step-ico { display: block; width: 44px; height: 44px; padding: 10px; margin-bottom: 14px; border-radius: 12px; color: var(--brand); background: rgba(0, 174, 239, .1); border: 1px solid rgba(0, 174, 239, .22); }
.steps li:nth-child(1) .step-ico { animation: stepGlow 6s infinite 0s; }
.steps li:nth-child(2) .step-ico { animation: stepGlow 6s infinite 1.5s; }
.steps li:nth-child(3) .step-ico { animation: stepGlow 6s infinite 3s; }
.steps li:nth-child(4) .step-ico { animation: stepGlow 6s infinite 4.5s; }
@keyframes stepGlow { 0%, 30%, 100% { box-shadow: none; } 10% { box-shadow: 0 0 0 4px rgba(0, 174, 239, .15), 0 0 24px rgba(0, 174, 239, .5); } }

/* Step-by-step list next to each scene */
.flow { counter-reset: f; display: grid; gap: 10px; margin: 18px 0 24px; }
.flow li { counter-increment: f; display: flex; gap: 12px; align-items: baseline; color: var(--text-2); }
.flow li::before { content: counter(f); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 174, 239, .14); color: var(--brand); font: 600 .75rem/1 var(--mono); transform: translateY(5px); }

/* Scene frame */
.scene { width: 100%; height: auto; align-self: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.scene text { fill: var(--text-2); font: 12px var(--font); }
.scene .s-cap { fill: var(--text-3); font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.scene .s-note { fill: var(--text-3); font: 10.5px var(--mono); }
.crit { --sev: var(--crit); } .high { --sev: var(--high); } .med { --sev: var(--med); } .low { --sev: var(--low); }

/* Triage */
.s-inbox { fill: none; stroke: var(--line-2); stroke-dasharray: 4 4; }
.s-lane rect { fill: var(--surface); stroke: var(--line); }
.s-sev { font: 700 10px var(--mono) !important; letter-spacing: .1em; fill: var(--sev) !important; }
.chip rect:first-child { fill: var(--surface-2); stroke: var(--line-2); }
.chip text { fill: var(--text) !important; }
.sev-bar { fill: var(--sev); }
.chip { transform: translate(var(--tx), var(--ty)); animation: chipSort 7s var(--ease) infinite backwards; animation-delay: var(--d); }
.k1 { --tx: 205px; --ty: 22px; --d: 0s; }
.k2 { --tx: 205px; --ty: 130px; --d: .5s; }
.k3 { --tx: 205px; --ty: 16px; --d: 1s; }
@keyframes chipSort {
  0% { opacity: 0; transform: translate(-16px, 0); }
  10%, 25% { opacity: 1; transform: translate(0, 0); }
  45%, 88% { opacity: 1; transform: translate(var(--tx), var(--ty)); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)); }
}
.s-reason rect { fill: rgba(61, 220, 151, .07); stroke: rgba(61, 220, 151, .3); }
.s-reason text { fill: var(--low) !important; }
.s-reason { animation: reasonIn 7s infinite; }
@keyframes reasonIn { 0%, 50% { opacity: 0; } 60%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* Hunting */
.s-q { fill: var(--surface-2); stroke: var(--line-2); }
.s-qico { color: var(--brand); }
.s-qtext { fill: var(--text) !important; font-size: 13px !important; }
.s-qcover { fill: var(--surface-2); transform: translateX(340px); animation: typeReveal 9s steps(28) infinite; }
@keyframes typeReveal { 0% { transform: translateX(0); } 14%, 100% { transform: translateX(340px); } }
.s-hedge { stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; animation: edgeDraw 9s infinite backwards; }
.he1 { animation-delay: 1.6s; } .he2 { animation-delay: 2.8s; } .he3 { animation-delay: 4s; }
@keyframes edgeDraw { 0% { stroke-dashoffset: 1; } 8%, 60% { stroke-dashoffset: 0; } 68%, 100% { stroke-dashoffset: 1; } }
.s-hnode circle { fill: var(--surface-2); stroke: var(--brand); stroke-width: 2; }
.s-hnode text:not(.s-note) { fill: var(--text) !important; font: 12px var(--mono) !important; }
.s-hnode.origin circle { stroke: var(--crit); filter: drop-shadow(0 0 8px rgba(255, 90, 106, .7)); }
.s-hnode { animation: nodeOn 9s infinite backwards; }
.hn1 { animation-delay: 1.2s; } .hn2 { animation-delay: 2.4s; } .hn3 { animation-delay: 3.6s; } .hn4 { animation-delay: 4.8s; }
@keyframes nodeOn { 0% { opacity: .18; } 6%, 52% { opacity: 1; } 60%, 100% { opacity: .18; } }
.s-badge rect { fill: rgba(255, 90, 106, .15); stroke: var(--crit); }
.s-badge text { fill: var(--crit) !important; font: 700 10px var(--mono) !important; letter-spacing: .1em; text-anchor: middle; }
.hb { animation: nodeOnHard 9s infinite backwards 5.2s; }
@keyframes nodeOnHard { 0% { opacity: 0; } 6%, 44% { opacity: 1; } 52%, 100% { opacity: 0; } }

/* Correlation */
.s-case { fill: rgba(0, 174, 239, .04); stroke: var(--brand); stroke-dasharray: 6 5; animation: caseIn 8s infinite; }
.s-casecap { animation: caseIn 8s infinite; fill: var(--brand) !important; }
@keyframes caseIn { 0%, 40% { opacity: 0; } 50%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.s-gedge { stroke: var(--brand); stroke-width: 1.75; stroke-dasharray: 1; stroke-dashoffset: 0; animation: gDraw 8s infinite backwards; }
.ge1 { animation-delay: 0s; } .ge2 { animation-delay: .35s; } .ge3 { animation-delay: .7s; } .ge4 { animation-delay: 1.05s; }
.ge5 { animation-delay: 1.4s; } .ge6 { animation-delay: 1.75s; } .ge7 { animation-delay: 2.1s; }
@keyframes gDraw { 0% { stroke-dashoffset: 1; } 10%, 80% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 1; } }
.s-ent circle { fill: var(--surface-2); stroke: var(--brand-2); stroke-width: 2; }
.s-ent.host circle { stroke: var(--brand); filter: drop-shadow(0 0 8px rgba(0, 174, 239, .55)); }
.s-ent text { text-anchor: middle; font: 11px var(--mono) !important; }
.s-alert { fill: var(--sev); }
.s-alert.stray { fill: none; stroke: var(--text-3); stroke-dasharray: 3 2; }

/* Threat intel */
.s-link { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.s-feed rect { fill: var(--surface); stroke: var(--line-2); }
.s-feed text, .s-ioc text, .s-tag text { text-anchor: middle; }
.s-ioc rect { fill: var(--surface-2); stroke: var(--brand); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(0, 174, 239, .45)); }
.s-ioc text { fill: var(--text) !important; font: 600 12px var(--mono) !important; }
.s-pulse { fill: var(--brand); opacity: 0; animation: pulseTo 6s infinite backwards; }
.p1 { --tx: 40px; --ty: 83px; animation-delay: 0s; }
.p2 { --tx: 40px; --ty: 0px; animation-delay: .3s; }
.p3 { --tx: 40px; --ty: -83px; animation-delay: .6s; }
@keyframes pulseTo { 0% { opacity: 0; transform: none; } 4% { opacity: 1; } 22% { opacity: 1; transform: translate(var(--tx), var(--ty)); } 26%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)); } }
.s-tag rect { fill: var(--surface); stroke: var(--line-2); }
.s-tag.crit rect { stroke: var(--crit); fill: rgba(255, 90, 106, .1); }
.s-tag.crit text { fill: var(--crit) !important; font-weight: 700 !important; }
.s-tag { animation: seqIn 6s infinite backwards; }
.t1 { animation-delay: 1.6s; } .t2 { animation-delay: 2s; } .t3 { animation-delay: 2.4s; }
@keyframes seqIn { 0% { opacity: 0; transform: translateY(6px); } 8%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }

/* Malware */
.s-file path { fill: var(--surface-2); stroke: var(--text-2); stroke-width: 1.5; }
.s-file .s-fold { fill: none; }
.s-file text { text-anchor: middle; font: 11px var(--mono) !important; }
.s-file { animation: fileIn 8s var(--ease) infinite; }
@keyframes fileIn { 0%, 6% { opacity: 1; transform: none; } 18% { opacity: 0; transform: translateX(110px) scale(.6); } 94% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
.s-box { fill: rgba(0, 174, 239, .04); stroke: var(--brand); stroke-dasharray: 6 5; }
.s-beh { fill: var(--text) !important; font: 12px var(--mono) !important; animation: seqIn8 8s infinite backwards; }
.b1 { animation-delay: 1.4s; } .b2 { animation-delay: 2s; } .b3 { animation-delay: 2.6s; } .b4 { animation-delay: 3.2s; }
@keyframes seqIn8 { 0% { opacity: 0; transform: translateY(6px); } 6%, 66% { opacity: 1; transform: none; } 74%, 100% { opacity: 0; } }
.s-report rect:first-child { fill: var(--surface-2); stroke: var(--crit); }
.s-verdict { fill: var(--crit) !important; font: 700 14px var(--font) !important; }
.s-bar { fill: var(--line-2); }
.s-report { animation: seqIn8 8s infinite backwards 4s; }

/* Evidence */
.s-art rect { fill: var(--surface-2); stroke: var(--line-2); }
.s-art text { text-anchor: middle; fill: var(--text) !important; }
.s-art { transform-box: fill-box; transform-origin: center; animation: fileDrop 7s var(--ease) infinite backwards; }
.a1 { --tx: 125px; --ty: 125px; animation-delay: 0s; }
.a2 { --tx: 0px; --ty: 125px; animation-delay: .5s; }
.a3 { --tx: -125px; --ty: 125px; animation-delay: 1s; }
@keyframes fileDrop { 0% { opacity: 0; transform: translateY(-10px); } 8%, 26% { opacity: 1; transform: none; } 44% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.3); } 90% { opacity: 0; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.s-folder path { fill: rgba(0, 174, 239, .08); stroke: var(--brand); stroke-width: 2; }
.s-folder text { text-anchor: middle; fill: var(--text) !important; font: 600 13px var(--font) !important; }
.s-tl { stroke: var(--line-2); stroke-width: 2; }
.s-dot circle { fill: var(--brand); stroke: var(--bg-2); stroke-width: 3; }
.s-dot text { text-anchor: middle; font: 10.5px var(--mono) !important; fill: var(--text-3) !important; }
.s-dot { animation: nodeOn7 7s infinite backwards; }
.d1 { animation-delay: 1.4s; } .d2 { animation-delay: 1.9s; } .d3 { animation-delay: 2.4s; } .d4 { animation-delay: 2.9s; }
@keyframes nodeOn7 { 0% { opacity: .15; } 6%, 64% { opacity: 1; } 74%, 100% { opacity: .15; } }

/* SOC service */
.scene-soc .s-gedge { animation-duration: 9s; }
.v1 { animation-delay: .5s; } .v2 { animation-delay: .8s; } .v3 { animation-delay: 1.1s; }
.scene-soc .s-feed, .scene-soc .s-arg, .scene-soc .s-reason { animation: seqIn9 9s infinite backwards; }
.q1 { animation-delay: .5s !important; } .q2 { animation-delay: .8s !important; } .q3 { animation-delay: 1.1s !important; }
.q4 { animation-delay: 2s !important; } .q5 { animation-delay: 2.6s !important; } .q6 { animation-delay: 3.6s !important; }
@keyframes seqIn9 { 0% { opacity: 0; transform: translateY(6px); } 6%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
.s-arg rect { fill: var(--surface); stroke: var(--sev); }
.s-arg .s-cap { fill: var(--sev) !important; }
.s-arg text:not(.s-cap) { fill: var(--text) !important; font: 12px var(--mono) !important; }
.scene-soc .s-reason text:not(.s-note) { font: 700 14px var(--font) !important; }

/* Asset & identity */
.scene-asset .s-gedge { animation-duration: 8s; }
.r1 { animation-delay: .5s; } .r2 { animation-delay: 1.5s; } .r3 { animation-delay: 1.8s; } .r4 { animation-delay: 2.1s; }
.scene-asset .s-feed, .scene-asset .s-card, .scene-asset .s-tag { animation: seqIn8 8s infinite backwards; }
.r0 { animation-delay: 0s !important; } .r5 { animation-delay: .9s !important; }
.r6 { animation-delay: 1.9s !important; } .r7 { animation-delay: 2.2s !important; } .r8 { animation-delay: 2.5s !important; }
.scene-asset .s-feed rect { stroke: var(--brand); }
.scene-asset .s-feed text { fill: var(--text) !important; font: 600 12px var(--mono) !important; }
.s-card rect { fill: var(--surface-2); stroke: var(--brand); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(0, 174, 239, .35)); }
.s-strong { fill: var(--text) !important; font: 700 15px var(--font) !important; }

/* Risk scoring */
.s-arc-bg { fill: none; stroke: var(--line-2); stroke-width: 14; stroke-linecap: round; }
.s-arc { fill: none; stroke: url(#riskg); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 28; animation: arcFill 8s var(--ease) infinite; }
@keyframes arcFill { 0% { stroke-dashoffset: 100; } 32%, 80% { stroke-dashoffset: 28; } 90%, 100% { stroke-dashoffset: 100; } }
.s-score { text-anchor: middle; fill: var(--text) !important; font: 800 40px var(--font) !important; animation: seqIn8 8s infinite backwards 2.4s; }
.s-factor rect { fill: var(--surface); stroke: var(--sev); }
.s-factor text { fill: var(--text) !important; font: 12px var(--mono) !important; }
.s-factor { animation: seqIn8 8s infinite backwards; }
.f1 { animation-delay: .3s; } .f2 { animation-delay: .8s; } .f3 { animation-delay: 1.3s; } .f4 { animation-delay: 1.8s; }
.s-spark { fill: none; stroke: var(--crit); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: gDraw 8s infinite backwards 2.6s; }

/* Chat */
.s-user rect { fill: var(--brand); }
.s-user text { text-anchor: middle; fill: #00111c !important; font-weight: 600 !important; }
.s-step rect { fill: rgba(61, 220, 151, .08); stroke: rgba(61, 220, 151, .35); }
.s-step text { text-anchor: middle; fill: var(--low) !important; font: 11px var(--mono) !important; }
.s-bot > rect:first-child { fill: var(--surface); stroke: var(--line-2); }
.s-bot > text:first-of-type { fill: var(--text) !important; font-weight: 600 !important; }
.s-hbar { fill: var(--brand); transform-box: fill-box; transform-origin: left; animation: barGrow 8s var(--ease) infinite backwards; }
.h1 { animation-delay: 2.3s; } .h2 { animation-delay: 2.5s; } .h3 { animation-delay: 2.7s; }
@keyframes barGrow { 0% { transform: scaleX(0); } 8%, 66% { transform: none; } 74%, 100% { transform: scaleX(0); } }
.s-cite rect { fill: none; stroke: var(--line-2); stroke-dasharray: 3 3; }
.s-cite text { text-anchor: middle; fill: var(--text-3) !important; font: 10.5px var(--mono) !important; }
.s-user, .s-step, .s-bot, .s-cite { animation: seqIn8 8s infinite backwards; }
.c1 { animation-delay: 0s; } .c2 { animation-delay: .7s; } .c3 { animation-delay: 1.1s; } .c4 { animation-delay: 1.5s; } .c5 { animation-delay: 1.9s; }
.s-cite { animation-delay: 3s; }

/* Reduced motion: no loops, show the finished picture. */
@media (prefers-reduced-motion: reduce) {
  .scene *, .step-ico { animation: none !important; }
  .s-pulse { opacity: 0; }
}

/* Full-width layout: keep illustrations at a readable scale on wide screens. */
.scene { max-width: 760px; justify-self: center; }
@media (min-width: 1021px) { .console { max-width: 720px; width: 100%; justify-self: end; } }

/* Mobile: tab bar as an even 2-column grid. */
@media (max-width: 600px) {
  .tablist { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tablist [role="tab"] { justify-content: flex-start; padding: 6px 12px; font-size: .88rem; white-space: normal; text-align: left; line-height: 1.2; border-radius: 12px; }
}
