/* CFI — Section Animations (replace static images) */

.cfi-anim-wrap {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.6);
  overflow: hidden;
}

.cfi-anim-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cfi-anim-wrap canvas,
.cfi-anim-wrap svg {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.cfi-anim-wrap--hero {
  min-height: 380px;
  border: none;
  background: transparent;
}

.cfi-anim-wrap--hero canvas {
  width: 100% !important;
  height: 380px !important;
}

.cfi-hero-badge {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.cfi-hero-badge span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfi-teal);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.08);
}

.cfi-hero-badge span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cfi-teal);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.6);
  animation: cfiBadgePulse 2s ease-in-out infinite;
}

/* Hero animated title */
.cfi-hero-head {
  margin-bottom: 4px;
}

.cfi-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--cfi-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cfi-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cfi-border);
}

.cfi-hero-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cfi-teal);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.55);
  animation: cfiBadgePulse 2s ease-in-out infinite;
}

.cfi-hero-title,
.hero-area3 .main-heading .cfi-hero-title {
  font-family: var(--cfi-font-display) !important;
  font-size: clamp(2.35rem, 5.2vw, 4rem) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--cfi-text) !important;
  text-transform: none !important;
  max-width: 100%;
}

.cfi-hero-title__line {
  display: block;
  overflow: hidden;
  padding: 2px 0;
}

.cfi-hero-title__line--accent .cfi-hero-title__text {
  background: linear-gradient(91deg, #2dd4bf 10%, #6366f1 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cfi-hero-title__text {
  display: inline-block;
  letter-spacing: -0.02em;
  will-change: letter-spacing, transform;
}

.cfi-hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.15em);
  will-change: transform, opacity;
}

.cfi-hero-title.is-animated .cfi-hero-char {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cfi-hero-char {
    opacity: 1 !important;
    transform: none !important;
  }
}

.cfi-anim-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.7);
  z-index: 2;
  white-space: nowrap;
}

/* Phone / wallet mockup */
.cfi-phone-mock {
  width: 200px;
  height: 360px;
  border-radius: 28px;
  border: 2px solid rgba(45, 212, 191, 0.35);
  background: linear-gradient(180deg, #0a0e18 0%, #050810 100%);
  padding: 16px 14px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(45, 212, 191, 0.08);
}

.cfi-phone-notch {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto 16px;
}

.cfi-phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cfi-tx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: cfiTxIn 0.6s ease forwards;
  opacity: 0;
  transform: translateX(-12px);
}

.cfi-tx-row:nth-child(1) { animation-delay: 0.2s; }
.cfi-tx-row:nth-child(2) { animation-delay: 0.6s; }
.cfi-tx-row:nth-child(3) { animation-delay: 1s; }
.cfi-tx-row:nth-child(4) { animation-delay: 1.4s; }

@keyframes cfiTxIn {
  to { opacity: 1; transform: translateX(0); }
}

.cfi-tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #6366f1);
  flex-shrink: 0;
  animation: cfiPulse 2s ease-in-out infinite;
}

.cfi-tx-info span {
  display: block;
  font-size: 11px;
  color: #8b95a8;
}

.cfi-tx-info strong {
  font-size: 12px;
  color: #f8fafc;
}

.cfi-tx-amt {
  margin-left: auto;
  font-size: 12px;
  color: #2dd4bf;
  font-weight: 600;
}

@keyframes cfiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Exchange chart */
.cfi-chart-wrap {
  width: 100%;
  max-width: 320px;
  padding: 20px;
}

.cfi-chart-wrap svg {
  width: 100%;
  height: auto;
}

.cfi-chart-line {
  fill: none;
  stroke: url(#cfiChartGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: cfiDrawLine 3s ease forwards infinite;
}

@keyframes cfiDrawLine {
  0% { stroke-dashoffset: 600; }
  40% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.cfi-chart-area {
  fill: url(#cfiAreaGrad);
  opacity: 0;
  animation: cfiFadeArea 3s ease 0.5s forwards infinite;
}

@keyframes cfiFadeArea {
  0%, 30% { opacity: 0; }
  50%, 100% { opacity: 0.25; }
}

/* Blockchain blocks */
.cfi-blocks {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px;
}

.cfi-block {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  background: rgba(12, 16, 24, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #2dd4bf;
  font-weight: 600;
  animation: cfiBlockFloat 3s ease-in-out infinite;
  position: relative;
}

.cfi-block:nth-child(1) { animation-delay: 0s; }
.cfi-block:nth-child(3) { animation-delay: 0.4s; }
.cfi-block:nth-child(5) { animation-delay: 0.8s; }
.cfi-block:nth-child(7) { animation-delay: 1.2s; }

.cfi-block small {
  font-size: 8px;
  color: #8b95a8;
  margin-top: 2px;
}

.cfi-block-chain {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #2dd4bf, #6366f1);
  position: relative;
  overflow: hidden;
}

.cfi-block-chain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: cfiChainFlow 1.5s linear infinite;
}

@keyframes cfiChainFlow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes cfiBlockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* About network SVG */
.cfi-network-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.cfi-net-node {
  fill: #2dd4bf;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.6));
  animation: cfiNodePulse 2.5s ease-in-out infinite;
}

.cfi-net-node:nth-child(odd) { animation-delay: 0.5s; }

.cfi-net-line {
  stroke: rgba(45, 212, 191, 0.25);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: cfiNetDash 20s linear infinite;
}

@keyframes cfiNodePulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 7; opacity: 0.7; }
}

@keyframes cfiNetDash {
  to { stroke-dashoffset: -200; }
}

/* Roadmap animated connector */
.roadmap2 .roadmap2-area {
  position: relative;
}

.cfi-roadmap-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2dd4bf, #6366f1, transparent);
  transform: translateY(-50%);
  z-index: 0;
  overflow: hidden;
}

.cfi-roadmap-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: cfiRoadFlow 2.5s linear infinite;
}

@keyframes cfiRoadFlow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.roadmap2 .roadmap2-box {
  position: relative;
  z-index: 1;
}

.roadmap2 .roadmap2-box img {
  display: none !important;
}

/* Video play animation */
.cfi-play-anim {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(45, 212, 191, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  background: rgba(12, 16, 24, 0.8);
}

.cfi-play-anim::before,
.cfi-play-anim::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.3);
  animation: cfiPlayRing 2s ease-out infinite;
}

.cfi-play-anim::after {
  animation-delay: 1s;
}

@keyframes cfiPlayRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.cfi-play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #2dd4bf;
  margin-left: 4px;
}

/* App store link buttons (replace image) */
.cfi-store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cfi-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1018;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s;
}

.cfi-store-btn:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
  color: #f8fafc;
}

.cfi-store-btn i {
  color: #2dd4bf;
  font-size: 18px;
}

/* Hide replaced decorative images */
.hero-area3 .shape1,
.hero-area3 .shape2,
.hero-area3 .coin-shape2,
.about3 > .shape,
.spabout > .shape,
.possibilites > .sec-shape,
.faq3 .sec-shape1,
.faq3 .sec-shape2,
.faq3 .sec-shape3,
.faq3 .sec-shape4,
.faq3 .sec-shape5,
.faq3 .sec-shape6,
.footer3 > .shape,
.roadmap2 .sec-shape1,
.roadmap2 .sec-shape2,
.roadmap2 .sec-shape3 {
  display: none !important;
}

.hero-area3[style*="background-image"] {
  background-image: none !important;
}

@media (max-width: 767px) {
  .cfi-anim-wrap--hero {
    min-height: 260px;
  }

  .cfi-anim-wrap--hero canvas {
    height: 260px !important;
  }

  .cfi-phone-mock {
    width: 170px;
    height: 300px;
  }

  .cfi-roadmap-line {
    display: none;
  }
}
