  /* ----- RESET & BASE (RED/WHITE/BLACK THEME) ----- */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --red: #DC2626;
    --red-dark: #B91C1C;
    --red-soft: #FEE2E2;
    --black: #111827;
    --black-light: #1F2937;
    --gray-dark: #374151;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
  }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
  }

  ::selection {
    background: var(--red-soft);
    color: var(--red-dark);
  }

  /* ----- TYPOGRAPHY & LINKS ----- */
  h1, h2, h3, h4, .logo-text, .nav-links a, .btn-primary, .btn-ghost {
    letter-spacing: -0.01em;
  }

  a {
    text-decoration: none;
    transition: all 0.2s ease;
  }

  /* ----- NAVIGATION (WHITE BACKGROUND, RED ACCENT) ----- */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent;
    backdrop-filter: blur(3px);
    border-bottom: 1px solid var(--red-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: all 0.2s;
  }
  nav.scrolled {
    padding: 10px 48px;
    box-shadow: var(--shadow-sm);
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  /* Logo image placeholder — replace src with your actual logo */
  .logo-img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
  }
  /* fallback if no image */
  .logo-placeholder {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--black);
  }
  .nav-links {
    margin-left: 550px;
    right: 200;
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-dark);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.2s;
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--red);
  }
  .nav-links a.active::after, .nav-links a:hover::after {
    width: 100%;
  }
  .nav-cta {
    background: var(--red);
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
  }
  .nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  }
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-dark);
    border-radius: 2px;
    transition: all 0.2s;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--red);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--red);
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.98);
  }
  .mobile-nav-logo {
  display: none; /* Hidden by default */
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
  }
  .mobile-menu a:hover {
    color: var(--red);
  }
  .mobile-menu .mcta {
    font-size: 1rem;
    background: var(--red);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  /* ----- HERO SECTION (WHITE BACKGROUND, RED ACCENTS) ----- */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
    padding: 120px 48px 80px;
    overflow: hidden;
  }
  #lidarCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
  }
  .hero-inner {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-content {
    max-width: 700px;
  }
  .hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--red);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .hero-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--red);
  }
  .hero-h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 1.5rem;
  }
  .hero-h1 .accent {
    color: var(--red);
    display: block;
  }
  .hero-sub {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    max-width: 520px;
    margin: 1.5rem 0 2rem;
  }
  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .btn-primary {
    background: var(--red);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220,38,38,0.25);
  }
  .btn-ghost {
    background: var(--white);
    border: 1.5px solid var(--gray-light);
    color: var(--black);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 500;
  }
  .btn-ghost:hover {
    background: var(grey-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100,100,100,0.4);
  }
  .hero-stats {
    position: absolute;
    bottom: 40px;
    right: 48px;
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 1.0); /* Increased opacity for clarity */
    backdrop-filter: blur(100px);
    padding: 12px 28px;
    border-radius: 60px;
    border: 1px solid var(--gray-light);
    z-index: 20; 
    isolation: isolate;
  }
  .stat-item {
    text-align: right;
  }
  .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
  }
  .stat-num .suf {
    color: var(--red);
    font-size: 1.2rem;
  }
  .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.05em;
  }
  /* The Background Logo Container */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%; /* Keeps it off-center to the right */
  transform: translateY(-50%);
  width: 650px;
  height: 650px;
  pointer-events: none;
  z-index: 3;
  opacity: 1.0;/* Watermark effect */
}

.hero-bg-logo img {
  width: 100%;
  height: 100%;
  /* This mimics background-size: contain */
  object-fit: contain; 
  /* Optional: keeps the logo monochromatic */
  border-radius: 50px;
}

.hero {
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* adjust depending on vibe */
  z-index: 1;
}

  /* ----- SECTION GLOBAL ----- */
  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
  }
  .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .section-label::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--red);
  }
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .section-desc {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    line-height: 1.6;
  }

  /* ----- SERVICES (2x2 GRID on desktop, 1x on mobile) ----- */
  .services {
    padding: 80px 0;
    background: var(--bg-light);
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
  }
  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  }
  .service-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.25s;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
  .service-card:hover {
  transform: translateY(-4px);
  /* format: offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 0 0 20px 3px rgba(255, 0, 0, 0.2); 
  border-color: var(--red-soft);
}
  .card-icon {
    width: 56px;
    height: 56px;
    background: var(--red-soft);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--red);
  }
  .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }
  .card-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  .feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
  }
  .feature-list li {
    font-size: 0.85rem;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
  }
  .feature-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--red);
  }
  .card-link {
    background: none;
    border: none;
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: gap 0.2s;
  }
  .card-link:hover {
    gap: 10px;
  }

  /* ----- IMPACT METRICS ----- */
  .impact {
    scroll-margin-top: 140px;
    position: relative;   /* This is the anchor for the video */
    z-index: 5;          /* Ensures it stays above the home section if they overlap */
    padding: 80px 0;
    background: var(--white);
  }
  .metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: var(--bg-light);
    border-radius: 32px;
    padding: 3rem 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-light);
  }
  .metric-item {
    text-align: center;
  }
  .metric-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--black);
  }
  .metric-val .suf {
    color: var(--red);
    font-size: 1.6rem;
  }
  .metric-lbl {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-weight: 500;
  }
  .impact-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.impact-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(218, 223, 225, 0.8); /* adjust opacity for desired effect */
  z-index: 1;
}
.impact-inner {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    
  }
  /* ----- PARTNERS ----- */
  .partners {
    padding: 80px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
  }
  .logo-cloud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
  }
  .logo-cell {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
  }
  .logo-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
  }
  .logo-ph-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
  }

  /* ----- CONTACT SECTION (NO FORM, ONLY DETAILS) ----- */
  .contact {
    padding: 80px 0;
    background: var(--white);
  }
  
  .contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 1.2rem;
    line-height: 1.2;
  }
  .contact-info h2 span {
    color: var(--red);
  }
  .contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
  }
  .detail-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .detail-icon {
    width: 46px;
    height: 46px;
    background: var(--red-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.4rem;
  }
  .detail-text h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
    margin-bottom: 0.3rem;
  }
  .detail-text p, .detail-text a {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .detail-text a:hover {
    color: var(--red);
  }
  .contact-card {
    background: var(--bg-light);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    height: fit-content;
  }
  .contact-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .contact-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
  }
  .direct-line {
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
  }
  .direct-line .detail-row {
    margin-bottom: 1rem;
  }

  /* ----- MODAL (RED THEME) ----- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .modal-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .modal {
    background: white;
    max-width: 700px;
    width: 90%;
    border-radius: 32px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(0.97);
    transition: transform 0.2s;
  }
  .modal-overlay.open .modal {
    transform: scale(1);
  }
  .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .modal-badge {
    font-size: 0.7rem;
    color: var(--red);
    background: var(--red-soft);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
  }
  .modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.5rem 0;
  }
  .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
  }
  .modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  .modal-feat {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 20px;
  }
  .modal-feat strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--black);
  }
  .modal-cta-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  .modal-cta-btn:hover {
    background: var(--red-dark);
  }

  /* ----- TOAST ----- */
  #toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--black);
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s;
    pointer-events: none;
  }
  #toast.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* ----- FOOTER ----- */
  footer {
    background: var(--bg-light);
    padding-top: 2rem;
    padding-right: 48px;
    padding-bottom: 2rem;
    padding-left: 48px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-copy {
    font-size: 0.8rem;
    color: var(--gray);
  }
  .footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .footer-links a {
    font-size: 0.8rem;
    color: var(--gray);
    cursor: pointer;
  }
  .footer-links a:hover {
    color: var(--red);
  }

  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 900px) {
    nav { padding: 12px 24px; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 100px 24px 150px; }
    .hero-stats { position: static; margin-top: 2rem; justify-content: center; width: fit-content; }
    .section-inner { padding: 0 24px; }
    
    .metrics-strip { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .modal-grid { grid-template-columns: 1fr; }
  }
    @media (max-width: 900px) {
  .hero {
    /* Reduce this number to pull the logo higher up */
    padding-top: 100px !important; 
    /* Ensure the container doesn't force extra space */
    min-height: auto !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-inner {
    padding-top: 0 !important;
    text-align: center;
  }

  .hero-bg-logo {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    /* Increase width so it's not "too small" */
    width: 350px !important; 
    height: auto !important;
    margin: 0 auto 1rem auto !important;
    opacity: 1 !important;
    display: block !important;
  }
  .hero-content {
    grid-row: 2; /* Force Text to be SECOND */
  }
}
  @media (max-width: 500px) {
    .metrics-strip { grid-template-columns: 1fr; }
  }

/* Hide logo on desktop */
.nav-logo {
  display: none;
}

/* Show logo only on mobile */
@media (max-width: 768px) {
  .nav-logo {
    display: block;       /* ← was flex, img tags need block */
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: 0 auto 24px;  /* centers it + adds space below */
  }
  

  .logo-img {
    height: 36px;      /* adjust to taste */
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }

  /* Optional: if using text fallback */
  .logo-placeholder {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--black);
  
  }
  /* Prevent logo item from being styled like a nav link */
.nav-logo-item {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .nav-logo-item {
    width: 100%;          /* full row so logo can center */
    text-align: center;
    margin-bottom: 16px;
  }
}}
@media (max-width: 900px) {
  .mobile-menu {
    /* Change justify-content from center to flex-start to push items to the top */
    justify-content: flex-start !important; 
    padding-top: 80px; /* Gives space for the logo at the top */
  }

  .mobile-nav-logo {
    display: block;      /* Show only on mobile */
    height: 110px;        /* Adjust size as needed */
    width: auto;
    margin-bottom: 30px; /* Space between logo and 'Home' link */
    object-fit: contain;
  }
}

/* 2. Fix your existing nav-logo conflict */
/* Your current CSS has .nav-logo { display: none; } which might be 
   affecting this. Use a specific class like .mobile-nav-logo to avoid bugs. */


