/* ===== Visual components: illustrations, infographics, video, CSS animation ===== */

/* Figure (infographic PNG) */
.vis-fig {
  margin: 26px 0;
  padding: 0;
}
.vis-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.vis-fig figcaption {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

/* Video + text block */
.vis-video {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}
.vis-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbeafe;
}
.vis-video h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  color: #0f172a;
}
.vis-video p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #475569;
}
.vis-video a {
  font-size: 13.5px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.vis-video a:hover { text-decoration: underline; }

/* Hero / page-hero illustration */
.hero-visual {
  margin: 22px auto 0;
  max-width: 720px;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.38);
}

/* Inline illustration */
.vis-ill {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 24px 0;
}

/* CSS/SVG animated flow (3 steps, no video dependency) */
.anim-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 30px;
  padding-bottom: 18px;
}
.anim-flow::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #bfdbfe, #dbeafe);
  animation: barPulse 3.6s ease-in-out infinite;
}
.anim-node {
  position: relative;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  animation: nodeGlow 3.6s ease-in-out infinite;
}
.anim-node b {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #0f172a;
}
.anim-node span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}
.anim-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  margin: 0 auto 8px;
  animation: dotGlow 3.6s ease-in-out infinite;
}
.anim-node:nth-child(2),
.anim-node:nth-child(2) .anim-dot { animation-delay: 1.2s; }
.anim-node:nth-child(3),
.anim-node:nth-child(3) .anim-dot { animation-delay: 2.4s; }

@keyframes dotGlow {
  0%, 100% { background: #cbd5e1; box-shadow: none; }
  12% { background: #2563eb; box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18); }
  45% { background: #cbd5e1; box-shadow: none; }
}
@keyframes nodeGlow {
  0%, 100% { border-color: #e2e8f0; box-shadow: none; }
  12% { border-color: #2563eb; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16); }
  45% { border-color: #e2e8f0; box-shadow: none; }
}
@keyframes barPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.vis-anim-title {
  margin: 30px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 680px) {
  .vis-video { grid-template-columns: 1fr; }
  .anim-flow { grid-template-columns: 1fr; }
  .anim-flow::after { display: none; }
  .anim-node { animation: none; border-color: #bfdbfe; }
  .anim-dot { animation: none; background: #2563eb; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-node, .anim-dot, .anim-flow::after { animation: none; }
  .anim-node { border-color: #bfdbfe; }
  .anim-dot { background: #2563eb; }
}


/* ===== Moe girl x chart x coins loop video ===== */
.moe-block {
  margin: 26px 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1020;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}
.moe-block video {
  width: 100%;
  height: auto;
  display: block;
  background: #0b1020;
}
.moe-block figcaption {
  margin: 0;
  padding: 11px 15px 13px;
  font-size: 13px;
  line-height: 1.65;
  color: #c7d2fe;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.55), rgba(15, 23, 42, 0.92));
}
.hero-visual .moe-block {
  margin: 0 auto 22px;
  max-width: 720px;
  text-align: left;
}
.hero-visual .moe-block figcaption { color: #dbeafe; }

@media (max-width: 680px) {
  .moe-block { border-radius: 14px; }
}

/* ===== 1-minute story video band ===== */
.story-band {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 26px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}
.story-band .story-card { margin: 0 auto; width: 100%; max-width: 300px; }
.story-band video {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #0b1020;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}
.story-text h2 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #0f172a;
  border: 0;
}
.story-text p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}
.story-points {
  margin: 0 0 12px;
  padding-left: 1.2em;
  font-size: 13.5px;
  line-height: 1.8;
  color: #334155;
}
.story-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.story-link:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .story-band { grid-template-columns: 1fr; gap: 14px; }
  .story-band .story-card { max-width: 300px; }
}
