/* ==========================================================================
   Finovo - Modern Finance Landing Page Stylesheet
   ========================================================================== */

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-editorial {
  font-family: 'Instrument Serif', serif;
}

/* --------------------------------------------------------------------------
   1. Animations
   -------------------------------------------------------------------------- */

/* Soft Fade-Up Animation for Hero Heading & Text */
@keyframes softFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-up {
  opacity: 0;
  animation: softFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animated Chart Trendline Ray (Drawing Bottom to Top) */
@keyframes drawChartStroke {
  0% {
    stroke-dashoffset: 450;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes chartAreaRise {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
  }
  30% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes chartDotPop {
  0%, 75% {
    opacity: 0;
    transform: scale(0);
  }
  90% {
    transform: scale(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dotPulseLive {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.chart-line-animated {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: drawChartStroke 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chart-area-animated {
  transform-origin: bottom;
  animation: chartAreaRise 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chart-dot-animated {
  transform-origin: 215px 10px;
  animation: chartDotPop 1.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chart-dot-pulse {
  transform-origin: 215px 10px;
  animation: chartDotPop 1.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, dotPulseLive 2.2s ease-in-out 1.9s infinite;
}

/* --------------------------------------------------------------------------
   2. Ultra-Smooth FAQ Accordion
   -------------------------------------------------------------------------- */

.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.faq-answer-wrapper.open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-wrapper > * {
  min-height: 0;
  overflow: hidden;
}

.faq-icon-rotate {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq-icon-rotate.open {
  transform: rotate(45deg);
}

.faq-icon-rotate.fa-chevron-down.open {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   3. Feature Cards Gentle Scroll Reveal
   -------------------------------------------------------------------------- */

.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Brand Vector Mask Icons (Color & Size Adjustable in HTML/CSS)
   -------------------------------------------------------------------------- */

.brand-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-logo-item:hover {
  transform: scale(1.06);
}

.brand-svg-mask {
  display: inline-block;
  background-color: #18352d;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* --------------------------------------------------------------------------
   5. Accessibility: Reduced Motion (Safe Fallback)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   6. Finovo Floating Promo Card (Bottom-Right)
   -------------------------------------------------------------------------- */
@keyframes promoGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 14px #34d399, 0 0 24px rgba(52, 211, 153, 0.65);
  }
}

.finovo-promo-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(24, 53, 45, 0.1);
  box-shadow: 0 12px 36px -4px rgba(18, 40, 34, 0.16), 0 4px 12px -2px rgba(18, 40, 34, 0.08);
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.finovo-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -4px rgba(18, 40, 34, 0.22), 0 8px 18px -2px rgba(18, 40, 34, 0.1);
  border-color: rgba(24, 53, 45, 0.18);
}

/* Decorative Glow Bubble */
.finovo-promo-glow-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px #10b981;
  animation: promoGlowPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* Left Icon Container */
.finovo-promo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #18352d 0%, #102720 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(24, 53, 45, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.finovo-promo-icon svg {
  width: 18px;
  height: 18px;
}

/* Middle Content Area */
.finovo-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: 145px;
}

.finovo-promo-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f241e;
  letter-spacing: -0.15px;
  line-height: 1.25;
  white-space: normal;
}

.finovo-promo-subtitle {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2.5px;
  white-space: nowrap;
}

.finovo-promo-author-link {
  color: #059669;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

.finovo-promo-author-link:hover {
  color: #18352d;
}

/* Right CTA Button */
.finovo-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  background-color: #18352d;
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(24, 53, 45, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.finovo-promo-btn:hover {
  background-color: #234e42;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(24, 53, 45, 0.26);
  color: #ffffff !important;
}

.finovo-promo-btn-icon {
  font-size: 9.5px;
  opacity: 0.85;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .finovo-promo-card {
    bottom: 16px;
    right: 16px;
    padding: 10px 12px;
    gap: 9px;
  }
  .finovo-promo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .finovo-promo-icon svg {
    width: 16px;
    height: 16px;
  }
  .finovo-promo-content {
    max-width: 130px;
  }
  .finovo-promo-title {
    font-size: 11.5px;
  }
  .finovo-promo-subtitle {
    font-size: 10px;
  }
  .finovo-promo-btn {
    padding: 7px 11px;
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .finovo-promo-card {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 9px 11px;
    gap: 8px;
    justify-content: space-between;
  }
  .finovo-promo-content {
    max-width: 120px;
  }
  .finovo-promo-title {
    font-size: 11px;
  }
  .finovo-promo-subtitle {
    font-size: 9.5px;
  }
  .finovo-promo-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
}


/* --------------------------------------------------------------------------
   7. Finovo Live Preview Protection Warning Modal
   -------------------------------------------------------------------------- */
.finovo-protection-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.finovo-protection-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.finovo-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 40, 34, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.finovo-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  text-align: center;
  border: 1px solid rgba(24, 53, 45, 0.12);
  box-shadow: 0 20px 50px rgba(18, 40, 34, 0.35), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: scale(0.92) translateY(10px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  z-index: 1;
}

.finovo-protection-modal-overlay.is-active .finovo-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.finovo-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f3;
  color: #64748b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.finovo-modal-close-btn:hover {
  background: #e2ece8;
  color: #18352d;
  transform: scale(1.05);
}

.finovo-modal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e9f4ef;
  color: #18352d;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: inset 0 0 0 1px rgba(24, 53, 45, 0.1);
}

.finovo-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #112d25;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.finovo-modal-message {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 22px;
}

.finovo-modal-btn {
  width: 100%;
  padding: 12px 20px;
  background-color: #18352d;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 53, 45, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.finovo-modal-btn:hover {
  background-color: #1f453b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 53, 45, 0.32);
}

.finovo-modal-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .finovo-modal-card {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }
  .finovo-modal-icon-wrap {
    width: 46px;
    height: 46px;
    font-size: 19px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .finovo-modal-title {
    font-size: 17px;
  }
  .finovo-modal-message {
    font-size: 12.5px;
    margin-bottom: 18px;
  }
  .finovo-modal-btn {
    padding: 11px 18px;
    font-size: 13px;
  }
}

