/* ============================================================
   NetRisk.io — Agentic Verification Layer
   7 named Continuous Trust Verification Agents arranged around
   the governing loop. One agent "activates" at a time on a
   continuous cycle, narrating what it does + its value.
   ============================================================ */

.agentic { position: relative; }
.agentic-stage {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  margin-top: 52px;
}
@media (max-width: 940px) { .agentic-stage { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- LEFT: the orbital ring of agents ---------- */
.agent-orbit { position: relative; aspect-ratio: 1/1; max-width: 540px; width: 100%; margin-inline: auto; }

/* governing-loop core */
.ao-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 39%; aspect-ratio: 1/1; border-radius: 50%; z-index: 4;
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 42% 36%, var(--ai-12), transparent 62%), var(--elevated);
  border: 1px solid var(--ai-20);
  box-shadow: 0 0 70px -16px var(--ai-20), inset 0 1px 0 rgba(255,255,255,.05);
}
.ao-core .aoc-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ai); }
.ao-core .aoc-loop { display: grid; gap: 5px; margin-top: 9px; }
.ao-core .aoc-loop .ll { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--text-2); transition: color .4s, opacity .4s; opacity: .55; }
.ao-core .aoc-loop .ll .ld { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ao-core .aoc-loop .ll[data-phase="propose"] { color: var(--ai); }
.ao-core .aoc-loop .ll[data-phase="validate"] { color: var(--brand); }
.ao-core .aoc-loop .ll[data-phase="approve"] { color: var(--evidence); }
.ao-core .aoc-loop .ll[data-phase="recheck"] { color: var(--observed); }
.ao-core .aoc-loop .ll.on { opacity: 1; }

/* rotating dashed ring */
.ao-ring { position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed var(--border-2); }
.ao-ring.spin { animation: spin 80s linear infinite; }
@media (prefers-reduced-motion: reduce){ .ao-ring.spin { animation: none; } }

/* connector spoke from core to active agent */
.ao-spoke { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.ao-spoke line { stroke: var(--ai); stroke-width: 1.5; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 5px var(--ai)); }
.ao-spoke line.on { opacity: .55; }

/* agent nodes around the ring */
.agent-node {
  position: absolute; transform: translate(-50%,-50%); z-index: 3;
  width: 96px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; cursor: pointer;
}
.agent-node .an-disc {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2);
  box-shadow: var(--shadow-md); position: relative;
  transition: transform .4s var(--ease), border-color .4s, color .4s, box-shadow .4s, background .4s;
}
.agent-node .an-disc svg { width: 24px; height: 24px; }
.agent-node .an-name { font-family: var(--font-display); font-weight: 600; font-size: 11px; color: var(--text-3); line-height: 1.15; transition: color .4s; }
.agent-node .an-pip { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ai); border: 2px solid var(--bg-2); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s; }
.agent-node.active .an-disc {
  transform: scale(1.14); color: var(--agc, var(--ai)); border-color: var(--agc-20, var(--ai-20));
  background: var(--agc-12, var(--ai-12));
  box-shadow: 0 0 30px -4px var(--agc-20, var(--ai-20)), var(--shadow-md);
}
.agent-node.active .an-name { color: var(--text); }
.agent-node.active .an-pip { opacity: 1; transform: scale(1); background: var(--agc, var(--ai)); animation: ag-blink 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .agent-node.active .an-pip { animation: none; } }

/* tiny data motes the active agent emits toward the core */
.ao-mote { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ai); z-index: 2; pointer-events: none; box-shadow: 0 0 6px var(--ai); }

/* ---------- RIGHT: the active-agent readout card ---------- */
.agent-readout {
  background: linear-gradient(180deg, rgba(26,30,37,.96), rgba(15,18,23,.97));
  border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 24px; min-height: 340px; position: relative; overflow: hidden;
}
.agent-readout::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--agc, var(--ai)); opacity: .9; transition: background .4s;
}
.ar-head { display: flex; align-items: center; gap: 13px; }
.ar-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  color: var(--agc, var(--ai)); background: var(--agc-12, var(--ai-12)); border: 1px solid var(--agc-20, var(--ai-20));
  transition: color .4s, background .4s, border-color .4s;
}
.ar-ico svg { width: 24px; height: 24px; }
.ar-meta .ar-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--agc, var(--ai)); transition: color .4s; }
.ar-meta .ar-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 3px; }
.ar-phase {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--agc-20, var(--ai-20)); color: var(--agc, var(--ai)); background: var(--agc-12, var(--ai-12));
  transition: color .4s, background .4s, border-color .4s; white-space: nowrap;
}
.ar-desc { font-size: 15px; color: var(--text-2); line-height: 1.55; margin-top: 16px; }
.ar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ar-io { padding: 12px 13px; border-radius: var(--r-md); border: 1px solid var(--border); background: rgba(255,255,255,.018); }
.ar-io .io-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ar-io .io-list { margin-top: 8px; display: grid; gap: 6px; }
.ar-io .io-list span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.ar-io .io-list span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--agc, var(--ai)); flex: none; }
.ar-out { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); margin-top: 16px; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: var(--r-md); background: var(--agc-12, var(--ai-12)); border: 1px solid var(--agc-20, var(--ai-20)); }
.ar-out .o-arrow { color: var(--agc, var(--ai)); }
.ar-supports { font-size: 12.5px; color: var(--text-2); margin-top: 12px; }
.ar-supports .ars-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* progress dots under the readout */
.agent-dots { display: flex; gap: 7px; margin-top: 18px; flex-wrap: wrap; }
.agent-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.14); transition: background .3s, transform .3s; cursor: pointer; }
.agent-dots i.on { background: var(--agc, var(--ai)); transform: scale(1.3); }

/* the guarantee strip below */
.agent-guarantee {
  display: flex; align-items: center; gap: 13px; margin-top: 34px; padding: 16px 20px;
  border-radius: var(--r-md); border: 1px solid var(--ai-20); background: var(--ai-12);
}
.agent-guarantee .ag-i { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: var(--ai); border: 1px solid var(--ai-20); background: rgba(0,0,0,.18); }
.agent-guarantee p { font-size: 14px; color: var(--text-2); }
.agent-guarantee p b { color: var(--text); font-weight: 700; }

/* static / mobile: turn the orbit into a clean grid */
body.cine-static .agent-orbit, .agentic-static .agent-orbit { display: none; }
.agentic-grid { display: none; }
body.cine-static .agentic-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px;
}
@media (max-width: 520px){ body.cine-static .agentic-grid { grid-template-columns: 1fr; } }
.ag-card { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--border-2); background: var(--surface); }
.ag-card .agc-top { display: flex; align-items: center; gap: 10px; }
.ag-card .agc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--agc,var(--ai)); background: var(--agc-12,var(--ai-12)); border: 1px solid var(--agc-20,var(--ai-20)); }
.ag-card .agc-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ag-card .agc-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--agc,var(--ai)); margin-top: 1px; }
.ag-card p { font-size: 12.5px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }

@media (max-width: 940px) {
  body:not(.cine-static) .agent-readout { min-height: 0; }
}

/* ============================================================
   USE-CASE CARDS
   ============================================================ */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.usecase {
  padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.005));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.usecase:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.usecase .uc-ico { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; border: 1px solid var(--verified-20); background: var(--verified-12); color: var(--brand); margin-bottom: 15px; }
.usecase h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.usecase .uc-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; margin-top: 13px; align-items: start; }
.usecase .uc-row .uc-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.usecase .uc-row p { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.usecase .uc-row.val { padding-top: 13px; border-top: 1px solid var(--border); }
.usecase .uc-row.val .uc-k { color: var(--brand); }
.usecase .uc-row.val p { color: var(--text); }
@media (max-width: 940px) { .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .usecase-grid { grid-template-columns: 1fr; } }
