/* 3D illustrations + Varicose Demo shared styles */

.scene3d { display: inline-block; }
.scene3d-inner { display: inline-block; transform-style: preserve-3d; }
.scene3d--float .scene3d-inner { animation: sc3d-float 6s ease-in-out infinite; }
@keyframes sc3d-float {
  0%,100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-8px) rotateX(1deg) rotateY(-1deg); }
}

.ill3d {
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* Pulse rings */
.vd-pulse { animation: vd-pulse 1.6s ease-out infinite; transform-origin: -10px 0; }
.vd-pulse--2 { animation-delay: 0.4s; }
@keyframes vd-pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

.vd-flow circle { animation: vd-flow 2.5s linear infinite; }
.vd-flow circle:nth-child(2) { animation-delay: 0.6s; }
.vd-flow circle:nth-child(3) { animation-delay: 1.2s; }
.vd-flow circle:nth-child(4) { animation-delay: 1.8s; }
@keyframes vd-flow { from { transform: translateY(-40px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(40px); opacity: 0; } }

/* ── Fibroid demo specifics ─────────────────────────── */
.fd-root {
  background: linear-gradient(180deg, rgba(255,107,138,0.06), rgba(251,191,36,0.04));
}
.fd-root::before {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,107,138,0.14), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(251,191,36,0.1), transparent 55%) !important;
}
.fd-ctrl--active {
  background: linear-gradient(135deg, rgba(255,107,138,0.22), rgba(251,191,36,0.15)) !important;
  border-color: #ff9a8a !important;
}
.fd-stage { width: 400px; height: 480px; position: relative; }
.fd-svg { width: 100%; height: 100%; }

.fd-pulse-bad { transform-origin: -25px -20px; animation: fd-pulse-bad 2s ease-out infinite; }
@keyframes fd-pulse-bad { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }

.fd-pulse-emb { transform-origin: -25px -20px; animation: fd-pulse-emb 1.8s ease-out infinite; }
.fd-pulse-emb--2 { animation-delay: 0.5s; }
@keyframes fd-pulse-emb { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.4); opacity: 0; } }

.fd-dye circle { animation: fd-dye 1.8s ease-in-out infinite; }
.fd-dye circle:nth-child(2) { animation-delay: 0.3s; }
.fd-dye circle:nth-child(3) { animation-delay: 0.6s; }
@keyframes fd-dye { 0%,100% { opacity: 0.2; r: 3; } 50% { opacity: 0.95; r: 5; } }

.fd-particles circle { animation: fd-part 2s ease-out infinite; transform-origin: center; }
@keyframes fd-part {
  0% { transform: scale(0); opacity: 0; }
  30% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.85; }
}

.fd-flow circle { animation: fd-flow 2.2s linear infinite; }
.fd-flow circle:nth-child(2) { animation-delay: 0.5s; }
.fd-flow circle:nth-child(3) { animation-delay: 1s; }
@keyframes fd-flow {
  from { transform: translateX(-15px); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  to { transform: translateX(30px); opacity: 0; }
}

/* Varicose demo container */
.vd-root {
  background: linear-gradient(180deg, rgba(34,211,238,0.04), rgba(122,92,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px;
  position: relative; overflow: hidden;
}
.vd-root::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(34,211,238,0.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(122,92,255,0.1), transparent 50%);
}
.vd-root > * { position: relative; }

.vd-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 32px;
}
.vd-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.2em; color: #22d3ee; margin-bottom: 12px;
}
.vd-h { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.vd-h-en { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: #fff; }
.vd-h-hi { font-size: 22px; color: #22d3ee; font-family: 'Noto Sans Devanagari','Inter',sans-serif; font-weight: 500; }

.vd-controls { display: flex; gap: 8px; }
.vd-ctrl {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); cursor: pointer; font-family: inherit;
  transition: 200ms;
}
.vd-ctrl:hover { border-color: rgba(34,211,238,0.4); color: #fff; }
.vd-ctrl--active { background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(122,92,255,0.15)); border-color: #22d3ee; color: #fff; }
.vd-ctrl-ix { font-family: 'JetBrains Mono',monospace; font-size: 10px; letter-spacing: 0.15em; opacity: 0.6; }
.vd-ctrl-k { font-size: 14px; font-weight: 600; }

.vd-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.vd-scene {
  justify-self: center;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5));
}
.vd-stage { width: 400px; height: 480px; position: relative; }
.vd-svg { width: 100%; height: 100%; }

.vd-side { display: flex; flex-direction: column; gap: 20px; }
.vd-card {
  padding: 28px; border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}
.vd-card-ix { font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: 0.2em; color: #22d3ee; margin-bottom: 16px; }
.vd-card-k { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.05; }
.vd-card-hi { font-size: 18px; color: #22d3ee; margin-top: 4px; font-family: 'Noto Sans Devanagari','Inter',sans-serif; }
.vd-card-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 10px; }

.vd-meta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.vd-meta > div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.08); gap: 16px; }
.vd-meta span { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; text-transform: uppercase; }
.vd-meta b { font-size: 13px; color: #fff; font-weight: 600; text-align: right; }

.vd-replay {
  margin-top: 20px; font: inherit; font-size: 12px;
  background: none; border: 1px solid rgba(34,211,238,0.3); color: #22d3ee;
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
}
.vd-replay:hover { background: rgba(34,211,238,0.1); }

.vd-legend {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.05em;
}
.vd-legend > div { display: flex; align-items: center; gap: 8px; }
.vd-legend i {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
  box-shadow: 0 0 8px currentColor;
}
