/* ============================================================
   VCC, Economics section
   One verification fee splits to three earning participants
   Sankey-style animated diagram
   ============================================================ */

.economics {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px);
  overflow: hidden;
}

.economics::before {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 168, 64, 0.08) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.economics__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-5);
}

.economics__head .eyebrow { margin-bottom: var(--space-4); }

.economics__head h2 {
  font-size: var(--fs-primary);
  font-weight: var(--fw-light);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin-bottom: var(--space-4);
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}

.economics__head h2 .accent { color: var(--accent); font-weight: var(--fw-bold); }
.economics__head .lead { margin-inline: auto; max-width: 56ch; }

/* ---------- Stage ---------- */

.economics__stage {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-inline: auto;
  background: rgba(46, 63, 50, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 2vw, 28px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.economics__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 22 / 9;
  max-width: 1000px;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .economics__canvas { aspect-ratio: 4 / 5; }
}

.economics__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- Source: Enterprise pays ---------- */

.ec-source rect.bg {
  fill: var(--bg-elevated);
  stroke: rgba(86, 116, 241, 0.35);
  stroke-width: 1.2;
}

.ec-source text.role {
  fill: var(--verified);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ec-source text.name {
  fill: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 500;
}

.ec-source text.amount {
  fill: var(--verified);
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.ec-source text.amount-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Central node ---------- */

.ec-hub-ring {
  fill: none;
  stroke: var(--border-accent);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ec-hub-rotate 40s linear infinite;
}

@keyframes ec-hub-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ec-hub-inner {
  fill: rgba(20, 28, 23, 0.6);
  stroke: var(--border-accent);
  stroke-width: 1;
}

.ec-hub-helix {
  fill: none;
  stroke: var(--accent);
  stroke-width: 14;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(116, 219, 139, 0.5));
}

.ec-hub-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-anchor: middle;
}

/* ---------- Earning destinations ---------- */

.ec-dest rect.bg {
  fill: var(--bg-elevated);
  stroke: rgba(116, 219, 139, 0.25);
  stroke-width: 1.2;
}

.ec-dest text.role {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ec-dest text.name {
  fill: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 500;
}

.ec-dest text.desc {
  fill: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 12px;
}

.ec-dest text.pct {
  fill: var(--accent);
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.ec-dest text.pct-label {
  fill: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  dominant-baseline: alphabetic;
}

/* ---------- Flow ribbons ---------- */

.ec-ribbon-in {
  fill: rgba(86, 116, 241, 0.25);
  stroke: rgba(86, 116, 241, 0.5);
  stroke-width: 0.5;
}

.ec-ribbon-out {
  fill: rgba(232, 168, 64, 0.2);
  stroke: rgba(232, 168, 64, 0.45);
  stroke-width: 0.5;
}

/* Flowing particles along ribbons */
.ec-particle {
  filter: drop-shadow(0 0 6px currentColor);
}

.ec-particle--in circle {
  fill: var(--verified);
  animation: ec-travel-in 3s linear infinite;
}

.ec-particle--out circle {
  fill: #E8A840;
  animation: ec-travel-out 2.5s linear infinite;
}

.ec-particle--out-1 circle { animation-delay: 0s; }
.ec-particle--out-2 circle { animation-delay: 0.4s; }
.ec-particle--out-3 circle { animation-delay: 0.8s; }

@keyframes ec-travel-in {
  0%   { transform: translateX(0); opacity: 0; }
  6%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(230px); opacity: 0; }
}

@keyframes ec-travel-out {
  0%   { offset-distance: 0%; opacity: 0; }
  6%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- Bottom stats strip ---------- */

.economics__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .economics__stats { grid-template-columns: 1fr; gap: var(--space-4); }
}

.economics__stat {
  padding: 0;
}

.economics__stat-num {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.economics__stat-num .accent { color: var(--accent); font-weight: 500; }

.economics__stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1.4;
}

.economics__caption {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(116, 219, 139, 0.04);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

.economics__caption strong { color: var(--text-primary); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ec-hub-ring,
  .ec-particle--in circle,
  .ec-particle--out circle { animation: none !important; }
}
