/* ═════════ SECTION 7 · WHY ZIDMA (bento with tiny animations) ═════════ */
.section7 {
  position: relative;
  padding: 140px 0 120px;
}

.s7-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "b c c"
    "d d e";
  gap: 16px;
}

.s7-b { grid-area: b; }
.s7-c { grid-area: c; }
.s7-d { grid-area: d; }
.s7-e { grid-area: e; }

/* outline cards (deliberately different from the glass cards elsewhere) */
.s7-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 60%);
  overflow: hidden;
}

@keyframes s7-blink {
  50% { box-shadow: 0 0 14px var(--blue-light); }
}

/* spotlight + glowing border that follow the mouse */
.s7-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(20, 99, 243, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.s7-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(91, 149, 255, 0.85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.s7-card:hover::before,
.s7-card:hover::after { opacity: 1; }

.s7-card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.s7-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 420px;
}

.s7-vis {
  position: relative;
  height: 130px;
  margin-bottom: 22px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px;
  overflow: hidden;
}

.s7-vis svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a · one team: tiles connected around the emblem */
.s7-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.s7-team i,
.s7-team b {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue-soft);
  background: #0B1226;
  border: 1px solid var(--border-strong);
  box-shadow: var(--highlight);
}

.s7-team b {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border-color: rgba(91, 149, 255, 0.5);
  box-shadow: var(--highlight), 0 0 30px rgba(20, 99, 243, 0.45);
}

.s7-team b img { width: 30px; }

.s7-line {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  border-top: 1px dashed rgba(157, 187, 255, 0.35);
}

.s7-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-soft), transparent);
  box-shadow: 0 0 10px var(--blue-light);
  animation: s7-run 3s linear infinite;
}

@keyframes s7-run {
  from { left: 0; }
  to { left: calc(100% - 50px); }
}

/* b · radar sweep */
.s7-radar i {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(157, 187, 255, 0.2);
  transform: translate(-50%, -50%);
}

.s7-radar i:nth-child(1) { width: 40px; height: 40px; }
.s7-radar i:nth-child(2) { width: 80px; height: 80px; }
.s7-radar i:nth-child(3) { width: 120px; height: 120px; }

.s7-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(91, 149, 255, 0.55), transparent 22%);
  animation: mk-spin 3.5s linear infinite;
}

.s7-radar b {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DCE6FF;
  box-shadow: 0 0 10px var(--blue-light);
  animation: s7-blink 3.5s ease-in-out infinite;
}

.s7-radar b:nth-of-type(1) { left: calc(50% + 22px); top: calc(50% - 30px); }
.s7-radar b:nth-of-type(2) { left: calc(50% - 44px); top: calc(50% + 6px); animation-delay: 1.2s; }
.s7-radar b:nth-of-type(3) { left: calc(50% + 10px); top: calc(50% + 40px); animation-delay: 2.3s; }

/* c · bars */
.s7-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 18px 22px 0;
}

.s7-bars i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--blue-light), rgba(20, 99, 243, 0.1));
  transform-origin: bottom;
  animation: mk-bar 2.6s var(--ease) infinite alternate;
}

.s7-bars i:nth-child(1) { height: 30%; }
.s7-bars i:nth-child(2) { height: 45%; animation-delay: 0.2s; }
.s7-bars i:nth-child(3) { height: 40%; animation-delay: 0.4s; }
.s7-bars i:nth-child(4) { height: 62%; animation-delay: 0.6s; }
.s7-bars i:nth-child(5) { height: 74%; animation-delay: 0.8s; }
.s7-bars i:nth-child(6) { height: 96%; animation-delay: 1s; background: linear-gradient(180deg, #fff, rgba(20, 99, 243, 0.3)); }

/* d · two circles overlapping */
.s7-venn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.s7-venn span {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  border: 1px solid rgba(157, 187, 255, 0.3);
  background: rgba(20, 99, 243, 0.06);
}

.s7-venn span:first-child {
  margin-right: -34px;
  padding-right: 30px;
  animation: s7-left 4s ease-in-out infinite;
}

.s7-venn span:last-of-type {
  padding-left: 30px;
  color: var(--blue-soft);
  border-color: rgba(91, 149, 255, 0.55);
  animation: s7-right 4s ease-in-out infinite;
}

.s7-venn b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

@keyframes s7-left { 50% { transform: translateX(8px); } }
@keyframes s7-right { 50% { transform: translateX(-8px); } }

/* e · chat bubbles */
.s7-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
}

.s7-msg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 46%;
  padding: 9px 12px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  opacity: 0;
  animation: s7-msg 6s var(--ease) infinite;
}

.s7-msg i {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.s7-msg i + i { width: 60%; }

.s7-msg.is-me {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background: var(--blue);
  border-color: var(--blue);
  animation-delay: 1s;
}

.s7-msg.is-me i { background: rgba(255, 255, 255, 0.7); }
.s7-msg:nth-child(3) { animation-delay: 2s; }

@keyframes s7-msg {
  0% { opacity: 0; transform: translateY(10px); }
  10%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* f · checklist */
.s7-check {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
}

.s7-check span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s7-check b {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  animation: s7-tick 4.5s var(--ease) infinite;
}

.s7-check i {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.s7-check span:nth-child(2) b { animation-delay: 0.6s; }
.s7-check span:nth-child(3) b { animation-delay: 1.2s; }
.s7-check span:nth-child(2) i { flex: 0.7; }
.s7-check span:nth-child(3) i { flex: 0.85; }

@keyframes s7-tick {
  0%, 15% { background: transparent; border-color: var(--border-strong); box-shadow: none; }
  25%, 85% { background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; border-color: var(--blue); box-shadow: 0 0 10px rgba(20, 99, 243, 0.6); }
  100% { background: transparent; }
}

@media (max-width: 900px) {
  .s7-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "b" "c" "d" "e";
  }
}
