/* ==========================================================================
   Paisape — shared stylesheet
   Tailwind (CDN) handles utilities. This file holds everything Tailwind
   can't express: keyframes, scroll-reveal states, the mega menu and
   component-level micro-interactions.
   ========================================================================== */

html { -webkit-font-smoothing: antialiased; }
body { font-family: Inter, system-ui, sans-serif; }

/* --------------------------------------------------------------------------
   1. Scroll reveal
   Add data-reveal (optionally ="left|right|zoom|fade") and data-delay="120".
   main.js adds .is-in when the element scrolls into view.
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
              transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-in   { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   2. Infinite marquees
   Row moving right → left uses .animate-marquee-l
   Row moving left → right uses .animate-marquee-r
   main.js clones [data-mq-group] into [data-mq-clone] for a seamless loop.
   -------------------------------------------------------------------------- */
@keyframes marqueeL { 0% { transform: translateX(0); }      100% { transform: translateX(-50%); } }
@keyframes marqueeR { 0% { transform: translateX(-50%); }   100% { transform: translateX(0); } }

.marquee { position: relative; overflow: hidden; }
.marquee::before,
.marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg,  var(--edge, #fff), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--edge, #fff), transparent); }

.track { display: flex; width: max-content; }
.animate-marquee-l    { animation: marqueeL 38s linear infinite; }
.animate-marquee-r    { animation: marqueeR 38s linear infinite; }
.animate-marquee-slow { animation: marqueeL 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   3. Ambient motion
   -------------------------------------------------------------------------- */
@keyframes float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulseRing { 0% { transform: scale(.9); opacity: .7; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
@keyframes blink     { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pop       { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 100% { opacity: 1; transform: none; } }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-ring  { animation: pulseRing 2.4s ease-out infinite; }
.animate-blink { animation: blink 1s step-end infinite; }

/* --------------------------------------------------------------------------
   4. Cards and links
   -------------------------------------------------------------------------- */
.card-lift {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1),
              box-shadow .45s ease, border-color .45s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px -18px rgba(14, 155, 238, .35);
  border-color: #0E9BEE;
}
.arrow { transition: transform .35s ease; }
.card-lift:hover .arrow,
.group:hover .arrow,
a:hover > .arrow,
button:hover > .arrow { transform: translateX(6px); }

.thumb-art { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.card-lift:hover .thumb-art { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 100%; background: #0E9BEE;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* Mega menu ---------------------------------------------------------------- */
.mega-wrap {
  position: absolute; left: 50%; top: 100%; z-index: 40;
  transform: translateX(-50%) translateY(10px);
  padding-top: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.mega-parent:hover .mega-wrap,
.mega-wrap:focus-within,
.mega-parent.open .mega-wrap {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Simple Dropdown Menu (Free Tools) */
.dropdown-wrap {
  position: absolute; left: 0; top: 100%; z-index: 40;
  padding-top: 12px;
  display: none;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.dropdown-parent:hover .dropdown-wrap,
.dropdown-wrap:focus-within,
.dropdown-parent.open .dropdown-wrap {
  display: block !important;
  opacity: 1 !important; pointer-events: auto !important;
  transform: translateY(0) !important;
}

.mega-cat {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: #22314D; text-align: left;
  background: transparent; border: 1px solid transparent;
  transition: all .28s cubic-bezier(.22, 1, .36, 1);
}
.mega-cat:hover { color: #0F9E86; }
.mega-cat[aria-selected="true"] {
  background: #fff; color: #16233B; font-weight: 600;
  border-color: #E3EFEA;
  box-shadow: 0 8px 20px -10px rgba(22, 35, 59, .22);
}

.mega-panel { display: none; }
.mega-panel.show {
  display: grid;
  animation: pop .38s cubic-bezier(.22, 1, .36, 1) both;
}

.mega-link {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 16px; border: 1px solid #E7EDF3; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; color: #22314D; background: #fff;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.mega-link:hover {
  border-color: #2ECFB4;
  color: #16233B;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(46, 207, 180, .55);
}
.mega-link svg { color: #2ECFB4; flex: none; transition: transform .3s ease; }
.mega-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.field { transition: border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.field:focus {
  border-color: #0E9BEE;
  box-shadow: 0 0 0 4px rgba(14, 155, 238, .12);
  background: #fff; outline: none;
}
.chip input:checked + span {
  background: #0E9BEE; border-color: #0E9BEE; color: #fff;
}
.chip span { transition: all .25s ease; }

/* --------------------------------------------------------------------------
   7. Accordion / filters / progress
   -------------------------------------------------------------------------- */
.faq-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22, 1, .36, 1); }
.faq.open .faq-body { max-height: 240px; }
.faq-icon { transition: transform .35s ease; }
.faq.open .faq-icon { transform: rotate(45deg); }

.filter-btn { transition: all .3s ease; }
.filter-btn[aria-pressed="true"] {
  background: #0E9BEE; border-color: #0E9BEE; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(14, 155, 238, .6);
}

#progress { transform-origin: left; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   8. One-shot chart / terminal animations (landing page)
   -------------------------------------------------------------------------- */
.donut circle.val {
  stroke-dasharray: 220; stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1) .3s;
}
.donut.is-in circle.val { stroke-dashoffset: 74; }

.bar { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.bar.is-in { transform: scaleX(1); }

.grow-line { transform: scaleY(0); transform-origin: top; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1) .2s; }
.grow-line.is-in { transform: scaleY(1); }

.term-line { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.term-line.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   9. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid #0E9BEE; outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .donut circle.val { stroke-dashoffset: 74 !important; }
  .bar, .grow-line { transform: none !important; }
  .term-line { opacity: 1 !important; transform: none !important; }
}

/* Global Spacing Overrides to reduce excessive section padding across the site */
.py-20 {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}
.py-24 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
.py-16 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
.py-12 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
.pb-24 {
  padding-bottom: 4rem !important;
}
.pt-20 {
  padding-top: 3.5rem !important;
}
.pb-20 {
  padding-bottom: 3.5rem !important;
}

@media (min-width: 768px) {
  .md\:py-24 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  .md\:py-20 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
  .md\:pb-24 {
    padding-bottom: 5rem !important;
  }
}
