/* V13 / One compact team, with all nine specialists in view. */
#features { padding: 56px 0; background: #F7F8FA; }
#features .section-heading { gap: 30px; margin-bottom: 20px; }
#features .section-heading h2 { margin-top: 12px; font-size: 34px; line-height: 1.25; letter-spacing: -.045em; }
#features .section-heading > p { margin-bottom: 1px; font-size: 13px; line-height: 1.8; }
#features .agents-grid.team-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid #E0E5ED;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  scroll-snap-type: none;
}
#features .team-role {
  --team-delay: 0s;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 134px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #293241;
  font: inherit;
  cursor: pointer;
  isolation: isolate;
  transition: background .25s ease, box-shadow .25s ease;
}
#features .team-role:not(:nth-child(3n)) { border-right: 1px solid #E8ECF2; }
#features .team-role:nth-child(-n+6) { border-bottom: 1px solid #E8ECF2; }
#features .team-role:first-child { border-top-left-radius: 10px; }
#features .team-role:nth-child(3) { border-top-right-radius: 10px; }
#features .team-role:nth-child(7) { border-bottom-left-radius: 10px; }
#features .team-role:last-child { border-bottom-right-radius: 10px; }
#features .team-role.is-selected { background: #F1F6FF; box-shadow: inset 0 0 0 1px #8CACEE; }
#features .team-role.is-selected .team-role-title { color: #2457E6; }
#features .team-role:focus-visible { outline: 2px solid #2457E6; outline-offset: -3px; z-index: 3; }
#features .team-role-number { position: absolute; top: 10px; left: 12px; color: #8692A3; font-size: 9px; line-height: 1.4; letter-spacing: .05em; }
#features .team-role-title { position: absolute; display: block; bottom: 13px; left: 8px; right: 8px; color: #354156; font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; text-align: center; white-space: nowrap; }
#features .agent-visual { --art-size: 78px; position: absolute; display: block; top: 21px; left: 50%; width: 132px; height: 79px; transform: translateX(-50%); pointer-events: auto; }
#features .agent-visual::before { content: ''; position: absolute; inset: -3px; background: radial-gradient(60px circle at var(--spot-x, 50%) var(--spot-y, 50%), #E4EEFD55, transparent 80%); opacity: .55; z-index: -1; pointer-events: none; }
#features .agent-art-float { position: absolute; top: 0; left: calc(50% - var(--art-size) / 2); width: var(--art-size); height: var(--art-size); transform: perspective(500px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .3s ease; z-index: 2; }
#features .agent-art { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; animation: team-role-float 6s ease-in-out var(--team-delay, 0s) infinite; }
#features .team-role-signal { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 2px; height: 9px; }
#features .team-role-signal > i { display: block; width: 2px; height: 4px; border-radius: 1px; background: #9DB6DF; transform-origin: center; animation: team-role-signal 2s ease-in-out var(--team-delay, 0s) infinite; }
#features .team-role-signal > i:nth-child(2) { height: 7px; animation-delay: calc(var(--team-delay, 0s) + .2s); }
#features .team-role-signal > i:nth-child(3) { height: 5px; animation-delay: calc(var(--team-delay, 0s) + .4s); }
#features .team-role[data-agent-index='1'] { --team-delay: -.3s; }
#features .team-role[data-agent-index='2'] { --team-delay: -.7s; }
#features .team-role[data-agent-index='3'] { --team-delay: -1.1s; }
#features .team-role[data-agent-index='4'] { --team-delay: -1.5s; }
#features .team-role[data-agent-index='5'] { --team-delay: -1.9s; }
#features .team-role[data-agent-index='6'] { --team-delay: -2.3s; }
#features .team-role[data-agent-index='7'] { --team-delay: -2.7s; }
#features .team-role[data-agent-index='8'] { --team-delay: -3.1s; }

/* Tiny working cues occupy the space beside each object. */
#features .agent-effect { position: absolute; z-index: 1; color: #6D98DD; pointer-events: none; }
#features .agent-effect > i { display: block; font-style: normal; }
#features .agent-effect--manager { top: 23px; left: 2px; display: grid; gap: 3px; width: 20px; padding: 4px; border: 1px solid #DCE6F4; border-radius: 3px; background: #FFFFFFA8; }
#features .agent-effect--manager > i { height: 2px; width: 100%; background: #ABC4EB; border-radius: 1px; transform-origin: left; animation: team-role-task 3.6s ease-in-out infinite; }
#features .agent-effect--manager > i:nth-child(2) { width: 82%; animation-delay: .2s; }
#features .agent-effect--manager > i:nth-child(3) { width: 91%; animation-delay: .4s; }
#features .agent-effect--manager > i:nth-child(4) { width: 72%; animation-delay: .6s; }
#features .agent-effect--manager > i:nth-child(5) { width: 86%; animation-delay: .8s; }
#features .agent-effect--insights { top: 12px; right: 2px; width: 25px; height: 25px; border: 1px solid #D2E0F3; border-radius: 50%; }
#features .agent-effect--insights > i { position: absolute; }
#features .agent-effect--insights > i:nth-child(1) { inset: 5px; border: 1px solid #E0E9F7; border-radius: 50%; }
#features .agent-effect--insights > i:nth-child(2) { inset: 9px; border: 1px solid #D8E5F7; border-radius: 50%; }
#features .agent-effect--insights > i:nth-child(3) { left: 12px; top: 12px; width: 11px; height: 1px; background: #94B4E5; transform-origin: left; animation: team-role-radar 5s linear infinite; }
#features .agent-effect--insights > i:nth-child(4) { top: 5px; left: 11px; width: 2px; height: 2px; border-radius: 50%; background: #7197D6; animation: team-role-dot 2.7s ease-in-out infinite; }
#features .agent-effect--insights > i:nth-child(5) { bottom: 4px; right: 5px; width: 2px; height: 2px; border-radius: 50%; background: #A6BFE5; }
#features .agent-effect--content { bottom: 9px; right: 0; display: grid; gap: 3px; width: 23px; padding: 4px; border: 1px solid #E0E8F4; border-radius: 3px; background: #FFFFFFB3; }
#features .agent-effect--content > i { height: 2px; width: 100%; background: #B0C8EE; border-radius: 1px; transform-origin: left; animation: team-role-writing 4s ease-in-out infinite; }
#features .agent-effect--content > i:nth-child(2) { width: 85%; animation-delay: .2s; }
#features .agent-effect--content > i:nth-child(3) { width: 93%; animation-delay: .4s; }
#features .agent-effect--content > i:nth-child(4) { width: 76%; animation-delay: .6s; }
#features .agent-effect--content > i:nth-child(5) { width: 62%; animation-delay: .8s; }
#features .agent-effect--video { --timeline-run: 19px; right: -1px; top: 18px; display: flex; align-items: center; gap: 2px; width: 29px; height: 19px; padding: 3px; border: 1px solid #D8E4F4; border-radius: 3px; background: #FFFFFFA8; }
#features .agent-effect--video > i { flex: 1; height: 8px; border-radius: 1px; background: #C4D7F4; }
#features .agent-effect--video > i:nth-child(2) { background: #ADC7ED; }
#features .agent-effect--video > i:nth-child(3) { background: #DCE7F7; }
#features .agent-effect--video > i:nth-child(5) { position: absolute; top: 2px; left: 3px; width: 1px; height: 13px; background: #6B97D9; animation: team-role-timeline 4s ease-in-out infinite; }
#features .agent-effect--publish { top: 18px; right: 2px; width: 25px; height: 25px; }
#features .agent-effect--publish > i { position: absolute; inset: 3px; border: 1px solid #BAD0EF; border-radius: 50%; animation: team-role-broadcast 3.2s ease-out infinite; }
#features .agent-effect--publish > i:nth-child(2) { animation-delay: -.8s; }
#features .agent-effect--publish > i:nth-child(3) { animation-delay: -1.6s; }
#features .agent-effect--publish > i:nth-child(4) { animation-delay: -2.4s; }
#features .agent-effect--publish > i:nth-child(5) { inset: 11px; border: 0; background: #92B2E3; animation: none; }
#features .agent-effect--devices { bottom: 9px; left: 2px; width: 19px; height: 28px; border: 1px solid #D7E4F4; border-radius: 4px; overflow: hidden; background: #FFFFFFA3; }
#features .agent-effect--devices > i { position: absolute; left: 5px; width: 8px; height: 1px; background: #D3E0F3; }
#features .agent-effect--devices > i:nth-child(1) { top: 6px; }
#features .agent-effect--devices > i:nth-child(2) { top: 11px; }
#features .agent-effect--devices > i:nth-child(3) { top: 16px; }
#features .agent-effect--devices > i:nth-child(4) { top: 21px; }
#features .agent-effect--devices > i:nth-child(5) { top: 4px; left: 3px; width: 11px; height: 1px; background: #88ACE2; animation: team-role-scan 3.6s ease-in-out infinite; }
#features .agent-effect--support { bottom: 12px; right: 1px; width: 24px; height: 15px; border: 1px solid #D7E4F6; border-radius: 4px; background: #FFFFFFBA; }
#features .agent-effect--support > i { position: absolute; }
#features .agent-effect--support > i:nth-child(-n+3) { top: 6px; width: 2px; height: 2px; border-radius: 50%; background: #84A7DD; animation: team-role-chat 1.7s ease-in-out infinite; }
#features .agent-effect--support > i:nth-child(1) { left: 5px; }
#features .agent-effect--support > i:nth-child(2) { left: 10px; animation-delay: .2s; }
#features .agent-effect--support > i:nth-child(3) { left: 15px; animation-delay: .4s; }
#features .agent-effect--support > i:nth-child(4) { left: 5px; bottom: -2px; width: 3px; height: 3px; border-right: 1px solid #D7E4F6; border-bottom: 1px solid #D7E4F6; background: #fff; transform: rotate(45deg); }
#features .agent-effect--support > i:nth-child(5) { top: -2px; right: -2px; width: 3px; height: 3px; border-radius: 50%; background: #9BB9E8; }
#features .agent-effect--sales { top: 13px; right: 2px; width: 25px; height: 25px; }
#features .agent-effect--sales > i { position: absolute; border-radius: 50%; }
#features .agent-effect--sales > i:nth-child(1) { inset: 0; border: 1px solid #C3D6F1; animation: team-role-target 3.1s ease-in-out infinite; }
#features .agent-effect--sales > i:nth-child(2) { inset: 5px; border: 1px solid #AFC9EC; animation: team-role-target 3.1s ease-in-out .2s infinite; }
#features .agent-effect--sales > i:nth-child(3) { inset: 10px; background: #99B8E5; animation: team-role-target 3.1s ease-in-out .4s infinite; }
#features .agent-effect--sales > i:nth-child(4) { top: 6px; left: 12px; width: 12px; height: 1px; border-radius: 0; background: #B0C8EB; transform: rotate(-35deg); transform-origin: left; }
#features .agent-effect--sales > i:nth-child(5) { top: -2px; right: 1px; width: 2px; height: 2px; background: #A1BCE6; }
#features .agent-effect--analytics { bottom: 10px; left: 2px; display: flex; align-items: flex-end; gap: 2px; width: 24px; height: 24px; padding: 3px; border: 1px solid #DCE6F4; border-radius: 3px; background: #FFFFFFA8; }
#features .agent-effect--analytics > i { flex: 1; height: 44%; background: #BCD1F0; border-radius: 1px 1px 0 0; transform-origin: bottom; animation: team-role-chart 3.7s ease-in-out infinite; }
#features .agent-effect--analytics > i:nth-child(2) { height: 72%; animation-delay: .15s; }
#features .agent-effect--analytics > i:nth-child(3) { height: 56%; animation-delay: .3s; }
#features .agent-effect--analytics > i:nth-child(4) { height: 87%; background: #99B7E6; animation-delay: .45s; }
#features .agent-effect--analytics > i:nth-child(5) { height: 100%; background: #789EDC; animation-delay: .6s; }
#features .team-select-hint { margin: 12px 0 0; color: #748198; font-size: 12px; line-height: 1.7; text-align: center; }
#features .team-detail { display: block; margin-top: 15px; padding: 18px 21px; border: 1px solid #DCE5F3; border-radius: 9px; background: #FFF; }
#features .team-detail[hidden] { display: none !important; }
#features .team-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
#features .team-detail-header h3 { margin: 0; color: #263248; font-size: 18px; line-height: 1.5; font-weight: 600; }
#features .team-detail-header #team-detail-tag { display: inline-block; margin-top: 5px; padding: 3px 6px; border: 1px solid #E5EBF5; border-radius: 4px; background: #F8FAFE; color: #687B98; font-size: 10px; line-height: 1.5; }
#features .team-detail-close { flex: none; color: #7E8EA5; background: #FAFBFD; border-color: #E3E9F3; }
#features .team-detail-close > .icon { width: 14px; height: 14px; }
#features #team-detail-description { margin: 13px 0 0; color: #626F83; font-size: 12px; line-height: 1.9; }
#features .agents-note { margin-top: 14px; padding-top: 0; font-size: 12px; line-height: 1.8; gap: 8px; }
#features .agents-note > .text-link { font-size: 12px; padding-block: 3px; }

@keyframes team-role-float { 0%, 100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-2px) rotate(.3deg); } }
@keyframes team-role-signal { 0%, 100% { transform: scaleY(.65); opacity: .6; } 45% { transform: scaleY(1); opacity: 1; } }
@keyframes team-role-task { 0%, 100% { transform: scaleX(.65); opacity: .45; } 40%, 65% { transform: scaleX(1); opacity: .95; } }
@keyframes team-role-radar { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes team-role-dot { 0%, 100% { transform: scale(.8); opacity: .45; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes team-role-writing { 0%, 100% { transform: scaleX(1); opacity: .75; } 15%, 25% { transform: scaleX(.2); opacity: .4; } 60%, 85% { transform: scaleX(1); opacity: 1; } }
@keyframes team-role-timeline { 0%, 100% { transform: translateX(0); } 75%, 90% { transform: translateX(var(--timeline-run, 19px)); } }
@keyframes team-role-broadcast { from { transform: scale(.45); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
@keyframes team-role-scan { 0%, 100% { transform: translateY(0); opacity: .45; } 60%, 80% { transform: translateY(18px); opacity: .95; } }
@keyframes team-role-chat { 0%, 80%, 100% { transform: translateY(0); opacity: .55; } 40% { transform: translateY(-2px); opacity: 1; } }
@keyframes team-role-target { 0%, 100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes team-role-chart { 0%, 100% { transform: scaleY(.6); opacity: .6; } 50%, 80% { transform: scaleY(1); opacity: 1; } }

@media (hover: hover) and (pointer: fine) {
  #features .team-role:hover { background: #F7FAFF; }
  #features .team-role.is-selected:hover { background: #EDF4FF; }
  #features .team-role:hover .agent-visual::before { opacity: 1; }
}
@media (max-width: 700px) {
  #features { padding: 32px 0; }
  #features .section-heading { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-bottom: 17px; }
  #features .section-heading h2 { margin-top: 10px; font-size: 28px; line-height: 1.26; }
  #features .section-heading > p { margin: 0; font-size: 12px; line-height: 1.75; }
  #features .agents-grid.team-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; gap: 0; margin: 0; padding: 0; overflow: visible; border-radius: 9px; }
  #features .team-role { height: 106px; }
  #features .team-role-number { top: 7px; left: 8px; font-size: 9px; }
  #features .team-role-title { left: 5px; right: 5px; bottom: 10px; font-size: 12px; line-height: 1.35; }
  #features .agent-visual { --art-size: 58px; top: 21px; width: 90px; height: 58px; }
  #features .team-role-signal { top: 9px; right: 8px; gap: 1.5px; }
  #features .team-role-signal > i { width: 1.5px; }
  #features .agent-effect--manager { top: 17px; left: 0; width: 15px; padding: 3px; gap: 2px; }
  #features .agent-effect--manager > i { height: 1px; }
  #features .agent-effect--insights { top: 10px; right: 0; width: 18px; height: 18px; }
  #features .agent-effect--insights > i:nth-child(1) { inset: 3px; }
  #features .agent-effect--insights > i:nth-child(2) { inset: 6px; }
  #features .agent-effect--insights > i:nth-child(3) { left: 8px; top: 8px; width: 8px; }
  #features .agent-effect--insights > i:nth-child(4) { top: 4px; left: 8px; }
  #features .agent-effect--insights > i:nth-child(5) { bottom: 3px; right: 3px; }
  #features .agent-effect--content { bottom: 5px; right: 0; width: 16px; padding: 3px; gap: 2px; }
  #features .agent-effect--content > i { height: 1px; }
  #features .agent-effect--video { --timeline-run: 12px; top: 15px; right: -1px; width: 21px; height: 15px; padding: 2px; gap: 1px; }
  #features .agent-effect--video > i { height: 6px; }
  #features .agent-effect--video > i:nth-child(5) { top: 2px; left: 2px; height: 10px; }
  #features .agent-effect--publish { top: 14px; right: 0; width: 19px; height: 19px; }
  #features .agent-effect--publish > i { inset: 2px; }
  #features .agent-effect--publish > i:nth-child(5) { inset: 8px; }
  #features .agent-effect--devices { bottom: 7px; left: 0; width: 14px; height: 22px; }
  #features .agent-effect--devices > i { left: 4px; width: 5px; }
  #features .agent-effect--devices > i:nth-child(1) { top: 5px; }
  #features .agent-effect--devices > i:nth-child(2) { top: 9px; }
  #features .agent-effect--devices > i:nth-child(3) { top: 13px; }
  #features .agent-effect--devices > i:nth-child(4) { top: 17px; }
  #features .agent-effect--devices > i:nth-child(5) { top: 2px; left: 2px; width: 9px; }
  #features .agent-effect--support { bottom: 7px; right: 0; width: 19px; height: 12px; }
  #features .agent-effect--support > i:nth-child(-n+3) { top: 4px; }
  #features .agent-effect--support > i:nth-child(1) { left: 3px; }
  #features .agent-effect--support > i:nth-child(2) { left: 7px; }
  #features .agent-effect--support > i:nth-child(3) { left: 11px; }
  #features .agent-effect--sales { top: 12px; right: 0; width: 19px; height: 19px; }
  #features .agent-effect--sales > i:nth-child(2) { inset: 4px; }
  #features .agent-effect--sales > i:nth-child(3) { inset: 8px; }
  #features .agent-effect--sales > i:nth-child(4) { top: 5px; left: 9px; width: 9px; }
  #features .agent-effect--analytics { bottom: 7px; left: 0; width: 18px; height: 19px; padding: 2px; gap: 1px; }
  #features .agent-effect--devices > i:nth-child(5) { animation-name: team-role-scan-small; }
  #features .team-select-hint { margin-top: 10px; font-size: 11px; }
  #features .team-detail { margin-top: 12px; padding: 15px 16px; }
  #features .team-detail-header h3 { font-size: 16px; }
  #features .team-detail-header #team-detail-tag { font-size: 9px; }
  #features #team-detail-description { margin-top: 11px; font-size: 12px; line-height: 1.85; }
  #features .agents-note { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 5px 9px; margin-top: 12px; padding-top: 0; font-size: 11px; line-height: 1.75; }
  #features .agents-note > .status-dot { margin-top: 7px; }
  #features .agents-note > .text-link { grid-column: 2; margin-left: 0; padding-block: 1px; font-size: 11px; }
  html[lang='en'] #features .section-heading h2 { font-size: 28px; letter-spacing: -.035em; }
}
@media (max-width: 380px) {
  #features .section-heading h2, html[lang='en'] #features .section-heading h2 { font-size: 26px; }
  #features .team-role { height: 104px; }
  #features .agent-visual { --art-size: 54px; width: 80px; height: 55px; top: 22px; }
  #features .team-role-title { font-size: 12px; bottom: 10px; }
  #features .team-role-number { left: 7px; }
  #features .team-role-signal { right: 7px; }
}
@keyframes team-role-scan-small { 0%, 100% { transform: translateY(0); opacity: .45; } 60%, 80% { transform: translateY(15px); opacity: .95; } }
@media (prefers-reduced-motion: reduce) {
  #features .agent-art, #features .agent-effect > i,
  #features .team-role-signal > i { animation: none !important; }
  #features .agent-art-float { transform: none !important; transition: none !important; }
  #features .team-role, #features .agent-visual::before { transition: none !important; }
}

/* Override each nth-child animation shorthand with the role's controller. */
#features .team-role.motion-item .agent-art,
#features .team-role.motion-item .agent-effect > i,
#features .team-role.motion-item .team-role-signal > i { animation-play-state: var(--motion-play-state, paused); }
