
@theme {
  --color-background: #09090b;
  --color-foreground: #fafafa;
  --color-primary: #7c3aed;
  --color-primary-foreground: #fafafa;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Animations simples (Hero etc) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Glow Card / Spotlight Effect */
.glow-card {
  position: relative;
}
.glow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(124, 58, 237, 0.4),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow-card:hover::before {
  opacity: 1;
}

/* Table styles */
.comparison-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.comparison-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
html:not(.dark) .comparison-table th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
html:not(.dark) .comparison-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Typing Effect */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--color-primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* FAQ Styles */
.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.faq-answer.open {
  max-height: 500px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-question.open .faq-icon {
  transform: rotate(180deg);
}

/* Parallax Background */
.parallax-bg {
  position: relative;
}

#hero-bg-gradient {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Slow Pulse for Badge */
@keyframes pulse-slow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(124,58,237,0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(124,58,237,0.4);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Marquee Animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
}

.marquee-content {
  display: flex;
  width: calc(250px * 14);
  animation: scroll 30s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mega Menu Sub-items */
.group:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === UI/UX Additions === */

/* Global Loader */
#global-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#global-loader.hidden-loader {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(124, 58, 237, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dynamic Header */
#main-header {
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
#main-header.header-transparent {
  background-color: transparent !important;
  border-color: transparent !important;
  backdrop-filter: blur(0px) !important;
}
