/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e1e5eb;
  background-color: black;
  overflow-x: hidden;
}

/* Prevent iOS text size adjustment */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ───── Top Navigation Bar ───────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 183, 255, 0.2);
  padding: 0.75rem 2rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  transition: transform 0.3s ease;
}

.top-nav.hidden-nav {
  transform: translateY(-100%);
}

.top-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(0 0 12px rgba(0, 183, 255, 0.6));
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px; /* iOS minimum tap target */
  min-width: 44px;
  text-decoration: none;
  color: #a0aec0;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  /* Improve touch response */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-item:hover {
  background: rgba(0, 183, 255, 0.1);
  color: #00b7ff;
  transform: translateY(-2px);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #00b7ff;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 70%;
}

.nav-icon {
  font-size: 1.25rem;
  display: block;
}

.nav-text {
  font-size: 0.8rem; /* Increased from 0.75rem for mobile readability */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-login {
  background: linear-gradient(135deg, #00b7ff, #0077cc);
  color: #000;
  font-weight: 600;
  margin-left: 0.5rem;
}

.nav-login .nav-icon,
.nav-login .nav-text {
  color: #000;
}

.nav-login:hover {
  background: linear-gradient(135deg, #0077cc, #00b7ff);
  box-shadow: 0 4px 12px rgba(0, 183, 255, 0.4);
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* iOS Safari dynamic viewport fix */
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Prevent iOS scroll bounce */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

.splash-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure video displays on iOS */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Splash fallback image for iOS autoplay issues */
.splash-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Utility */
.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}

/* ──────────────────────────────
   Scroll Video Section Parallax
──────────────────────────────── */
.video-section {
  position: relative;
  height: 100vh;
  height: 100dvh; /* iOS Safari dynamic viewport fix */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1px;
  transform-style: preserve-3d;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateZ(-1px) scale(2);
  z-index: 0;
  transition: opacity 1s ease;

  /* Darken video to hide AI artifacts/misspellings while keeping ambient motion */
  filter: brightness(8%) blur(2px);
}

/* Content Overlay with animations */
.overlay-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  /* Content visible by default - no JS dependency */
  opacity: 1;
  transform: translateY(0);
}

.overlay-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #00b7ff;
}

.overlay-content p {
  font-size: 1.5rem;
  color: #ffffff;
}

/* Scroll snap container */
.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  height: 100dvh; /* iOS Safari dynamic viewport fix */
  /* Smooth scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.snap-child {
  scroll-snap-align: start;
}

/* Use proximity instead of mandatory on mobile for smoother UX */
@media (max-width: 768px) {
  .snap-container {
    scroll-snap-type: y proximity;
  }
}

/* Navigation Dots */
.nav-dots {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-dots a {
  /* Outer touch target - 44px minimum for iOS */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Inner visible dot */
.nav-dots a::before {
  content: '';
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-dots a.active::before,
.nav-dots a:hover::before,
.nav-dots a:focus::before {
  background-color: #00b7ff;
  box-shadow: 0 0 10px rgba(0, 183, 255, 0.6);
}

.nav-dots a:active {
  background-color: rgba(0, 183, 255, 0.1);
}

/* Skip Intro Button */
.skip-btn {
  position: absolute;
  bottom: 30px;
  bottom: max(30px, env(safe-area-inset-bottom)); /* iOS safe area */
  right: 30px;
  right: max(30px, env(safe-area-inset-right));
  z-index: 10001;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.875rem 1.75rem;
  min-height: 48px; /* iOS minimum tap target */
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Improve visibility on video */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.skip-btn:hover,
.skip-btn:active {
  background-color: rgba(0, 183, 255, 0.3);
  border-color: #00b7ff;
  transform: scale(1.02);
}

/* Scroll Down Arrow */
.scroll-arrow {
  font-size: 2rem;
  margin-top: 2rem;
  cursor: pointer;
  animation: bounce 2s infinite;
  color: #00b7ff;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Product Grid & Demo Buttons */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.product-card {
  background: rgba(0, 183, 255, 0.1);
  border: 1px solid #00b7ff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 183, 255, 0.4);
  max-width: 300px;
  text-align: center;
}

.product-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.demo-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background-color: #00b7ff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.demo-button:hover {
  background-color: #0077cc;
}

/* About Section */
.about-us-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 768px) {
  .about-us-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.founder-photo {
  max-width: 220px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,183,255,0.4);
  border: 2px solid #00b7ff;
}

.about-right {
  flex: 1;
  padding-left: 1rem;
}

.about-title {
  font-size: 2.5rem;
  color: #00b7ff;
  margin-bottom: 1rem;
}

.about-right p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-right strong {
  font-weight: 600;
}

.about-bullets {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.about-bullets li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.about-quote {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: #ccc;
}

/* Contact Widget */
.contact-widget {
  position: fixed;
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  left: max(20px, env(safe-area-inset-left));
  z-index: 10002;
  display: none;
}

.contact-widget.visible {
  display: block;
}

.chat-icon {
  background-color: #00b7ff;
  color: white;
  border: none;
  width: 56px; /* iOS minimum tap target with padding */
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,183,255,0.5);
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-icon:hover,
.chat-icon:active {
  transform: scale(1.1);
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10003;
  width: 100%;
  height: 100%;
  height: 100dvh; /* iOS Safari fix */
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* Prevent background scroll on iOS */
  overscroll-behavior: contain;
}

.contact-modal.visible {
  display: flex;
}

.contact-content {
  background-color: #111;
  border: 2px solid #00b7ff;
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  max-height: 90dvh; /* iOS Safari fix */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: white;
}

.contact-content h2 {
  margin-bottom: 1rem;
  color: #00b7ff;
}

.contact-content input,
.contact-content textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #1c1c1c;
  color: #fff;
}

.send-btn {
  background-color: #00b7ff;
  border: none;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.send-btn:hover {
  background-color: #0077cc;
}

.close-contact {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Section 7: Pricing */
.pricing-overlay {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.pricing-title {
  font-size: 3rem;
  color: #00b7ff;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 3rem;
}

/* Pricing Teaser */
.pricing-teaser {
  background: rgba(0, 183, 255, 0.05);
  border: 1px solid rgba(0, 183, 255, 0.2);
  border-radius: 24px;
  padding: 3rem 2rem;
  backdrop-filter: blur(12px);
}

.teaser-main {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.personnel-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.range-label {
  font-size: 0.85rem;
  color: #a0aec0;
  white-space: nowrap;
}

.range-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.range-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, #00b7ff, #0077cc);
  border-radius: 999px;
  animation: slideRange 3s ease-in-out infinite;
}

@keyframes slideRange {
  0%, 100% { width: 40%; }
  50% { width: 80%; }
}

.price-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.starting-text {
  font-size: 1rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-price {
  font-size: 4rem;
  font-weight: 800;
  color: #00b7ff;
  line-height: 1;
  text-shadow: 0 0 30px rgba(0, 183, 255, 0.5);
}

.price-period {
  font-size: 1.5rem;
  color: #a0aec0;
  font-weight: 400;
}

.price-detail {
  font-size: 1rem;
  color: #ccc;
}

.teaser-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.95rem;
  color: #e1e5eb;
}

.teaser-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-primary {
  font-size: 1.25rem;
  padding: 1rem 3rem;
  box-shadow: 0 0 30px rgba(0, 183, 255, 0.4);
}

.teaser-note {
  font-size: 0.85rem;
  color: #a0aec0;
  font-style: italic;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.badge-icon {
  font-size: 2rem;
}

.badge-text {
  font-size: 0.85rem;
  color: #a0aec0;
  text-align: center;
}

/* Override Pricing layout: force single centered row */
.pricing-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;    /* will wrap on narrow screens */
  margin-top: 2rem;
}

/* Keep your existing card styling, but fix the width */
.pricing-card {
  flex: 0 0 300px;    /* each card exactly 300px wide */
  max-width: 300px;
  background-color: rgba(0, 183, 255, 0.1);
  border: 1px solid #00b7ff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0,183,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,183,255,0.6);
}

.featured {
  background-color: rgba(0, 183, 255, 0.15);
  border: 2px solid #00b7ff;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00b7ff;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.plan-desc {
  font-size: 0.95rem;      /* Fixed from 0.4rem - was unreadable! */
  color: #a0aec0;          /* slightly muted for hierarchy */
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.plan-features li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #fff;
  padding-left: 1.2rem;
  position: relative;
}

/* CTA Buttons - Oval style */
.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  min-height: 48px; /* iOS minimum tap target */
  border-radius: 999px;
  background-color: #00b7ff;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta-button:hover,
.cta-button:active {
  background-color: #0077cc;
  transform: translateY(-2px);
}

/* ─── Section 4: Integrations Icons Grid ───────────────────────────────── */
#section4 .overlay-content {
  max-width: none;
  width: 100%;
  padding: 2rem 5%;
}

#section4 .integrations-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#section4 .integration-item {
  flex: 0 0 120px;
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #00b7ff;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 183, 255, 0.2);
}

#section4 .integration-item img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(1.1);
}

#section4 .integration-item:hover {
  box-shadow: 0 0 24px rgba(0, 183, 255, 0.8);
  transform: translateY(-8px) scale(1.05);
  border-color: #fff;
}

.integrations-link {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.2), rgba(0, 119, 204, 0.2));
  border: 2px solid #00b7ff;
  border-radius: 50px;
  color: #00b7ff;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 183, 255, 0.3);
  backdrop-filter: blur(10px);
}

.integrations-link:hover {
  background: linear-gradient(135deg, #00b7ff, #0077cc);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 183, 255, 0.6);
}

/* Section 8: Testimonials */
#section8 .testimonial-layout {
  max-width: none;
  width: 100%;
  padding: 2rem 5%;
}

#section8 .testimonial-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

#section8 .testimonial-item {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #00b7ff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 800px;
  width: 100%;
}

#section8 .testimonial-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #00b7ff;
  margin-right: 1.5rem;
}

#section8 .testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#section8 .testimonial-info {
  text-align: left;
  margin-right: 1.5rem;
}

#section8 .testimonial-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00b7ff;
  margin-bottom: 0.25rem;
}

#section8 .testimonial-role {
  font-size: 1rem;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 0.75rem;
}

#section8 .testimonial-text {
  flex: 1;
  font-size: 1rem;
  font-style: italic;
  color: #e1e5eb;
  line-height: 1.6;
}

.contact-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  color: #00b7ff;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════
   HAMBURGER MENU - Mobile Navigation (Production)
   ═══════════════════════════════════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 183, 255, 0.1);
  border: 1px solid rgba(0, 183, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.hamburger-btn:active {
  background: rgba(0, 183, 255, 0.25);
  transform: scale(0.95);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #00b7ff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: 2.5px 0;
}

.hamburger-btn.active {
  background: rgba(0, 183, 255, 0.2);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 10, 20, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-nav-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #a0aec0;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 10000;
}

.mobile-nav-close:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.9);
}

.mobile-nav-menu .nav-item {
  width: 100%;
  max-width: 280px;
  padding: 1rem 1.5rem;
  margin: 0.4rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.08) 0%, rgba(0, 119, 204, 0.05) 100%);
  border: 1px solid rgba(0, 183, 255, 0.2);
  color: #e1e5eb;
  text-decoration: none;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-menu .nav-item:active {
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.2) 0%, rgba(0, 119, 204, 0.15) 100%);
  border-color: rgba(0, 183, 255, 0.4);
  transform: scale(0.98);
}

.mobile-nav-menu .nav-item.active {
  background: linear-gradient(135deg, #00b7ff, #0077cc);
  border-color: #00b7ff;
  color: #000;
  font-weight: 600;
}

/* Fix for index.html span-based nav structure */
.mobile-nav-menu .nav-item {
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}

.mobile-nav-menu .nav-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.mobile-nav-menu .nav-text {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fix login button contrast in mobile menu */
.mobile-nav-menu .nav-login {
  background: linear-gradient(135deg, #00b7ff, #0077cc);
  border-color: #00b7ff;
}

.mobile-nav-menu .nav-login .nav-icon,
.mobile-nav-menu .nav-login .nav-text {
  color: #000;
}

/* Desktop: hide hamburger */
@media only screen and (min-width: 769px) {
  .hamburger-btn,
  .mobile-nav-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ─── Responsive tweaks for tablets (max-width 768px) ───────────────── */
@media only screen and (max-width: 768px) {
  /* iOS Safari safe area support - mobile only */
  body, html {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  /* Show hamburger, hide desktop nav */
  .hamburger-btn {
    display: flex;
  }

  .nav-links-container {
    display: none;
  }

  .mobile-nav-menu {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  /* Top nav adjustments */
  .top-nav {
    padding: 0.5rem 1rem;
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }

  .nav-logo-img {
    height: 32px;
  }

  /* Video section adjustments */
  .video-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Nav dots - hide on very small screens, show on larger mobile */
  .nav-dots {
    right: 8px;
    gap: 4px;
  }

  .nav-dots a {
    width: 40px;
    height: 40px;
  }

  .nav-dots a::before {
    width: 10px;
    height: 10px;
  }

  /* Contact link tap targets */
  .contact-link {
    font-size: 1.75rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Integration items */
  #section4 .integration-item {
    flex: 0 0 90px;
    height: 90px;
  }
}

/* ─── Responsive tweaks for phones (max-width ~430px) ───────────────── */
@media only screen and (max-width: 430px) {
  /* Overlay content */
  .overlay-content {
    padding: 1rem;
    max-width: 100%;
  }
  .overlay-content h1 {
    font-size: 1.75rem;
  }
  .overlay-content p {
    font-size: 0.95rem;
  }

  /* Nav dots - smaller but still tappable */
  .nav-dots {
    right: 4px;
    gap: 2px;
  }

  .nav-dots a {
    width: 36px;
    height: 36px;
  }

  .nav-dots a::before {
    width: 8px;
    height: 8px;
  }

  /* Contact emojis - larger tap targets */
  .contact-links {
    gap: 1.5rem;
  }
  .contact-link {
    font-size: 2rem;
    padding: 0.75rem;
  }

  /* Scroll arrow */
  .scroll-arrow {
    font-size: 1.5rem;
  }

  /* Product grid → single column */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-card {
    max-width: 100%;
  }

  /* About layout → stack */
  .about-us-layout {
    flex-direction: column !important;
    padding: 0 1rem;
  }
  .about-right {
    padding-left: 0;
  }

  /* Custom application & other product-grid sections */
  #section6 .product-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing → vertical stack */
  .pricing-grid {
    flex-direction: column;
  }
  .pricing-card {
    flex: 0 0 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1.5rem;
  }

  /* Integration items - smaller on phone */
  #section4 .integration-item {
    flex: 0 0 70px;
    height: 70px;
  }

  #section4 .integrations-grid {
    gap: 1rem;
  }

  /* Skip button - better mobile placement */
  .skip-btn {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: 20px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Testimonials → vertical */
  #section8 .testimonial-grid {
    flex-direction: column;
  }
  #section8 .testimonial-item {
    flex-direction: column;
    text-align: center;
  }
  #section8 .testimonial-photo {
    margin: 0 0 1rem;
  }
  #section8 .testimonial-info {
    margin: 0 0 1rem;
    text-align: center;
  }
  #section8 .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ─── Desktop explicit rules (min-width 769px) ───────────────── */
@media only screen and (min-width: 769px) {
  .nav-links-container {
    display: flex !important;
  }

  .hamburger-btn,
  .mobile-nav-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ───── Footer Styling ───── */
.footer {
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 1px solid #00b7ff;
  padding: 2rem 1rem;
  text-align: center;
  color: #e1e5eb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  filter: brightness(1.1);
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 12px rgba(0, 183, 255, 0.4));
}

.footer-info a {
  color: #00b7ff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info a:hover {
  color: #ffffff;
}

@media only screen and (max-width: 430px) {
  .footer {
    font-size: 0.85rem;
    padding: 1.5rem 1rem;
  }

  .footer-logo-img {
    height: 60px;
  }

  .teaser-features {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-price {
    font-size: 3rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ───── FAQ Section ───────────────────────────────────────────────── */
.faq-overlay {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.faq-title {
  font-size: 3rem;
  color: #00b7ff;
  margin-bottom: 3rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background: rgba(0, 183, 255, 0.05);
  border: 1px solid rgba(0, 183, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 183, 255, 0.3);
  border-color: rgba(0, 183, 255, 0.4);
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00b7ff;
  margin-bottom: 1rem;
}

.faq-answer {
  font-size: 1rem;
  color: #e1e5eb;
  line-height: 1.6;
  margin: 0;
}

.faq-answer a {
  color: #00b7ff;
  text-decoration: none;
  transition: color 0.2s;
}

.faq-answer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* Logo Breakout “Splash” */
#logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
}

#logo-container img {
  display: block;
  max-width: 200px;  /* adjust size as needed */
  width: 100%;
  height: auto;
}

#logo-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}


