/* AMP AI Labs — AI Agents page (loaded only by ai-automation/ai-agents.html) */

:root { --ag-lime: #A3E635; --ag-violet: #A78BFA; --ag-blue: #4A8FFF; --ag-cyan: #00E5E8; --ag-green: #4ADE80; --ag-amber: #FBBF24; --ag-ease: cubic-bezier(.2,.7,.2,1); }

/* ═════════ LAYOUT + BANDS ═════════ */
.ag-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; position: relative; }
@media (min-width: 640px)  { .ag-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ag-wrap { padding: 0 2rem; } }
.ag-band { padding: clamp(3.2rem, 6vw, 5rem) 0; }
.ag-sec { background: radial-gradient(ellipse 800px 260px at 50% 0%, rgba(123,26,250,.13), transparent 70%), #060C1E; border-top: 1px solid rgba(255,255,255,.07); }
.ag-alt { background: radial-gradient(ellipse 800px 260px at 50% 0%, rgba(10,90,223,.17), transparent 70%), #0C1547; border-top: 1px solid rgba(255,255,255,.09); }

.ag-h2 { margin: 0; font-size: clamp(1.7rem, 1.15rem + 2vw, 2.6rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.ag-lead { margin: .8rem 0 0; font-size: 1rem; line-height: 1.7; color: rgba(220,229,240,.78); max-width: 42rem; }
.ag-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C9D6E8; }
.ag-kicker::before { content: ''; flex: none; width: 1.5rem; height: 3px; border-radius: 3px; background: var(--ag-lime); }
.ag-center { text-align: center; }
.ag-center .ag-lead { margin-left: auto; margin-right: auto; }
.ag-center .ag-kicker { justify-content: center; }

.ag-hl { position: relative; display: inline-block; color: var(--ag-violet); }
.ag-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.14em; height: .16em; border-radius: 99px; background: var(--ag-lime); transform: scaleX(0); transform-origin: left; transition: transform .9s .25s var(--ag-ease); }
.ag-reveal.is-in .ag-hl::after, html:not(.js) .ag-hl::after { transform: scaleX(1); }
.ag-hero .ag-hl::after { transform: none; animation: ag-underline .9s .7s var(--ag-ease) both; }
@keyframes ag-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ag-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* scroll reveal (progressive enhancement) */
.js .ag-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ag-ease) var(--d, 0s), transform .7s var(--ag-ease) var(--d, 0s); }
.js .ag-reveal.is-in { opacity: 1; transform: none; }

/* ═════════ HERO ═════════ */
.ag-hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3rem) 1rem clamp(2.5rem, 5vw, 3.5rem); background: radial-gradient(ellipse 900px 600px at 100% -10%, rgba(123,26,250,.42), transparent 60%), radial-gradient(ellipse 700px 500px at -10% 115%, rgba(10,90,223,.28), transparent 55%), #060C1E; }
.ag-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000, transparent 75%); pointer-events: none; }
.ag-hero-grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .ag-hero-grid { grid-template-columns: 1.12fr 1fr; gap: 2rem; } }
.ag-crumb { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .35rem .9rem; border-radius: 9999px; margin-bottom: 1.4rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C27BFC; background: rgba(123,26,250,.22); border: 1px solid rgba(123,26,250,.45); }
.ag-crumb a:hover { text-decoration: underline; }
.ag-h1 { margin: 0 0 1.3rem; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.35rem); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; color: #fff; }
.ag-h1 .ag-hl { color: #fff; }
.ag-h1 .ag-grad { background: linear-gradient(90deg, #A78BFA, #00E5E8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ag-hero-sub { margin: 0 0 1.9rem; max-width: 34rem; font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.76); }
.ag-hero-note { margin: 1.1rem 0 0; font-size: .8rem; color: rgba(200,205,235,.7); }
.ag-hero-copy > * { animation: ag-rise .8s var(--ag-ease) both; }
.ag-hero-copy > :nth-child(2) { animation-delay: .08s; } .ag-hero-copy > :nth-child(3) { animation-delay: .16s; } .ag-hero-copy > :nth-child(4) { animation-delay: .24s; } .ag-hero-copy > :nth-child(5) { animation-delay: .32s; } .ag-hero-copy > :nth-child(6) { animation-delay: .4s; }
@keyframes ag-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ag-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── agent workspace (illustrative) ── */
.ag-stage { position: relative; width: 100%; max-width: 34rem; margin: 0 auto; padding: 1.9rem 0 1.6rem; }
.ag-glow { position: absolute; inset: 6% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(123,26,250,.5), rgba(10,90,223,.25) 48%, transparent 70%); filter: blur(32px); animation: ag-pulse 6s ease-in-out infinite; }
@keyframes ag-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.ag-win { position: relative; border-radius: 1.2rem; overflow: hidden; background: linear-gradient(160deg, rgba(28,18,78,.94), rgba(10,16,52,.96)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
@keyframes ag-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ag-win-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .72rem; color: rgba(255,255,255,.8); }
.ag-win-bar .d { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.22); }
.ag-win-bar .d:nth-child(1) { background: #FF6B6B; } .ag-win-bar .d:nth-child(2) { background: #FBBF24; } .ag-win-bar .d:nth-child(3) { background: #4ADE80; }
.ag-win-bar b { margin-left: .5rem; font-weight: 700; }
.ag-win-bar em { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-weight: 800; color: var(--ag-green); }
.ag-win-bar em i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ag-green); animation: ag-blink 1.8s ease-in-out infinite; }
@keyframes ag-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ── interactive demo ── */
.ag-demo-body { padding: .9rem .9rem 1rem; display: grid; gap: .7rem; }
.js .ag-demo:not(.is-live) .ag-demo-body { visibility: hidden; min-height: 33rem; }
.ag-demo button { font: inherit; cursor: pointer; }
.ag-gatebar, .ag-notif, .ag-run { scroll-margin: 5rem 0 1.2rem; }
.ag-demo button:focus-visible, .ag-demo a:focus-visible, .ag-reply-t:focus-visible { outline: 3px solid var(--ag-violet); outline-offset: 2px; }

.ag-scn { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.ag-scn-lb { margin-right: .2rem; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(200,205,235,.7); }
.ag-sc { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .75rem; border-radius: 9999px; font-size: .74rem; font-weight: 800; color: #E8EAF6; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); transition: background .2s, border-color .2s, color .2s; }
.ag-sc svg { width: .9rem; height: .9rem; }
.ag-sc:hover { border-color: rgba(167,139,250,.7); }
.ag-sc[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, rgba(123,26,250,.7), rgba(10,90,223,.55)); border-color: rgba(167,139,250,.95); }

.ag-msg { padding: .75rem .85rem .8rem; border-radius: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: border-color .3s, box-shadow .3s; }
.ag-demo[data-step="0"] .ag-msg { border-color: rgba(167,139,250,.9); box-shadow: 0 0 0 3px rgba(167,139,250,.18); }
.ag-msg-h { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: rgba(220,229,240,.85); }
.ag-msg-h b { color: #fff; }
.ag-msg-ic { width: 1.5rem; height: 1.5rem; border-radius: .45rem; display: grid; place-items: center; color: #C9B8FF; background: rgba(167,139,250,.2); }
.ag-msg-ic svg { width: .9rem; height: .9rem; }
.ag-msg-new { margin-left: auto; padding: .1rem .5rem; border-radius: 9999px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1B2A00; background: var(--ag-lime); }
.ag-msg-t { margin: .5rem 0 0; font-size: .84rem; line-height: 1.5; color: #fff; }
.ag-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.ag-tags li { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 9999px; font-size: .68rem; font-weight: 800; color: #E8EAF6; background: rgba(74,143,255,.16); border: 1px solid rgba(74,143,255,.4); animation: ag-pop .4s var(--ag-ease) both; }
.ag-tags li:nth-child(2) { animation-delay: .12s; } .ag-tags li:nth-child(3) { animation-delay: .24s; }
.ag-tags li span { font-weight: 600; color: rgba(200,205,235,.7); }
.ag-tags li.hi { color: #FDE68A; background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.5); }
.ag-tags li.urg { color: #FCA5A5; background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.5); }
@keyframes ag-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.ag-pipe { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: .1rem 0 0; padding: 0; list-style: none; }
.ag-pipe li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .62rem; font-weight: 800; letter-spacing: .03em; color: rgba(200,205,235,.55); transition: color .3s; }
.ag-pipe li::before { content: ''; position: absolute; top: .95rem; right: 50%; width: 100%; height: 2px; background: rgba(255,255,255,.14); }
.ag-pipe li:first-child::before { display: none; }
.ag-pipe li::after { content: ''; position: absolute; top: .95rem; right: 50%; width: 0; height: 2px; background: linear-gradient(90deg, var(--ag-violet), var(--ag-cyan)); transition: width .5s var(--ag-ease); }
.ag-pipe li:first-child::after { display: none; }
.ag-pipe li.is-done::after, .ag-pipe li.is-cur::after { width: 100%; }
.ag-pipe .pi { position: relative; z-index: 1; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.6); background: #150F45; border: 2px solid rgba(255,255,255,.2); transition: background .3s, border-color .3s, color .3s; }
.ag-pipe .pi svg { width: .95rem; height: .95rem; }
.ag-pipe li.is-done { color: #E8EAF6; }
.ag-pipe li.is-done .pi { color: #fff; background: #3B1BA8; border-color: var(--ag-violet); }
.ag-pipe li.is-cur, .ag-pipe li.is-gate { color: #fff; }
.ag-pipe li.is-cur .pi { color: #1B0B4D; background: var(--ag-violet); border-color: #fff; animation: ag-glowp 1.2s ease-in-out infinite; }
.ag-pipe li.is-gate .pi { color: #3A2600; background: var(--ag-amber); border-color: #fff; animation: ag-glowp 1.2s ease-in-out infinite; --gp: 251,191,36; }
@keyframes ag-glowp { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gp, 167,139,250), .55); } 50% { box-shadow: 0 0 0 .45rem rgba(var(--gp, 167,139,250), 0); } }
.ag-status { margin: 0; min-height: 2.3em; font-size: .76rem; line-height: 1.45; text-align: center; color: rgba(232,234,246,.88); }

.ag-card { padding: .7rem .85rem .8rem; border-radius: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: opacity .4s, border-color .4s, background .4s; }
.ag-card-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-violet); }
.ag-card-h span { display: inline-flex; align-items: center; gap: .35rem; }
.ag-card-h svg { width: .9rem; height: .9rem; }
.ag-card-h b { font-weight: 800; }
.ag-card-h em { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: rgba(200,205,235,.7); text-align: right; }
.ag-card.is-idle { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.18); }
.ag-card.is-idle > *:not(.ag-card-h) { display: none; }
.ag-card.is-idle .ag-card-h { margin: 0; color: rgba(200,205,235,.45); }
.ag-card.is-idle .ag-card-h em::after { content: 'waiting'; }
.ag-card.is-on:not(.is-idle) { animation: ag-rise .45s var(--ag-ease) both; }
.ag-card.is-ok { border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.07); }
.ag-card.is-ok .ag-card-h { color: var(--ag-green); }

.ag-reply-t { margin: 0; font-size: .8rem; line-height: 1.55; color: #F3F4FB; border-radius: .4rem; }
.ag-reply-t[contenteditable="true"] { padding: .35rem .5rem; margin: -.35rem -.5rem; background: rgba(255,255,255,.1); outline: 2px solid var(--ag-violet); }
.ag-reply-t.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--ag-violet); animation: ag-blink .8s steps(1) infinite; }
.ag-gatebar { margin-top: .65rem; padding: .6rem .7rem; border-radius: .7rem; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.5); animation: ag-rise .4s var(--ag-ease) both; }
.ag-gatebar[hidden] { display: none; }
.ag-gatebar p { margin: 0 0 .5rem; font-size: .72rem; line-height: 1.45; color: #FDE68A; }
.ag-gatebar p::before { content: 'Approval gate · '; font-weight: 800; }
.ag-gate-b { display: flex; justify-content: flex-end; gap: .5rem; }
.ag-btn-s, .ag-btn-p { padding: .45rem .9rem; border-radius: .6rem; font-size: .74rem; font-weight: 800; border: 1.5px solid transparent; transition: background .2s, transform .2s; }
.ag-btn-s { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }
.ag-btn-s:hover { background: rgba(255,255,255,.12); }
.ag-btn-p { color: #1B2A00; background: var(--ag-lime); animation: ag-glowp 1.4s ease-in-out infinite; --gp: 163,230,53; }
.ag-btn-p:hover { background: #BEF264; transform: translateY(-1px); }
.ag-sent { display: none; align-items: center; gap: .35rem; margin: .5rem 0 0; font-size: .72rem; font-weight: 800; color: var(--ag-green); }
.ag-sent svg { width: .9rem; height: .9rem; stroke-width: 3; }
.ag-card.is-ok .ag-sent { display: inline-flex; }

.ag-pair { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .ag-pair { grid-template-columns: 1.3fr 1fr; } }
.ag-kv { display: grid; gap: .25rem; margin: 0; }
.ag-kv > div { display: grid; grid-template-columns: 4.6rem 1fr; gap: .5rem; font-size: .74rem; line-height: 1.35; animation: ag-rise .4s var(--ag-ease) both; }
.ag-kv > div:nth-child(2) { animation-delay: .15s; } .ag-kv > div:nth-child(3) { animation-delay: .3s; } .ag-kv > div:nth-child(4) { animation-delay: .45s; }
.ag-kv dt { color: rgba(200,205,235,.65); }
.ag-kv dd { margin: 0; font-weight: 700; color: #fff; }
.ag-notif-t { margin: 0; padding: .5rem .65rem; border-radius: .2rem .7rem .7rem .7rem; font-size: .74rem; line-height: 1.45; color: #fff; background: rgba(37,211,102,.16); border: 1px solid rgba(37,211,102,.4); }

.ag-demo-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .2rem; }
.ag-run { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: .8rem; font-size: .86rem; font-weight: 800; color: #1B2A00; background: var(--ag-lime); border: 0; transition: background .2s, transform .2s, opacity .2s; }
.ag-run svg { width: 1rem; height: 1rem; }
.ag-run:hover:not(:disabled) { background: #BEF264; transform: translateY(-1px); }
.ag-run:disabled { opacity: .55; cursor: default; }
.ag-demo[data-state="idle"] .ag-run { animation: ag-glowp 1.8s ease-in-out infinite; --gp: 163,230,53; }
.ag-demo:not(.is-live) .ag-run { display: none; }
.ag-under { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; color: #B9A4FF; }
.ag-under:hover { text-decoration: underline; }
.ag-under svg { width: .9rem; height: .9rem; }
.ag-fine { margin: 0; font-size: .64rem; line-height: 1.4; color: rgba(200,205,235,.55); }

/* ── trust strip ── */
.ag-trust { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.4rem; padding: 1.3rem 1.4rem; border-radius: 1.2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); list-style: none; }
@media (min-width: 640px) { .ag-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ag-trust { grid-template-columns: repeat(4, 1fr); gap: 0; } .ag-trust > li + li { border-left: 1px solid rgba(255,255,255,.12); padding-left: 1.4rem; } }
.ag-trust > li { display: flex; align-items: center; gap: .8rem; }
.ag-trust svg { flex: none; width: 2rem; height: 2rem; color: var(--ag-violet); stroke-width: 1.5; }
.ag-trust b { display: block; font-size: .86rem; font-weight: 800; color: #fff; line-height: 1.25; }
.ag-trust span { display: block; font-size: .74rem; color: rgba(200,205,235,.7); margin-top: .1rem; }

/* ═════════ OUTCOMES ═════════ */
.ag-out { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .ag-out { grid-template-columns: repeat(3, 1fr); } }
.ag-ocard { --c: 167,139,250; height: 100%; display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.3rem; border-radius: 1.1rem; background: linear-gradient(160deg, rgba(var(--c),.16), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c),.32); transition: transform .3s var(--ag-ease), box-shadow .3s, border-color .3s; }
.ag-ocard:hover { transform: translateY(-5px); border-color: rgba(var(--c),.7); box-shadow: 0 20px 44px rgba(var(--c),.2); }
.ag-ocard.g { --c: 74,222,128; } .ag-ocard.b { --c: 74,143,255; }
.ag-ocard .ico { flex: none; width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center; color: rgb(var(--c)); background: rgba(var(--c),.14); }
.ag-ocard .ico svg { width: 1.5rem; height: 1.5rem; }
.ag-ocard h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: #fff; }
.ag-ocard p { margin: 0; font-size: .86rem; line-height: 1.6; color: rgba(220,229,240,.78); }

/* ═════════ COMPARE ═════════ */
.ag-cmp-wrap { margin-top: 2rem; overflow-x: auto; border-radius: 1.2rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.ag-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
@media (min-width: 640px) { .ag-cmp { font-size: .86rem; } .ag-cmp th, .ag-cmp td { padding: .85rem 1rem; } }
.ag-cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-cmp th, .ag-cmp td { padding: .75rem .4rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.ag-cmp tbody tr:last-child th, .ag-cmp tbody tr:last-child td { border-bottom: 0; }
.ag-cmp thead th { font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(200,205,235,.8); }
.ag-cmp tbody th { width: 42%; padding-left: .8rem; text-align: left; font-weight: 700; line-height: 1.35; color: #E8EAF6; }
@media (min-width: 640px) { .ag-cmp tbody th { width: 40%; padding-left: 1rem; } }
@media (min-width: 640px) { .ag-cmp thead th { font-size: .78rem; letter-spacing: .06em; } }
.ag-cmp .me { background: linear-gradient(180deg, rgba(123,26,250,.28), rgba(123,26,250,.12)); }
.ag-cmp thead .me { color: #fff; border-top-left-radius: 0; }
.ag-cmp thead .me span { display: inline-flex; align-items: center; gap: .4rem; }
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-note a { color: #B9A4FF; text-decoration: underline; }
.ag-mk { position: relative; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; }
.ag-mk svg { width: .85rem; height: .85rem; stroke-width: 3; }
.ag-mk.y { background: rgba(74,222,128,.18); color: var(--ag-green); }
.ag-mk.p { background: rgba(251,191,36,.16); color: var(--ag-amber); }
.ag-mk.n { background: rgba(255,255,255,.07); color: rgba(200,205,235,.45); }
.ag-note { margin: 1rem 0 0; font-size: .84rem; color: rgba(200,205,235,.72); }

/* ═════════ AGENT CATALOG (tabs) ═════════ */
.ag-cat { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 960px) { .ag-cat { grid-template-columns: 17.5rem 1fr; gap: 1.6rem; align-items: start; } }
.ag-tabs { display: none; gap: .5rem; margin: 0; padding: 0 0 .4rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ag-cat.is-live .ag-tabs { display: flex; }
@media (min-width: 960px) { .ag-tabs { flex-direction: column; overflow: visible; padding: 0; } }
.ag-tab { flex: none; width: auto; display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: .95rem; text-align: left; font: inherit; color: #E8EAF6; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); cursor: pointer; white-space: nowrap; scroll-snap-align: start; transition: background .25s, border-color .25s, transform .25s var(--ag-ease); }
.ag-tab:hover { border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.1); }
.ag-tab:focus-visible { outline: 3px solid var(--ag-violet); outline-offset: 2px; }
.ag-tab .ico { flex: none; width: 2.1rem; height: 2.1rem; border-radius: .65rem; display: grid; place-items: center; background: rgba(167,139,250,.16); color: #C9B8FF; transition: background .25s, color .25s; }
.ag-tab .ico svg { width: 1.15rem; height: 1.15rem; }
.ag-tab b { display: block; font-size: .86rem; font-weight: 800; line-height: 1.2; }
.ag-tab small { display: none; margin-top: .1rem; font-size: .7rem; font-weight: 500; color: rgba(200,205,235,.65); }
@media (min-width: 960px) { .ag-tab small { display: block; } }
@media (min-width: 960px) { .ag-tab { width: 100%; } }
.ag-tab[aria-selected="true"] { background: linear-gradient(135deg, rgba(123,26,250,.55), rgba(10,90,223,.4)); border-color: rgba(167,139,250,.9); box-shadow: 0 14px 34px rgba(123,26,250,.3); }
@media (min-width: 960px) { .ag-tab[aria-selected="true"] { transform: translateX(6px); } }
.ag-tab[aria-selected="true"] .ico { background: #fff; color: #5B21D6; }
.ag-tab[aria-selected="true"] small { color: rgba(255,255,255,.8); }

.ag-panels { display: grid; gap: 1.2rem; }
.ag-cat.is-live .ag-panels { display: block; }
.ag-panel { padding: 1.4rem 1.2rem 1.5rem; border-radius: 1.3rem; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 640px) { .ag-panel { padding: 1.8rem 1.8rem 1.9rem; } }
.ag-panel:not([hidden]) { animation: ag-rise .45s var(--ag-ease) both; }
.ag-p-head { display: flex; gap: 1rem; align-items: flex-start; }
.ag-p-ico { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7B1AFA, #0A5ADF); box-shadow: 0 10px 26px rgba(123,26,250,.4); }
.ag-p-ico svg { width: 1.6rem; height: 1.6rem; }
.ag-panel h3 { margin: 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; color: #fff; }
.ag-panel .ag-p-sum { margin: .35rem 0 0; font-size: .95rem; line-height: 1.65; color: rgba(220,229,240,.82); }
.ag-flow { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .ag-flow { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } .ag-flow > li:not(:last-child)::after { content: ''; position: absolute; top: 1.6rem; right: -.95rem; width: .8rem; height: .8rem; border-top: 2px solid rgba(167,139,250,.7); border-right: 2px solid rgba(167,139,250,.7); transform: rotate(45deg); } }
.ag-flow > li { position: relative; padding: 1rem 1rem 1.1rem; border-radius: 1rem; background: rgba(6,12,30,.55); border: 1px solid rgba(255,255,255,.1); }
.ag-flow .lb { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .45rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-violet); }
.ag-flow .lb svg { width: .95rem; height: .95rem; }
.ag-flow p { margin: 0; font-size: .84rem; line-height: 1.6; color: rgba(232,234,246,.9); }
.ag-p-foot { display: grid; gap: 1rem; margin-top: 1.1rem; }
@media (min-width: 720px) { .ag-p-foot { grid-template-columns: 1fr 1fr; } }
.ag-p-foot h4 { margin: 0 0 .6rem; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(200,205,235,.75); }
.ag-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ag-chips li { padding: .3rem .7rem; border-radius: 9999px; font-size: .76rem; font-weight: 700; color: #E8EAF6; background: rgba(74,143,255,.14); border: 1px solid rgba(74,143,255,.35); }
.ag-gate { display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: 1rem; background: rgba(163,230,53,.08); border: 1px solid rgba(163,230,53,.35); }
.ag-gate svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--ag-lime); margin-top: .1rem; }
.ag-gate h4 { color: var(--ag-lime); margin-bottom: .3rem; }
.ag-gate p { margin: 0; font-size: .84rem; line-height: 1.55; color: rgba(232,234,246,.9); }
.ag-cat:not(.is-live) .ag-panel + .ag-panel { margin-top: 0; }

/* ═════════ AGENT IN ACTION ═════════ */
.ag-walk { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
@media (min-width: 960px) { .ag-walk { grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch; } }
.ag-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; counter-reset: s; }
.ag-step { position: relative; width: 100%; display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; text-align: left; font: inherit; color: inherit; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); overflow: hidden; transition: background .3s, border-color .3s; }
.ag-step:hover { border-color: rgba(167,139,250,.5); }
.ag-step:focus-visible { outline: 3px solid var(--ag-violet); outline-offset: 2px; }
.ag-step .n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 900; color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); transition: background .3s, color .3s, border-color .3s; }
.ag-step .h { display: block; margin: .1rem 0 .2rem; font-size: .98rem; font-weight: 800; line-height: 1.3; color: #fff; }
.ag-step .p { display: block; font-size: .8rem; line-height: 1.55; color: rgba(200,205,235,.72); }
.ag-step::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--ag-violet), var(--ag-cyan)); }
.ag-walk.is-live .ag-step { opacity: .62; }
.ag-walk.is-live .ag-step.is-on { opacity: 1; }
.ag-step.is-on .n { background: rgba(167,139,250,.25); border-color: var(--ag-violet); color: #fff; }
.ag-step.is-cur { background: linear-gradient(135deg, rgba(123,26,250,.4), rgba(10,90,223,.28)); border-color: rgba(167,139,250,.85); }
.ag-step.is-cur .n { background: var(--ag-violet); color: #1B0B4D; }
.ag-walk.is-auto .ag-step.is-cur::after { animation: ag-fill var(--dur, 4.6s) linear forwards; }
.ag-walk.is-auto:has(.ag-console:hover) .ag-step.is-cur::after { animation-play-state: paused; }
@keyframes ag-fill { from { width: 0; } to { width: 100%; } }

.ag-console { display: flex; flex-direction: column; border-radius: 1.2rem; overflow: hidden; background: #050A1A; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 26px 60px rgba(0,0,0,.45); }
.ag-con-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .74rem; color: rgba(255,255,255,.8); }
.ag-con-bar .d { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.22); }
.ag-con-bar b { margin-left: .4rem; font-weight: 700; }
.ag-con-bar .tag { margin-left: auto; padding: .15rem .55rem; border-radius: 9999px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ag-lime); border: 1px solid rgba(163,230,53,.4); }
.ag-con-body { flex: 1; padding: 1rem 1.1rem 1.2rem; min-height: 21rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; line-height: 1.65; color: #C9D6E8; display: grid; align-content: start; gap: .8rem; }
.ag-tr p { margin: 0; overflow-wrap: anywhere; }
.ag-tr .t { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(200,205,235,.5); margin-bottom: .1rem; }
.ag-tr .k { color: #C9B8FF; } .ag-tr .s { color: #86EFAC; } .ag-tr .w { color: var(--ag-amber); } .ag-tr .c { color: #5FF3F5; } .ag-tr .m { color: #fff; }
.ag-tr .q { padding: .5rem .7rem; margin-top: .2rem; border-left: 3px solid var(--ag-violet); background: rgba(167,139,250,.08); color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: .8rem; border-radius: 0 .5rem .5rem 0; }
.ag-walk.is-live .ag-tr { display: none; }
.ag-walk.is-live .ag-tr.is-on { display: block; opacity: .55; }
.ag-walk.is-live .ag-tr.is-cur { opacity: 1; animation: ag-rise .5s var(--ag-ease) both; }
.ag-con-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; color: rgba(200,205,235,.7); }
.ag-replay { display: none; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 9999px; font: inherit; font-size: .72rem; font-weight: 800; color: #fff; cursor: pointer; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); transition: background .2s; }
.ag-replay:hover { background: rgba(255,255,255,.16); }
.ag-replay:focus-visible { outline: 3px solid var(--ag-violet); outline-offset: 2px; }
.ag-replay svg { width: .85rem; height: .85rem; }
.ag-walk.is-live .ag-replay { display: inline-flex; }

/* ═════════ ARCHITECTURE STACK ═════════ */
.ag-arch { display: grid; gap: 2rem; margin-top: 2.2rem; }
@media (min-width: 1024px) { .ag-arch { grid-template-columns: 1.7fr 1fr; gap: 2.4rem; align-items: start; } }
.ag-layers { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.ag-layers::before { content: ''; position: absolute; left: 2.1rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: linear-gradient(180deg, var(--ag-violet), var(--ag-cyan)); opacity: .45; }
.ag-layer { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1.1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: border-color .3s, transform .3s var(--ag-ease), background .3s; }
.ag-layer:hover { transform: translateX(5px); border-color: rgba(167,139,250,.6); background: rgba(167,139,250,.08); }
.ag-layer .num { position: relative; z-index: 1; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #7B1AFA, #0A5ADF); box-shadow: 0 0 0 4px #0C1547; }
.ag-layer h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 800; color: #fff; }
.ag-layer p { margin: 0 0 .6rem; font-size: .84rem; line-height: 1.55; color: rgba(220,229,240,.76); }
.ag-layer.core { background: linear-gradient(135deg, rgba(123,26,250,.28), rgba(10,90,223,.16)); border-color: rgba(167,139,250,.55); }
.ag-side { display: grid; gap: 1rem; }
.ag-callout { padding: 1.3rem 1.3rem 1.4rem; border-radius: 1.1rem; background: linear-gradient(160deg, rgba(var(--c, 167,139,250), .18), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c, 167,139,250), .38); }
.ag-callout.g { --c: 74,222,128; } .ag-callout.b { --c: 74,143,255; }
.ag-callout svg { width: 1.7rem; height: 1.7rem; color: rgb(var(--c, 167,139,250)); margin-bottom: .6rem; }
.ag-callout h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; color: #fff; }
.ag-callout p { margin: 0; font-size: .84rem; line-height: 1.6; color: rgba(220,229,240,.8); }

/* ═════════ AUTONOMY DIAL ═════════ */
.ag-dial { margin-top: 2.2rem; }
.ag-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 1.4rem; }
.ag-track::before, .ag-track::after { content: ''; position: absolute; top: 1.35rem; left: 12.5%; height: 4px; border-radius: 4px; }
.ag-track::before { right: 12.5%; background: rgba(255,255,255,.14); }
.ag-track::after { width: 0; background: linear-gradient(90deg, var(--ag-violet), var(--ag-cyan)); transition: width .5s var(--ag-ease); }
.ag-dial.is-live .ag-track::after { width: calc(var(--lv, 1) / 3 * 75%); }
.ag-lv { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 0 .25rem; text-align: center; cursor: pointer; }
.ag-lv input { position: absolute; opacity: 0; pointer-events: none; }
.ag-lv .dot { position: relative; z-index: 1; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; font-weight: 900; color: rgba(255,255,255,.7); background: #0C1547; border: 2px solid rgba(255,255,255,.25); transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s var(--ag-ease); }
.ag-lv:hover .dot { border-color: var(--ag-violet); }
.ag-lv input:focus-visible + .dot { outline: 3px solid var(--ag-violet); outline-offset: 3px; }
.ag-lv.is-reached .dot { border-color: var(--ag-violet); color: #fff; background: #2B1180; }
.ag-lv input:checked + .dot { background: var(--ag-violet); border-color: #fff; color: #1B0B4D; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(167,139,250,.25); }
.ag-lv .nm { font-size: .82rem; font-weight: 800; line-height: 1.2; color: rgba(232,234,246,.85); }
.ag-lv input:checked ~ .nm { color: #fff; }
.ag-lv .rec { display: none; padding: .12rem .5rem; border-radius: 9999px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1B2A00; background: var(--ag-lime); }
@media (min-width: 640px) { .ag-lv .rec { display: inline-block; } }
@media (max-width: 479px) { .ag-lv .nm { font-size: .7rem; } .ag-lv .dot { width: 2.4rem; height: 2.4rem; } .ag-track::before, .ag-track::after { top: 1.2rem; } }

.ag-lvl { display: grid; gap: 1.2rem; padding: 1.4rem 1.2rem; border-radius: 1.3rem; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 800px) { .ag-lvl { grid-template-columns: 1.25fr 1fr; padding: 1.8rem; gap: 2rem; } }
.ag-lvl[hidden] { display: none; }
.ag-lvl:not([hidden]) { animation: ag-rise .45s var(--ag-ease) both; }
.ag-dial:not(.is-live) .ag-lvl + .ag-lvl { margin-top: 1rem; }
.ag-lvl h3 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 900; color: #fff; }
.ag-lvl > div > p { margin: 0 0 .8rem; font-size: .94rem; line-height: 1.65; color: rgba(220,229,240,.82); }
.ag-eg { padding: .8rem 1rem; border-radius: .9rem; font-size: .84rem; line-height: 1.55; color: rgba(232,234,246,.92); background: rgba(6,12,30,.55); border: 1px solid rgba(255,255,255,.1); }
.ag-eg b { display: block; margin-bottom: .2rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-violet); }
.ag-meters { display: grid; gap: 1rem; align-content: center; }
.ag-meter span { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .76rem; font-weight: 800; color: #E8EAF6; }
.ag-meter span em { font-style: normal; font-weight: 600; color: rgba(200,205,235,.65); }
.ag-bar { position: relative; height: .6rem; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.ag-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 25%); border-radius: 99px; background: linear-gradient(90deg, var(--ag-violet), var(--ag-cyan)); transition: width .6s var(--ag-ease); }
.ag-bar.o i { background: linear-gradient(90deg, var(--ag-lime), var(--ag-green)); }
.ag-best { margin: 0; font-size: .8rem; color: rgba(200,205,235,.75); }
.ag-best b { color: #fff; }

/* ═════════ TRUST + ACTIVITY LOG ═════════ */
.ag-trust-grid { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
@media (min-width: 1024px) { .ag-trust-grid { grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; } }
.ag-guard { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .ag-guard { grid-template-columns: repeat(2, 1fr); } }
.ag-gcard { --c: 167,139,250; height: 100%; padding: 1.1rem 1.1rem 1.2rem; border-radius: 1rem; background: linear-gradient(160deg, rgba(var(--c),.14), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c),.3); transition: transform .3s var(--ag-ease), border-color .3s; }
.ag-gcard:hover { transform: translateY(-4px); border-color: rgba(var(--c),.7); }
.ag-gcard.g { --c: 74,222,128; } .ag-gcard.b { --c: 74,143,255; } .ag-gcard.a { --c: 251,191,36; }
.ag-gcard svg { width: 1.6rem; height: 1.6rem; color: rgb(var(--c)); margin-bottom: .6rem; }
.ag-gcard h3 { margin: 0 0 .3rem; font-size: .95rem; font-weight: 800; color: #fff; }
.ag-gcard p { margin: 0; font-size: .8rem; line-height: 1.55; color: rgba(220,229,240,.76); }

.ag-audit { border-radius: 1.2rem; overflow: hidden; background: #050A1A; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 26px 60px rgba(0,0,0,.4); }
.ag-audit-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1.1rem; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .8rem; font-weight: 800; color: #fff; }
.ag-audit-head span { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(200,205,235,.6); }
.ag-rows { margin: 0; padding: .5rem; list-style: none; display: grid; gap: .3rem; }
.ag-row { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: center; padding: .65rem .7rem; border-radius: .7rem; background: rgba(255,255,255,.04); }
.js .ag-audit .ag-row { opacity: 0; transform: translateY(10px); }
.js .ag-audit.is-in .ag-row { animation: ag-rise .5s var(--ag-ease) both; animation-delay: calc(.15s + var(--i) * .22s); }
.ag-row time { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; color: rgba(200,205,235,.55); }
.ag-row p { margin: 0; font-size: .8rem; line-height: 1.4; color: #E8EAF6; }
.ag-row p b { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-violet); }
.ag-st { padding: .2rem .6rem; border-radius: 9999px; font-size: .64rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.ag-st.auto { color: #86EFAC; background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.35); }
.ag-st.appr { color: #93C5FD; background: rgba(74,143,255,.15); border: 1px solid rgba(74,143,255,.4); }
.ag-st.esc  { color: var(--ag-amber); background: rgba(251,191,36,.13); border: 1px solid rgba(251,191,36,.4); }
.ag-st.blk  { color: #FCA5A5; background: rgba(248,113,113,.13); border: 1px solid rgba(248,113,113,.4); }
.ag-audit-foot { margin: 0; padding: .7rem 1.1rem .9rem; font-size: .72rem; color: rgba(200,205,235,.6); }

/* ═════════ PROCESS ═════════ */
.ag-proc { position: relative; display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 2.4rem 0 0; padding: 0; list-style: none; counter-reset: p; }
@media (min-width: 700px) { .ag-proc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ag-proc { grid-template-columns: repeat(5, 1fr); gap: 1rem; } .ag-proc::before { content: ''; position: absolute; top: 2.1rem; left: 3.8%; right: 15%; height: 2px; background: linear-gradient(90deg, var(--ag-violet), var(--ag-cyan)); opacity: .45; } }
.ag-pstep { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.2rem 1.1rem 1.3rem; border-radius: 1.1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); transition: transform .3s var(--ag-ease), border-color .3s, box-shadow .3s; }
.ag-pstep:hover { transform: translateY(-6px); border-color: rgba(167,139,250,.7); box-shadow: 0 20px 44px rgba(123,26,250,.22); }
.ag-pnum { position: relative; z-index: 1; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .9rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #7B1AFA, #0A5ADF); box-shadow: 0 0 0 5px #060C1E; }
.ag-alt .ag-pnum { box-shadow: 0 0 0 5px #0C1547; }
.ag-pnum svg { width: 1.3rem; height: 1.3rem; }
.ag-pstep h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; color: #fff; }
.ag-pstep h3 small { display: block; margin-bottom: .15rem; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-violet); }
.ag-pstep p { margin: 0 0 1rem; font-size: .82rem; line-height: 1.6; color: rgba(220,229,240,.76); }
.ag-pstep .ag-get { margin: auto 0 0; padding-top: .7rem; border-top: 1px dashed rgba(255,255,255,.18); font-size: .76rem; line-height: 1.45; color: rgba(232,234,246,.9); }
.ag-get b { display: block; margin-bottom: .15rem; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-lime); }

/* ═════════ FAQ ═════════ */
.ag-faqwrap { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .ag-faqwrap { grid-template-columns: 18rem 1fr; gap: 3rem; align-items: start; } }
.ag-faq { max-width: 48rem; display: grid; gap: .7rem; }
.ag-q { border-radius: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: border-color .25s, background .25s, box-shadow .25s; }
.ag-q:hover { border-color: rgba(167,139,250,.5); }
.ag-q[open] { background: rgba(255,255,255,.09); border-color: rgba(167,139,250,.7); box-shadow: 0 14px 38px rgba(123,26,250,.18); }
.ag-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1rem 1.2rem; min-height: 3.2rem; font-size: .96rem; font-weight: 800; color: #fff; }
.ag-q summary::-webkit-details-marker { display: none; }
.ag-q summary svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--ag-violet); transition: transform .3s var(--ag-ease); }
.ag-q[open] summary svg { transform: rotate(45deg); }
.ag-q summary:focus-visible { outline: 3px solid var(--ag-violet); outline-offset: 2px; border-radius: 1rem; }
.ag-qa { padding: 0 1.2rem 1.1rem; font-size: .92rem; line-height: 1.7; color: rgba(220,229,240,.82); animation: ag-rise .35s var(--ag-ease) both; }
.ag-qa a { color: #B9A4FF; text-decoration: underline; }

/* ═════════ CTA ═════════ */
.ag-cta { position: relative; overflow: hidden; display: grid; gap: 1.4rem; align-items: center; padding: 2rem 1.6rem; border-radius: 1.4rem; background: radial-gradient(ellipse 600px 300px at 0% 0%, rgba(123,26,250,.6), transparent 65%), radial-gradient(ellipse 500px 260px at 100% 100%, rgba(10,90,223,.4), transparent 65%), linear-gradient(135deg, #1d1058, #0B1240); border: 1px solid rgba(255,255,255,.16); }
@media (min-width: 768px) { .ag-cta { grid-template-columns: auto 1fr auto; padding: 2.2rem 2.6rem; gap: 2rem; } }
.ag-cta-ico { width: 4.4rem; height: 4.4rem; border-radius: 1.2rem; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7B1AFA, #0A5ADF); box-shadow: 0 0 0 6px rgba(123,26,250,.25), 0 14px 40px rgba(123,26,250,.5); animation: ag-float 6s ease-in-out infinite; }
.ag-cta-ico svg { width: 2.2rem; height: 2.2rem; }
.ag-cta h2 { margin: 0; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); font-weight: 900; line-height: 1.15; color: #fff; }
.ag-cta h2 .ag-hl { color: var(--ag-lime); }
.ag-cta h2 .ag-hl::after { background: var(--ag-violet); }
.ag-cta p { margin: .6rem 0 0; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.8); }

/* ═════════ REDUCED MOTION ═════════ */
@media (prefers-reduced-motion: reduce) {
  .ag-glow, .ag-win-bar em i, .ag-hero-copy > *, .ag-cta-ico, .ag-tags li, .ag-kv > div, .ag-gatebar, .ag-card.is-on, .ag-pipe .pi, .ag-btn-p, .ag-run { animation: none !important; }
  .js .ag-reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .js .ag-audit .ag-row { opacity: 1; transform: none; animation: none !important; }
  .ag-hl::after { transform: scaleX(1) !important; animation: none !important; }
  .ag-panel:not([hidden]), .ag-lvl:not([hidden]), .ag-walk.is-live .ag-tr.is-cur { animation: none !important; }
}
