/* ── LIGHT THEME VARIABLES ── */
:root {
  --bg-main: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-alt: #F3F4F6;
  --text-main: #111827;
  --text-muted: #374151;
  --text-light: #52525B;
  --primary: #0F172A; /* Deep Professional Navy */
  --accent: #2563EB; /* Trust-building Royal Blue */
  --accent-light: rgba(37, 99, 235, 0.1);
  --border: #E5E7EB;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.06);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 70px; /* fallback — JS in navigation.js overrides with actual measured height */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Universal clearance for the fixed nav */
  padding-top: var(--nav-height);
  /* Page Transition Setup */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
body.loaded { opacity: 1; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── AUDITED & Polish Layout Classes ── */
.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-pad {
  padding: 80px 0;
}
@media (max-width: 820px) {
  .section-pad {
    padding: 48px 0;
  }
}
@media (max-width: 560px) {
  .section-pad {
    padding: 40px 0;
  }
  .wrap {
    padding: 0 20px;
  }
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}
.grid-2-sidebar {
  border-left: 1px solid var(--border);
  padding-left: 30px;
}
@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .grid-2-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 30px;
  }
}
.grid-2-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 820px) {
  .grid-2-equal {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.card:hover .card-icon {
  transform: scale(1.05) rotate(2deg);
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* ── TYPOGRAPHY ── */
.h-display { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--primary); }
.h-section { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--primary); }
.text-highlight { color: var(--accent); }
.body-lg { font-size: 18px; color: var(--text-muted); line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-weight: 600; font-size: 15px;
  border-radius: var(--radius);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #FFF; }
.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  transform: scale(1.02) translateY(-1px);
}
.btn-outline {
  background: #F3F4F6;
  color: var(--primary);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.btn-outline:hover {
  background: #E5E7EB;
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--primary);
  box-shadow: none;
  transform: scale(1.02) translateY(-1px);
}

/* ── NAVIGATION (DROPDOWN & MEGA MENU) ── */
nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 100%;
  max-width: 100%;
  height: var(--nav-height);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 32px;
  will-change: transform, top, width, max-width, border-radius, border-color, box-shadow;
}
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}
nav.scrolled {
  top: 16px;
  width: calc(100% - 32px);
  max-width: 1200px;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
}
nav.scrolled::before {
  opacity: 1;
}
.nav-inner {
  display: flex;
  flex-direction: row;         /* always horizontal — logo left, hamburger right */
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  position: relative;
  flex-wrap: nowrap;           /* never wrap onto a second line */
  height: 100%;
}

.logo { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 8px; list-style: none; align-items: stretch; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }

.nav-link-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
  text-decoration: none;
}
.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--primary);
}
.chevron-arrow {
  transition: transform 0.2s ease;
  color: var(--text-light);
}

/* Dropdown Menu Generic Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: 260px;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1), 0 8px 16px -8px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 999;
  pointer-events: none;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

/* Trigger opening on hover (desktop) */
@media (min-width: 821px) {
  .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
    pointer-events: auto;
  }
  .nav-item:hover .nav-link-btn {
    background-color: rgba(15, 23, 42, 0.05);
  }
  .nav-item:hover .chevron-arrow {
    transform: rotate(180deg);
  }
}

/* Mobile JS Open state */
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
  pointer-events: auto;
}
.nav-item.is-open .nav-link-btn {
  background-color: rgba(15, 23, 42, 0.05);
}
.nav-item.is-open .chevron-arrow {
  transform: rotate(180deg);
}

/* Standard Dropdown layout */
.standard-dropdown {
  width: 290px;
  padding: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
}
@media (min-width: 821px) {
  .nav-item:hover .standard-dropdown {
    transform: translateX(-50%) translateY(8px);
  }
}
.nav-item.is-open .standard-dropdown {
  transform: translateX(-50%) translateY(8px);
}

.dropdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropdown-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.dropdown-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background-color: #F3F4F6;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.item-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--accent);
}

.dropdown-list a:hover {
  background-color: #F8FAFC;
  color: var(--accent);
}
.dropdown-list a:hover .dropdown-icon {
  background-color: var(--accent-light);
  color: var(--accent);
}
.dropdown-list a:hover .item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Mega Menu layout */
.mega-menu {
  width: 780px;
  padding: 20px;
  left: 50%;
  transform: translateX(-40%) translateY(16px);
}
@media (min-width: 821px) {
  .nav-item:hover .mega-menu {
    transform: translateX(-40%) translateY(8px);
  }
}
.nav-item.is-open .mega-menu {
  transform: translateX(-40%) translateY(8px);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}
.mega-menu-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}
.product-item {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  align-items: center;
}
.product-item:hover {
  background-color: #F8FAFC;
}
.product-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.product-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.learn-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.learn-more svg {
  transition: transform 0.2s ease;
}
.product-item:hover .learn-more svg {
  transform: translateX(3px);
}
.product-preview-img {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  height: 80px;
}
.mega-menu-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.feature-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.feature-list a:hover {
  background-color: #F8FAFC;
  color: var(--accent);
}
.feature-list a:hover .feature-icon {
  color: var(--accent);
}
.feature-icon {
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.login-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.login-link:hover {
  color: var(--primary);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── SNAPPY INTRO SPLASH ── */
.intro-splash {
  position: fixed;
  inset: 0;
  background-color: #FAFAFA;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}

.intro-logo-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.intro-logo-svg {
  width: 80px;
  height: 80px;
}

.intro-path-outer {
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  animation: drawCSnappy 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.intro-circle-inner {
  transform: scale(0);
  transform-origin: 50px 50px;
  animation: scaleDotSnappy 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) forwards 0.1s;
}

.intro-text {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(6px);
  animation: revealTextSnappy 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.3s;
}

.intro-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes drawCSnappy {
  to { stroke-dashoffset: 0; }
}
@keyframes scaleDotSnappy {
  to { transform: scale(1); }
}
@keyframes revealTextSnappy {
  to { opacity: 1; transform: translateY(0); }
}

/* Buffer Mode (Subsequent page transitions) */
.intro-splash.buffer-mode .intro-text {
  display: none;
}
.intro-splash.buffer-mode .intro-path-outer {
  stroke-dasharray: 270;
  stroke-dashoffset: 0;
  animation: none;
}
.intro-splash.buffer-mode .intro-circle-inner {
  transform: scale(1);
  animation: none;
}
.intro-splash.buffer-mode .intro-logo-svg.spinning {
  animation: spin 1.2s linear infinite;
}
.intro-splash.buffer-mode .intro-logo-svg.aligned {
  transform: rotate(360deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── FOOTER ── */
footer {
  background: #1E293B;
  color: #94A3B8;
  padding: 80px 0 0 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul a {
  color: #94A3B8;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-col ul a:hover {
  color: #FFFFFF;
}

.footer-bottom-wrap {
  border-top: none; /* Removed the thin dividing line */
  padding: 30px 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Footer Background Animations & Watermark Styling */
.footer-bg-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
#footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}
.footer-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.08;
  mix-blend-mode: screen;
}
.footer-glow.glow-1 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%;
  left: 5%;
  animation: driftGlow1 40s ease-in-out infinite alternate;
}
.footer-glow.glow-2 {
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: -10%;
  right: 5%;
  animation: driftGlow2 50s ease-in-out infinite alternate;
}
.footer-swoops {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}
.laser-swoop {
  stroke-dasharray: 12 1800;
  stroke-dashoffset: 1812;
  animation: laserFlow 6s linear infinite;
  opacity: 0.45;
}
.laser-swoop-1 {
  animation-duration: 5s;
  animation-delay: 0s;
}
.laser-swoop-2 {
  animation-duration: 7s;
  animation-delay: 1.5s;
}
.laser-swoop-3 {
  animation-duration: 6s;
  animation-delay: 3s;
}
@keyframes laserFlow {
  0% {
    stroke-dashoffset: 1812;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.footer-watermark {
  position: relative;
  margin: 38px auto 0 auto;
  padding-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05); /* Increased opacity slightly for visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
  white-space: nowrap;
  letter-spacing: -0.05em;
  font-family: var(--font-sans);
  text-transform: uppercase; /* Watermark uppercase "CCDA" */
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0.1) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0.1) 100%);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.35s;
}
body.reveal-layout .footer-watermark {
  opacity: 1;
  transform: translateY(0);
}
.footer-watermark svg {
  width: clamp(100px, 18vw, 260px);
  height: clamp(100px, 18vw, 260px);
  flex-shrink: 0;
  color: inherit;
}
.footer-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 12px;
  line-height: 1;
}
.footer-badge-tag .badge-dot {
  width: 5px;
  height: 5px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10B981;
  animation: badgePulse 2s infinite;
}
@keyframes driftGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 60px) scale(1.15); }
  100% { transform: translate(-60px, 140px) scale(0.9); }
}
@keyframes driftGlow2 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-140px, -70px) scale(0.85); }
  100% { transform: translate(70px, -120px) scale(1.25); }
}
@keyframes badgePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.footer-copy-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: start;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}
.footer-copy {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}
.footer-social-mid {
  justify-self: center;
  display: flex;
  align-items: center;
}
.footer-legal-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-self: end;
}
.footer-legal-links a, .footer-legal-links .legal-btn, .footer-social-mid a {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-legal-links a:hover, .footer-legal-links .legal-btn:hover, .footer-social-mid a:hover {
  color: #FFFFFF;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-copy-section {
    align-items: center;
  }
  .footer-social-mid {
    justify-content: center;
  }
  .footer-legal-links {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 560px) {
  footer {
    padding-top: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .footer-copy-section {
    align-items: flex-start;
  }
  .footer-social-mid {
    justify-content: flex-start;
  }
  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    justify-content: flex-start;
  }
}



/* ── HAMBURGER BTN ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  /* On desktop the wrapper sits inline beside the logo */
}
@media (min-width: 821px) {
  .nav-menu-wrapper {
    flex-grow: 1;
    margin-left: 48px;
    height: 100%;
    align-items: stretch;
  }
  .nav-cta-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
  }
}

@media (max-width: 820px) {
  /* ─── Keep the nav bar itself always a single horizontal row ─── */
  nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0) !important;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, top, width, border-radius, border-color, box-shadow;
  }
  nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
  }
  nav.scrolled {
    top: 12px;
    width: calc(100% - 24px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  }
  nav.scrolled::before {
    opacity: 1;
  }
  .nav-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0 20px;
  }
  /* Make the logo stay fixed-height so it doesn't push the row down */
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* Show the hamburger button */
  .hamburger-btn {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;   /* push to far right if anything else is in between */
  }

  /* Slide-down mobile menu panel as a floating card */
  .nav-menu-wrapper {
    position: fixed;
    top: calc(var(--nav-height) + 20px);
    left: 12px;
    width: calc(100% - 24px);
    height: auto;
    max-height: calc(85vh - var(--nav-height));
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 998;
    overflow-y: auto;
    /* Take it completely out of normal flow */
    pointer-events: none;
  }
  .nav-menu-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 16px;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100% !important;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    margin-top: 4px;
    padding: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-item.is-open .dropdown-menu {
    display: block;
  }

  /* Mega menu mobile adjustments */
  .mega-menu {
    width: 100% !important;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mega-menu-left {
    border-right: none;
    padding-right: 0;
    gap: 8px;
  }
  .product-item {
    grid-template-columns: 1fr;
    padding: 8px;
  }
  .product-preview-img {
    display: none;
  }

  .nav-cta-wrap {
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
  .nav-cta-wrap .btn {
    width: 100%;
    display: flex;
  }

  /* ─── Content breathing room (body padding already clears the fixed nav) ─── */
  #hero { padding-top: 48px; }         /* index.html hero breathing room */
  .hero-shell { padding-top: 40px; }   /* about / process page breathing room */
  /* Inner pages – <main> inline-style spacing stays as-is (40px is generous) */
  .hero-actions { flex-direction: column; align-items: center; }
  .trust-band { padding: 30px; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── COOKIE CONSENT ── */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
}
.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-btn-wrap {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 560px) {
  .cookie-consent-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ── REVEAL LAYOUT TRANSITIONS ── */
@media (min-width: 821px) {
  .logo {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-menu-wrapper {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.15s;
  }
  body.reveal-layout .logo {
    opacity: 1;
    transform: translateX(0);
  }
  body.reveal-layout .nav-menu-wrapper {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .logo {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hamburger-btn {
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
  }
  body.reveal-layout .logo {
    opacity: 1;
    transform: translateX(0);
  }
  body.reveal-layout .hamburger-btn {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Disable transitions on page elements when intro is skipped */
.no-intro .logo,
.no-intro .nav-menu-wrapper,
.no-intro .hamburger-btn,
.no-intro .footer-watermark,
.no-intro .footer-watermark svg {
  transition: none !important;
  transition-delay: 0s !important;
  opacity: 1 !important;
  transform: none !important;
}

.no-intro #intro-splash,
.no-intro .intro-splash {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── HERO 3D WATERMARK CANVAS ── */
#hero-3d-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body.reveal-layout #hero-3d-canvas {
  opacity: 0.11;
}
.no-intro #hero-3d-canvas {
  opacity: 0.11 !important;
  transition: none !important;
}