/* Finance / Fintech App hero — from Corewave Fintech App Page (01 Hero) */

@keyframes cw-fin-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cw-fin-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cw-fin-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cw-fin-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 85, 39, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 85, 39, 0);
  }
}

@keyframes cw-fin-coin {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 40px), var(--dy, -80px)) scale(0.4);
  }
}

.cw-finance-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 78% 45%, rgba(90, 160, 255, 0.14), transparent 70%),
    radial-gradient(500px 400px at 55% 95%, rgba(212, 245, 60, 0.1), transparent 70%),
    #141210;
  color: #eae7e1;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-finance-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 40px;
  align-items: center;
}

.cw-finance-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.cw-finance-hero__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #ff7a50;
}

.cw-finance-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5527;
  animation: cw-fin-ping 1.8s infinite;
  flex: none;
}

.cw-finance-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f3efe7;
}

.cw-finance-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #d4f53c;
}

.cw-finance-hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(234, 231, 225, 0.78);
  text-wrap: pretty;
}

.cw-finance-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-finance-hero__btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cw-finance-hero__btn--primary {
  padding: 0 26px;
  background: #e0431c;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(224, 67, 28, 0.8);
}

.cw-finance-hero__btn--primary:hover {
  background: #c93a16;
  color: #fff;
}

.cw-finance-hero__btn--secondary {
  border: 1px solid rgba(234, 231, 225, 0.25);
  color: #eae7e1;
  font-weight: 500;
}

.cw-finance-hero__btn--secondary:hover {
  border-color: #d4f53c;
  color: #fff;
}

.cw-finance-hero__visual {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  outline: none;
}

.cw-finance-hero__stage {
  position: relative;
  transition: transform 0.2s ease-out;
}

.cw-finance-hero__phone-shell {
  width: 270px;
  height: 540px;
  border-radius: 44px;
  background: #0b0a09;
  padding: 10px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(234, 231, 225, 0.12),
    0 50px 100px -40px rgba(0, 0, 0, 0.9);
  flex: none;
}

.cw-finance-hero__phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #f6f3ee;
  color: #141210;
  display: flex;
  flex-direction: column;
}

.cw-finance-hero__phone-status {
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
}

.cw-finance-hero__phone-notch {
  width: 70px;
  height: 20px;
  border-radius: 12px;
  background: #0b0a09;
}

.cw-finance-hero__phone-body {
  padding: 6px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.cw-finance-hero__wallet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cw-finance-hero__wallet-greet {
  display: flex;
  flex-direction: column;
}

.cw-finance-hero__wallet-sub {
  font-size: 11px;
  color: #6b6158;
}

.cw-finance-hero__wallet-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.cw-finance-hero__kyc {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf8d6;
  color: #2f6a0e;
  font: 700 10.5px 'Inter', sans-serif;
  white-space: nowrap;
}

.cw-finance-hero__balance-card {
  position: relative;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #1b3fd8, #0a1a6b);
  color: #fff;
  overflow: hidden;
}

.cw-finance-hero__balance-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(90, 160, 255, 0.35);
  pointer-events: none;
}

.cw-finance-hero__balance-kicker {
  position: relative;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.cw-finance-hero__balance-amt {
  position: relative;
  display: block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.cw-finance-hero__balance-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  opacity: 0.85;
}

.cw-finance-hero__send-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-finance-hero__send-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b6158;
}

.cw-finance-hero__send-amt {
  font-weight: 600;
  color: #141210;
}

.cw-finance-hero__peers {
  display: flex;
  gap: 8px;
}

.cw-finance-hero__peer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 500 10.5px 'Inter', sans-serif;
  color: #141210;
}

.cw-finance-hero__peer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 13px 'Inter Tight', sans-serif;
  box-sizing: border-box;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.cw-finance-hero__peer.is-active .cw-finance-hero__peer-avatar {
  border-color: #1b3fd8;
}

.cw-finance-hero__range-label {
  display: block;
  margin: 0;
}

.cw-finance-hero__range {
  width: 100%;
  accent-color: #1b3fd8;
}

.cw-finance-hero__send-btn {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #1b3fd8;
  color: #fff;
  font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
}

.cw-finance-hero__send-btn.is-sent {
  background: #2f6a0e;
}

.cw-finance-hero__txns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
  min-height: 72px;
}

.cw-finance-hero__txn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  animation: cw-fin-fade 0.35s ease-out both;
}

.cw-finance-hero__txn-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 10px 'Inter Tight', sans-serif;
  flex: none;
}

.cw-finance-hero__txn-label {
  flex: 1;
  min-width: 0;
}

.cw-finance-hero__txn-val {
  font-weight: 700;
  flex: none;
}

.cw-finance-hero__coins {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cw-finance-hero__coin {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe38a, #e8a21c);
  box-shadow: 0 0 0 2px #b87a0a inset;
  animation: cw-fin-coin 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) both;
  pointer-events: none;
}

.cw-finance-hero__chip {
  position: absolute;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: cw-fin-bob 5s ease-in-out infinite;
}

.cw-finance-hero__chip--fraud {
  left: -150px;
  top: 60px;
  background: #1e1b18;
  border: 1px solid rgba(234, 231, 225, 0.1);
  color: #eae7e1;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.cw-finance-hero__chip--pay {
  right: -150px;
  top: 190px;
  background: #f3efe7;
  color: #141210;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation-delay: 1.4s;
}

.cw-finance-hero__chip--spark {
  right: -170px;
  bottom: -30px;
  background: #1e1b18;
  border: 1px solid rgba(234, 231, 225, 0.1);
  color: #eae7e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 150px;
  animation-delay: 0.7s;
}

.cw-finance-hero__chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cw-finance-hero__chip-icon--lime {
  background: #d4f53c;
}

.cw-finance-hero__chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-finance-hero__chip-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(234, 231, 225, 0.5);
}

.cw-finance-hero__chip--pay .cw-finance-hero__chip-kicker,
.cw-finance-hero__chip--spark .cw-finance-hero__chip-kicker {
  color: #6b6158;
}

.cw-finance-hero__chip--spark .cw-finance-hero__chip-kicker {
  color: rgba(234, 231, 225, 0.5);
}

.cw-finance-hero__chip-label {
  font-weight: 600;
  font-size: 13px;
}

.cw-finance-hero__pay-tags {
  display: flex;
  gap: 5px;
}

.cw-finance-hero__pay-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  font: 700 11px 'Inter', sans-serif;
}

.cw-finance-hero__pay-tags span:nth-child(1) {
  background: #141210;
  color: #fff;
}

.cw-finance-hero__pay-tags span:nth-child(2) {
  background: #cfc4f6;
}

.cw-finance-hero__pay-tags span:nth-child(3) {
  background: #d4f53c;
}

.cw-finance-hero__spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.cw-finance-hero__spark span {
  flex: 1;
  border-radius: 3px;
  transition: height 0.5s;
  min-height: 4px;
}

.cw-finance-hero .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .cw-finance-hero__chip--fraud,
  .cw-finance-hero__chip--pay,
  .cw-finance-hero__chip--spark {
    display: none;
  }

  .cw-finance-hero__visual {
    min-height: auto;
  }
}
