.agents-main {
  padding-top: 30px;
}
.agents-hero {
  min-height: 273px;
}
.agents-hero h1 {
  font-size: clamp(38px, 3.55vw, 60px);
  line-height: 1.06;
  letter-spacing: -1.7px;
  margin-top: 17px;
}
.agents-hero .intro {
  max-width: 545px;
  font-size: 16px;
  margin-top: 18px;
  line-height: 1.5;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.agent-card {
  --accent: #ff7300;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #263b45);
  border-radius: 20px;
  padding: 26px 20px 19px;
  background:
    radial-gradient(
      ellipse at 5% 0%,
      color-mix(in srgb, var(--accent) var(--glow), transparent),
      transparent 50%
    ),
    linear-gradient(140deg, #0a1115f5, #040a0ded);
  box-shadow: 0 16px 45px #0005;
  min-width: 0;
}
.agent-card.cyan {
  --accent: #00dbf5;
}
.agent-card.violet {
  --accent: #9938ff;
}
.agent-card.green {
  --accent: #00dca0;
}
.agent-card.gold {
  --accent: #ff9c3d;
}
.agent-orbit {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--accent);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 10%, transparent),
    transparent 70%
  );
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.agent-orbit:before,
.agent-orbit:after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  inset: -7px;
}
.agent-orbit:after {
  inset: 7px;
}
.agent-orbit > .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 40%, transparent));
}
.agent-card h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 5px 0 10px;
}
.agent-description {
  color: #aebcc7;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 5px 17px;
  min-height: 87px;
}
.sources {
  width: 100%;
  border-top: 1px solid #ffffff22;
  padding-top: 13px;
  margin-top: auto;
}
.source-label {
  color: #8b9eaa;
  letter-spacing: 2px;
  font-size: 11px;
  margin: 0 0 8px;
}
.source {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #0d171c88;
  margin-bottom: 8px;
  padding: 7px 10px;
  font-size: 12px;
}
.source .icon {
  width: 38px;
  height: 31px;
  stroke: none;
}
.source small {
  display: block;
  font-size: 11px;
  color: #a8b6c1;
  margin-top: 5px;
}
.start-chat {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid var(--accent);
  background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 12%, transparent), #081115);
  border-radius: 12px;
  min-height: 46px;
  margin-top: 8px;
  font-size: 14px;
  box-shadow: inset 0 0 13px color-mix(in srgb, var(--accent) 13%, transparent);
  transition:
    background 0.18s,
    transform 0.18s;
}
.orange .start-chat {
  background: linear-gradient(120deg, #ff8400, #ff4c00);
  font-weight: 600;
}
.start-chat:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
/* Motion: cards rise in on load, the orbit rings breathe like the home nodes,
   and hovering lifts the card into its own accent glow. Index drives both delays. */
@property --glow {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 10%;
}
.agent-card {
  position: relative;
  --i: 0;
  animation:
    card-rise 0.5s ease-out backwards,
    card-glow 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.09s), calc(var(--i) * -1.75s);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.agent-card:nth-child(2) {
  --i: 1;
}
.agent-card:nth-child(3) {
  --i: 2;
}
.agent-card:nth-child(4) {
  --i: 3;
}
.agent-card:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 49.85%,
    color-mix(in srgb, var(--accent) 70%, transparent) 50%,
    transparent 50.15%
  );
  background-size: 100% 300%;
  animation: scan 6s linear infinite;
  animation-delay: calc(var(--i) * -1.5s);
}
.agent-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 65%, #263b45);
  box-shadow:
    0 22px 55px #0007,
    0 0 30px color-mix(in srgb, var(--accent) 16%, transparent);
}
.agent-orbit:before,
.agent-orbit:after {
  animation: orbit-breathe 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.6s);
}
.agent-orbit:after {
  animation-duration: 8s;
  animation-direction: alternate-reverse;
}
.agent-card:hover:after {
  animation-duration: 1.4s;
}
.agent-card:hover .agent-orbit:before {
  animation-duration: 1.6s;
}
.agent-card:hover .agent-orbit:after {
  animation-duration: 2.2s;
}
.agent-card:hover .agent-orbit > .icon {
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 65%, transparent));
}
.agent-orbit > .icon {
  transition: filter 0.25s ease;
}
@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scan {
  from {
    background-position: 0 85%;
  }
  to {
    background-position: 0 15%;
  }
}
@keyframes card-glow {
  from {
    --glow: 5%;
  }
  to {
    --glow: 18%;
  }
}
@keyframes orbit-breathe {
  from {
    opacity: 0.45;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .agent-card,
  .agent-card:after,
  .agent-orbit:before,
  .agent-orbit:after {
    animation: none;
  }
}
#no-agents {
  padding: 40px;
  text-align: center;
  color: #afbec9;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: #0b141b;
}
.agent-card[hidden] {
  display: none;
}
/* The live home scene is the ground here too, so the static earth layer goes. */
.canvas {
  background: #04090d;
}
footer {
  padding-top: 35px;
}
.selected-agent {
  font-size: 12px;
  color: #ffab57;
  margin-bottom: 14px;
}
@media (max-width: 1250px) {
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agents-hero {
    min-height: 270px;
  }
  .agent-description {
    min-height: 65px;
  }
  .agent-card {
    padding: 25px;
  }
  .agents-hero h1 {
    font-size: 44px;
  }
}
@media (max-width: 700px) {
  .agent-search {
    width: auto;
    flex: 1;
    padding: 0 10px;
    gap: 7px;
  }
  .agent-search input {
    font-size: 11px;
    height: 38px;
  }
  .agent-search .icon {
    width: 17px;
  }
  .account .env-tag {
    display: none;
  }
  header {
    gap: 10px;
  }
  .agents-main {
    padding-top: 24px;
  }
  .agents-hero {
    min-height: 300px;
  }
  .agents-hero h1 {
    font-size: 39px;
    letter-spacing: -1.4px;
  }
  .agents-hero .intro {
    font-size: 14px;
  }
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .agent-card {
    padding: 27px 25px 23px;
  }
  .agent-description {
    min-height: 0;
    max-width: 275px;
  }
  .agent-card h2 {
    font-size: 22px;
  }
  .source-label {
    font-size: 11px;
  }
  .source {
    font-size: 13px;
  }
  .agent-orbit {
    margin-bottom: 15px;
  }
  .agent-search input::placeholder {
    color: transparent;
  }
  .agent-search input {
    background: none;
  }
  .agent-search:focus-within {
    border-color: #ff9000;
  }
}
@media (max-width: 700px) {
  .agent-search input::placeholder {
    color: #8497a5;
  }
}
.source .vendor-logo {
  width: 38px;
  height: 31px;
  object-fit: contain;
  flex-shrink: 0;
}
