/* ============================================================
   V100.ai — Custom Styles (Tailwind handles most styling)
   Animations, canvas, and interactive component overrides
   Brand: Indigo/Violet primary, Green for success states only
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:'Inter',system-ui,sans-serif;overflow-x:hidden}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.7s ease-out forwards; }
.fade-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-delay-4 { animation-delay: 0.4s; opacity: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse-slow { animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ── HOVER LIFT ────────────────────────────────────────── */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

/* ── GRADIENT TEXT (Indigo/Violet brand) ──────────────── */
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GLOW EFFECTS ──────────────────────────────────────── */
.glow-primary {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(99, 102, 241, 0.2);
}
.glow-green {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), 0 0 60px rgba(16, 185, 129, 0.2);
}

/* ── GLASS MORPHISM ────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── HERO CANVAS ───────────────────────────────────────── */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

/* ── PULSE DOT ─────────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6366f1;
  animation: pulse-slow 2s infinite;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* ── PROFILE BUTTONS ───────────────────────────────────── */
.prof-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}
.prof-btn.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* ── VIRAL SCORE BAR ───────────────────────────────────── */
.viral-bar-bg {
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  height: 12px;
  overflow: hidden;
}
.viral-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease, background 0.3s ease;
}
.viral-fill.high { background: linear-gradient(90deg, #10b981, #34d399); }
.viral-fill.med  { background: linear-gradient(90deg, #f59e0b, #f97316); }
.viral-fill.low  { background: linear-gradient(90deg, #ef4444, #f97316); }

/* ── SCORE FACTOR BARS ─────────────────────────────────── */
.score-factor { margin-bottom: 8px; }
.score-factor-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.score-factor-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  transition: width 0.5s ease;
}

/* ── CODE BLOCK ────────────────────────────────────────── */
.code-tab { transition: all 0.2s ease; }
.code-tab.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: white !important;
  border-color: transparent !important;
}
.code-content .cmt { color: #6b7280; }
.code-content .kw  { color: #818cf8; }
.code-content .fn  { color: #a5b4fc; }
.code-content .str { color: #c4b5fd; }
.code-content .num { color: #fbbf24; }

/* ── PRICING TOGGLE ────────────────────────────────────── */
.price-switch {
  width: 56px; height: 28px;
  background: #374151;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}
.price-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.price-switch.on {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}
.price-switch.on::after {
  transform: translateX(28px);
}

/* ── VIDEO TILE (CONFERENCE DEMO) ──────────────────────── */
.video-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-tile:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ── CUSTOM SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f0f23; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #6366f1, #4f46e5);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #4f46e5, #4338ca);
}

/* ── CASE STUDY CARDS ─────────────────────────────────── */
.case-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.15);
}

/* ── BLOG CARDS ───────────────────────────────────────── */
.blog-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-card:hover .blog-title {
  color: #818cf8;
}

/* ── EDITOR PRESETS ───────────────────────────────────── */
.editor-preset {
  transition: all 0.3s ease;
  cursor: pointer;
}
.editor-preset:hover, .editor-preset.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}
.editor-feature {
  transition: all 0.2s ease;
}
.editor-feature:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* ── FAQ ACCORDION ────────────────────────────────────── */
.faq-toggle {
  cursor: pointer;
}
.faq-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-answer {
  animation: fadeInUp 0.3s ease;
}

/* ── ROI CALCULATOR SLIDERS ──────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-hide { display: none !important; }
}
