/* ===== Finvasoft custom styles (Tailwind handles the rest) ===== */
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Grid background used in dark sections */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}

.text-gradient {
  background: linear-gradient(90deg, #22e05a 0%, #00b50a 45%, #7cf2b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Glow blobs */
.glow { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }

/* Gradient border card */
.card-border { position: relative; }
.card-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(34,224,90,.55), rgba(255,255,255,.06) 40%, rgba(255,255,255,.04) 60%, rgba(34,224,90,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Marquee */
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Floating */
.float-slow { animation: floaty 6s ease-in-out infinite; }
.float-slower { animation: floaty 8s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Typing caret */
.caret::after { content: "▍"; color: #22e05a; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* Header state */
#header.scrolled { background: rgba(5, 11, 20, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }

/* Dropdown */
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Product tabs */
.tab-btn[aria-selected="true"] { background: #00b50a; color: #fff; border-color: #00b50a; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-slow, .float-slower { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
