@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-950: #030e08;
  --bg-900: #061c10;
  --bg-800: #0a2c1a;
  --emerald-dark: #08331c;
  --emerald: #16a34a;
  --lime: #84cc16;
  --lime-bright: #a3e635;
  --white: #ffffff;
  --slate: #a7b8ae;
  --border-emerald: rgba(132, 204, 22, 0.28);
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #07120C;
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background: transparent;
  color: var(--white);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime-bright);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* Smooth Lazy Image Reveal */
img.lazy-img {
  opacity: 0;
  transition: opacity 0.35s ease;
}
img.lazy-img.loaded {
  opacity: 1;
}

/* GPU-Composited Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 900;
  background: linear-gradient(90deg, #16a34a, #84cc16, #d9f99d);
  box-shadow: 0 0 12px rgba(132, 204, 22, 0.7);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
}

/* Pulsing Status Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime-bright);
  box-shadow: 0 0 10px var(--lime-bright);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

/* Inner-Page ASCEND 3D Depth-Scale Blocks (driven by GSAP ScrollTrigger) */
[data-reveal] {
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Interactive Content Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.filter-pill {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.34);
  background: rgba(6, 28, 16, 0.85);
  color: #d6e3da;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
}
.filter-pill:hover {
  border-color: var(--lime-bright);
  color: var(--lime-bright);
}
.filter-pill.active {
  background: linear-gradient(135deg, #0b4626, #16a34a, #84cc16);
  border-color: var(--lime-bright);
  color: #fff;
  box-shadow: 0 4px 16px rgba(132, 204, 22, 0.35);
}

/* Back to Top + GDPR Banner + Copy Toast */
#back-to-top {
  position: fixed;
  bottom: 142px;
  right: 22px;
  z-index: 790;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.52);
  background: rgba(6, 28, 16, 0.94);
  color: var(--lime-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: rgba(132, 204, 22, 0.18);
  box-shadow: 0 0 18px rgba(132, 204, 22, 0.4);
}
.glass-card.gdpr-banner,
.gdpr-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  z-index: 820;
  max-width: 390px;
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #d6e3da;
  background: rgba(6, 28, 16, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(132, 204, 22, 0.14);
}
.glass-card.gdpr-banner:hover {
  transform: none;
}
#copy-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 980;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(6, 28, 16, 0.96);
  border: 1px solid var(--lime-bright);
  color: var(--lime-bright);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 991px) {
  #back-to-top { bottom: 132px; right: 16px; }
  .glass-card.gdpr-banner,
  .gdpr-banner { left: 12px; right: 12px; bottom: 74px; max-width: none; }
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.font-display {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Continuous 3D Canvas — Rotating 3D "D" Brand Emblem */
#ascend-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 32%, rgba(22, 163, 74, 0.2) 0%, rgba(6, 28, 16, 0.55) 45%, #030e08 100%);
  transform: translateZ(0);
  will-change: transform;
}
#ascend-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 14, 8, 0.84), transparent 46%, rgba(3, 14, 8, 0.58));
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #030e08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
#preloader.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.preloader-bar {
  width: min(280px, 80vw);
  height: 6px;
  border-radius: 999px;
  background: var(--bg-900);
  border: 1px solid rgba(132, 204, 22, 0.38);
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0b4626, var(--emerald), var(--lime-bright));
  box-shadow: 0 0 16px var(--lime);
}

/* Brand Media.ai glossy pill matching uploaded logo */
.badge-media-ai {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #042112;
  background: linear-gradient(180deg, #d9f99d 0%, #84cc16 55%, #4d7c0f 100%);
  box-shadow: 0 2px 10px rgba(132, 204, 22, 0.45), inset 0 1px 0 rgba(255,255,255,0.65);
  vertical-align: middle;
}

/* Header / Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  border-bottom: 1px solid rgba(132, 204, 22, 0.22);
  background: rgba(3, 14, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(132, 204, 22, 0.36);
}
.nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  height: 74px;
}
.nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 74px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d6e3da;
  transition: color 0.22s ease;
  white-space: nowrap;
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 74px;
}
.nav-dropdown > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 74px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d6e3da;
  transition: color 0.22s ease;
  white-space: nowrap;
}
.nav-links > a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--lime-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 999px;
}
.nav-links > a:hover::after,
.nav-links > a.active::after,
.nav-dropdown > a:hover::after,
.nav-dropdown > a.active::after {
  transform: scaleX(1);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--lime-bright);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: -8px;
  min-width: 265px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 700;
  background: linear-gradient(145deg, rgba(6, 28, 16, 0.98) 0%, rgba(3, 14, 8, 0.99) 100%);
  border: 1px solid rgba(132, 204, 22, 0.38);
  border-radius: 1rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72), 0 0 24px rgba(132, 204, 22, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: #d6e3da;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-dropdown-menu a:hover {
  background: rgba(132, 204, 22, 0.15);
  color: var(--lime-bright);
  transform: translateX(4px);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.mobile-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--bg-900);
  border: 1px solid var(--border-emerald);
  color: var(--white);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(3, 14, 8, 0.98);
  border-top: 1px solid rgba(132, 204, 22, 0.25);
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}
.mobile-drawer.open {
  display: flex;
}
.mobile-drawer a {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(132, 204, 22, 0.14);
  font-size: 0.94rem;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 88px;
  z-index: 450;
}

/* Text & UI Primitives */
.text-cyan, .text-lime { color: var(--lime-bright); }
.text-slate { color: var(--slate); }
.text-cyan-gradient, .text-emerald-gradient {
  background: linear-gradient(92deg, #ffffff 0%, #bef264 48%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-bright);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.48);
  background: rgba(6, 28, 16, 0.88);
  font-size: 0.78rem;
  color: var(--lime-bright);
  font-family: 'Space Grotesk', sans-serif;
}

/* Emerald Glass Card + Subtle Premium Lift */
.glass-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(8, 32, 18, 0.92) 0%, rgba(3, 14, 8, 0.96) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(163, 230, 53, 0.14);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(163, 230, 53, 0.08) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.glass-card:hover::before {
  transform: translateX(120%);
}
.glass-card:hover {
  border-color: rgba(163, 230, 53, 0.55);
  box-shadow: 0 18px 44px rgba(132, 204, 22, 0.15), 0 0 24px rgba(22, 163, 74, 0.22);
  transform: translateY(-2px);
}
.hover-arrow {
  display: inline-block;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-card:hover .hover-arrow,
.btn:hover .hover-arrow {
  transform: translateX(4px);
}

/* ISO & GDPR Certification Badge Pills */
.iso-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.iso-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(132, 204, 22, 0.6);
  border-radius: 0.85rem;
  padding: 0.4rem 0.65rem;
  box-shadow: 0 6px 20px rgba(132, 204, 22, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.iso-badge-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(132, 204, 22, 0.32);
}
.iso-badge-pill img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.iso-badge-pill.lg img {
  height: 60px;
}

.compliance-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.compliance-pill {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(132, 204, 22, 0.12);
  border: 1px solid rgba(132, 204, 22, 0.38);
  color: var(--lime-bright);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.82rem 1.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.24s ease, filter 0.2s ease, transform 0.22s ease;
}
.btn-sm {
  min-height: 40px;
  padding: 0.52rem 1.2rem;
  font-size: 0.82rem;
}
.btn-ascend {
  background: linear-gradient(135deg, #0b4626 0%, #16a34a 52%, #84cc16 100%);
  color: var(--white);
  box-shadow: 0 8px 26px rgba(22, 163, 74, 0.42);
}
.btn-ascend:hover {
  box-shadow: 0 0 28px rgba(163, 230, 53, 0.5), 0 10px 24px rgba(22, 163, 74, 0.48);
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(6, 28, 16, 0.86);
  border: 1px solid rgba(132, 204, 22, 0.52);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(132, 204, 22, 0.16);
  border-color: var(--lime-bright);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
  transform: translateY(-2px);
}

/* Home Pinned 7-Scene Timeline (Desktop >= 992px) — Tight Balanced Spacing */
.ascend-driver {
  position: relative;
  height: 500vh;
  z-index: 10;
}
.ascend-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding-top: 74px;
}
.ascend-scene {
  position: absolute;
  inset: 74px 0 0 0;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  user-select: text;
  will-change: transform, opacity;
}
.ascend-scene.active {
  pointer-events: auto;
  z-index: 5;
}

.scene-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: opacity 0.25s ease;
}
.scene-rail.near-footer {
  opacity: 0;
  pointer-events: none;
}
.scene-rail button {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  color: var(--slate);
  font-size: 0.68rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.scene-rail .dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.42);
  transition: all 0.22s;
}
.scene-rail button.active .dot {
  width: 10px;
  height: 26px;
  background: var(--lime-bright);
  box-shadow: 0 0 12px var(--lime);
}
.scene-rail button span.lbl {
  opacity: 0;
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(3, 14, 8, 0.82);
  border: 1px solid rgba(132, 204, 22, 0.25);
  transition: opacity 0.2s;
}
.scene-rail button.active span.lbl,
.scene-rail button:hover span.lbl {
  opacity: 1;
  color: var(--lime-bright);
}

/* Navbar White / Dark Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 38px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.45);
  background: rgba(6, 28, 16, 0.88);
  color: var(--lime-bright);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.theme-toggle-btn:hover {
  border-color: var(--lime-bright);
  background: rgba(132, 204, 22, 0.16);
  transform: translateY(-1px);
}

.hero-h1 {
  font-size: clamp(2.15rem, 4.9vw, 4.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 860px;
}
.hero-word {
  display: inline-block;
  margin-right: 0.24em;
  will-change: transform, opacity;
}
.hero-stack {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.hero-subtext {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  color: #d6e3da;
  max-width: 670px;
  line-height: 1.65;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.25rem;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: #a7b8ae;
}

.section-h2 {
  font-size: clamp(1.75rem, 3.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.15;
}

/* Balanced Stat & Checklist Helpers */
.stat-card {
  padding: 1.5rem;
}
.stat-val {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 0.88rem;
  color: #e6f2ea;
  margin-top: 0.35rem;
}
.checklist-bar {
  margin-top: 1.25rem;
  padding: 1.2rem 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  font-size: 0.86rem;
  color: #e6f2ea;
  flex: 1;
  min-width: 260px;
}

/* Industry Vertical Cards + Full-Width Bottom Bar (eliminates empty viewport gap) */
.ind-card {
  padding: 1.35rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
}
.ind-card-title {
  font-size: 1rem;
  color: #a3e635;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ind-card-desc {
  font-size: 0.82rem;
  color: #d6e3da;
  margin-top: 0.45rem;
  line-height: 1.52;
}
.ind-footer-cta {
  margin-top: 1.25rem;
  padding: 1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Page wrapper for inner pages — 96px desktop / 56px mobile breathing room */
main.page-main {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 7.25rem 0 6rem;
}

/* Forms */
.input, .select, .textarea {
  width: 100%;
  border-radius: 0.75rem;
  background: rgba(3, 14, 8, 0.92);
  border: 1px solid rgba(132, 204, 22, 0.34);
  padding: 0.75rem 0.95rem;
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--lime-bright);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.14);
}
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #d6e3da;
  margin-bottom: 0.35rem;
}

/* Dynamic FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(132, 204, 22, 0.22);
  padding: 0.85rem 0;
}
.faq-q {
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 0.94rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 0.75rem;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, margin-top 0.28s ease;
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 240px;
  margin-top: 0.45rem;
}

/* Pipeline Timeline */
.pipeline-wrap {
  position: relative;
  padding-left: 2.25rem;
}
.pipeline-svg {
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 14px;
  height: 92%;
}

/* Social Icons */
.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.38);
  background: rgba(6, 28, 16, 0.9);
  color: #d6e3da;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s;
}
.social-icon-btn:hover {
  border-color: var(--lime-bright);
  color: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(132, 204, 22, 0.38);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 15;
  border-top: 1px solid rgba(132, 204, 22, 0.24);
  background: rgba(3, 14, 8, 0.98);
  padding: 4.5rem 0 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(132, 204, 22, 0.2);
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.95rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.86rem; color: var(--slate); transition: color 0.2s; }
.footer-col a:hover { color: var(--lime-bright); }
.footer-bottom {
  padding-top: 1.5rem;
  padding-right: 175px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--slate);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  align-items: center;
}

/* Floating DirectB2B AI Assistant (Ask AI — 380x560) */
#ai-bot-wrap {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 800;
}
#ai-bot-panel {
  position: absolute;
  bottom: 62px;
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  height: 560px;
  max-height: 76vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 34px rgba(132, 204, 22, 0.28);
}
#ai-bot-panel.open {
  display: flex;
  animation: botIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes botIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.84rem;
}
.bot-msg {
  max-width: 86%;
  padding: 0.68rem 0.92rem;
  border-radius: 1rem;
  line-height: 1.48;
}
.bot-msg.assistant {
  align-self: flex-start;
  background: rgba(6, 28, 16, 0.95);
  border: 1px solid rgba(132, 204, 22, 0.35);
  color: #e6f2ea;
}
.bot-msg.user {
  align-self: flex-end;
  background: var(--emerald);
  color: #fff;
}
.bot-fb-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--slate);
  margin-top: 0.2rem;
}
.bot-fb-btn {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.35);
  background: rgba(6, 28, 16, 0.85);
  color: #d6e3da;
  font-size: 0.7rem;
  cursor: pointer;
}
.bot-fb-btn:hover {
  border-color: var(--lime-bright);
  color: var(--lime-bright);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip-btn {
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.48);
  background: rgba(6, 28, 16, 0.88);
  color: var(--lime-bright);
  padding: 0.42rem 0.82rem;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.chip-btn:hover { background: rgba(132, 204, 22, 0.2); transform: translateY(-1px); border-color: var(--lime-bright); }
.chip-btn.alt {
  border-style: dashed;
  opacity: 0.92;
}
.bot-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
  color: #a7b8ae;
  background: rgba(3, 14, 8, 0.88);
  border-bottom: 1px solid rgba(132, 204, 22, 0.16);
}
.bot-mini-card {
  margin-top: 0.45rem;
  padding: 0.65rem 0.78rem;
  border-radius: 0.75rem;
  background: rgba(3, 14, 8, 0.78);
  border: 1px solid rgba(132, 204, 22, 0.32);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bot-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  background: rgba(6, 28, 16, 0.9);
  border: 1px solid rgba(132, 204, 22, 0.28);
  font-size: 0.74rem;
  color: #a7b8ae;
}
.bot-dots {
  display: inline-flex;
  gap: 3px;
}
.bot-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--lime-bright);
  animation: botDot 1s infinite ease-in-out;
}
.bot-dots span:nth-child(2) { animation-delay: 0.16s; }
.bot-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes botDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 620px;
}
table.data-table th {
  text-align: left;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(132, 204, 22, 0.3);
}
table.data-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid rgba(132, 204, 22, 0.15);
  color: #e6f2ea;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
============================================================================ */
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: inline-flex; }
  .sticky-mobile-cta { display: block; }
  .scene-rail { display: none; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding-right: 0; }
  .site-footer { padding-bottom: 6.2rem; }
}

@media (max-width: 991px) {
  .ascend-driver {
    height: auto !important;
  }
  .ascend-stage {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    padding-top: 84px;
  }
  .ascend-scene {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    padding: 2.5rem 0;
  }
  .pipeline-wrap {
    padding-left: 0;
  }
  .pipeline-svg {
    display: none;
  }
  #ai-bot-wrap {
    bottom: 74px;
    right: 14px;
  }
}

@media (max-height: 820px) and (min-width: 992px) {
  .ascend-scene {
    align-items: flex-start;
    overflow-y: auto;
    padding: 1.4rem 0 2rem;
  }
  .section-h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  }
}

@media (max-width: 767px) {
  [data-reveal] {
    will-change: auto;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .checklist-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-h1 { font-size: 2.05rem; }
  .section-h2 { font-size: 1.65rem; }
  .iso-badge-pill img { height: 38px; }
  main.page-main { padding: 5.8rem 0 3.5rem; }
}

/* ============================================================================
   WHITE / LIGHT THEME (Optional Navbar Toggle — Dark Theme Remains Default)
============================================================================ */
html[data-theme="light"] {
  background: #f4f9f6;
  color: #092415;
}
html[data-theme="light"] body {
  color: #092415;
}
html[data-theme="light"] #ascend-canvas-wrap {
  background: radial-gradient(circle at 72% 32%, rgba(22, 163, 74, 0.11) 0%, rgba(244, 249, 246, 0.9) 52%, #ffffff 100%);
}
html[data-theme="light"] #ascend-canvas-wrap::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.72), transparent 46%, rgba(244, 249, 246, 0.45));
}
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(21, 128, 61, 0.18);
}
html[data-theme="light"] .site-header.scrolled {
  box-shadow: 0 10px 28px rgba(9, 36, 21, 0.08);
  border-bottom-color: rgba(21, 128, 61, 0.28);
}
html[data-theme="light"] .nav-links > a,
html[data-theme="light"] .nav-dropdown > a {
  color: #163b27;
}
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active {
  color: #15803d;
}
html[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.99);
  border-color: rgba(21, 128, 61, 0.24);
  box-shadow: 0 20px 44px rgba(9, 36, 21, 0.14);
}
html[data-theme="light"] .nav-dropdown-menu a {
  color: #163b27;
}
html[data-theme="light"] .nav-dropdown-menu a:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}
html[data-theme="light"] .theme-toggle-btn {
  background: #eff7f2;
  border-color: rgba(21, 128, 61, 0.34);
  color: #0b4626;
}
html[data-theme="light"] .theme-toggle-btn:hover {
  background: #dcfce7;
  border-color: #15803d;
}
html[data-theme="light"] .mobile-toggle {
  background: #eff7f2;
  border-color: rgba(21, 128, 61, 0.28);
  color: #092415;
}
html[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  color: #092415;
  border-top-color: rgba(21, 128, 61, 0.18);
}
html[data-theme="light"] .glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 246, 0.96) 100%);
  border-color: rgba(21, 128, 61, 0.2);
  box-shadow: 0 10px 28px rgba(9, 36, 21, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .glass-card:hover {
  border-color: rgba(21, 128, 61, 0.45);
  box-shadow: 0 16px 38px rgba(21, 128, 61, 0.12);
}
html[data-theme="light"] .text-cyan,
html[data-theme="light"] .text-lime,
html[data-theme="light"] .eyebrow {
  color: #15803d;
}
html[data-theme="light"] .text-slate {
  color: #365242;
}
html[data-theme="light"] .text-cyan-gradient,
html[data-theme="light"] .text-emerald-gradient {
  background: linear-gradient(92deg, #062814 0%, #15803d 55%, #4d7c0f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero-subtext,
html[data-theme="light"] .trust-strip,
html[data-theme="light"] .stat-lbl,
html[data-theme="light"] .checklist-grid,
html[data-theme="light"] .ind-card-desc,
html[data-theme="light"] .label {
  color: #244030;
}
html[data-theme="light"] .ind-card-title {
  color: #15803d;
}
html[data-theme="light"] .pill-badge,
html[data-theme="light"] .compliance-pill {
  background: #ecfdf3;
  border-color: rgba(21, 128, 61, 0.34);
  color: #14532d;
}
html[data-theme="light"] .filter-pill {
  background: #ffffff;
  border-color: rgba(21, 128, 61, 0.28);
  color: #163b27;
}
html[data-theme="light"] .filter-pill:hover {
  border-color: #15803d;
  color: #15803d;
}
html[data-theme="light"] .filter-pill.active {
  background: linear-gradient(135deg, #0b4626, #16a34a, #65a30d);
  color: #ffffff !important;
}
html[data-theme="light"] .btn-ghost {
  background: #ffffff;
  border-color: rgba(21, 128, 61, 0.45);
  color: #0b4626;
}
html[data-theme="light"] .btn-ghost:hover {
  background: #ecfdf3;
  border-color: #15803d;
}
html[data-theme="light"] .input,
html[data-theme="light"] .select,
html[data-theme="light"] .textarea {
  background: #ffffff;
  border-color: rgba(21, 128, 61, 0.32);
  color: #092415;
}
html[data-theme="light"] .input::placeholder,
html[data-theme="light"] .textarea::placeholder {
  color: #6b8577;
}
html[data-theme="light"] .faq-q {
  color: #092415;
}
html[data-theme="light"] .faq-a {
  color: #365242;
}
html[data-theme="light"] .scene-rail button {
  color: #365242;
}
html[data-theme="light"] .scene-rail .dot {
  background: rgba(21, 128, 61, 0.35);
}
html[data-theme="light"] .scene-rail button.active .dot {
  background: #15803d;
  box-shadow: 0 0 10px rgba(21, 128, 61, 0.45);
}
html[data-theme="light"] .scene-rail button span.lbl {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(21, 128, 61, 0.28);
  color: #0b4626;
  box-shadow: 0 4px 12px rgba(9, 36, 21, 0.08);
}
html[data-theme="light"] .site-footer {
  background: #edf5f0;
  border-top-color: rgba(21, 128, 61, 0.2);
}
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .footer-bottom {
  color: #2f4b3c;
}
html[data-theme="light"] .footer-col a:hover {
  color: #15803d;
}
html[data-theme="light"] .social-icon-btn {
  background: #ffffff;
  border-color: rgba(21, 128, 61, 0.3);
  color: #163b27;
}
html[data-theme="light"] .social-icon-btn:hover {
  color: #15803d;
  border-color: #15803d;
}
html[data-theme="light"] .glass-card.gdpr-banner,
html[data-theme="light"] .gdpr-banner {
  background: rgba(255, 255, 255, 0.98);
  color: #163b27;
  box-shadow: 0 14px 36px rgba(9, 36, 21, 0.14);
}
html[data-theme="light"] #back-to-top {
  background: #ffffff;
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.38);
  box-shadow: 0 8px 20px rgba(9, 36, 21, 0.12);
}
html[data-theme="light"] #copy-toast {
  background: #0b4626;
  color: #ffffff;
}
html[data-theme="light"] #ai-bot-panel {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(9, 36, 21, 0.18), 0 0 0 1px rgba(21, 128, 61, 0.22);
}
html[data-theme="light"] .bot-msg.assistant,
html[data-theme="light"] .chip-btn,
html[data-theme="light"] .bot-fb-btn,
html[data-theme="light"] .bot-typing {
  background: #f0f7f3;
  color: #092415;
  border-color: rgba(21, 128, 61, 0.28);
}
html[data-theme="light"] .chip-btn:hover {
  background: #dcfce7;
  border-color: #15803d;
}
html[data-theme="light"] .bot-context-bar,
html[data-theme="light"] .bot-mini-card {
  background: #f5faf7;
  color: #244030;
  border-color: rgba(21, 128, 61, 0.22);
}
html[data-theme="light"] .bot-dots span {
  background: #15803d;
}
html[data-theme="light"] table.data-table th {
  color: #15803d;
  border-bottom-color: rgba(21, 128, 61, 0.26);
}
html[data-theme="light"] table.data-table td {
  color: #163b27;
  border-bottom-color: rgba(21, 128, 61, 0.14);
}
/* Ensure inline dark-mode palette colors remain crisp & readable on White Theme */
html[data-theme="light"] [style*="color:#e6f2ea"],
html[data-theme="light"] [style*="color: #e6f2ea"],
html[data-theme="light"] [style*="color:#d6e3da"],
html[data-theme="light"] [style*="color: #d6e3da"] {
  color: #1e3d2c !important;
}
html[data-theme="light"] [style*="color:#a7b8ae"],
html[data-theme="light"] [style*="color: #a7b8ae"] {
  color: #3d5a49 !important;
}
html[data-theme="light"] [style*="color:#a3e635"],
html[data-theme="light"] [style*="color: #a3e635"] {
  color: #15803d !important;
}
html[data-theme="light"] :not(.btn-ascend):not(.bot-msg):not(.filter-pill) > [style*="color:#fff"],
html[data-theme="light"] :not(.btn-ascend):not(.bot-msg):not(.filter-pill)[style*="color:#ffffff"],
html[data-theme="light"] :not(.btn-ascend):not(.bot-msg):not(.filter-pill)[style*="color:#fff"] {
  color: #092415 !important;
}
html[data-theme="light"] .btn-ascend,
html[data-theme="light"] .btn-ascend *,
html[data-theme="light"] .bot-msg.user {
  color: #ffffff !important;
}
html[data-theme="light"] [style*="background:rgba(3,14,8"],
html[data-theme="light"] [style*="background: rgba(3, 14, 8"],
html[data-theme="light"] [style*="background:rgba(6,28,16"],
html[data-theme="light"] [style*="background: rgba(6, 28, 16"] {
  background: #edf6f0 !important;
  border-color: rgba(21, 128, 61, 0.22) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
