/**
 * Applicora Website - Modern Design System
 * Matches the Applicora App branding perfectly
 */

:root {
  /* ========================================
     BRAND COLORS (Match App Exactly)
     ======================================== */

  --color-primary: #0A3C7A;           /* Corporate Blue */
  --color-primary-light: #1565C0;
  --color-primary-dark: #083056;

  --color-accent: #667EEA;             /* Purple Accent */
  --color-accent-light: #764BA2;

  /* Brand Gradient (Blue to Purple) */
  --gradient-brand: linear-gradient(135deg, #0A3C7A 0%, #667eea 100%);
  --gradient-primary: linear-gradient(135deg, #0A3C7A 0%, #1565C0 100%);
  --gradient-accent: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);

  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #DC2626;
  --color-info: #0ea5e9;

  /* Neutral Grays */
  --color-gray-900: #1F2937;
  --color-gray-800: #374151;
  --color-gray-700: #4B5563;
  --color-gray-600: #6C757D;
  --color-gray-500: #64748B;
  --color-gray-400: #9CA3AF;
  --color-gray-300: #D1D5DB;
  --color-gray-200: #E5E7EB;
  --color-gray-100: #F3F4F6;
  --color-gray-50: #F9FAFB;

  /* Text Colors */
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Selection */
::selection {
  background: var(--color-accent);
  color: white;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.display-1, .display-2, .display-3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  font-weight: 600;
  border-radius: var(--radius-pill) !important;
  transition: all var(--transition-base);
  border: none;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-brand) !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(10, 60, 122, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #083056 0%, #764BA2 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 60, 122, 0.5);
  color: white !important;
}

.btn-outline-primary {
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
  background: white !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--color-primary) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.navbar-brand img {
  transition: transform var(--transition-base);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* Brand Logo */
.brand-logo {
  height: 52px;
  display: block;
}

/* Sign In Button Tooltip */
.btn-disabled-tooltip {
  position: relative;
  cursor: not-allowed !important;
}

.btn-disabled-tooltip::after {
  content: 'Not so fast — still in beta!';
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.btn-disabled-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1F2937;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.btn-disabled-tooltip:hover::after,
.btn-disabled-tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   HERO SECTION
   ======================================== */

.bg-hero {
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(10, 60, 122, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.bg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.03) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Reusable subtle background for sections */
.bg-subtle {
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(10, 60, 122, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

/* Milestone Progress Bar */
.milestone-section {
  background: linear-gradient(135deg, rgba(10, 60, 122, 0.03) 0%, rgba(102, 126, 234, 0.03) 100%);
  border: 2px solid rgba(10, 60, 122, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.milestone-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
}

.progress-bar-custom {
  height: 24px;
  border-radius: 12px;
  background: #E5E7EB;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 12px;
  transition: width 1.5s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.milestone-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(10, 60, 122, 0.3);
}

/* Pricing Teaser */
.pricing-teaser {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-teaser:hover {
  border-color: var(--color-primary);
  border-style: solid;
  box-shadow: var(--shadow-lg);
}

.price-tag {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.early-bird-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
  }
}

/* Horizontal Timeline with Milestones - Compact Version */
.timeline-roadmap {
  position: relative;
  padding: 1rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-stages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Connecting line between milestones */
.timeline-stages::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #E5E7EB;
  z-index: 0;
}

.timeline-stage {
  position: relative;
  flex: 1;
  text-align: center;
  z-index: 1;
}

.timeline-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Completed stage */
.timeline-stage.completed .timeline-circle {
  background: var(--gradient-brand);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(10, 60, 122, 0.25);
}

.timeline-stage.completed .timeline-circle i {
  color: white;
  font-size: 0.875rem;
}

/* Active/In Progress stage */
.timeline-stage.active .timeline-circle {
  background: white;
  border: 2px solid var(--color-primary);
  border-top-color: var(--color-accent);
  border-right-color: var(--color-accent);
  animation: pulse-border 2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(10, 60, 122, 0.1);
}

.timeline-stage.active .timeline-circle i {
  color: var(--color-primary);
  font-size: 0.875rem;
  animation: spin 2s linear infinite;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(10, 60, 122, 0.1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(10, 60, 122, 0.15);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Upcoming/Future stage */
.timeline-stage.upcoming .timeline-circle {
  background: white;
  border-color: #E5E7EB;
}

.timeline-stage.upcoming .timeline-circle i {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

/* Stage labels */
.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.timeline-stage.completed .timeline-label {
  color: var(--color-primary);
}

.timeline-stage.active .timeline-label {
  color: var(--color-primary);
  font-weight: 700;
}

.timeline-stage.upcoming .timeline-label {
  color: var(--color-gray-500);
}

.timeline-date {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-stage.active .timeline-date {
  color: var(--color-accent);
  font-weight: 600;
}

/* Progress line overlay (shows completed portion) */
.timeline-progress-overlay {
  position: absolute;
  top: 16px;
  left: 10%;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 0;
  transition: width 1.5s ease-out;
  box-shadow: 0 0 6px rgba(10, 60, 122, 0.25);
}

/* Responsive timeline */
@media (max-width: 767px) {
  .timeline-stages::before {
    left: 5%;
    right: 5%;
  }

  .timeline-progress-overlay {
    left: 5%;
  }

  .timeline-circle {
    width: 28px;
    height: 28px;
  }

  .timeline-circle i {
    font-size: 0.75rem !important;
  }

  .timeline-label {
    font-size: 0.625rem;
  }

  .timeline-date {
    font-size: 0.5rem;
  }
}

/* Mini Progress in Header */
.nav-progress-mini {
  transition: all 0.3s ease;
}

.nav-progress-mini:hover {
  transform: translateY(-2px);
}

.mini-progress-wrapper {
  width: 60px;
  height: 6px;
  background: rgba(10, 60, 122, 0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.mini-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: width 0.6s ease;
}

.mini-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: mini-shimmer 2s ease-in-out infinite;
}

@keyframes mini-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero {
  padding: 4rem 0;
}

@media (min-width: 992px) {
  .hero {
    padding: 6rem 0;
  }
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */

.card-white,
.mockup-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* ========================================
   ICON BOXES
   ======================================== */

.icon-box {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.icon-box i {
  color: white !important;
}

.icon-box-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(10, 60, 122, 0.9) 100%);
  color: white;
}

.icon-box-success {
  background: linear-gradient(135deg, var(--color-success) 0%, rgba(16, 185, 129, 0.9) 100%);
  color: white;
}

.icon-box-warning {
  background: linear-gradient(135deg, var(--color-warning) 0%, rgba(245, 158, 11, 0.9) 100%);
  color: white;
}

.icon-box-info {
  background: linear-gradient(135deg, var(--color-info) 0%, rgba(14, 165, 233, 0.9) 100%);
  color: white;
}

.icon-box-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, rgba(102, 126, 234, 0.9) 100%);
  color: white;
}

.feature-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   GRADIENTS & BACKGROUNDS
   ======================================== */

.bg-gradient-brand {
  background: var(--gradient-brand);
  color: white;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
  color: white;
}

.bg-light {
  background: var(--bg-light) !important;
}

/* ========================================
   BORDERS & DIVIDERS
   ======================================== */

.border-top-brand {
  border-top: 3px solid transparent;
  background-image: linear-gradient(white, white), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   PRICING CARDS
   ======================================== */

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-base);
  border: 2px solid var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  pointer-events: none;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  transform: scaleX(1);
}

/* ========================================
   BADGES
   ======================================== */

.badge {
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.badge-primary {
  background: var(--gradient-brand);
  color: white;
}

.badge-success {
  background: var(--color-success);
  color: white;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
  border-top: 1px solid var(--color-gray-200);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

footer a:hover {
  color: var(--color-primary);
}

/* ========================================
   UTILITIES
   ======================================== */

.rounded-4 {
  border-radius: var(--radius-xl) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Purple color utilities */
.text-purple {
  color: var(--color-accent) !important;
}

.bg-purple {
  background-color: var(--color-accent) !important;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 8px;
  padding: 8px;
  background: white;
  border: 2px solid var(--color-primary);
  z-index: 10000;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767px) {
  .hero {
    padding: 3rem 0;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.125rem;
  }
}

/* ========================================
   SCREENSHOTS & IMAGES
   ======================================== */

.screenshot-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.screenshot-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.screenshot-container:hover img {
  transform: scale(1.02);
}

/* Carousel Image Sizing */
.carousel-inner {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.carousel-item {
  height: 600px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 991px) {
  .carousel-item {
    height: 450px;
  }
}

@media (max-width: 767px) {
  .carousel-item {
    height: 300px;
  }
}

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

.features-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(10, 60, 122, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced Feature Cards */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

/* Colored Border Accents */
.feature-card:nth-child(1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--color-success), #059669);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--color-warning), #d97706);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:nth-child(4)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--color-info), #0c4a6e);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:nth-child(5)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Enhanced Section Styling */
section {
  position: relative;
}

/* Testimonial Enhancement */
.border-primary {
  border-color: var(--color-primary) !important;
}

.border-5 {
  border-width: 4px !important;
}

/* CTA Section Enhancement */
.bg-gradient-primary {
  background: var(--gradient-brand) !important;
  position: relative;
  overflow: hidden;
}

.bg-gradient-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

/* Social Proof Bar Enhancement */
.bg-light {
  background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%) !important;
}

/* Add subtle glow to icon boxes on hover */
.icon-box-primary:hover {
  box-shadow: 0 0 20px rgba(10, 60, 122, 0.3);
}

.icon-box-success:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.icon-box-warning:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.icon-box-info:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.icon-box-accent:hover {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Link hover colors with smooth transitions */
footer a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
  display: inline-block;
}

/* Enhanced mockup card */
.mockup-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  box-shadow:
    0 20px 60px rgba(10, 60, 122, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.mockup-card:hover {
  box-shadow:
    0 30px 80px rgba(10, 60, 122, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Add color to section headings */
h2.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Smooth scroll padding for fixed header */
html {
  scroll-padding-top: 80px;
}

/* ========================================
   PRICING MODAL
   ======================================== */

.pricing-modal-card {
  background:
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 60, 122, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.pricing-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.beta-benefits-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.modal-content {
  border-radius: var(--radius-xl) !important;
}

/* ========================================
   BETA SIGNUP FORM
   ======================================== */

.signup-form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.signup-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.form-control-elegant,
.form-select.form-control-elegant {
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  background-color: white;
}

.form-control-elegant:focus,
.form-select.form-control-elegant:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(10, 60, 122, 0.1);
  outline: none;
}

.form-control-elegant::placeholder {
  color: var(--color-gray-400);
}

.form-label {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.privacy-notice-box {
  background: linear-gradient(135deg, rgba(10, 60, 122, 0.03) 0%, rgba(102, 126, 234, 0.03) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 60, 122, 0.1);
}

.privacy-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-icon i {
  color: white;
  font-size: 1.25rem;
}

.consent-box {
  background: rgba(10, 60, 122, 0.02);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-gray-300);
}

.form-check-elegant {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-gray-300);
  cursor: pointer;
}

.form-check-elegant:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check-elegant:focus {
  box-shadow: 0 0 0 4px rgba(10, 60, 122, 0.1);
}

.benefit-item {
  padding: 1rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   TERMS MODAL - APPLICORA BRANDING
   ======================================== */

#termsModal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

#termsModal .modal-header {
  background: var(--gradient-brand) !important;
  border-bottom: none;
  padding: 1.5rem 2rem;
  position: relative;
}

#termsModal .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.3) 100%);
}

#termsModal .modal-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#termsModal .modal-title i {
  color: rgba(255, 255, 255, 0.9);
}

#termsModal .btn-close-white {
  opacity: 0.9;
  transition: all var(--transition-base);
}

#termsModal .btn-close-white:hover {
  opacity: 1;
  transform: scale(1.1);
}

#termsModal .modal-body {
  background:
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 60, 122, 0.02) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  padding: 2rem;
  position: relative;
}

/* Scroll indicator */
#scrollIndicator {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.98) 100%);
  text-align: center;
  border-top: 1px solid rgba(10, 60, 122, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: 10;
}

#scrollIndicator i {
  color: var(--color-primary);
  font-size: 1.5rem;
  animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Terms content styling */
#termsContent h3 {
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(10, 60, 122, 0.1);
}

#termsContent h3:first-of-type {
  margin-top: 0;
}

#termsContent p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

#termsContent ul {
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.5rem;
}

#termsContent ul li {
  margin-bottom: 0.5rem;
}

#termsContent strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Alert boxes in modal */
#termsModal .alert {
  border-radius: var(--radius-md);
  border-width: 1px;
  border-style: solid;
}

#termsModal .alert-info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  border-color: rgba(14, 165, 233, 0.2);
  color: var(--text-primary);
}

#termsModal .alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--text-primary);
}

#termsModal .alert-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--text-primary);
}

/* Modal footer */
#termsModal .modal-footer {
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
  border-top: 1px solid var(--color-gray-200);
  padding: 1.5rem 2rem;
  flex-direction: column;
  align-items: stretch;
}

/* Checkbox styling */
#termsModal .form-check {
  /* No frame - plain checkbox */
}

#termsModal .form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--color-gray-300);
  margin-top: 0;
  cursor: pointer;
  transition: all var(--transition-base);
}

#termsModal .form-check-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#termsModal .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

#termsModal .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(10, 60, 122, 0.15);
  border-color: var(--color-primary);
}

#termsModal .form-check-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-left: 0.75rem;
  cursor: pointer;
  user-select: none;
}

/* Button group in footer */
#termsModal .modal-footer > div:last-child {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

#termsModal .btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--color-gray-300);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

#termsModal .btn-secondary:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-400);
  transform: translateY(-2px);
}

#termsModal .btn-primary {
  background: var(--gradient-brand) !important;
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(10, 60, 122, 0.3);
  transition: all var(--transition-base);
}

#termsModal .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #083056 0%, #764BA2 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 60, 122, 0.4);
}

#termsModal .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

#termsModal .btn-primary i {
  margin-right: 0.5rem;
}

/* Responsive modal */
@media (max-width: 767px) {
  #termsModal .modal-header {
    padding: 1.25rem 1.5rem;
  }

  #termsModal .modal-title {
    font-size: 1.125rem;
  }

  #termsModal .modal-body {
    padding: 1.5rem;
  }

  #termsModal .modal-footer {
    padding: 1.25rem 1.5rem;
  }

  #termsModal .modal-footer > div:last-child {
    flex-direction: column;
  }

  #termsModal .btn-secondary,
  #termsModal .btn-primary {
    width: 100%;
  }
}
