/* Custom CSS for footprint.AI */

:root {
    --background: 210 11% 98%; /* #f9fafb */
    --light-gray: 210 17% 95%; /* #f1f5f9 */
    --primary-blue: 217 91% 60%; /* #3b82f6 */
    --primary-blue-dark: 217 91% 55%; /* #2563eb */
    --text-gray: 215 16% 47%; /* #6b7280 */
    --text-dark: 215 25% 27%; /* #1f2937 */
    --accent-coral: #FF6F61;
    --accent-light-blue: #61DFFF;
    --clinical-blue: #2563eb;
    --deep-navy: #1e293b;
    --medical-green: #10b981;
    --card-bg: #ffffff;
    --subtle-border: rgba(226, 232, 240, 0.8);
}

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

/* CTA Badge Styles - V2 (In-Button Design) */
.btn-with-badge {
    position: relative;
    padding-right: clamp(2.5rem, 6vw, 3.5rem) !important;
}

.btn-with-badge .badge-free {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    border-radius: 0.375rem;
    background: var(--accent-coral);
    color: #fff;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
    .btn-with-badge {
        padding-right: 2.5rem !important;
    }
    .btn-with-badge .badge-free {
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(400%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Fade in animation for sections */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Foot scan animation */
.foot-scan-animation {
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scanLine 3s ease-in-out infinite;
    z-index: 10;
}

/* Hover effects for cards */
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* FAQ accordion animations */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #e2e8f0;
}

.faq-answer {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-answer.open {
    max-height: 200px;
    display: block !important;
}

/* Navigation scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star rating fill */
.star-filled {
    fill: currentColor;
}

/* Responsive image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-gray: #000000;
        --text-dark: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: 215 28% 9%; /* #0f172a */
        --light-gray: 215 25% 12%; /* #1e293b */
        --text-gray: 215 20% 70%; /* #94a3b8 */
        --text-dark: 215 25% 85%; /* #e2e8f0 */
    }
}

/* Modern Clinical-Grade Enhancements */

/* App UI Typography */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #1F2937;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 400;
  color: #6B7280;
}

/* App UI Button Styles */
.btn-modern {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border: none;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 12px 24px;
  font-size: 16px;
  color: white;
}

.btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Accent color utilities */
.accent-coral { color: var(--accent-coral); }
.bg-accent-coral { background-color: var(--accent-coral); }
.border-accent-coral { border-color: var(--accent-coral); }
.accent-light-blue { color: var(--accent-light-blue); }
.hover-accent:hover { 
  color: var(--accent-coral);
  transition: color 0.3s ease;
}

/* Advanced scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* App UI Card Styles */
.card-hover {
  transition: all 0.2s ease;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Enhanced navbar */
.navbar-modern {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* App UI Section Styling */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
  margin: 3rem 0;
}

/* App UI Layout Spacing */
.app-ui-spacing {
  padding: 1.5rem;
}

.app-ui-section {
  background: #f9fafb;
  padding: 2rem 0;
}

.app-ui-card-grid {
  gap: 1rem;
}

@media (min-width: 768px) {
  .app-ui-spacing {
    padding: 2rem;
  }
  
  .app-ui-section {
    padding: 3rem 0;
  }
  
  .app-ui-card-grid {
    gap: 1.5rem;
  }
}

/* Glassmorphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* App UI Mobile Optimizations */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-modern {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 18px;
  }
  
  .card-hover {
    border-radius: 12px;
  }
  
  .card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Lead Capture Modal Styles */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Input focus states for modal */
#leadModal input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Error message styling */
.error-message {
    animation: errorSlideIn 0.2s ease-out;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success message animation */
.success-animation {
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Modal responsive adjustments */
@media (max-width: 640px) {
    #leadModal .bg-white {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
