/* Monochrome feature illustrations for the "Everything you need" section.
   Each visual animates its own elements; nothing here fades a whole card in. */

.feature-anim {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: 320px;
  margin: 0 auto;
  color: #111111;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.feature-anim *,
.feature-anim *::before,
.feature-anim *::after { box-sizing: border-box; }

/* ---------- Context selection ---------- */

.fa-context {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 28px minmax(0, 0.95fr);
  align-items: center;
  max-width: 342px;
}
.fa-ctx-repo {
  width: 100%;
  padding: 8px;
  border: 1px solid #e3e3de;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.4);
}
.fa-ctx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  padding: 2px 5px 8px;
  border-bottom: 1px solid #efefeb;
  color: #8a8a8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fa-ctx-file {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 5px;
  border-radius: 5px;
  color: #8a8a8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
}
.fa-ctx-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d4d4d4;
}
.fa-ctx-tag {
  margin-left: auto;
  padding: 1px 3px;
  border: 1px solid #e3e3de;
  border-radius: 3px;
  color: #9a9a9a;
  font-size: 6.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-ctx-file.is-picked {
  color: #111111;
  animation: ctxPick 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.fa-ctx-file.is-picked .fa-ctx-dot {
  background: #111111;
  animation: ctxDot 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.fa-ctx-file.is-picked .fa-ctx-tag {
  color: #d4d4d4;
  border-color: #333333;
}
.fa-ctx-link {
  position: relative;
  width: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #cfcfca 0 3px, transparent 3px 6px);
}
.fa-ctx-link span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111111;
  animation: ctxTravel 1.9s linear infinite;
}
.fa-ctx-send {
  width: 100%;
  padding: 12px 10px;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.8);
  animation: ctxSend 7s ease-in-out infinite;
}
.fa-ctx-label {
  display: block;
  color: #a3a3a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fa-ctx-send b {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fa-ctx-tokens {
  display: block;
  margin-top: 7px;
  color: #d4d4d4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  white-space: nowrap;
}
.fa-ctx-tokens i { color: #7a7a7a; font-style: normal; }
@keyframes ctxPick {
  0%, 18% { background: transparent; color: #8a8a8a; }
  25%, 68% { background: #111111; color: #ffffff; }
  76%, 100% { background: transparent; color: #8a8a8a; }
}
@keyframes ctxDot {
  0%, 18% { background: #d4d4d4; }
  25%, 68% { background: #ffffff; }
  76%, 100% { background: #111111; }
}
@keyframes ctxTravel {
  0% { left: -5px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes ctxSend {
  0%, 16% { transform: scale(0.96); opacity: 0.7; }
  24%, 82% { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0.96); opacity: 0.7; }
}

/* ---------- Cache-aware repetition ---------- */

.fa-cache {
  flex-direction: column;
  gap: 10px;
  max-width: 285px;
}
.fa-cache-card {
  width: 100%;
  padding: 13px 14px 12px;
  border: 1px solid #e3e3de;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px -26px rgba(0, 0, 0, 0.5);
}
.fa-cache-card.is-hit {
  border-color: #111111;
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.75);
}
.fa-cache-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8a8a8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-cache-badge {
  padding: 3px 5px;
  border: 1px solid #e3e3de;
  border-radius: 3px;
  color: #777777;
  font-size: 6.5px;
}
.fa-cache-card.is-hit .fa-cache-badge {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  animation: cacheBadge 7s ease-in-out infinite;
}
.fa-cache-amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 11px;
}
.fa-cache-amount b {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  animation: cacheNumber 7s ease-in-out infinite;
}
.fa-cache-card.is-hit .fa-cache-amount b { animation-delay: 0.8s; }
.fa-cache-amount span {
  color: #8a8a8a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-cache-amount em {
  margin-left: auto;
  color: #555555;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-style: normal;
}
.fa-cache-bar {
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #efefeb;
}
.fa-cache-bar i {
  display: block;
  width: var(--w, 100%);
  height: 100%;
  border-radius: inherit;
  background: #111111;
  transform-origin: left;
  animation: cacheBar 7s ease-in-out infinite;
}
.fa-cache-card.is-hit .fa-cache-bar i { animation-delay: 0.8s; }
.fa-cache-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #9a9a9a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fa-cache-mid span {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, #d7d7d2 0 3px, transparent 3px 6px);
}
@keyframes cacheBadge {
  0%, 22% { transform: scale(0.92); opacity: 0.5; }
  30%, 82% { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0.92); opacity: 0.5; }
}
@keyframes cacheNumber {
  0%, 16% { opacity: 0.35; transform: translateY(3px); }
  26%, 88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.35; transform: translateY(3px); }
}
@keyframes cacheBar {
  0%, 12% { transform: scaleX(0); }
  36%, 88% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* ---------- Output contracts ---------- */

.fa-contract { max-width: 292px; }
.fa-contract-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e3e3de;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.55);
}
.fa-contract-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #111111;
  transform: scaleY(0);
  transform-origin: top;
  animation: contractRule 7s ease-in-out infinite;
}
.fa-contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #efefeb;
  color: #6f6f6f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fa-contract-status {
  padding: 3px 6px;
  border-radius: 3px;
  background: #111111;
  color: #ffffff;
  font-size: 6.5px;
  animation: contractStatus 7s ease-in-out infinite;
}
.fa-contract-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f1ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  animation: contractRow 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.fa-contract-row .key { color: #8a8a8a; }
.fa-contract-row .val { color: #111111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-contract-check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  transform: scale(0);
  animation: contractCheck 7s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + 0.3s);
}
.fa-contract-check svg { display: block; }
.fa-contract-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  color: #9a9a9a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@keyframes contractRule {
  0%, 12% { transform: scaleY(0); }
  30%, 88% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@keyframes contractStatus {
  0%, 18% { opacity: 0.25; transform: translateY(-2px); }
  26%, 86% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0.25; transform: translateY(-2px); }
}
@keyframes contractRow {
  0%, 12% { opacity: 0.35; transform: translateX(-4px); }
  26%, 88% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0.35; transform: translateX(-4px); }
}
@keyframes contractCheck {
  0%, 18% { transform: scale(0); }
  28%, 84% { transform: scale(1); }
  92%, 100% { transform: scale(0); }
}

/* ---------- Per-request report ---------- */

.fa-report { max-width: 286px; }
.fa-report-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #111111;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.55);
}
.fa-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: #111111;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fa-report-head span:last-child { color: #a3a3a3; }
.fa-report-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f1ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  animation: reportRow 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.fa-report-row span { color: #8a8a8a; }
.fa-report-row b { color: #111111; font-weight: 500; }
.fa-report-row i { color: #a3a3a3; font-style: normal; }
.fa-report-row b + i { margin: 0 3px; }
.fa-report-row .ok { color: #111111; }
.fa-report-row .ok::before { content: "✓ "; }
.fa-report-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #f5f5f1;
}
.fa-report-save span {
  color: #6f6f6f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fa-report-save b {
  padding: 4px 7px;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.03em;
  transform: scale(0.7);
  animation: reportSave 7s ease-in-out infinite;
}
@keyframes reportRow {
  0%, 12% { opacity: 0.4; transform: translateY(4px); }
  26%, 88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.4; transform: translateY(4px); }
}
@keyframes reportSave {
  0%, 38% { transform: scale(0.7); opacity: 0.3; }
  48%, 88% { transform: scale(1); opacity: 1; }
  98%, 100% { transform: scale(0.7); opacity: 0.3; }
}

/* ---------- Key control ---------- */

.fa-key { max-width: 308px; }
.fa-key-card {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.fa-key-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4d4d4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fa-key-shield {
  position: relative;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: #ffffff;
}
.fa-key-shield::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: keyPulse 7s ease-out infinite;
}
.fa-key-live {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  color: #ffffff;
  font-size: 6.5px;
}
.fa-key-live::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: #ffffff;
  animation: keyLive 7s ease-in-out infinite;
}
.fa-key-value {
  margin-top: 18px;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: keyValue 7s ease-in-out infinite;
}
.fa-key-meta {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 8px;
  padding-top: 11px;
  margin-top: 13px;
  border-top: 1px solid #2c2c2c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-key-meta span { color: #8a8a8a; }
.fa-key-meta b { color: #ffffff; font-weight: 500; }
.fa-key-meta i { color: #ffffff; font-style: normal; text-align: right; }
@keyframes keyPulse {
  0%, 20% { transform: scale(1); opacity: 0; }
  28% { opacity: 0.5; }
  48% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes keyLive {
  0%, 22% { opacity: 0.25; }
  32%, 82% { opacity: 1; }
  92%, 100% { opacity: 0.25; }
}
@keyframes keyShimmer {
  0%, 15% { background-position: 120% 0; }
  50%, 85% { background-position: -20% 0; }
  100% { background-position: -20% 0; }
}
@keyframes keyValue {
  0%, 18% { opacity: 0.5; }
  28%, 82% { opacity: 1; }
  92%, 100% { opacity: 0.5; }
}

/* The large request report at the top of the section */
.fa-cursor {
  animation: faCursor 1.05s step-end infinite;
}
.fa-req {
  animation: faReq 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes faCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes faReq {
  0%, 12% { opacity: 0.3; transform: translateX(-3px); }
  24%, 84% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0.3; transform: translateX(-3px); }
}

@media (max-width: 640px) {
  .feature-anim { height: 292px; }
  .fa-context { max-width: 330px; }
  .fa-ctx-file { font-size: 9px; }
  .fa-ctx-send b { font-size: 15px; }
  .fa-cache { max-width: 270px; }
  .fa-contract { max-width: 276px; }
  .fa-report { max-width: 270px; }
  .fa-key { max-width: 292px; }
  .fa-key-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-anim *,
  .feature-anim *::before,
  .feature-anim *::after {
    animation: none !important;
  }
  .fa-contract-check { transform: scale(1); }
  .fa-report-save b { transform: scale(1); opacity: 1; }
  .fa-contract-card::before { transform: scaleY(1); }
  .fa-cache-bar i { transform: scaleX(1); }
  .fa-ctx-file.is-picked { background: #111111; color: #ffffff; }
  .fa-ctx-file.is-picked .fa-ctx-dot { background: #ffffff; }
  .fa-ctx-send { transform: scale(1); opacity: 1; }
}
