/* ============================================
   ANTIGRAVITY — Custom Styles & Animations
   ============================================ */

/* Custom USPTO Colors */
/* Custom USPTO Colors */
.text-uspto-blue {
  color: #3b82f6;
  /* Brighter for dark mode */
}

.bg-uspto-blue {
  background-color: #3b82f6;
}

.border-uspto-blue {
  border-color: #3b82f6;
}

html {
  font-size: 18px;
  /* Increased base size for better readability */
}

body {
  background-color: #F0F4F8;
  /* Light grayish-blue */
  color: #1e293b;
  /* Dark slate text */
}

/* Custom Shape for Trust Badges */
.rounded-shield {
  border-radius: 4px 4px 50% 50%;
}

/* Override text colors for dark mode context removal */
.text-slate-900 {
  color: #0f172a;
}

.text-slate-600 {
  color: #475569;
}

.text-gray-400 {
  color: #94a3b8;
}

.bg-white {
  background-color: #ffffff;
  color: #1e293b;
}

.bg-slate-50 {
  background-color: #f8fafc;
}

.bg-slate-100 {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.border-slate-200 {
  border-color: #334155;
}

/* Navbar adjustment */
nav.bg-white\/90 {
  background-color: rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}


/* ---------- Glassmorphism Cards ---------- */
/* ---------- Glassmorphism Cards ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 76, 151, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* ---------- Pricing Card Glow ---------- */
.pricing-card-popular {
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pricing-card-popular::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #3b82f6, #34d399, #3b82f6);
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ---------- Live Notification Toast ---------- */
.notification-toast {
  animation: slideInRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    fadeOutUp 0.5s ease-in 4.5s forwards;
}

@keyframes slideInRight {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOutUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* ---------- Pulse Dot (Live Indicator) ---------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: pulseDot 1.5s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ---------- Step Progress Bar ---------- */
.step-progress-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step-progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
}

.step-item.active .step-circle {
  background: linear-gradient(135deg, #3b82f6, #34d399);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.step-item.completed .step-circle {
  background: #34d399;
  border-color: transparent;
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
}

.step-item.active .step-label,
.step-item.completed .step-label {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Countdown Timer ---------- */
.countdown-badge {
  background: linear-gradient(135deg, #dc2626, #f97316);
  animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

/* ---------- Button Styles ---------- */
.btn-primary {
  background: #F59E0B;
  /* Brand Orange */
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

.btn-accent {
  background: #1E40AF;
  /* Brand Blue */
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #60a5fa;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: #94a3b8;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: #334155;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* ---------- Credit Card Visual ---------- */
.credit-card-visual {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.586 / 1;
  max-width: 380px;
}

.credit-card-visual::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
}

.credit-card-visual::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
}

/* ---------- Fade-in on scroll ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Security Badge ---------- */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* ---------- Modal Overlay ---------- */
.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* ---------- Particle Grid Background ---------- */
.particle-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 76, 151, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---------- Typing animation for AI ---------- */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  margin: 0 2px;
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}


/* ---------- Advanced Antigravity Styles ---------- */

/* Canvas Engine */
#antigravity-engine {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  /* Behind content */
  pointer-events: none;
}

/* Camera Rig */
#camera-rig {
  transform-style: preserve-3d;
  will-change: transform;
}

/* State: Activation (Typing) */
body.state-activation .gradient-hero {
  filter: brightness(0.95);
  transition: filter 0.5s ease, background-image 1s ease;
}

/* State: Analysis (Deep Focus) */
body.state-analysis .gradient-hero {
  filter: brightness(0.8) contrast(1.1);
  transition: filter 1s ease;
}

/* Analysis: Image Clarity — full opacity + holographic screen blend */
body.state-analysis .layer-middle {
  opacity: 1.0;
  mix-blend-mode: screen;
}

body.state-analysis .layer-front {
  opacity: 1.0;
  mix-blend-mode: screen;
}

body.state-analysis .layer-back {
  mix-blend-mode: screen;
}


/* State: Transformation (Exit Hero) */
.hero-exit-anim {
  transition: opacity 0.8s ease, transform 0.8s ease;
  opacity: 0;
  transform: scale(0.95) translateY(-50px);
  pointer-events: none;
}

/* Floating Keywords (Analysis State) */
.floating-keyword {
  position: absolute;
  color: #34d399;
  font-family: monospace;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0;
  animation: floatUpFade 2s ease-out forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

/* Hero Content Highlight Glow Animation */
.hero-content-highlight {
  position: relative;
}

.hero-content-highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(52, 211, 153, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.hero-content-highlight:hover::before {
  opacity: 1;
}

/* ---------- Responsive Fixes ---------- */
@media (max-width: 768px) {
  .step-progress-bar::before {
    display: none;
  }

  .credit-card-visual {
    max-width: 100%;
  }

  /* Mobile: hide heavy parallax images and canvas for Google-fast perf */
  .parallax-container {
    display: none;
  }

  #antigravity-engine {
    display: none;
  }

  /* Disable float animations on mobile */
  .animate-float-slow,
  .animate-float-medium,
  .animate-float-fast {
    animation: none;
  }
}