/* =====================================================================
   Atrustos | Developers page
   Three-call walkthrough with a live code window; webhook event stream.
   ===================================================================== */
.tick-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: dev-blink 1.6s ease-in-out infinite; flex: none; }
@keyframes dev-blink { 50% { opacity: .35; } }

/* ---------- three calls ---------- */
.calls { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.calls__steps { display: grid; gap: 8px; }
.calls__steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); cursor: pointer;
  border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s var(--ease); }
.calls__steps li:hover { background: rgba(255,255,255,.03); }
.calls__steps li > span { font-size: 12px; color: var(--text-3); padding-top: 4px; }
.calls__steps b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--text-2); }
.calls__steps p { font-size: 14.5px; color: var(--text-3); margin-top: 4px; }
.calls__steps li.on { background: rgba(255,255,255,.05); border-color: var(--line); }
.calls__steps li.on > span { color: var(--accent-2); }
.calls__steps li.on b { color: #fff; }
.calls__steps li.on p { color: var(--text-2); }

.calls__code { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, rgba(10,12,26,.85), rgba(6,8,18,.9)); min-height: 360px; }
.calls__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }
.calls__dots { display: flex; gap: 6px; }
.calls__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.calls__pre { margin: 0; padding: 22px 24px 96px; font-size: 13.5px; line-height: 1.75; color: #dfe5ff; white-space: pre; overflow-x: auto; animation: dev-in .35s var(--ease) both; }
@keyframes dev-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.calls__pre .c-com { color: #6f7aa6; }
.calls__pre .c-key { color: #ff9a6b; font-weight: 600; }
.calls__pre .c-str { color: #9fefff; }
.calls__pre .c-pun { color: #a5aed6; }
.calls__pre .c-num { color: #c8b8ff; }
.calls__phone { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
  opacity: .35; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.calls[data-step="1"] .calls__phone, .calls[data-step="2"] .calls__phone { opacity: 1; transform: none; }
.calls__phone-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,106,43,.18); color: var(--accent-2); }
.calls__phone-ico svg { width: 18px; height: 18px; }
.calls__phone b { display: block; font-size: 13px; }
.calls__phone small { font-size: 10.5px; color: var(--text-3); }
.calls__phone-ok { font-size: 10.5px; padding: 3px 8px; border-radius: 6px; color: var(--mint); background: rgba(79,240,180,.12); }

/* ---------- webhooks ---------- */
.hooks { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hooks__text h2 { margin: 22px 0 18px; }
.hooks__text .lead { margin-bottom: 22px; }
.hooks__stream { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, rgba(10,12,26,.85), rgba(6,8,18,.9)); }
.hooks__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--mint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; }
.hooks__list { height: 330px; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hooks__list li { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; animation: dev-in .4s var(--ease) both; }
.hooks__list li:first-child { background: rgba(255,255,255,.05); }
.hooks__list .t { color: var(--text-3); }
.hooks__list .e { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; }
.hooks__list .e.grant { color: var(--mint); background: rgba(79,240,180,.1); }
.hooks__list .e.update { color: var(--accent-2); background: rgba(255,106,43,.12); }
.hooks__list .e.sign { color: var(--violet); background: rgba(141,125,255,.14); }
.hooks__list .e.revoke { color: var(--rose); background: rgba(255,92,134,.12); }
.hooks__list .d { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hooks__list .s { color: var(--mint); }

@media (max-width: 1020px) {
  .calls, .hooks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .calls__pre { font-size: 12px; padding: 18px 16px 110px; }
  .calls__phone { left: 12px; right: 12px; }
  .hooks__list li { grid-template-columns: auto 1fr auto; }
  .hooks__list .t { display: none; }
}
