/* METALINK VISION — Why Choose Platform (white center-hub) */

.why-platform {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  color: #0f172a;
  isolation: isolate;
  overflow: hidden;
}

.why-platform.section--scroll::before {
  display: none;
}

.why-platform__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 35% 30% at 90% 60%, rgba(6, 182, 212, 0.05), transparent);
  z-index: 0;
}

.why-platform .container {
  position: relative;
  z-index: 2;
}

.why-platform__header .section__subtitle {
  color: #64748b;
}

.why-platform__dashboard {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 24px 64px rgba(139, 92, 246, 0.05);
}

.why-platform__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  gap: 16px;
  align-items: stretch;
}

.why-platform__viz {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 55%),
    #fafbfc;
  border: 1px solid #eef2f7;
  overflow: hidden;
}

.why-platform__flow-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.why-platform__flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.why-platform__flow-track {
  fill: none;
  stroke: rgba(139, 92, 246, 0.12);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.why-platform__flow-glow {
  fill: none;
  stroke: url(#whyLineGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
  filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.45));
  opacity: 0;
}

.why-platform__flow-glow.is-drawn {
  opacity: 0.95;
  animation: whyFlowDash 1.2s linear infinite;
}

.why-platform__flow-glow.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.65));
  animation: whyFlowDash 0.6s linear infinite;
}

.why-platform__flow-dot circle {
  fill: #8b5cf6;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.7));
}

/* Center hub */
.why-platform__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
}

.why-platform__hub-center {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
}

.why-platform__hub-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.why-platform__ring {
  position: absolute;
  border-radius: 50%;
}

.why-platform__ring--1 {
  width: 118px;
  height: 118px;
  border: 2px solid transparent;
  background: linear-gradient(#fafbfc, #fafbfc) padding-box,
    linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4) border-box;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.18);
}

.why-platform__ring--2 {
  width: 148px;
  height: 148px;
  border: 1px dashed rgba(139, 92, 246, 0.3);
  animation: whyRingSpin 24s linear infinite;
}

.why-platform__ring--3 {
  width: 178px;
  height: 178px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  animation: whyRingSpin 32s linear infinite reverse;
}

.why-platform.is-live .why-platform__ring--1 {
  animation: whyHubPulse 3s ease-in-out infinite;
}

.why-platform__hub-core {
  position: relative;
  z-index: 4;
  width: auto;
  height: auto;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.12),
    0 0 0 6px rgba(255, 255, 255, 0.9);
}

.why-platform__hub-core .brand-logo__img--hub {
  width: 72px;
}

.revenue-eco__engine-core .brand-sphere--md {
  width: 84px;
  height: 84px;
}

.why-platform__hub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
}

.why-platform__hub-status i {
  font-size: 0.45rem;
  animation: whyPulse 1.6s ease-in-out infinite;
}

.why-platform__modules {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.why-platform__mod {
  position: absolute;
  width: min(200px, 42%);
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.why-platform.is-live .why-platform__mod.is-in {
  opacity: 1;
  transform: scale(1);
}

.why-platform__mod.is-active {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.12);
}

.why-platform__mod--1 { top: 6%; left: 4%; }
.why-platform__mod--2 { top: 38%; left: 2%; }
.why-platform__mod--3 { bottom: 6%; left: 4%; }
.why-platform__mod--4 { top: 6%; right: 4%; }
.why-platform__mod--5 { top: 38%; right: 2%; }
.why-platform__mod--6 { bottom: 6%; right: 4%; }

.why-platform__mod-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.why-platform__mod-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.why-platform__mod-icon--purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.why-platform__mod-icon--blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.why-platform__mod-icon--cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.why-platform__mod-icon--green { background: linear-gradient(135deg, #10b981, #06b6d4); }
.why-platform__mod-icon--pink { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.why-platform__mod-icon--amber { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.why-platform__mod h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.why-platform__mod p {
  margin: 0 0 8px;
  font-size: 0.65rem;
  line-height: 1.45;
  color: #64748b;
}

.why-platform__mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #059669;
}

.why-platform__mod-badge i {
  font-size: 0.4rem;
}

.why-platform__flow-packet {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
  z-index: 4;
  pointer-events: none;
}

/* Impact panel */
.why-platform__impact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.why-platform__impact h3 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.why-platform__impact > small {
  font-size: 0.65rem;
  color: #64748b;
  margin-bottom: 8px;
}

.why-platform__stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.why-platform__stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: #fff;
}

.why-platform__stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.why-platform__stat span {
  font-size: 0.62rem;
  color: #64748b;
}

.why-platform__stat em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  color: #059669;
}

/* Bottom values */
.why-platform__values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.why-platform__value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.why-platform__value i {
  font-size: 1rem;
  color: #7c3aed;
  margin-top: 2px;
}

.why-platform__value strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
}

.why-platform__value span {
  font-size: 0.6rem;
  color: #64748b;
  line-height: 1.35;
}

@keyframes whyFlowDash {
  to { stroke-dashoffset: -40; }
}

@keyframes whyHubPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(139, 92, 246, 0.18); }
  50% { box-shadow: 0 0 36px rgba(139, 92, 246, 0.32); }
}

@keyframes whyRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes whyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 1100px) {
  .why-platform__main { grid-template-columns: 1fr; }
  .why-platform__viz { min-height: 640px; }
  .why-platform__values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .why-platform__mod {
    width: 46%;
    padding: 10px;
  }
  .why-platform__mod p { display: none; }
  .why-platform__values { grid-template-columns: 1fr; }
  .why-platform__hub-center { width: 160px; height: 160px; }
  .why-platform__ring--3 { width: 150px; height: 150px; }
  .why-platform__ring--2 { width: 125px; height: 125px; }
  .why-platform__ring--1 { width: 100px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .why-platform__flow-glow.is-drawn,
  .why-platform__ring--1,
  .why-platform__ring--2,
  .why-platform__ring--3,
  .why-platform__hub-status i {
    animation: none !important;
  }
}
