/* Global Reset and Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;

  background: #1d2c3a url('textures/transport.jpeg') no-repeat center center fixed;
  background-size: cover;

  color: #333;
  line-height: 1.6;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(30, 42, 56, 0.65) 0%,
    rgba(43, 59, 79, 0.65) 30%,
    rgba(75, 93, 112, 0.65) 50%,
    rgba(43, 59, 79, 0.65) 70%,
    rgba(30, 42, 56, 0.65) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 0 16px;            /* add horizontal breathing room */
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: visible;         /* allow dropdown to show */
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-direction: row; /* default for desktop */
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .nav-links button {
    width: 90%;
    max-width: 320px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

.nav-links button {
  background: linear-gradient(
    to bottom,
    #e6f4fb 0%,      /* highlight band */
    #b2d7f0 25%,     /* lighter blue */
    #7eb7d9 50%,     /* mid blue */
    #4b7ca2 75%,     /* darker base */
    #3a627c 100%     /* bottom depth */
  );
  border: 2px solid #7db0d6;
  color: #fff;
  padding: 6px 16px;
  border-radius: 26px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 3px 6px rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.nav-links button:hover {
  background: linear-gradient(
    to bottom,
    #f2fbff 0%,
    #c9e6f7 25%,
    #8ac3e4 55%,
    #4a7b9f 90%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.8);
}

.nav-links button:active {
  background: linear-gradient(
    to bottom,
    #4a7b9f 0%,
    #8ac3e4 100%
  );
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.6);
}


header {
  background-color: #1e2a38;
  color: #fff;
  padding: 48px 16px 3px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 40px;
  margin: 0;
}

header p {
  font-size: 19px;
  margin-top: 8px;
}

/* Hero section wrapper */
.hero {
  text-align: center;
  padding: 48px 16px 32px;
  background-color: #1e2a38;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Why LARO teaser section */

/* Ensure CTA link button alignment */
.cta-center {
  display: flex;
  justify-content: center;
}

/* Style the CTA - Driver card downloader - Early access - like navbar buttons */
.cta-button {
  background: linear-gradient(
    to bottom,
    #e6f4fb 0%,
    #b2d7f0 25%,
    #7eb7d9 50%,
    #4b7ca2 75%,
    #3a627c 100%
  );
  border: 2px solid #7db0d6;
  color: #fff;
  padding: 10px 19px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), 0 3px 6px rgba(0,0,0,.7);
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
  transition: all .2s ease;
  cursor: pointer;
  display: inline-block;
  /* shape: keep your inline style="border-radius:8px" for rectangle */
}

.cta-button:hover {
  background: linear-gradient(
    to bottom,
    #f2fbff 0%,
    #c9e6f7 25%,
    #8ac3e4 55%,
    #4a7b9f 90%
  );
  transform: translateY(-1px);
  box-shadow: inset 0 1px 3px rgba(255,255,255,.8), 0 4px 12px rgba(0,0,0,.8);
}

.cta-button:active {
  background: linear-gradient(to bottom, #4a7b9f 0%, #8ac3e4 100%);
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.6);
}

.cta-group {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-green {
  background: linear-gradient(
    to bottom,
    #d8f5da 0%,    /* subtle highlight */
    #9fe5a2 20%,   /* lighter green band */
    #66c86b 50%,   /* strong mid green */
    #4da853 80%,   /* darker accent */
    #7fd482 100%   /* soft fade */
  );
  color: #fff;
  border: 2px solid #66c86b;
  border-radius: 30px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.btn-green:hover {
  background: linear-gradient(
    to bottom,
    #ecffee 0%,
    #b5f0b8 25%,
    #5fbd64 60%,
    #3f9247 100%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(0, 0, 0, 0.8);
}

.btn-green:active {
  background: linear-gradient(
    to bottom,
    #4da853 0%,
    #3c7f41 100%
  );
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-silver {
  background: linear-gradient(
    to bottom,
    #f5f5f5 0%,     /* bright highlight */
    #e0e0e0 20%,    /* light silver */
    #c0c0c0 50%,    /* mid silver */
    #a9a9a9 80%,    /* darker silver */
    #dcdcdc 100%    /* soft fade at bottom */
  );
  color: #1e2a38;
  border: 2px solid #c0c0c0;
  border-radius: 30px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6); /* shinier text */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.btn-silver:hover {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e8e8e8 25%,
    #b0b0b0 60%,
    #8c8c8c 100%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(0, 0, 0, 0.8);
}

.btn-silver:active {
  background: linear-gradient(
    to bottom,
    #a9a9a9 0%,
    #7a7a7a 100%
  );
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

.section {
  padding: 48px 16px;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  font-size: 29px;
  margin-bottom: 13px;
  color: #1e2a38;
  padding-left: 10px; /* Optional: remove this too if not needed */
  border-left: none;
}


ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 19px 0;
  font-size: 17px;
  padding-left: 16px;
  position: relative;
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1px 16px;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  color: #aaa;
  background: linear-gradient(
    to top,
    rgba(30, 42, 56, 0.75) 0%,
    rgba(43, 59, 79, 0.75) 30%,
    rgba(75, 93, 112, 0.75) 50%,
    rgba(43, 59, 79, 0.75) 70%,
    rgba(30, 42, 56, 0.75) 100%
  );
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.5s;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}


footer:hover {
  background: rgba(30, 42, 56, 0.95);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Padding to prevent content from being hidden under footer */
body {
  padding-bottom: 64px;
}

.footer-marquee {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-block;
  animation: scroll-left 45s linear infinite;
  transform: translateX(100%);
  animation-delay: 0s;
  font-size: 14px;        /* slightly larger text */
  color: #f0f0f0;           /* much lighter text */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* subtle lift for contrast */
  line-height: 16px;         /* more vertical height */
  padding: 2px 0;         /* vertical breathing room */
}
.footer-copy {
  font-size: 14px;
  color: #f0f0f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding-top: 1px;
  line-height: 16px;
}

@keyframes scroll-left {
  0%   { transform: translateX(10%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 29px;
  }

  .cta-btn,
  .nav-links button {
    font-size: 14px;
    padding: 6px 14px;
  }

  .section {
    padding: 32px 16px;
  }

  .section h2 {
    font-size: 22px;
    padding-left: 6px;
    border-left-width: 4px;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .navbar {
    height: auto;
    padding: 8px 0;
  }

  .nav-links button {
    width: 90%;
    max-width: 300px;
  }
}

.nav-toggle {
  display: none;
  font-size: 29px;
  cursor: pointer;
  color: white;
  text-align: right;
  padding: 3px 16px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(30, 42, 56, 0.95);
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-links button {
    margin: 8px 0;
    width: 90%;
  }
}

/* —— MOBILE HAMBURGER MENU —— */
.nav-toggle {
  display: none;
  font-size: 29px;
  cursor: pointer;
  color: #fff;
  padding: 5px;
  position: absolute;
  top: 13px;
  right: 16px;
  z-index: 1001;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px; /* match your navbar height */
    left: 0; right: 0;
    background: rgba(30,42,56,0.95);
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links button {
    width: 90%;
    max-width: 320px;
  }

  /* push your header down if needed */
  header { margin-top: 56px; }
}
@media (max-width: 768px) {
  .navbar {
    justify-content: center !important;
  }
}
/* ——— MOBILE NAVBAR OVERLAY FIX ——— */
@media (max-width: 768px) {
  /* Navbar setup */
  .navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    height: 56px !important;
    background: linear-gradient(
      to bottom,
		rgba(30, 42, 56, 0.65) 0%,
		rgba(43, 59, 79, 0.65) 30%,
		rgba(75, 93, 112, 0.65) 50%,
		rgba(43, 59, 79, 0.65) 70%,
		rgba(30, 42, 56, 0.65) 100%
    ) !important;
    display: flex !important;
    align-items: center !important;      /* vertical center */
    justify-content: space-between !important; /* toggle on right */
    padding: 0 !important;
    z-index: 1000 !important;
    overflow: visible !important;
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);

  }

  /* Remove gap above header */
  header {
    margin-top: 0 !important;
  }

  /* Page content sits under navbar on desktop, but flush on mobile */
  body {
    padding-top: 0 !important;
	padding-bottom: 128px;
  }
	
  /* Hamburger toggle */
 .nav-toggle {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  font-size: 35px !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  z-index: 1001 !important;
}


  /* Dropdown menu */
  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 56px !important;
    left: 0; right: 0;
    flex-direction: column !important;
    align-items: center !important;
    background: rgba(30, 42, 56, 0.95) !important;
    padding: 3px 0 !important;
    gap: 3px !important;
    z-index: 999 !important;
	padding-top: 56px !important;  /* Push menu items below toggle */
  }
  .nav-links button {
    width: 90% !important;
    max-width: 320px !important;
  }
}
.nav-links {
  padding: 0 !important;
}

.nav-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links button {
  margin: 3px 0 !important;        /* tight vertical spacing */
  padding: 6px 16px !important;     /* minimal height, good touch target */
  font-size: 15px !important;
  line-height: 1.2 !important;
}
.section#contact {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: rgba(15, 32, 55, 0.88); /* navy blue with transparency - for service cards*/
  border: 1px solid #2f3e4f;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  color: #ffffff;
}

.card h3 {
  margin-bottom: 13px;
  font-size: 20px;
}
.card p, .card ul {
  margin: 0;
  font-size: 17px;
}
.card ul {
  padding-left: 19px;
}

/* Enhanced glass style for homepage sections */
#services,
#why-laro,
#team,
#dashboard {
  background: rgba(255, 255, 255, 0.05); /* highly transparent */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  margin: 40px auto;
  max-width: 960px;
  text-align: center;
}

#services:hover,
#why-laro:hover,
#team:hover,
#dashboard:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.1); /* reinforced presence */
  border: 1px solid #fdeef2; /* light pink blush*/
}

.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.tile-link:hover {
  transform: scale(1.05) translateY(-4px);
}

.tile-link:hover #dashboard {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45),
              0 8px 16px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #fdeef2;
}

.icon-inline {
  height: 64px;
  width: 64px;
  vertical-align: middle;
  margin: 0 8px;
}


    .hero .tagline {
      font-size: 18px;
      margin-top: 12px;
      color: #ccc;
      font-style: italic;
      animation: fadeIn 1.5s ease-out;
    }
    .cta-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .quote-banner {
      background: #fff8e1;
      padding: 16px;
      text-align: center;
      font-style: italic;
      color: #333;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    .trust-strip {
      background: #f0f0f0;
      text-align: center;
      padding: 8px;
      font-size: 14px;
      color: #555;
      border-top: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
   
    .sovereign-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px;
      margin-top: 32px;
    }

    .sovereign-tile {
      background: #1e2a38;
      border: 1px solid #2f3e4f;
      padding: 24px;
      border-radius: 16px;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
      color: #ffffff;
      flex: 1 1 300px;
      max-width: 420px;
      transition: flex-basis 0.4s ease, transform 0.4s ease;
    }

    .sovereign-tile:hover {
      flex-basis: 66%;
      transform: scale(1.05);
      z-index: 1;
    }

.text-panel {
  background: rgba(0, 0, 0, 0.30); /* translucent dark */
  backdrop-filter: blur(6px);      /* subtle glass effect */
  padding: 20px 28px;
  border-radius: 8px;
  color: #fff;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 768px) {
  .text-panel {
    max-width: 100%;
    margin: 0 10px;   /* small side gap */
    padding: 16px 18px;
  }
}
.dark-panel {
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(6px);
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid #ffffff; /* thin white border */
  color: #fff;
  line-height: 1.6;
  max-width: 960px;
  margin: 40px auto;
  text-align: left;
  box-shadow: 0 10px 24px rgba(8,15,25,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dark-panel:hover {
  transform: scale(1.10) translateY(-2px);
  box-shadow: 0 16px 42px rgba(10,20,30,0.25);
}
.dark-panel h2, 
.dark-panel h3 {
  color: #ffffff;       /* pure white */
  text-shadow: 0 1px 3px rgba(0,0,0,0.6); /* lift for contrast */
}
#services.dark-panel,
#why-laro.dark-panel,
#team.dark-panel,
#dashboard.dark-panel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #fff;
  color: #fff;
}
#contact-box {
  max-width: 600px;
  margin: 64px auto;
  text-align: center;
}

#contact-box .contact-info {
  font-size: 40px;   /* larger text */
  line-height: 1.8;  /* more breathing room */
  font-weight: 500;
}

#contact-box a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

#contact-box a:hover {
  color: #b3d6f0;
  text-decoration: underline;
}
.contact-page {
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
  min-height: calc(100vh - 120px); /* leave room for navbar/header */
}

/* Mobile-only fixes for contact page (desktop unaffected) */
@media (max-width: 768px){
  .contact-page{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height: calc(100vh - 220px);
    padding:16px;
  }
  #contact-box{
    width: 92vw;
    padding:16px;
    text-align:center;
  }
  #contact-box .contact-info{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    font-size:16px;
    line-height:1.5;
  }
  #contact-box a{ word-break: break-word; }
  #contact-box img{ width:min(75vw,240px); height:auto; }
}

/* === Global mobile optimisations (desktop unaffected) === */
@media (max-width: 768px){

  /* === TYPOGRAPHY (all pages) === */
  body{ font-size:16px; line-height:1.5; }
  h1{ font-size: clamp(24px, 6vw, 32px); }
  h2{ font-size: clamp(20px, 5.2vw, 28px); }
  h3{ font-size: clamp(18px, 4.6vw, 24px); }

  /* === NAVIGATION (all pages: index, services, why-us, dashboard, labs, contact) === */
  .navbar{ padding:8px 0; }
  .nav-links{ gap:6px; }
  .nav-links button{
    width:92vw; max-width:420px;
    padding:10px 14px;
    font-size:16px;
  }

  /* === PANELS (index.html, services.html, why-us.html, dashboard.html, contact.html) === */
  .dark-panel{ margin:16px auto; padding:16px; }

  /* === SERVICE CARDS (services.html) === */
  .card{ padding:16px; }
  .card-grid{ grid-template-columns: 1fr !important; gap:12px; }

  /* === CALL-TO-ACTION BUTTONS (index.html, get-started.html) === */
  .cta-group{
    display:flex; flex-direction:column; align-items:stretch; gap:10px;
  }
  .cta-btn{ width:100%; }

  /* === IMAGES & MEDIA (all pages with images/videos) === */
  img, video{ max-width:100%; height:auto; }

  /* === HERO BANNER (index.html) === */
  .hero{ min-height:48vh; }
  .hero .tagline{ font-size: clamp(16px, 4.5vw, 20px); }

  /* === FOOTER (all pages) === */
  footer .footer-marquee, footer .footer-copy{
    font-size:12px; padding:8px 12px;
  }

  /* === PERFORMANCE FIX (all pages, iOS scroll) === */
  body{ background-attachment: scroll; }
}
/* Firefox-specific styling */
@-moz-document url-prefix() {
  html { 
    scrollbar-width: thin; 
    scrollbar-color: #7db0d6 #1e2a38; 
  }
  .dark-panel, .navbar { 
    -moz-backdrop-filter: blur(6px); 
  }
}

.flagship-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@keyframes skybreath {
  0%   { background-color: rgba(20, 32, 48, 0.9); }   /* deep navy */
  50%  { background-color: rgba(45, 65, 95, 0.85); }  /* medium navy */
  100% { background-color: rgba(20, 32, 48, 0.9); }   /* back to deep navy */
}

@keyframes borderglow {
  0%   { border-color: #c0c0c0; box-shadow: 0 0 12px rgba(192,192,192,0.4); }  /* silver */
  50%  { border-color: #ffd700; box-shadow: 0 0 24px rgba(255,215,0,0.8); }    /* gold */
  100% { border-color: #c0c0c0; box-shadow: 0 0 12px rgba(192,192,192,0.4); }
}

.flagship-card {
  max-width: 700px;
  flex: 1;
  background: rgba(30,42,56,0.85);
  border: 3px solid #c0c0c0;
  border-radius: 14px;
  text-align: center;
  color: #f0f0f0;
  padding: 1.5rem;
  position: relative;
  animation: skybreath 16s ease-in-out infinite,   /* very slow background */
             borderglow 8s ease-in-out infinite;   /* slower glowing border */
}

.flagship-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #C9A100, #B8860B);
  color: #1b1b1b;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 12px rgba(255,215,0,0.35);
}


.flagship-card h3 {
  color: #f0f0f0;
  margin-top: 0.5rem;
}

.flagship-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #B8860B); /* metallic gold */
  color: #222;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.pill-gold {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: linear-gradient(135deg,#FFD700,#B8860B);
  color: #222; font-weight: 700; font-size: 0.9em;
}
.visually-hidden {
  position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden;
}
/* Slightly stronger glass for readability in early-access panel only */
#early-access { background: rgba(30,42,56,0.72); color:#e9f3fb; }

/* Mobile & big-phone stack */
@media (max-width:1024px), (hover:none) and (pointer:coarse) {
  #early-access form { flex-wrap: wrap; }
  #early-access form input[type="email"],
  #early-access form button { flex: 1 1 100%; width: 100%; }
}

/* Glassy trust strip */
.trust-strip{
  position: relative;
  padding: 10px 16px;
  text-align: center;
  color: #eaf3fb;

  /* navy-tinted glass */
  background: linear-gradient(180deg, rgba(26,42,58,0.42), rgba(26,42,58,0.28));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    0 10px 28px rgba(0,0,0,0.35);

  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
}

/* crisper edges */
.trust-strip::before,
.trust-strip::after{
  content:"";
  position:absolute; left:0; right:0; height:1px;
}
.trust-strip::before{ top:-1px;    background: rgba(255,255,255,0.20); }
.trust-strip::after { bottom:-1px; background: rgba(0,0,0,0.35); }

/* Thin, glassy, concave Quote bar (ticker)*/
.quote-ticker{
  position: relative;
  overflow: hidden;
  padding: 6px 0;                     /* thin */
  color: #eaf3fb;
  background: linear-gradient(180deg, rgba(26,42,58,0.50), rgba(26,42,58,0.32));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 10px 10px 18px rgba(0,0,0,0.35),      /* concave depth */
    inset -10px -10px 18px rgba(255,255,255,0.06),
    0 8px 18px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* Marquee track */
.qt-track{
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: qt-scroll 40s linear infinite;     /* slow left scroll */
}
.quote-ticker:hover .qt-track{ animation-play-state: paused; } /* pause on hover */

.qt-track span{ margin: 0 1.5rem; opacity: .96; }

/* Seamless loop (content duplicated in HTML) */
@keyframes qt-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile fix — icon on top, centered */
@media (max-width: 600px) {
  .benefit-list li {
    text-align: center;
  }
  .icon-inline {
    display: block;
    margin: 0 auto 8px auto;
    height: 40px; /* make it larger on mobile */
  }
}

@media (max-width: 600px) {
  #Card-downloader form {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #Card-downloader input,
  #Card-downloader button {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
    margin: 4px 0;
    box-sizing: border-box;
  }
}

/* --- Navbar: FREE → TOOLS flash --- */
.nav-links li button[onclick*="TOOLS.html"] {
  position:relative;
  overflow:hidden;
  color:transparent;
  text-shadow:none !important;
}
.nav-links li button[onclick*="TOOLS.html"]::before,
.nav-links li button[onclick*="TOOLS.html"]::after {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  z-index:1;
  color:#fff;
  text-shadow:none;
}
.nav-links li button[onclick*="TOOLS.html"]::before {
  content:"FREE";
  font-weight:300;
  letter-spacing:1.5px;
  animation:cycleFree 2s linear infinite;
}
.nav-links li button[onclick*="TOOLS.html"]::after {
  content:"TOOLS";
  animation:cycleTools 2s linear infinite;
}
@keyframes cycleFree { 0%,16.5%{opacity:1} 17%,100%{opacity:0} }
@keyframes cycleTools { 0%,16.5%{opacity:0} 17%,100%{opacity:1} }
@media (prefers-reduced-motion:reduce){
  .nav-links li button[onclick*="TOOLS.html"]::before {display:none}
  .nav-links li button[onclick*="TOOLS.html"]::after {opacity:1;animation:none}
}

/* --- TOOLS page wrappers --- */
.tools-wrap {
  max-width:1200px;
  margin:1.5rem auto;
  padding:0 1rem;
}

/* Fraction bar (Height Converter) */
.fraction-bar {
  display: flex;
  flex-direction: column-reverse; /* fill from bottom up */
  width: 14px;
  height: 120px;
  gap: 2px;
}
.fraction-cell {
  flex: 1;
  border-radius: 2px;
  background: #e0e0e0; /* empty = light grey */
}
.fraction-cell.full {
  background: #4caf50; /* full = green */
}
/* === TOOLS: Height Converter styles === */
.tool-panel{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  padding: 16px;
  color: #fff;
}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:.5rem 0}
.field{
  display:flex;align-items:center;gap:6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 8px 10px;
}
.field input{
  width:8ch;min-width:6ch;
  background:transparent;border:none;outline:none;color:#fff;
  text-align:right;font-weight:600;
}
.btn{
  padding:8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  color:#fff; cursor:pointer; font-weight:600;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.4);
}
.btn:hover{ transform: translateY(-1px); }
.hr{height:1px;background:rgba(255,255,255,0.18);margin:.75rem 0}
.tools-muted{opacity:.85}

/* === TOOLS: Height Converter split layout === */
.tool-split{
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  align-items: start;
}
.v-sep{
  width:1px;
  background: rgba(255,255,255,0.18);
  min-height: 72px;
  align-self: stretch;
}
.col-left{ text-align:left; }
.col-right{ text-align:right; }

.row-right{
  justify-content: flex-end;
}
.row-center{
  justify-content: center;
}

/* Fraction cluster on the right */
.fraction-wrap{
  align-items: flex-end;
  gap: 8px;
}
.fraction-meta{
  opacity: .85;
  font-size: .95rem;
  margin-right: 6px;
}
.fraction-stack{
  display:flex;
  align-items:flex-end;
  gap:8px;
}
.tools-tip{
  text-align:center;
  opacity:.9;
}

/* Mobile: stack columns, remove vertical divider */
@media (max-width: 767px){
  .tool-split{
    display:block;
  }
  .v-sep{ display:none; }
  .col-right{ text-align:left; }
  .row-right{ justify-content:flex-start; }
}

/* === MOBILE NAV: force overlay below the bar === */
@media (max-width: 768px){
  /* Place the burger on the right; keep it above the overlay */
  .nav-toggle{
    position:absolute !important;
    top:10px !important;
    right:12px !important;
    left:auto !important;
    transform:none !important;
    z-index:10001 !important;
  }

  /* Make the dropdown a fixed overlay (not inside .navbar) */
  .nav-links{
    display:none !important;
    position:fixed !important;
    top:56px !important;          /* match your navbar height */
    left:0; right:0;
    max-height:calc(100vh - 56px);
    overflow:auto;
    background:rgba(11,22,48,0.96) !important;  /* same palette */
    backdrop-filter:blur(8px) saturate(140%);
    -webkit-backdrop-filter:blur(8px) saturate(140%);
    flex-direction:column !important;
    gap:10px !important;
    padding:12px 14px !important;
    z-index:10000 !important;     /* above page content */
  }

  .nav-links.show{ display:flex !important; }

  /* Ensure items are clickable and readable on overlay */
  .nav-links li{ width:100%; }
  .nav-links li button{
    width:100%;
    text-align:left;
  }
}

/* === FINAL OVERRIDE: Mobile hamburger (wins everything above) === */
@media (max-width: 800px){
  /* Keep bar predictable */
  nav.navbar{
    position: fixed !important;
    top: 0; left: 0; right: 0;
    height: 56px !important;
    z-index: 2000 !important;
    overflow: visible !important;
  }

  /* Hamburger stays on the right */
  nav.navbar .nav-toggle{
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    left: auto !important;
    transform: none !important;
    z-index: 2002 !important;
  }

  /* The dropdown itself (UL#navMenu) as a fixed overlay under the bar */
  nav.navbar > ul#navMenu{
    display: none !important;                 /* hidden by default */
    position: fixed !important;
    top: 56px !important;                      /* exactly below bar */
    left: 0; right: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: rgba(11,22,48,0.96) !important;
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px !important;
    z-index: 2001 !important;                  /* above page, below toggle */
  }

  /* When toggled open */
  nav.navbar > ul#navMenu.show{
    display: flex !important;
  }

  /* Make the buttons full-width and tappable */
  nav.navbar > ul#navMenu li{ margin: 0 !important; }
  nav.navbar > ul#navMenu li button{
    width: 100% !important;
    text-align: left !important;
  }
}

.tools-legal {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Mobile spacing between tool cards */
@media (max-width: 768px){
  .tools-wrap{ padding:12px; }
  .tool-panel{ margin:0 0 12px 0; }
}

@media (min-width: 769px){
  .tool-panel{ margin-bottom:16px; }
}






