h1, h2, h3, h4, h5, h6 {
  font-family: sans-serif;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 90px; 
}

a {
  text-decoration: none;
}

h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.8rem;
  position: relative;
  font-weight: bold;
}

/* Demo button - 20% smaller */
.demo-button {
  padding: .6rem 1.2rem;
  background: #fff;
  color: #000;
  font-weight: bold;
  display: inline-block;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.95rem; /* Slightly smaller font */
  /* Add margin bottom to prevent layout shift on hover */
  margin-bottom: 2px;
}

.demo-button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #f60;
  transition: width .4s ease-in-out;
  z-index: -1;
}

.demo-button:hover::before {
  width: 100%;
}

.demo-button:hover {
  color: #fff;
  box-shadow: 0 0 10px #f60, 0 0 20px rgba(255, 102, 0, .4);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .9);
}

.demo-button.small {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* ==========================================================================
      HERO SECTIONS
========================================================================== */
/* Update hero section styles */
.hero-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  padding: 90px 20px;
  gap: 40px;
  align-items: center;
  margin: 0 auto 90px;
  /* Remove redundant background that matches body */
  /* background: #0a0a0a; */
  flex-direction: row;
}

.hero-content-left {
  flex: 1;
  padding-right: 20px;
  z-index: 2;
  position: relative;
}

.hero-content-right {
  flex: 1;
  position: relative;
  overflow: visible;
}

.hero-content-left h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-subheading {
  font-size: 1.05rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: bold;
}

/* Update hero image container */
.hero-image-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: visible;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Fix testimonial positioning */
.testimonial {
  position: absolute;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.4);
  color: white;
  padding: 1rem;
  left: -20px;
  right: 10%;
  bottom: -40px;
  max-width: 90%;
  margin: 0 auto;
  font-family: sans-serif;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0.1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 2px 8px 0 rgba(0,0,0,0.06),
    0 4px 16px 0 rgba(0,0,0,0.12),
    0 8px 24px 0 rgba(0,0,0,0.18);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial .quote {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.testimonial .author {
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Mobile responsiveness for hero section */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero-content-left {
    order: 1;
    padding-right: 0;
    width: 100%;
  }
  
  .hero-content-right {
    order: 2;
    width: 100%;
  }
  
  .hero-content-left h1 {
    font-size: 2.2rem;
    text-align: left;
  }
  
  .hero-subheading {
    font-size: 1rem;
    text-align: left;
  }
  
  .testimonial {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -25px;
    max-width: 85%;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .hero-container {
    padding: 45px 20px;
    margin: 0 auto 45px;
  }
  
  .hero-content-left h1 {
    font-size: 1.8rem;
  }
  
  .hero-subheading {
    font-size: 0.9rem;
  }
  
  .testimonial {
    padding: 0.6rem 0.4rem;
    bottom: -30px;
  }
  
  .testimonial .quote {
    font-size: 0.75rem;
  }
  
  .testimonial .author {
    font-size: 0.7rem;
  }
}
/* ==========================================================================
      Demo video
========================================================================== */

.video-container {
  max-width: 1000px;
  width: 100%;
  margin: 90px auto 90px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-player {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000;
}

/* Optional custom video controls styling */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .custom-video-controls {
  opacity: 1;
}

.play-pause-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: #333;
  margin: 0 10px;
  position: relative;
  cursor: pointer;
  border-radius: 5px;
}

.progress {
  height: 100%;
  background: #f60;
  width: 0;
  border-radius: 5px;
}

.time-display {
  color: white;
  font-size: 12px;
  margin-left: 10px;
}

.mute-btn, .fullscreen-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

/* Police light effect adjustment to accommodate video */
.police-light-effect {
  top: 15%;
}

/* Responsive video adjustments */
@media (max-width: 900px) {
  .video-container {
    width: 90%;
    margin: 60px auto 60px;
  }
}

@media (max-width: 480px) {
  .video-container {
    margin: 45px auto 45px;
  }
}

/* ==========================================================================
      EFFECTS
========================================================================== */
.police-light-effect {
  position: absolute;
  top: 25%;
  left: 0;
  width: 30%;
  height: 50%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 0, 0, .3) 0%, transparent 70%);
  animation: policeSiren 4s infinite alternate ease-in-out;
  mix-blend-mode: screen;
  /* Add will-change for better performance */
  will-change: opacity, background;
}

@media (prefers-reduced-motion: reduce) {
  .police-light-effect {
    /* Disable animation for users who prefer reduced motion */
    animation: none;
    opacity: 0.5;
    background: radial-gradient(ellipse at 20% 50%, rgba(128, 0, 128, .2) 0%, transparent 70%);
  }
}

@keyframes policeSiren {
  0% {
    opacity: .7;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 0, 0, .3) 0%, transparent 70%);
  }

  50% {
    opacity: .4;
  }

  100% {
    opacity: .7;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 70, 255, .3) 0%, transparent 70%);
  }
}

/* ========================================================================== 
   WRAPPER
========================================================================== */
.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-heading-container .section-heading {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.0;
}

.section-heading-container {
  max-width: 800px;
  margin: 90px 0;
  padding: 0rem 2.5rem;
  text-align: left;
  position: relative;
  z-index: 20;
}

@media (max-width: 768px) {
  .section-heading-container .section-heading {
    font-size: 25px; 
    letter-spacing: -1px; 
    line-height: 1.2; 
  }
  
  .section-heading-container {
    margin: 60px 0;
    padding: 0 1.5rem; 
  }
}

@media (max-width: 480px) {
  .section-heading-container {
    margin: 45px 0;
  }
}

/* ========================================================================== 
   AGENCY CALLOUT SECTION
========================================================================== */
.agency-callout {
  background-color: #0a0a0a;
  padding: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  max-width: 800px;
  margin: 90px auto 90px auto;
}

.agency-callout-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agency-callout-icon img {
  display: block;
  height: 45%;
  width: 75px;
}

.agency-callout-text {
  font-size: 1.1rem;
  line-height: 1.4;
}

.agency-callout-cta {
  flex-shrink: 0;
}

.agency-callout-cta svg {
  margin-left: 5px;
  vertical-align: middle;
}

/* Mobile styles for agency callout */
@media (max-width: 768px) {
  .agency-callout {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin: 60px auto 60px auto;
  }
  
  .agency-callout-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .agency-callout {
    margin: 45px auto 45px auto;
  }
}

/* --- Desktop (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .wrapper,
  .section-heading-container,
  .agency-callout,
  .hero-section {
    max-width: 1000px;
  }
}

/* ==========================================================================
      iOS SPECIFIC FIXES
========================================================================== */
@supports (-webkit-touch-callout:none) {
  /* Reset problematic height values for iOS */
  .hero-container,
  .video-container,
  .container,
  .faq-section,
  .agency-callout {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
  
  /* Fix for iOS Safari sticky positioning */
  body {
    min-height: 100vh;
  }
  
  /* Force proper spacing and stacking for iOS */
  .hero-container {
    position: relative;
    margin-bottom: 90px !important;
    z-index: 1;
    transform: translate3d(0,0,0); /* Create new stacking context */
  }
  
  .video-container {
    position: relative;
    z-index: 2;
    margin-top: 0; /* Don't add extra margin */
    margin-bottom: 90px !important;
    /* Force proper rendering on iOS */
    transform: translate3d(0,0,0);
    clear: both;
  }
  
  /* Fix for container and cards */
  .container {
    position: relative;
    z-index: 3;
    margin-top: 60px !important;
    margin-bottom: 90px !important;
    transform: translate3d(0,0,0);
    clear: both;
  }
  
  #cards {
    position: relative;
    z-index: 3;
    transform: translate3d(0,0,0);
  }
  
  .card {
    position: relative !important; /* Override any sticky positioning */
    margin-bottom: 30px !important;
    transform: translate3d(0,0,0);
  }
  
  /* Fix for FAQ section */
  .faq-section {
    position: relative;
    z-index: 4;
    margin-top: 60px !important;
    margin-bottom: 90px !important;
    transform: translate3d(0,0,0);
    clear: both;
  }
  
  /* Fix for agency callout */
  .agency-callout {
    position: relative;
    z-index: 5;
    margin-top: 60px !important;
    margin-bottom: 60px !important;
    transform: translate3d(0,0,0);
    clear: both;
  }
  
  /* Ensure testimonial displays correctly */
  .testimonial {
    position: absolute !important;
    z-index: 10 !important;
    transform: translate3d(0,0,0); /* Create new stacking context */
  }
  
  /* Fix for iOS momentum scrolling */
  .wrapper {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Force proper display mode for all containers */
  .section-heading-container {
    position: relative;
    z-index: 3;
    transform: translate3d(0,0,0);
  }
}

/* ==========================================================================
      MEDIA QUERIES
========================================================================== */
@media (min-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image img {
    max-height: none; /* Remove the 300px constraint */
  }
  .police-light-effect {
    width: 30%;
    height: 30%;
    opacity: 0.6;
  }
}

/* --- Tablet and up (min-width: 768px) --- */
@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
    padding: 4rem 3rem;
    text-align: left;
  }

  .hero-text {
    flex: 1;
    order: 0;
    max-width: 60%;
  }

  .hero-image {
    flex: 1;
    order: 0;
  }

  .intro {
    flex-direction: row;
    align-items: flex-start;
  }

  .intro-image {
    flex: 1;
    max-width: 45%;
  }
}
