/* Summit — service hero motion graphics (all /services/*) */
.svc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 40px 48px;
  align-items: start;
}

.svc-hero-copy {
  min-width: 0;
}

.svc-motion-host {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

@media (min-width: 961px) {
  .svc-motion-host {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

.svc-motion-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.svc-motion-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  background-image: linear-gradient(rgba(0, 174, 239, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
}

.svc-motion-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.svc-motion-label {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.svc-motion-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: var(--yellow);
}

.svc-motion-live .dot {
  width: 7px;
  height: 7px;
  animation: sm-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes sm-pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.svc-motion-stage {
  position: relative;
  z-index: 2;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-motion-ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: rgba(228, 0, 124, 0.4);
  animation: sm-spin 14s linear infinite;
  pointer-events: none;
}

.svc-motion-ring--rev {
  inset: -14%;
  animation-duration: 20s;
  animation-direction: reverse;
  border-top-color: var(--pink);
  opacity: 0.5;
}

@keyframes sm-spin {
  to {
    transform: rotate(360deg);
  }
}

.svc-motion-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.svc-motion-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.5);
}

.svc-motion-bar-track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.svc-motion-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-motion-host.is-live .svc-motion-bar-fill {
  width: var(--sm-pct, 70%);
}

.svc-motion-bar-fill--y {
  background: linear-gradient(90deg, var(--yellow), #f5a623);
}

/* Web app — browser + scan */
.sm-browser {
  width: 92%;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #12141a;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.sm-browser-chrome {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-browser-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.sm-browser-body {
  position: relative;
  height: 120px;
  padding: 16px;
}

.sm-shield {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 58px;
  transform: translate(-50%, -50%);
  animation: sm-shield-float 3.5s ease-in-out infinite;
}

@keyframes sm-shield-float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -54%) scale(1.06);
  }
}

.sm-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 16px var(--cyan);
  animation: sm-scan-down 2.8s ease-in-out infinite;
}

@keyframes sm-scan-down {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* API — nodes */
.sm-api-svg {
  width: 100%;
  height: 200px;
}

.sm-flow-dot {
  fill: var(--yellow);
  filter: drop-shadow(0 0 6px var(--yellow));
}

.sm-api-line {
  stroke: rgba(0, 174, 239, 0.35);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 8;
  animation: sm-dash 1.2s linear infinite;
}

@keyframes sm-dash {
  to {
    stroke-dashoffset: -28;
  }
}

/* Mobile */
.sm-phone {
  width: 120px;
  height: 210px;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  background: #0d0d0d;
  padding: 10px 8px;
  position: relative;
  box-shadow: 0 0 40px rgba(228, 0, 124, 0.2);
}

.sm-phone-notch {
  width: 40%;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 10px;
}

.sm-phone-layer {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(0, 174, 239, 0.35);
  background: rgba(0, 174, 239, 0.08);
  animation: sm-layer-cycle 4s ease-in-out infinite;
}

.sm-phone-layer:nth-child(3) {
  top: 42px;
  animation-delay: 0s;
}
.sm-phone-layer:nth-child(4) {
  top: 72px;
  border-color: rgba(228, 0, 124, 0.4);
  background: rgba(228, 0, 124, 0.1);
  animation-delay: 0.6s;
}
.sm-phone-layer:nth-child(5) {
  top: 102px;
  animation-delay: 1.2s;
}

@keyframes sm-layer-cycle {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* Network radar */
.sm-radar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(0, 174, 239, 0.25);
  position: relative;
  overflow: hidden;
}

.sm-radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(0, 174, 239, 0.35), transparent 55%);
  animation: sm-spin 4s linear infinite;
}

.sm-radar-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: sm-blip 2s ease-in-out infinite;
}

.sm-radar-blip:nth-child(2) {
  top: 28%;
  left: 62%;
  animation-delay: 0.4s;
}
.sm-radar-blip:nth-child(3) {
  top: 58%;
  left: 32%;
  animation-delay: 0.9s;
}
.sm-radar-blip:nth-child(4) {
  top: 70%;
  left: 68%;
  animation-delay: 1.3s;
}

@keyframes sm-blip {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Cloud stack */
.sm-cloud-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 85%;
}

.sm-cloud-card {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  animation: sm-cloud-drift 5s ease-in-out infinite;
}

.sm-cloud-card:nth-child(2) {
  animation-delay: 0.5s;
  margin-left: 12px;
}
.sm-cloud-card:nth-child(3) {
  animation-delay: 1s;
  margin-left: 24px;
}

@keyframes sm-cloud-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.sm-cloud-icon {
  width: 22px;
  height: 14px;
  border-radius: 8px 8px 4px 4px;
  background: var(--cyan);
  opacity: 0.85;
  position: relative;
}

.sm-cloud-icon::before,
.sm-cloud-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
  top: -4px;
}

.sm-cloud-icon::before {
  left: -2px;
}
.sm-cloud-icon::after {
  right: -2px;
}

/* Code review */
.sm-code {
  width: 92%;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.sm-code-line {
  padding: 2px 8px;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.sm-code-line.is-hot {
  border-left-color: var(--pink);
  background: rgba(228, 0, 124, 0.12);
  color: #fff;
  animation: sm-code-flash 3s ease-in-out infinite;
}

.sm-code-line.is-warn {
  border-left-color: var(--yellow);
  animation-delay: 1s;
}

@keyframes sm-code-flash {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Thick client window */
.sm-thick-win {
  width: 90%;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #1a1c22;
  overflow: hidden;
}

.sm-thick-title {
  padding: 8px 12px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-thick-panes {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 130px;
}

.sm-thick-side {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.sm-thick-side div {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 174, 239, 0.2);
  margin-bottom: 8px;
  animation: sm-pane-pulse 2.5s ease-in-out infinite;
}

.sm-thick-main {
  padding: 12px;
  position: relative;
}

.sm-thick-main::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(228, 0, 124, 0.45);
  border-radius: 8px;
  animation: sm-dash-box 2s ease-in-out infinite;
}

@keyframes sm-pane-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sm-dash-box {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* Thin client split */
.sm-thin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 92%;
}

.sm-thin-box {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 10px;
  min-height: 100px;
  font-size: 9px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.4);
}

.sm-thin-packet {
  height: 4px;
  border-radius: 2px;
  background: var(--cyan);
  margin: 8px 0;
  animation: sm-packet 1.8s ease-in-out infinite;
}

.sm-thin-packet:nth-child(3) {
  animation-delay: 0.5s;
  background: var(--yellow);
}

@keyframes sm-packet {
  0% {
    transform: translateX(-20%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Red team target */
.sm-target {
  width: 160px;
  height: 160px;
  position: relative;
}

.sm-target-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.sm-target-ring:nth-child(2) {
  inset: 18%;
  border-color: rgba(0, 174, 239, 0.35);
}

.sm-target-ring:nth-child(3) {
  inset: 36%;
  border-color: rgba(228, 0, 124, 0.45);
}

.sm-target-core {
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 230, 0, 0.5);
  animation: sm-core-pulse 2s ease-in-out infinite;
}

@keyframes sm-core-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.sm-target-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-target-cross::before,
.sm-target-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.sm-target-cross::before {
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 1px;
  transform: translateX(-50%);
}

.sm-target-cross::after {
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  transform: translateY(-50%);
}

@media (max-width: 960px) {
  .svc-hero-layout {
    grid-template-columns: 1fr;
  }
  .svc-motion-host {
    min-height: 300px;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-motion-host *,
  .svc-motion-ring,
  .svc-motion-live .dot {
    animation: none !important;
  }
  .svc-motion-host.is-live .svc-motion-bar-fill {
    width: var(--sm-pct, 70%);
  }
}
