html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* font-family: "Source Sans Pro"; */
}

:root {
    /* Brand Purple */
    --tblr-primary: #b72250; /* #ef2f2f; /* main */
    --tblr-primary-rgb: 132, 94, 247;
    --tblr-primary-light: #b87272; /* lighter / hover */
    /* --tblr-primary-dark: #4a42cc; /* darker / active */
    /* --tblr-font-sans-serif: -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif; */
    --tblr-font-sans-serif: "Inter Var",Inter,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;
}

.navbar-brand {
  padding: 0 16px;
  color: var(--tblr-primary);
}

.navbar .navbar-nav .nav-link {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1.1px;
  color: var(--tblr-primary) !important;
}

.navbar-brand:hover,
.navbar .navbar-nav .nav-link:hover {
  transition: all 0.4s;
  color: var(--tblr-primary-light) !important;
}

/* Main content area */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Footer styles */
.footer {
  margin-top: auto;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem 0;
  text-align: center;
}

/* HTMX Loading Indicator */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

.htmx-request.htmx-indicator {
  display: inline;
}

/* ===== LANDING PAGE ENHANCEMENTS ===== */

/* Hero Section Styles */
.hero-section {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: linear-gradient(135deg, var(--tblr-primary) 0%, var(--tblr-primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: #00110099;
}

.world-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 200px 200px;
  opacity: 0.3;
}

.floating-pins {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.pin {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.pin-1 { top: 20%; left: 15%; animation-delay: 0s; }
.pin-2 { top: 60%; left: 80%; animation-delay: 1s; }
.pin-3 { top: 80%; left: 30%; animation-delay: 2s; }
.pin-4 { top: 30%; left: 70%; animation-delay: 3s; }
.pin-5 { top: 70%; left: 60%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.hero-section .row {
  position: relative;
  z-index: 2;
}

.hero-illustration {
  margin-bottom: 2rem;
}

.gps-satellite {
  display: inline-block;
  animation: rotate 20s linear infinite;
}

.satellite-icon {
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.text-gradient {
  background: linear-gradient(45deg, #ffffff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust Building Stats */
.stat-item {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2rem;
}

.stat-number {
  font-size: 1.5rem;
  color: #ffffff !important;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Trust Badges */
.trust-badges {
  padding: 2rem 0;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-2px);
}

.badge-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.testimonial-content p {
  font-style: italic;
  color: #495057;
  margin-bottom: 1rem;
}

.testimonial-author {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

/* Enhanced Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
}

.feature-icon {
  transition: all 0.3s ease;
}

.icon-hover {
  transform: scale(1.1);
  color: #007bff !important;
}

.feature-preview {
  overflow: hidden;
  border-radius: 8px;
}

/* Demo Preview Section */
.demo-preview-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.demo-coordinates {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.coordinate-example {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.coordinate-example:last-child {
  border-bottom: none;
}

.demo-map-container {
  position: relative;
}

/* Enhanced CTA Section */
.cta-card {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 150px 150px;
  opacity: 0.3;
}

.cta-card > * {
  position: relative;
  z-index: 2;
}

/* Step Circles */
.step-circle {
  transition: transform 0.3s ease;
}

.step-circle:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .demo-preview-section {
    padding: 2rem 1rem;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    margin-bottom: 1rem;
  }
}

/* Button Enhancements */
.btn {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


.btn-primary {
  background: linear-gradient(45deg, var(--tblr-primary), var(--tblr-primary-light));
  border: none;
}

.btn-outline-primary {
  border: 2px solid var(--tblr-primary);
  /* color: #007bff; */
  color: var(--tblr-primary);
  background-color: #fff;
}

.btn-outline-primary:hover {
  border-width: 2px;
  background-color: #fff;
  color: var(--tblr-primary);
  /* background: #007bff;
  color: white; */
}

/* Card Enhancements */
.card {
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Loading States */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}