/* Custom styles to complement Tailwind CDN */

/* Hide scrollbar for carousel */
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ==========================================
   GRADIENT GLOW SYSTEM
   ========================================== */

/* Animated gradient orbs - ambient background glow */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  will-change: transform, opacity;
}

.glow-orb-blue {
  background: radial-gradient(circle, #2B70E5 0%, #6366f1 40%, transparent 70%);
}

.glow-orb-purple {
  background: radial-gradient(circle, #8b5cf6 0%, #a855f7 40%, transparent 70%);
}

.glow-orb-cyan {
  background: radial-gradient(circle, #06b6d4 0%, #2B70E5 40%, transparent 70%);
}

.glow-orb-pink {
  background: radial-gradient(circle, #ec4899 0%, #8b5cf6 40%, transparent 70%);
}

.glow-orb-green {
  background: radial-gradient(circle, #10b981 0%, #06b6d4 40%, transparent 70%);
}

.glow-orb-orange {
  background: radial-gradient(circle, #fb923c 0%, #f59e0b 40%, transparent 70%);
}

/* Slow floating animation for orbs */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

@keyframes float-slow-reverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-25px, 20px) scale(0.97); }
  50% { transform: translate(20px, -15px) scale(1.04); }
  75% { transform: translate(-10px, -25px) scale(0.98); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.glow-orb-animate {
  animation: float-slow 20s ease-in-out infinite, pulse-glow 8s ease-in-out infinite;
}

.glow-orb-animate-reverse {
  animation: float-slow-reverse 25s ease-in-out infinite, pulse-glow 10s ease-in-out infinite;
}

/* ==========================================
   GLASS CARD WITH GLOW
   ========================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  position: relative;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    0 0 30px -5px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Glass card with gradient border glow */
.glass-card-glow {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  position: relative;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.glass-card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.4) 0%,
    rgba(139, 92, 246, 0.2) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(6, 182, 212, 0.2) 75%,
    rgba(99, 102, 241, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.6;
}

.glass-card-glow:hover::before {
  opacity: 1;
}

.glass-card-glow:hover {
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    0 0 40px -5px rgba(99, 102, 241, 0.2);
}

/* Featured card - stronger glow */
.glass-card-featured {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  position: relative;
  box-shadow:
    0 12px 40px 0 rgba(0, 0, 0, 0.5),
    0 0 60px -10px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.glass-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.6) 0%,
    rgba(139, 92, 246, 0.4) 20%,
    rgba(236, 72, 153, 0.3) 40%,
    rgba(6, 182, 212, 0.3) 60%,
    rgba(99, 102, 241, 0.4) 80%,
    rgba(139, 92, 246, 0.6) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-rotate 8s linear infinite;
}

@keyframes border-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ==========================================
   GRADIENT TEXT
   ========================================== */

.gradient-text-hero {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 30%, #a78bfa 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #2B70E5, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #06b6d4, #2B70E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   BUTTONS WITH GLOW
   ========================================== */

.btn-primary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 20px -5px rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.btn-secondary:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Large CTA button */
.btn-primary-lg {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-lg::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary-lg:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 25px -5px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.btn-primary-lg:hover::before {
  opacity: 1;
}

/* ==========================================
   GRADIENT DIVIDERS
   ========================================== */

.gradient-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.3) 20%,
    rgba(139, 92, 246, 0.4) 50%,
    rgba(6, 182, 212, 0.3) 80%,
    transparent 100%
  );
  border: none;
}

/* ==========================================
   FEATURE ICON GLOW
   ========================================== */

.icon-glow {
  position: relative;
}

.icon-glow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: inherit;
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.icon-glow:hover::after {
  opacity: 0.6;
}

.icon-glow-blue {
  background: linear-gradient(135deg, rgba(43, 112, 229, 0.2), rgba(99, 102, 241, 0.2));
}

.icon-glow-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
}

.icon-glow-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(43, 112, 229, 0.2));
}

.icon-glow-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
}

.icon-glow-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
}

.icon-glow-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.2));
}

/* ==========================================
   STEP NUMBER GLOW
   ========================================== */

.step-number {
  background: linear-gradient(135deg, #2B70E5, #6366f1);
  position: relative;
  box-shadow: 0 0 25px -3px rgba(99, 102, 241, 0.4);
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2B70E5, #6366f1);
  filter: blur(15px);
  opacity: 0.3;
  z-index: -1;
}

/* ==========================================
   SECTION BACKGROUNDS
   ========================================== */

.section-gradient {
  position: relative;
  overflow: hidden;
}

.section-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Mesh gradient background */
.mesh-gradient {
  background:
    radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}

/* ==========================================
   NAV GLOW
   ========================================== */

.nav-glow {
  border-bottom: 1px solid transparent;
  background-image: 
    linear-gradient(rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 0.8)),
    linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.2) 50%, transparent 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ==========================================
   STATUS INDICATORS
   ========================================== */

.status-pass {
  color: #10b981;
}

.status-warn {
  color: #f59e0b;
}

.status-fail {
  color: #ef4444;
}

.status-dot-glow {
  position: relative;
}

.status-dot-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  filter: blur(6px);
  opacity: 0.6;
}

/* ==========================================
   CODE BLOCKS
   ========================================== */

.code-block {
  background-color: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Menlo', 'Consolas', monospace;
  font-size: 0.875rem;
  position: relative;
  max-width: 100%;
}

.code-block pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  max-width: 100%;
}

.code-block pre code {
  white-space: pre;
  display: block;
}

/* ==========================================
   SECTION SPACING
   ========================================== */

.section {
  padding: 7rem 1rem;
}

@media (min-width: 640px) {
  .section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Container */
.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ==========================================
   SCROLLBAR
   ========================================== */

.code-block::-webkit-scrollbar {
  height: 8px;
}

.code-block::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   HOVER LIFT
   ========================================== */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ==========================================
   GRADIENT BADGE
   ========================================== */

.gradient-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

/* ==========================================
   CTA GLOW SECTION
   ========================================== */

.cta-glow {
  position: relative;
  overflow: hidden;
}

.cta-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(99, 102, 241, 0.1) 0deg,
    rgba(139, 92, 246, 0.05) 60deg,
    transparent 120deg,
    rgba(6, 182, 212, 0.05) 180deg,
    rgba(99, 102, 241, 0.1) 240deg,
    transparent 300deg,
    rgba(139, 92, 246, 0.1) 360deg
  );
  animation: cta-spin 30s linear infinite;
  pointer-events: none;
}

@keyframes cta-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================
   PRICING CARD GLOW
   ========================================== */

.pricing-glow {
  position: relative;
}

.pricing-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5) 0%,
    rgba(139, 92, 246, 0.3) 25%,
    rgba(236, 72, 153, 0.2) 50%,
    rgba(6, 182, 212, 0.3) 75%,
    rgba(99, 102, 241, 0.5) 100%
  );
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
}

/* ==========================================
   FOOTER GRADIENT TOP BORDER
   ========================================== */

.footer-glow {
  border-top: none;
  position: relative;
}

.footer-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.3) 20%,
    rgba(139, 92, 246, 0.4) 50%,
    rgba(6, 182, 212, 0.3) 80%,
    transparent 100%
  );
}

/* ==========================================
   PROSE INSIDE CARDS FIX
   ========================================== */

.glass-card-glow > h2:first-child,
.glass-card-glow > h3:first-child,
.glass-card-featured > h2:first-child,
.glass-card-featured > h3:first-child,
.glass-card > h2:first-child,
.glass-card > h3:first-child {
  margin-top: 0 !important;
}

/* Light mode overrides */
@media (prefers-color-scheme: light) {
  .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .code-block {
    background-color: #f3f4f6;
    color: #111827;
  }
}
