/* =========================================================
   mDokon — Common styles + animations
   Подключается ко всем страницам сайта
   ========================================================= */

:root {
  --navy-900: #091E36;
  --navy-800: #0E2A47;
  --navy-700: #143052;
  --accent-500: #FF6A1A;
  --accent-600: #E8540A;
  --pink-500: #EC4899;
  --purple-500: #A855F7;
  --blue-500: #0EA5E9;
  --mint-500: #0EA5A4;
  --emerald-500: #10B981;
  --yellow-400: #FACC15;
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
}
body { 
  font-family: 'Inter', system-ui, sans-serif; 
  -webkit-font-smoothing: antialiased; 
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.1;
}

/* Fluid Typography */
h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
p { font-size: clamp(1rem, 1.2vw, 1.25rem); }

/* Fluid Section Spacing */
section {
  padding-top: clamp(3rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 10vw, 8rem);
}

.max-w-7xl {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 5vw, 2.5rem);
  padding-right: clamp(1rem, 5vw, 2.5rem);
}

/* ====== Animated mesh gradient background ====== */
.mesh-bg {
  position: relative;
  background: #0E2A47;
  overflow: hidden;
}
.mesh-bg::before, .mesh-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.mesh-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #FF6A1A 0%, transparent 60%);
  top: -150px; left: -150px;
  animation: mesh1 18s ease-in-out infinite;
}
.mesh-bg::after {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #A855F7 0%, transparent 60%);
  bottom: -200px; right: -200px;
  animation: mesh2 22s ease-in-out infinite;
}
@keyframes mesh1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(120px, 80px) scale(1.2); }
  66% { transform: translate(-50px, 150px) scale(.85); }
}
@keyframes mesh2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-100px, -60px) scale(1.15); }
  66% { transform: translate(80px, -120px) scale(.9); }
}

/* Animated dot grid */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ====== Floating organic blobs (SVG morphing) ====== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .4;
  pointer-events: none;
  animation: blobMove 12s ease-in-out infinite;
}
@keyframes blobMove {
  0%,100% { transform: translate(0,0) scale(1) rotate(0deg); border-radius: 50% 60% 70% 40% / 60% 30% 70% 40%; }
  25% { transform: translate(40px,-20px) scale(1.1) rotate(90deg); border-radius: 70% 30% 50% 60% / 40% 70% 30% 60%; }
  50% { transform: translate(-30px,40px) scale(.9) rotate(180deg); border-radius: 30% 70% 60% 40% / 70% 50% 60% 40%; }
  75% { transform: translate(20px,-40px) scale(1.05) rotate(270deg); border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%; }
}

/* ====== Gradient text shimmer ====== */
.gradient-text {
  background: linear-gradient(120deg, #FF6A1A 0%, #EC4899 35%, #A855F7 70%, #FF6A1A 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
.gradient-text-cool {
  background: linear-gradient(120deg, #0EA5E9 0%, #A855F7 50%, #EC4899 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ====== Pulsing glow ====== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.15); opacity: .85; }
}

/* ====== 3D Tilt card on hover ====== */
.tilt {
  transition: transform .35s cubic-bezier(.2,.9,.2,1.1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt:hover {
  transform: perspective(900px) rotateX(2deg) rotateY(-3deg) translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(14,42,71,.25);
}

/* ====== Magnetic button effect ====== */
.magnet {
  display: inline-flex;
  position: relative;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.3);
  will-change: transform;
}
.magnet::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(120deg, #FF6A1A, #EC4899, #A855F7, #FF6A1A);
  background-size: 300% 100%;
  z-index: -1;
  opacity: 0;
  filter: blur(14px);
  transition: opacity .3s ease;
  animation: shimmer 4s linear infinite;
}
.magnet:hover::after { opacity: .85; }

/* ====== Reveal on scroll ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.stagger.in > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger.in > *:nth-child(2) { opacity:1; transform:none; transition-delay:.15s; }
.stagger.in > *:nth-child(3) { opacity:1; transform:none; transition-delay:.25s; }
.stagger.in > *:nth-child(4) { opacity:1; transform:none; transition-delay:.35s; }
.stagger.in > *:nth-child(5) { opacity:1; transform:none; transition-delay:.45s; }
.stagger.in > *:nth-child(6) { opacity:1; transform:none; transition-delay:.55s; }

/* ====== Marquee logos ====== */
.marquee { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { animation: marquee 32s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track:hover { animation-play-state: paused; }

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

/* ====== Sparkle dots ====== */
.spark::before, .spark::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: #FF6A1A;
  border-radius: 50%;
  box-shadow: 0 0 16px 4px #FF6A1A;
  animation: sparkle 3s ease-in-out infinite;
}
.spark::before { top: 12%; left: 8%; }
.spark::after { top: 80%; right: 12%; animation-delay: -1.5s; }
@keyframes sparkle {
  0%,100% { opacity: 0; transform: scale(.3); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ====== Animated number ticker ====== */
.ticker {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ====== Hero badge with rotating border ====== */
.rotating-border {
  position: relative;
}
.rotating-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, #FF6A1A, #EC4899, #A855F7, #0EA5E9, #FF6A1A);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 4s linear infinite;
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

/* ====== Underline-draw effect ====== */
.underline-draw {
  position: relative;
  display: inline-block;
}
.underline-draw::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 8px; width: 100%;
  background: linear-gradient(90deg, #FF6A1A, #EC4899);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: .3s;
  opacity: .35;
  z-index: -1;
}
.in .underline-draw::after { transform: scaleX(1); }

/* ====== FAQ accordion ====== */
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; cursor: pointer; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s cubic-bezier(.5,0,.2,1.4); }
details[open] .faq-content { animation: faqOpen .4s ease-out; }
@keyframes faqOpen {
  from { opacity:0; transform: translateY(-6px); }
  to { opacity:1; transform: translateY(0); }
}

/* ====== Glassmorphism card ====== */
.glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.18);
}
.glass-light {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.5);
}

/* ====== Confetti / spark animation on CTA ====== */
.cta-spark {
  position: relative;
  overflow: visible;
}
.cta-spark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow:
    20px -10px 0 white, 40px 5px 0 #FFD700, -20px -10px 0 #EC4899,
    -40px 5px 0 #0EA5E9, 30px 15px 0 #A855F7, -30px 15px 0 #10B981;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: opacity .6s, transform .6s;
}
.cta-spark:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2.5);
  transition: opacity 0s, transform .6s ease-out;
}

/* ====== Cursor glow follower ====== */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,26,.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0;
}
@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* ====== Live dot ====== */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  position: relative;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10B981;
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3); opacity: 0; }
}

/* ====== Bento grid ====== */
.bento { display: grid; gap: 1rem; }
@media (min-width: 1024px) {
  .bento.bento-features {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: row;
    height: 560px;
  }
  .bento.bento-features > .bento-1 { grid-row: 1 / 3; }
  .bento.bento-features > .bento-2 { grid-column: 2; grid-row: 1; }
  .bento.bento-features > .bento-3 { grid-column: 3; grid-row: 1; }
  .bento.bento-features > .bento-4 { grid-column: 2 / 4; grid-row: 2; }
}

/* ====== Animated background pattern ====== */
.scan-line {
  position: relative;
  overflow: hidden;
}
.scan-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====== Typing cursor ====== */
.typing-cursor::after {
  content: "|";
  animation: blink 1s step-end infinite;
  color: #FF6A1A;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ====== Animated chart bars ====== */
.bar-grow { transform-origin: bottom; animation: barGrow 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Slide-specific shake / pulse for alerts */
.alert-pulse { animation: alertPulse 1.6s ease-in-out infinite; }
@keyframes alertPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}
.ai-glow {
  position: relative;
}
.ai-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, #A855F7, #EC4899, #0EA5A4, #0EA5E9, #A855F7);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 3s linear infinite;
  opacity: .8;
  pointer-events: none;
}
.bar-bg {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.15); overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 3px;
  transform-origin: left;
  animation: barFill 1.4s cubic-bezier(.16,1,.3,1) both;
}
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(var(--w,1)); } }

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ====== Hero title size reduction ====== */
.mesh-bg h1 {
  line-height: 1.05;
}

/* Hero description size reduction */
.mesh-bg p.text-lg {
  max-width: 600px;
}

/* ====== Responsive adjustments at 1100px ====== */
@media (max-width: 1100px) {
  /* Hero buttons scaling */
  .mesh-bg a.px-8 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-size: 0.95rem !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
  }

  /* Hero buttons scaling */
  .mesh-bg a.px-8 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-size: 0.95rem !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
  }

  /* Hero stats scaling - larger */
  .mesh-bg .text-sm {
    font-size: 0.85rem !important;
  }

  .mesh-bg .flex-wrap span svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }

  /* Cards container - carousel layout */
  .hero-scattered {
    height: 380px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-floating-mini {
    display: none !important;
  }

  /* All cards - centered, fixed size, no rotation/scale */
  .hero-scattered-card {
    position: absolute !important;
    width: 340px !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    padding: 16px !important;
    z-index: 1 !important;
  }

  /* Active card in carousel - fade only */
  .hero-scattered-card.active {
    opacity: 1;
    visibility: visible;
    z-index: 10 !important;
  }

  /* Reset individual card positions - no rotation */
  .hero-scattered-1,
  .hero-scattered-2,
  .hero-scattered-3,
  .hero-scattered-4 {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Remove hover scale effect on small screens */
  .hero-scattered-card:hover {
    transform: translate(-50%, -50%) !important;
  }

  /* Card text sizes - larger */
  .hero-scattered-card .text-2xl {
    font-size: 1.5rem !important;
  }

  .hero-scattered-card .text-lg {
    font-size: 1.1rem !important;
  }

  .hero-scattered-card .text-xl {
    font-size: 1.25rem !important;
  }

  .hero-scattered-card .text-sm {
    font-size: 0.85rem !important;
  }

  .hero-scattered-card .text-xs {
    font-size: 0.75rem !important;
  }

  .hero-scattered-card [class*="text-\\[10px\\]"] {
    font-size: 0.7rem !important;
  }

  .hero-scattered-card [class*="text-\\[11px\\]"] {
    font-size: 0.8rem !important;
  }

  /* Card padding - larger */
  .hero-scattered-card .p-2 {
    padding: 0.6rem !important;
  }

  .hero-scattered-card .p-3 {
    padding: 0.75rem !important;
  }

  .hero-scattered-card .p-4 {
    padding: 0.9rem !important;
  }

  /* Card margins - larger */
  .hero-scattered-card .mb-1,
  .hero-scattered-card .mb-2,
  .hero-scattered-card .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  .hero-scattered-card .mt-1,
  .hero-scattered-card .mt-3 {
    margin-top: 0.5rem !important;
  }

  /* Card gaps - larger */
  .hero-scattered-card [class*="space-y-1"] > *,
  .hero-scattered-card [class*="space-y-2"] > * {
    margin-top: 0.4rem !important;
  }

  .hero-scattered-card [class*="gap-1"],
  .hero-scattered-card [class*="gap-2"] {
    gap: 0.4rem !important;
  }

  /* Card icons - larger */
  .hero-scattered-card .w-7,
  .hero-scattered-card .w-8 {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .hero-scattered-card .h-7,
  .hero-scattered-card .h-8 {
    height: 1.5rem !important;
  }

  /* Card buttons - larger */
  .hero-scattered-card button {
    padding: 0.6rem !important;
    font-size: 0.75rem !important;
  }

  /* Carousel indicators */
  .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none !important;
    gap: 8px;
    z-index: 20;
  }

  .carousel-indicators:not(.hidden) {
    display: none !important;
  }

  .carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
  }
}

/* ====== Hero scattered cards layout ====== */
.hero-scattered {
  position: relative !important;
  width: 100% !important;
  height: 480px !important;
}

.hero-scattered-card {
  position: absolute !important;
  width: 280px !important;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

/* Card 1: Top-left, wider, rotated slightly */
.hero-scattered-1 {
  top: -50px !important;
  left: -75px !important;
  width: 320px !important;
  transform: rotate(-3deg) translate(0, 0) !important;
  z-index: 2 !important;
}

/* Card 2: Top-right, narrower, rotated slightly */
.hero-scattered-2 {
  top: 30px !important;
  right: -80px !important;
  width: 350px !important;
  transform: rotate(4deg) translate(0, 0) !important;
  z-index: 1 !important;
}

/* Card 3: Center below top cards */
/* .hero-scattered-3 {
  top: 150px !important;
  left: 35% !important;
  transform: translateX(-50%) rotate(-2deg) !important;
  z-index: 3 !important;
  width: 320px !important;
} */
 .hero-scattered-3 {
  top: 150px !important;
  left: -30% !important;
  transform: rotate(-2deg) translate(0, 0) !important;
  z-index: 3 !important;
  width: 320px !important;
  transform-origin: center center !important;
}

/* Card 4: Below card 3, slightly to the left */
.hero-scattered-4 {
  top: 250px !important;
  left: 140px !important;
  transform: rotate(3deg) translate(0, 0) !important;
  z-index: 4 !important;
  width: 400px !important;
}

/* Hover effects for scattered cards */
.hero-scattered-card:hover {
  z-index: 100 !important;
  transform: scale(1.05) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-scattered {
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-scattered-card {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }
}

@media (max-width: 1450px) {
  .hero-scattered {
    height: 550px !important;
    position: relative !important;
  }

  .hero-scattered-card {
    position: absolute !important;
    width: 450px !important;
    height: 450px !important;
    left: 0px!important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    opacity: 0;
    visibility: hidden;
    z-index: 1 !important;
  }

  .hero-scattered-card.active {
    opacity: 1;
    visibility: visible;
    z-index: 10 !important;
  }

  .hero-scattered-1,
  .hero-scattered-2,
  .hero-scattered-3,
  .hero-scattered-4 {
    left: 0px !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 450px !important;
    height: 450px !important;
    transform: translateY(-50%) !important;
  }

  .hero-scattered-card:hover {
    transform: translateY(-50%) scale(1) !important;
  }
}

@media (max-width: 1100px) {
  .hero-scattered {
    height: 380px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-floating-mini {
    display: none !important;
  }

  .hero-scattered-card {
    position: absolute !important;
    width: 340px !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0;
    visibility: hidden;
    z-index: 1 !important;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  }

  .hero-scattered-card.active {
    opacity: 1;
    visibility: visible;
    z-index: 10 !important;
  }

  .hero-scattered-1,
  .hero-scattered-2,
  .hero-scattered-3,
  .hero-scattered-4 {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 340px !important;
    transform: translate(-50%, -50%) !important;
  }

  .hero-scattered-card:hover {
    transform: translate(-50%, -50%) !important;
  }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .marquee-track, .float-slow, .glow-orb, .blob, .mesh-bg::before, .mesh-bg::after { animation: none !important; }
}

@media (max-width: 1024px) {
  .hero-scattered-card,
  .hero-scattered-1,
  .hero-scattered-2,
  .hero-scattered-3,
  .hero-scattered-4 {
    width: clamp(300px, 80vw, 450px) !important;
    max-width: 95vw !important;
  }
}

@media (max-width: 480px) {
  .hero-scattered-card,
  .hero-scattered-1,
  .hero-scattered-2,
  .hero-scattered-3,
  .hero-scattered-4 {
    width: 90vw !important;
  }
}

/* ====== Hero carousel fade (replaces animate.css dependency) ====== */
@keyframes mdokonFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mdokonFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.animate__fadeInUp { animation: mdokonFadeInUp 0.45s ease both; }
.animate__fadeOut  { animation: mdokonFadeOut 0.3s ease both; }
