/* ============================================
   Veridica — Purple & Orange Palette
   ============================================ */

:root {
  --purple-1000: #1A0530;
}

html { scroll-behavior: smooth; }
body { background: #FFFFFF; color: #18181B; }

/* ---- Animated gradient mesh (hero only) ---- */
@keyframes mesh-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168,85,247,0.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 50%, rgba(249,115,22,0.08) 0%, transparent 50%),
              radial-gradient(ellipse 50% 40% at 20% 60%, rgba(126,34,206,0.08) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: mesh-shift 12s ease-in-out infinite;
  pointer-events: none;
}

/* Hero subtle grid pattern — fine crosshatch */
.hero-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.dot-grid-light {
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---- Gradient text (on dark bg) ---- */
.gradient-text {
  background: linear-gradient(135deg, #FAFAFA 25%, #FB923C 60%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient numbers (on light bg) */
.gradient-text-accent {
  background: linear-gradient(135deg, #9333EA, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Animated gradient text shimmer ---- */
@keyframes text-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, #FAFAFA 0%, #FB923C 25%, #C084FC 50%, #FB923C 75%, #FAFAFA 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 6s linear infinite;
}

/* ---- Glass card (dark sections) ---- */
.glass {
  background: rgba(26, 5, 48, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- White card (light sections) ---- */
.card-white {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.card-white:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(168, 85, 247, 0.15);
}

/* ---- Glow effects ---- */
.glow-purple {
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.15), 0 0 160px rgba(168, 85, 247, 0.05);
}

/* Large orb glow */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

/* ---- Floating animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float-slow { animation: float 8s ease-in-out infinite; }
.float-medium { animation: float 5s ease-in-out infinite; }

/* ---- Perspective mockup ---- */
.perspective-mockup { perspective: 1200px; }
.perspective-tilt {
  transform: rotateX(8deg) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.perspective-mockup:hover .perspective-tilt {
  transform: rotateX(2deg) scale(1);
}

/* ---- Pulse ring ---- */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.pulse-ring { position: relative; }
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: pulse-ring 2s ease-out infinite;
}

/* ---- Stepper progress bar ---- */
@keyframes stepper-progress {
  from { width: 0%; }
  to { width: 100%; }
}
.stepper-progress-bar { animation: stepper-progress 4s linear; }

/* ---- Scroll-triggered fade-in ---- */
.fade-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ---- Waveform ---- */
@keyframes waveform {
  0%, 100% { height: 6px; }
  50% { height: 28px; }
}
.waveform-bar { animation: waveform 1.2s ease-in-out infinite; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.15s; }
.waveform-bar:nth-child(6) { animation-delay: 0.25s; }
.waveform-bar:nth-child(7) { animation-delay: 0.35s; }
.waveform-bar:nth-child(8) { animation-delay: 0.05s; }

/* ---- Cursor blink ---- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor-blink { animation: blink 1s step-end infinite; }

/* ---- Mock browser ---- */
.mock-browser {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #0C0C0F;
}
.mock-browser-bar {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mock-browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-browser-dot:nth-child(1) { background: #FF5F57; }
.mock-browser-dot:nth-child(2) { background: #FEBC2E; }
.mock-browser-dot:nth-child(3) { background: #28C840; }
.mock-browser-url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  color: #555;
  margin-left: 10px;
}

/* ---- Badge pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Bento cards (Radiant-inspired) ---- */
.bento-card {
  background: #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.04), 0 12px 24px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  box-shadow: 0 0 0 1px rgba(168,85,247,0.08), 0 4px 8px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.06);
}
.bento-card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bento-card-dark:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

/* Decorative top gradient line on bento cards */
.bento-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.3), transparent);
}
.bento-line-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.2), transparent);
}

/* Plus-grid texture (dark sections) */
.plus-grid { position: relative; }
.plus-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(168,85,247,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
}

/* ---- Prefers reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .scale-in { opacity: 1; transform: none; transition: none; }
  .stepper-progress-bar { animation: none; width: 100% !important; }
  .waveform-bar { animation: none; height: 16px !important; }
  .cursor-blink { animation: none; }
  .float-slow, .float-medium { animation: none; }
  .hero-mesh { animation: none; }
  .shimmer-text { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FFF; }
::-webkit-scrollbar-thumb { background: #D4D4D8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A1A1AA; }

[x-cloak] { display: none !important; }
