/* ======================================================
   KAYSSOFT - Premium UX/UI Animation & Design System
   ====================================================== */

/* Base Typography */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
svg {
  max-width: 100%;
}

@media (max-width: 480px) {
  #hero-section .grid.grid-cols-3 {
    gap: 0.5rem;
  }

  #hero-section .grid.grid-cols-3 > div {
    min-width: 0;
    padding: 0.65rem 0.35rem;
  }

  #hero-section .grid.grid-cols-3 > div > div:first-child {
    font-size: 1rem;
    line-height: 1.25rem;
    overflow-wrap: anywhere;
  }

  #hero-section .grid.grid-cols-3 > div > div:last-child {
    font-size: 0.65rem;
    line-height: 0.9rem;
  }

  #hero-countdown {
    width: 100%;
    justify-content: center;
  }

  #hero-countdown > div {
    min-width: 2rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  #hero-section .aspect-\[4\/3\] > .absolute.bottom-3 {
    align-items: flex-start;
    gap: 0.5rem;
  }

  #hero-watch-btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    white-space: nowrap;
  }
}

/* ======================================================
   TEXT GRADIENTS
   ====================================================== */
.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-vivid {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 40%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ======================================================
   ENTRANCE ANIMATIONS
   ====================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero Headline Word-by-Word Reveal */
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(20px) rotateX(20deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* Floating animation for badge & cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}

/* Pulse glow for CTA buttons */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); }
}

@keyframes pulseGlowEmerald {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(5, 150, 105, 0); }
}

/* Shimmer loading / attention effect */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Continuous Marquee */
@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Counter spin-up */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Particle drift */
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%  { transform: translate(20px, -30px) scale(1.1); opacity: 0.8; }
  100% { transform: translate(-10px, -60px) scale(0.9); opacity: 0; }
}

/* ======================================================
   UTILITY ANIMATION CLASSES
   ====================================================== */
.animate-fadeIn       { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fadeInUp     { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fadeInLeft   { animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fadeInRight  { animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scaleIn      { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-slideDown    { animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float        { animation: float 4s ease-in-out infinite; }
.animate-floatSlow    { animation: floatSlow 6s ease-in-out infinite; }
.animate-marquee      { display: flex; width: max-content; animation: marquee 18s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }

.delay-100  { animation-delay: 0.1s; }
.delay-150  { animation-delay: 0.15s; }
.delay-200  { animation-delay: 0.2s; }
.delay-300  { animation-delay: 0.3s; }
.delay-400  { animation-delay: 0.4s; }
.delay-500  { animation-delay: 0.5s; }
.delay-600  { animation-delay: 0.6s; }
.delay-700  { animation-delay: 0.7s; }
.delay-800  { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1.0s; }

/* Hidden before animation triggers */
.reveal-hidden { opacity: 0; }

/* ======================================================
   HERO BACKGROUND PARTICLE DOTS
   ====================================================== */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 8s ease-in-out infinite;
}

/* ======================================================
   BUTTON STYLES & GLOW EFFECTS
   ====================================================== */
.btn-glow {
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.4);
}
.btn-glow:hover {
  box-shadow: 0 12px 32px -4px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px) scale(1.02);
}
.btn-glow:active { transform: translateY(0) scale(0.98); }

.btn-emerald-glow {
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.35);
}
.btn-emerald-glow:hover {
  box-shadow: 0 12px 32px -4px rgba(5, 150, 105, 0.55);
  transform: translateY(-2px) scale(1.02);
}
.btn-emerald-glow:active { transform: translateY(0) scale(0.98); }

.btn-pulse {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.btn-pulse-emerald {
  animation: pulseGlowEmerald 2.5s ease-in-out infinite;
}

/* Shimmer CTA variant */
.btn-shimmer {
  background: linear-gradient(120deg, #2563eb 30%, #6366f1 50%, #2563eb 70%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ======================================================
   GLASSMORPHISM CARDS
   ====================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ======================================================
   INTERACTIVE CARD HOVER (scroll-reveal ready)
   ====================================================== */
.card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
}

.card-hover-blue:hover  { border-color: rgba(37, 99, 235, 0.35); }
.card-hover-green:hover { border-color: rgba(5, 150, 105, 0.35); }

/* ======================================================
   SECTION REVEAL (IntersectionObserver triggers)
   ====================================================== */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.section-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }

/* ======================================================
   URGENCY / TRUST ELEMENTS
   ====================================================== */
/* Blinking dot for "Live" indicators */
.live-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
  animation: float 4s ease-in-out infinite;
}

/* ======================================================
   SOCIAL PROOF / COUNTER NUMBERS
   ====================================================== */
.stat-number {
  font-variant-numeric: tabular-nums;
  animation: countUp 0.6s ease forwards;
}

/* ======================================================
   CUSTOM SCROLLBAR
   ====================================================== */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 9999px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ======================================================
   URGENCY RIBBON / OFFER BANNER
   ====================================================== */
.offer-ribbon {
  position: relative;
  overflow: hidden;
}
.offer-ribbon::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: ribbonShine 3s ease-in-out infinite;
}
@keyframes ribbonShine {
  0%   { left: -60%; }
  100% { left: 120%; }
}

/* ======================================================
   HERO HIGHLIGHT UNDERLINE
   ====================================================== */
.underline-wave {
  position: relative;
  display: inline-block;
}
.underline-wave::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.underline-wave:hover::after { transform: scaleX(1); }

/* ======================================================
   PRODUCT CARD MOCKUP GLOW
   ====================================================== */
.mockup-glow {
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 32px 64px -16px rgba(37, 99, 235, 0.3),
    0 0 80px -20px rgba(99, 102, 241, 0.2);
}

/* ======================================================
   NOTIFICATION TOAST STYLE
   ====================================================== */
#ks-toast {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 320px;
}
#ks-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
