/* ============================================================
   AIQuorix — animations.css
   Additive animation layer. Load AFTER app.css.
   Respects prefers-reduced-motion.
   ============================================================ */

/* ---------- Hero canvas (SMC live chart) ---------- */
.hero-v2 {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--aqx-border);
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: .55;
}
.hero-v2::after {
  /* readability veil over the chart */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 460px at 18% -8%, rgba(79, 124, 255, .20), transparent 60%),
    radial-gradient(760px 420px at 88% 4%, rgba(34, 211, 174, .13), transparent 55%),
    linear-gradient(180deg, rgba(11,15,25,.35) 0%, rgba(11,15,25,.72) 78%, var(--aqx-bg) 100%);
}

/* Slow drifting glow orbs behind hero content */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: .35;
  pointer-events: none;
  animation: orb-drift 16s ease-in-out infinite alternate;
}
.orb-a { width: 380px; height: 380px; background: rgba(79,124,255,.28); top: -120px; left: -80px; }
.orb-b { width: 300px; height: 300px; background: rgba(34,211,174,.22); bottom: -110px; right: -60px; animation-delay: -8s; }
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Animated gradient headline ---------- */
.text-gradient-animated {
  background: linear-gradient(90deg, var(--aqx-primary-2), var(--aqx-accent), var(--aqx-primary-2));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-slide 5s linear infinite;
}
@keyframes gradient-slide {
  to { background-position: -220% 0; }
}

/* ---------- Badge pulse ---------- */
.badge-soft.pulse { position: relative; }
.badge-soft.pulse::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aqx-accent);
  margin-right: .5rem;
  box-shadow: 0 0 0 0 rgba(34, 211, 174, .55);
  animation: dot-pulse 1.8s ease-out infinite;
  vertical-align: 1px;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 174, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 174, 0); }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Card glow + shine ---------- */
.card-glow {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card-glow::before {
  /* mouse-tracking radial glow (JS sets --mx / --my) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79,124,255,.13), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }
.card-glow:hover {
  transform: translateY(-6px);
  border-color: rgba(79,124,255,.65);
  box-shadow: 0 22px 55px -22px rgba(79, 124, 255, .45);
}

/* Feature icon micro-bounce on card hover */
.card-glow:hover .feature-icon {
  transform: translateY(-3px) scale(1.08);
  background: rgba(79, 124, 255, .24);
}
.feature-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease; }

/* ---------- Hero product card: floating + shine sweep ---------- */
.float-card {
  animation: float-y 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  border-color: rgba(79,124,255,.4) !important;
  box-shadow: 0 30px 80px -30px rgba(79, 124, 255, .5);
  background:
    linear-gradient(var(--aqx-card), var(--aqx-card)) padding-box,
    linear-gradient(135deg, rgba(79,124,255,.7), rgba(34,211,174,.5), rgba(79,124,255,.2)) border-box;
  border: 1px solid transparent !important;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 60%;
  height: 220%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: shine-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0%, 55%  { left: -80%; }
  85%, 100%{ left: 130%; }
}

/* Checklist ticks stagger-in */
.tick-list li {
  opacity: 0;
  transform: translateX(-10px);
  animation: tick-in .5s ease forwards;
}
.tick-list li:nth-child(1) { animation-delay: .35s; }
.tick-list li:nth-child(2) { animation-delay: .5s; }
.tick-list li:nth-child(3) { animation-delay: .65s; }
.tick-list li:nth-child(4) { animation-delay: .8s; }
.tick-list li:nth-child(5) { animation-delay: .95s; }
@keyframes tick-in { to { opacity: 1; transform: none; } }

/* ---------- Stats counters ---------- */
.stat-chip .fs-4 { font-variant-numeric: tabular-nums; }
.stat-chip {
  padding: .55rem .9rem;
  border: 1px solid var(--aqx-border);
  border-radius: 12px;
  background: rgba(20, 27, 46, .55);
  backdrop-filter: blur(6px);
  transition: border-color .25s ease, transform .25s ease;
}
.stat-chip:hover { border-color: var(--aqx-primary); transform: translateY(-2px); }

/* ---------- Buttons: magnetic glow ---------- */
.btn-primary {
  position: relative;
  transition: transform .2s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(79, 124, 255, .65);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost { transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- Navbar: shrink + glow on scroll ---------- */
.navbar-aqx { transition: background .3s ease, box-shadow .3s ease, padding .3s ease; }
.navbar-aqx.scrolled {
  background: rgba(11, 15, 25, .95);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .6);
}
/* animated underline on nav links */
.navbar-aqx .nav-link { position: relative; }
.navbar-aqx .nav-link::after {
  content: "";
  position: absolute;
  left: .55rem; right: .55rem; bottom: .25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.navbar-aqx .nav-link:hover::after,
.navbar-aqx .nav-link.active::after { transform: scaleX(1); }

/* ---------- Section headings: sliding accent bar ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--aqx-primary-2);
}
.section-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent));
}

/* ---------- CTA band: animated aurora ---------- */
.cta-aurora {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79,124,255,.35) !important;
}
.cta-aurora::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
    rgba(79,124,255,.16), rgba(34,211,174,.10),
    rgba(79,124,255,.05), rgba(34,211,174,.14), rgba(79,124,255,.16));
  animation: aurora-spin 14s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.cta-aurora > * { position: relative; z-index: 1; }
@keyframes aurora-spin { to { transform: rotate(1turn); } }

/* ---------- Marquee ticker strip ---------- */
.ticker-strip {
  overflow: hidden;
  border-block: 1px solid var(--aqx-border);
  background: var(--aqx-bg-2);
  padding: .55rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--aqx-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ticker-item .up   { color: var(--aqx-accent); }
.ticker-item .down { color: var(--aqx-danger); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- Review cards: subtle tilt handled by JS (--rx/--ry) ---------- */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .18s ease;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent));
  box-shadow: 0 0 12px rgba(79, 124, 255, .7);
  pointer-events: none;
}

/* ============================================================
   SITE-WIDE AUTO-ANIMATIONS (applied by animations.js)
   ============================================================ */

/* ---------- Page content entrance (every page) ---------- */
.page-enter {
  animation: page-in .55s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Table rows: staggered fade-in ---------- */
.rows-animated tbody tr {
  opacity: 0;
  animation: row-in .45s ease forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}
.table-hover tbody tr { transition: background .2s ease, transform .2s ease; }
.table-hover tbody tr:hover { transform: translateX(3px); }

/* ---------- Sidebar links: slide-in stagger + hover slide ---------- */
.sidebar-animated .nav-link {
  opacity: 0;
  animation: side-in .4s ease forwards;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: background .2s ease, color .2s ease, transform .2s ease, padding-left .2s ease;
}
@keyframes side-in {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}
.sidebar .nav-link:hover { padding-left: 1.15rem; }
.sidebar .nav-link.active {
  box-shadow: 0 8px 22px -8px rgba(79, 124, 255, .65);
}

/* ---------- Auth card entrance ---------- */
.auth-enter {
  animation: auth-in .6s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Pricing: popular card breathing glow ---------- */
.price-card.popular {
  animation: popular-glow 3.2s ease-in-out infinite;
}
@keyframes popular-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--aqx-primary), 0 18px 50px -18px rgba(79,124,255,.45); }
  50%      { box-shadow: 0 0 0 1px var(--aqx-primary), 0 18px 60px -14px rgba(79,124,255,.75); }
}
.price-card .price { transition: transform .25s ease, color .25s ease; }
.price-card:hover .price { transform: scale(1.06); color: var(--aqx-primary-2); }
.ribbon { animation: ribbon-shimmer 2.6s ease-in-out infinite; }
@keyframes ribbon-shimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}

/* ---------- Accordion: accent + smooth hover ---------- */
.accordion-item { transition: border-color .25s ease, transform .25s ease; }
.accordion-item:hover { border-color: rgba(79, 124, 255, .5); }
.accordion-button { transition: background .25s ease, padding-left .25s ease; }
.accordion-button:not(.collapsed) {
  border-left: 3px solid var(--aqx-primary);
  padding-left: calc(1.25rem - 3px);
}

/* ---------- Alerts: slide-down entrance ---------- */
.alert {
  animation: alert-in .4s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes alert-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Badges: pop on load ---------- */
.badge { transition: transform .2s ease; }
tr:hover .badge, .card:hover > .badge { transform: scale(1.06); }

/* ---------- License key: scanning highlight ---------- */
.license-key {
  position: relative;
  overflow: hidden;
}
.license-key::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 174, .12), transparent);
  animation: key-scan 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes key-scan {
  0%, 20%   { left: -50%; }
  70%, 100% { left: 120%; }
}

/* ---------- Timeline dots: pulse on newest ---------- */
.timeline li:first-child::before {
  animation: dot-pulse 2s ease-out infinite;
}

/* ---------- Notification dot: heartbeat ---------- */
.notif-dot { animation: notif-beat 1.6s ease-in-out infinite; }
@keyframes notif-beat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.35); }
  40%      { transform: scale(1); }
}

/* ---------- Dashboard stat cards: hover lift + top accent ---------- */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(79,124,255,.5); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .value { font-variant-numeric: tabular-nums; }

/* ---------- Buttons: universal press feedback ---------- */
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: scale(.97); }

/* ---------- Step dots: pop-in ---------- */
.step-dot { animation: step-pop .5s cubic-bezier(.34,1.56,.64,1) both .15s; }
@keyframes step-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ---------- Blog cards: thumbnail zoom on hover ---------- */
.card .ratio img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.card-glow:hover .ratio img,
.card-hover:hover .ratio img { transform: scale(1.07); }

/* ---------- Countdown: urgency pulse under 10 min ---------- */
.countdown.urgent { animation: count-urgent 1s ease-in-out infinite; }
@keyframes count-urgent {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ---------- Footer links: slide underline ---------- */
.footer a { transition: color .2s ease, padding-left .2s ease; }
.footer ul a:hover { padding-left: 4px; }

/* ---------- Pagination hover ---------- */
.pagination .page-link { transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.pagination .page-link:hover { transform: translateY(-2px); border-color: var(--aqx-primary); }

/* ============================================================
   ICON ANIMATIONS (dashboard + site)
   ============================================================ */

/* ---------- Sidebar icons: bounce on link hover ---------- */
.sidebar .nav-link span:first-child {
  display: inline-block;
  font-size: 1.02rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.sidebar .nav-link:hover span:first-child {
  animation: icon-bounce .65s cubic-bezier(.34,1.56,.64,1);
}
@keyframes icon-bounce {
  0%   { transform: scale(1); }
  30%  { transform: translateY(-5px) scale(1.28) rotate(-12deg); }
  60%  { transform: translateY(1px) scale(1.05) rotate(7deg); }
  100% { transform: none; }
}
/* Active link icon: gentle float so the current page feels alive */
.sidebar .nav-link.active span:first-child {
  animation: icon-float 2.6s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ---------- Bell: rings when hovered ---------- */
.bell-anim { display: inline-flex; }
.bell-anim:hover {
  animation: bell-ring .8s cubic-bezier(.36,.07,.19,.97);
  transform-origin: top center;
}
@keyframes bell-ring {
  0%   { transform: rotate(0); }
  15%  { transform: rotate(16deg); }
  30%  { transform: rotate(-13deg); }
  45%  { transform: rotate(10deg); }
  60%  { transform: rotate(-7deg); }
  75%  { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

/* ---------- Hamburger toggle: playful squeeze ---------- */
#sidebar-toggle { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
#sidebar-toggle:hover { transform: scale(1.15) rotate(90deg); }
#sidebar-toggle:active { transform: scale(.9) rotate(90deg); }

/* ---------- Stat card icons ---------- */
.stat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 1.3rem;
  background: rgba(79, 124, 255, .13);
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s ease, box-shadow .3s ease;
}
.stat-card:hover .stat-icon {
  transform: translateY(-5px) rotate(-10deg) scale(1.15);
  background: rgba(79, 124, 255, .24);
  box-shadow: 0 10px 22px -10px rgba(79, 124, 255, .6);
}
/* variants for colour-matched stats */
.stat-icon.accent  { background: rgba(34, 211, 174, .13); }
.stat-card:hover .stat-icon.accent  { background: rgba(34, 211, 174, .24); box-shadow: 0 10px 22px -10px rgba(34, 211, 174, .6); }
.stat-icon.warning { background: rgba(255, 197, 85, .13); }
.stat-card:hover .stat-icon.warning { background: rgba(255, 197, 85, .24); box-shadow: 0 10px 22px -10px rgba(255, 197, 85, .6); }

/* ---------- Welcome wave 👋 ---------- */
.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave-hand 2.4s ease .6s 1;
}
h4:hover .wave, .wave:hover {
  animation: wave-hand 1.4s ease infinite;
}
@keyframes wave-hand {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

/* ---------- Card-header arrow links: slide toward content ---------- */
.card-header a {
  display: inline-block;
  transition: transform .25s ease, color .2s ease;
}
.card-header a:hover { transform: translateX(4px); color: var(--aqx-primary-2); }

/* ---------- Generic emoji buttons in topbar ---------- */
.dash-topbar .btn { transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, color .2s ease; }
.dash-topbar .btn:hover { transform: translateY(-2px); border-color: var(--aqx-primary); }

/* ---------- Empty-state icons: gentle breathe ---------- */
.feature-icon.mx-auto { animation: icon-float 3s ease-in-out infinite; }

/* ============================================================
   BLOG REDESIGN
   ============================================================ */

/* ---------- Blog hero ---------- */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--aqx-border);
  isolation: isolate;
  background:
    radial-gradient(800px 380px at 25% -12%, rgba(79, 124, 255, .16), transparent 60%),
    radial-gradient(640px 340px at 82% 0%, rgba(34, 211, 174, .10), transparent 55%);
}

/* ---------- Featured post (magazine style) ---------- */
.blog-featured {
  overflow: hidden;
  border-color: rgba(79, 124, 255, .35) !important;
}
.blog-featured .featured-media {
  position: relative;
  min-height: 300px;
  height: 100%;
  background: rgba(79, 124, 255, .08);
  overflow: hidden;
}
@media (max-width: 991px) {
  .blog-featured .featured-media { min-height: 220px; height: auto; aspect-ratio: 16/9; }
}
.blog-featured .featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.blog-featured:hover .featured-media img { transform: scale(1.06); }
.featured-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent));
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  z-index: 2;
  animation: featured-glow 2.8s ease-in-out infinite;
}
@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,124,255,.5); }
  50%      { box-shadow: 0 0 24px 2px rgba(79,124,255,.55); }
}

/* ---------- Blog cards ---------- */
.blog-card { position: relative; }
.blog-card::after {
  /* gradient underline that draws in on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
  z-index: 2;
}
.blog-card:hover::after { transform: scaleX(1); }
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--aqx-primary-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.blog-card:hover .read-more { opacity: 1; transform: none; }
/* Touch devices can't hover — keep the link visible */
@media (pointer: coarse) {
  .blog-card .read-more { opacity: 1; transform: none; }
}
.blog-card .badge-soft { transition: transform .25s ease; }
.blog-card:hover .badge-soft { transform: translateY(-2px); }

/* Video play button: pulsing ring */
.play-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease;
  animation: play-pulse 2.4s ease-out infinite;
}
.blog-card:hover .play-btn,
.blog-featured:hover .play-btn {
  transform: scale(1.15);
  background: var(--aqx-primary);
}
@keyframes play-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 124, 255, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(79, 124, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 124, 255, 0); }
}

/* ---------- Blog post (reading page) ---------- */
.post-cover {
  overflow: hidden;
  border-radius: var(--aqx-radius);
  border: 1px solid var(--aqx-border);
}
.post-cover img {
  animation: ken-burns 14s ease-out both;
}
@keyframes ken-burns {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
.blog-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #ccd3e3;
  letter-spacing: .005em;
}
.blog-body p { margin-bottom: 1.3rem; }
/* Drop cap on the very first paragraph */
.blog-body > p:first-child::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: .95;
  font-weight: 800;
  padding-right: .55rem;
  padding-top: .2rem;
  background: linear-gradient(135deg, var(--aqx-primary-2), var(--aqx-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-body h3, .blog-body h4 {
  margin-top: 2.2rem;
  margin-bottom: .9rem;
  position: relative;
  padding-left: .9rem;
}
.blog-body h3::before, .blog-body h4::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--aqx-primary), var(--aqx-accent));
}
.blog-body ul, .blog-body ol { margin-bottom: 1.3rem; padding-left: 1.2rem; }
.blog-body li { margin-bottom: .45rem; }
.blog-body ul li::marker { color: var(--aqx-accent); }
.blog-body ol li::marker { color: var(--aqx-primary-2); font-weight: 700; }
.blog-body blockquote {
  border-left: 3px solid var(--aqx-primary);
  background: rgba(79, 124, 255, .07);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--aqx-text);
  font-style: italic;
}
.blog-body code {
  background: var(--aqx-bg-2);
  border: 1px solid var(--aqx-border);
  border-radius: 6px;
  padding: .12rem .45rem;
  font-size: .88em;
  color: var(--aqx-accent);
}
.blog-body strong { color: var(--aqx-text); }
.blog-body a {
  color: var(--aqx-primary-2);
  border-bottom: 1px dashed rgba(106,141,255,.5);
  transition: color .2s ease, border-color .2s ease;
}
.blog-body a:hover { color: var(--aqx-accent); border-bottom-color: var(--aqx-accent); border-bottom-style: solid; }
.blog-body hr {
  height: 2px; border: 0; opacity: .6; margin: 2rem 0;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent), transparent);
}
/* Paragraph-by-paragraph reveal (JS tags children) */
.blog-body > [data-reveal] { transition-duration: .55s; }
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.author-chip .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--aqx-primary-2);
  background: rgba(79, 124, 255, .18);
  border: 1px solid rgba(79, 124, 255, .4);
  animation: avatar-ring 3s ease-in-out infinite;
}
@keyframes avatar-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,124,255,.35); }
  50%      { box-shadow: 0 0 0 5px rgba(79,124,255,0); }
}
.back-link { transition: transform .25s ease; }
.back-link:hover { transform: translateX(-4px); }
.post-divider {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--aqx-primary), var(--aqx-accent), transparent);
  opacity: .6;
  margin: 1.6rem 0;
}

/* ============================================================
   DASHBOARD EXTRA MOTION (customer + admin)
   ============================================================ */

/* Cards rise in one-by-one (JS sets --i) */
.card-rise {
  opacity: 0;
  animation: card-rise-in .55s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--i, 0) * 75ms);
}
@keyframes card-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Soft glow for dashboard cards: mouse-tracked light, no lift */
.card-soft-glow {
  position: relative;
  transition: border-color .25s ease;
}
.card-soft-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(79,124,255,.09), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}
.card-soft-glow:hover::before { opacity: 1; }
.card-soft-glow:hover { border-color: rgba(79, 124, 255, .45); }
.card-soft-glow > * { position: relative; z-index: 1; }

/* Notification / list items: staggered entrance (JS sets --i) */
.list-stagger > * {
  opacity: 0;
  animation: row-in .45s ease forwards;
  animation-delay: calc(var(--i, 0) * 55ms + .25s);
}
/* new (unread) notification: soft breathing highlight */
.list-stagger > [style*="background"] {
  animation: row-in .45s ease forwards, unread-breathe 3s ease-in-out infinite .8s;
  animation-delay: calc(var(--i, 0) * 55ms + .25s), .8s;
}
@keyframes unread-breathe {
  0%, 100% { background: rgba(79, 124, 255, .05); }
  50%      { background: rgba(79, 124, 255, .11); }
}

/* ============================================================
   WOW LAYER — particles, cursor glow, typewriter, parallax
   ============================================================ */

/* ---------- Ambient particle canvas (public pages) ---------- */
/* body ka background transparent kar ke html par chhor dete hain,
   taake negative z-index canvas content ke PEECHHE dikhe (fix) */
body { background: transparent; }
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
}

/* ---------- Cursor glow (desktop, follows the mouse) ---------- */
.cursor-glow {
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, .10), rgba(34, 211, 174, .04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  transition: opacity .4s ease;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Typewriter line in hero ---------- */
.type-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aqx-muted);
  margin-bottom: 1rem;
  min-height: 1.6em;
}
.type-line .typed {
  color: var(--aqx-accent);
  font-weight: 700;
}
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--aqx-accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ---------- Hero mouse parallax (JS sets --par-x / --par-y) ---------- */
.hero-v2 .orb-a { transform: translate(calc(var(--par-x, 0) * 28px), calc(var(--par-y, 0) * 28px)); transition: transform .3s ease-out; animation: none; }
.hero-v2 .orb-b { transform: translate(calc(var(--par-x, 0) * -22px), calc(var(--par-y, 0) * -22px)); transition: transform .3s ease-out; animation: none; }
.hero-v2 .float-card { will-change: transform; }

/* ---------- Back-to-top rocket with progress ring ---------- */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--aqx-card);
  border: 1px solid var(--aqx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s, border-color .25s ease;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--aqx-primary); }
.back-top:hover .rocket { animation: rocket-shake .5s ease infinite; }
.back-top:active .rocket { transform: translateY(-4px); }
.back-top svg {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
}
.back-top svg circle {
  fill: none;
  stroke: url(#bt-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset .15s linear;
}
.rocket { display: inline-block; transition: transform .2s ease; }
@keyframes rocket-shake {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-2px) rotate(-5deg); }
  75%      { transform: translateY(-1px) rotate(5deg); }
}

/* ---------- Primary CTA buttons: periodic shine sweep ---------- */
.btn-primary.btn-lg {
  position: relative;
  overflow: hidden;
}
.btn-primary.btn-lg::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -70%;
  width: 45%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: btn-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0%, 62%   { left: -70%; }
  82%, 100% { left: 140%; }
}

/* ---------- Brand logo: gradient sweep on hover ---------- */
.brand-logo { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.brand-logo:hover { transform: scale(1.04); }
.brand-logo:hover span {
  background: linear-gradient(90deg, var(--aqx-primary-2), var(--aqx-accent), var(--aqx-primary-2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 1.6s linear infinite;
}

/* ---------- Footer: animated gradient top edge ---------- */
.footer {
  position: relative;
  border-top: 0 !important;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--aqx-primary), var(--aqx-accent), var(--aqx-primary), transparent);
  background-size: 200% 100%;
  animation: gradient-slide 8s linear infinite;
}

/* ---------- Section heading underline glow on hover ---------- */
section h2 { transition: text-shadow .3s ease; }
section .text-center:hover h2 { text-shadow: 0 0 30px rgba(79, 124, 255, .35); }

/* ---------- Stat chips: shuffle-in look on hover ---------- */
.stat-chip .fs-4 { transition: color .25s ease; }
.stat-chip:hover .fs-4 { color: var(--aqx-primary-2); }

/* ---------- Scroll-down hint in hero ---------- */
.scroll-hint-arrow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: var(--aqx-muted);
  font-size: 1.2rem;
  animation: hint-bob 1.8s ease-in-out infinite;
  z-index: 2;
  opacity: .7;
}
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   ANNOUNCEMENTS (site bar + dashboard cards)
   ============================================================ */

/* ---------- Site-wide top bar ---------- */
.announce-bar {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--aqx-border);
  padding: .55rem 0;
  background: linear-gradient(90deg, rgba(79,124,255,.14), rgba(79,124,255,.06));
}
.announce-bar[data-type="update"]      { background: linear-gradient(90deg, rgba(34,211,174,.15), rgba(34,211,174,.05)); }
.announce-bar[data-type="maintenance"] { background: linear-gradient(90deg, rgba(255,197,85,.16), rgba(255,197,85,.05)); }
.announce-bar[data-type="promo"]       { background: linear-gradient(90deg, rgba(79,124,255,.16), rgba(34,211,174,.12)); }
.announce-bar::after {
  /* moving light sweep so the bar catches the eye */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 30%;
  left: -35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: btn-shine 6s ease-in-out infinite;
  pointer-events: none;
}
.announce-bar-icon {
  font-size: 1rem;
  animation: icon-float 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.announce-bar-text {
  color: var(--aqx-text);
  min-width: 0;
  display: flex;
  gap: .35rem;
  align-items: baseline;
  overflow: hidden;
  white-space: nowrap;
}
.announce-bar-text span { overflow: hidden; text-overflow: ellipsis; color: var(--aqx-muted); }

/* ---------- Dashboard announcement cards ---------- */
.announce-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--aqx-radius);
  border: 1px solid rgba(79,124,255,.4);
  background: linear-gradient(135deg, rgba(79,124,255,.10), rgba(79,124,255,.03));
  position: relative;
  overflow: hidden;
}
.announce-card[data-type="update"]      { border-color: rgba(34,211,174,.45); background: linear-gradient(135deg, rgba(34,211,174,.10), rgba(34,211,174,.03)); }
.announce-card[data-type="maintenance"] { border-color: rgba(255,197,85,.45); background: linear-gradient(135deg, rgba(255,197,85,.10), rgba(255,197,85,.03)); }
.announce-card[data-type="promo"]       { border-color: rgba(79,124,255,.5);  background: linear-gradient(135deg, rgba(79,124,255,.12), rgba(34,211,174,.08)); }
.announce-card .announce-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(79,124,255,.16);
  animation: icon-float 2.6s ease-in-out infinite;
}
.announce-card[data-type="update"] .announce-icon      { background: rgba(34,211,174,.16); }
.announce-card[data-type="maintenance"] .announce-icon { background: rgba(255,197,85,.16); }

/* ---------- Dismiss button ---------- */
.announce-dismiss {
  background: transparent;
  border: 0;
  color: var(--aqx-muted);
  font-size: .85rem;
  line-height: 1;
  padding: .3rem .45rem;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.announce-dismiss:hover { color: var(--aqx-text); background: rgba(255,255,255,.06); transform: rotate(90deg); }

/* ---------- Entrance / exit ---------- */
.announce-in { animation: announce-slide .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes announce-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
.announce-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}

/* ---------- Reduced motion: kill everything ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-canvas, .particles-canvas, .cursor-glow, .type-caret, .scroll-hint-arrow { display: none; }
  .ticker-track { animation: none; }
  .card-rise, .list-stagger > * { opacity: 1 !important; }
}
