/*
 * GloCoach Website v2 — Shared Stylesheet
 * Brand source: BRAND_SPEC.md + DESIGN_SYSTEM.md (canonical: design.md)
 * Built: 2026-05-31
 * M3: 2026-05-31 — SVG icons, signal-flow animations, honeycomb, mobile nav, a11y
 * v2 migration: 2026-07-04 — warm ground, navy ink, #2139C2 demoted to product-UI, yellow retreats to eyebrows/focus, 800-weight retired
 */

/* ── GOOGLE FONTS (import in HTML for each page) ── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── BRAND TOKENS ── */
:root {
  --ink:         #003B5C;  /* THE anchor — heading ink, buttons, structural colour */
  --ink-deep:    #001e30;  /* footer, deepest bands */
  --blue:        #2139C2;  /* product-UI contexts ONLY (screenshots, status badges, demo panels) — never marketing surfaces */
  --blue-dark:   #003B5C;  /* dark sections (legacy alias of --ink) */
  --blue-deep:   #001e30;  /* footer, sensor-strip (legacy alias of --ink-deep) */
  --gold:        #DB961F;  /* THE signal — CTAs, key metrics, accents; ~once per viewport */
  --gold-dark:   #c4841a;  /* gold hover */
  --yellow:      #FFF522;  /* dark-bg eyebrows + focus rings ONLY — never on light */
  --warm-50:     #FAF8F4;  /* primary section ground (warm ivory) */
  --warm-100:    #F3EFE7;  /* deeper warm band (cream) */
  --warm-line:   rgba(0,59,92,0.12);  /* navy-tinted hairlines on light */
  --text:        #2C3042;  /* body text — never pure black */
  --text-light:  #4a5068;  /* secondary body, captions */
  --near-black:  #003B5C;  /* headings = navy ink (was #1a1e36) */
  --bg-light:    #F3EFE7;  /* warm band (lavender retired) */
  --bg-page:     #FAF8F4;  /* warm ivory ground (cool grey retired) */
  --white:       #ffffff;
  --danger:      #c22121;  /* gap indicators inside product visuals only */
}

/* ── BASE ── */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blue-dark);
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.28);
}

.nav-logo { flex: 0 0 auto; }
.nav-logo img {
  height: 34px;
  width: auto;
  max-width: none;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 0 10px;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language selector — dummy, renders only */
/* Language switcher — accessible dropdown (EN active, others "coming soon") */
.nav-lang { position: relative; flex-shrink: 0; }

.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 6px 10px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.nav-lang-btn:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.nav-lang-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.nav-lang .globe-svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.72; }
.nav-lang .globe-icon { display: none; }
.nav-lang-caret { font-size: 13px; transition: transform 0.18s ease; }
.nav-lang[data-open="true"] .nav-lang-caret { transform: rotate(180deg); }

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  background: var(--white);
  border: 1px solid rgba(0,59,92,0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,33,51,0.16);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 200;
  display: none;
}
.nav-lang[data-open="true"] .nav-lang-menu { display: block; }

.nav-lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: #14232c;
  cursor: pointer;
}
.nav-lang-menu .lang-label { display: flex; align-items: center; gap: 9px; }
.nav-lang-menu .lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20,35,44,0.12);
  flex: none;
  display: block;
}
.nav-lang-menu li[aria-disabled="true"] .lang-flag { opacity: 0.55; }
.nav-lang-menu li:hover { background: var(--warm-100, #F3EFE7); }
.nav-lang-menu li.is-active { font-weight: 600; color: var(--navy, #003B5C); }
.nav-lang-menu li[aria-disabled="true"] { color: rgba(20,35,44,0.4); cursor: default; }
.nav-lang-menu li[aria-disabled="true"]:hover { background: transparent; }
.nav-lang-menu .soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold, #DB961F);
  background: rgba(219,150,31,0.12);
  padding: 2px 6px;
  border-radius: 20px;
}

/* Footer legal links (bottom bar) */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.42); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--white); }
.footer-legal a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

/* Log In — dummy */
.nav-login {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-login:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-login:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Book an executive briefing — primary CTA */
.nav-book {
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-book:hover { background: #c4841a; }

.nav-book:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger open state — X */
.site-nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.site-nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   HERO (canonical dark gradient)
═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #003B5C 0%, #00293f 100%);
  padding: 108px 60px 96px;
  position: relative;
  overflow: hidden;
}
/* v2: radial glow blobs retired (competed with photography) */

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── TYPOGRAPHY PRIMITIVES ── */

/* Eyebrows */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow.on-dark  { color: var(--yellow); }
.eyebrow.on-light { color: var(--gold); }

/* Hero headline */
.hero h1 {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 28px;
}

.hero h1 .accent { color: var(--gold); }

.hero-sub {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* Section headings */
.section-wrap {
  padding: 120px 60px;
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--near-black);
  margin-bottom: 18px;
}

.section-title .accent   { color: var(--gold); }
.section-title.on-dark   { color: var(--white); }
.section-title.on-dark .accent { color: var(--gold); }

.section-sub {
  font-size: 18px;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 72px;
}

.section-sub.on-dark { color: rgba(255,255,255,0.78); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-primary:hover { background: #c4841a; }

.btn-primary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  transition: background 0.2s ease;
}

.btn-secondary:hover { background: rgba(255,255,255,0.18); }

.btn-blue,
.btn-navy {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-blue:hover, .btn-navy:hover { background: #00293f; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease;
}

.btn-outline:hover { background: rgba(0,59,92,0.06); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  transition: background 0.2s ease;
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* CTA row */
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ── STATS BAR (hero) ── */
.stats-bar {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item { text-align: left; }

.stat-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num .unit {
  font-size: 26px;
  font-weight: 600;
  opacity: 0.55;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.5px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--warm-line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.card-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.card-num .unit {
  font-size: 28px;
  font-weight: 600;
  opacity: 0.55;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}

/* Grid helpers */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ── DARK SECTION BASE ── */
.section-dark {
  background: linear-gradient(135deg, #003B5C 0%, #00293f 100%);
  position: relative;
  overflow: hidden;
}
/* v2: yellow glow blob retired */

.section-deepdark {
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   5 SENSORS → 1 BRAIN DIAGRAM
═══════════════════════════════════════════════ */
.sensors-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  margin: 48px auto 0;
  max-width: 860px;
  position: relative;
}

.sensor-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sensor-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 148px;
}

.sensor-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.sensor-chip-signal {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* Connector lines */
.diagram-connector {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  position: relative;
}

.connector-lines {
  width: 100%;
  height: 170px;
  position: relative;
}

.connector-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 6px;
}

/* Brain hub */
.brain-hub {
  background: rgba(255,255,255,0.12);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  flex-shrink: 0;
  min-width: 148px;
  position: relative;
}

.brain-hub-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.brain-hub-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.brain-hub-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Output */
.output-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(219,150,31,0.35);
  border-radius: 12px;
  padding: 18px 20px;
  min-width: 148px;
  flex-shrink: 0;
}

.output-node-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.output-node-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.output-item {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 6px;
}

.output-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Arrow between brain and output */
.diagram-arrow {
  display: flex;
  align-items: center;
  padding: 0 10px;
  flex-shrink: 0;
}

.diagram-arrow svg { overflow: visible; }

/* ── SOLUTION STEPS ── */
.solution-steps { list-style: none; }

.solution-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.solution-steps li:last-child { border-bottom: none; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* ── PROOF / TESTIMONIALS ── */
.proof-metrics {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 60px;
}

.proof-metric { text-align: center; }

.proof-metric .num {
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-metric .num .unit {
  font-size: 26px;
  font-weight: 600;
  opacity: 0.55;
}

.proof-metric .lbl {
  font-size: 13px;
  color: #003b5c;
  max-width: 130px;
  line-height: 1.45;
}

/* Testimonial card */
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px;
}

.testimonial-quote {
  font-size: 16px;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-quote::before {
  content: "\201C";
  font-size: 48px;
  color: var(--gold);
  line-height: 0.4;
  vertical-align: -18px;
  margin-right: 6px;
  font-style: normal;
}

.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.testimonial-role {
  font-size: 13px;
  color: rgba(255,255,255,0.52);
}

/* ── USE CASE CARDS ── */
.use-case-card {
  background: var(--bg-page);
  border: 1px solid var(--warm-line);
  border-radius: 14px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.use-case-card:hover {
  box-shadow: 0 16px 44px rgba(0,30,48,0.12);
  transform: translateY(-3px);
}

.use-case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.use-case-scenario {
  font-size: 17px;
  font-weight: 600;
  color: var(--near-black);
  line-height: 1.4;
  margin-bottom: 16px;
  font-style: italic;
}

.use-case-outcome {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.use-case-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.use-case-link:hover { gap: 10px; }

/* ── FEATURE BLOCKS (alternating) ── */
.feature-block { padding: 88px 60px; }
.feature-block:nth-of-type(odd) { background: var(--bg-page); }
.feature-block:nth-of-type(even) { background: var(--white); }

.feature-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-inner.flip { direction: rtl; }
.feature-inner.flip > * { direction: ltr; }

.feature-text .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(219,150,31,0.10);
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 16px;
}

.feature-text h3 .accent { color: var(--gold); }

.feature-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-text ul {
  list-style: none;
  margin-top: 16px;
}

.feature-text ul li {
  font-size: 15px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--warm-line);
  display: flex;
  gap: 10px;
}

.feature-text ul li:last-child { border-bottom: none; }

.feature-text ul li::before {
  content: "\2192";
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

.feature-visual {
  border-radius: 16px;
  padding: 36px 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.feature-visual.light {
  background: var(--white);
  border: 1px solid var(--warm-line);
}

.feature-visual.dark {
  background: linear-gradient(135deg, #003B5C 0%, #001e30 100%);
}

.vis-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.feature-visual.light .vis-label { color: var(--ink); }
.feature-visual.dark  .vis-label { color: var(--gold); }

/* Dashboard rows */
.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(33,57,194,0.08);
}

.dash-row:last-of-type { border-bottom: none; }
.dash-name { font-size: 14px; font-weight: 600; color: var(--near-black); }
.status-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.status-ready   { background: rgba(33,57,194,0.1);  color: var(--blue); }
.status-support { background: rgba(219,150,31,0.15); color: var(--gold); }
.status-develop { background: rgba(194,33,33,0.08);  color: var(--danger); }

/* Chat bubbles (Lance demo) */
.chat-bubble {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}

.chat-bubble.q {
  background: rgba(255,245,34,0.1);
  border-left: 3px solid var(--yellow);
}

.chat-bubble p { margin: 0; font-size: 14px; }
.chat-bubble strong { color: var(--white); }

/* Map cells */
.map-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 12px 0; }
.map-cell { border-radius: 6px; padding: 8px; font-size: 11px; text-align: center; }
.map-cell.ok  { background: rgba(33,57,194,0.15); color: var(--blue); font-weight: 600; }
.map-cell.gap { background: rgba(194,33,33,0.08); color: var(--danger); font-weight: 600; }
.map-cell.neutral { background: rgba(33,57,194,0.08); color: var(--text-light); }

/* ── SENSOR STRIP ── */
.sensor-strip {
  background: var(--blue-deep);
  padding: 80px 60px;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.sensor-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sensor-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
}

/* Sensor icon wrap — uses brand blue circle */
.sensor-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.sensor-icon-wrap svg { width: 22px; height: 22px; }

.sensor-card-name   { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.sensor-card-signal { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sensor-card-desc   { font-size: 12px; color: rgba(255,255,255,0.52); line-height: 1.5; }

.sensor-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  flex-wrap: wrap;
}

.sensor-flow-row .flow-label { text-align: center; }

.lance-badge {
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 14px 28px;
  text-align: center;
}

.lance-badge-name { font-size: 18px; font-weight: 700; color: var(--white); }
.lance-badge-sub  { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 3px; }

.flow-arrow {
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
}

/* ── ENROLLMENT STEPS ── */
.enroll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.enroll-card {
  background: var(--white);
  border: 1px solid var(--warm-line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 16px;
}

.enroll-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enroll-card h4 { font-size: 16px; font-weight: 700; color: var(--near-black); margin-bottom: 6px; }
.enroll-card p  { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── PAGE CTA ── */
.page-cta {
  padding: 96px 60px;
  text-align: center;
}

.page-cta.light { background: var(--bg-page); }
.page-cta.dark  { background: var(--blue-dark); }

.page-cta h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-cta.light h2 { color: var(--near-black); }
.page-cta.light h2 .accent { color: var(--gold); }

.page-cta.dark h2 { color: var(--white); }
.page-cta.dark h2 .accent { color: var(--gold); }

.page-cta p {
  font-size: 18px;
  margin-bottom: 40px;
}

.page-cta.light p { color: var(--text-light); }
.page-cta.dark  p { color: rgba(255,255,255,0.75); }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.compare-table th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 12px 20px;
  text-align: left;
  border-bottom: 2px solid var(--warm-line);
}

.compare-table td {
  padding: 16px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--warm-line);
  vertical-align: top;
  color: var(--text);
}

.compare-table td:first-child { font-weight: 600; color: var(--near-black); }
.compare-table td.good  { color: var(--ink); font-weight: 600; }
.compare-table td.bad   { color: var(--text-light); }
.compare-table td.check { color: var(--ink); font-weight: 700; }
.compare-table td.cross { color: var(--text-light); }

/* Mobile: let the comparison table scroll horizontally inside its own box
   instead of overflowing the page (mobile QA fix 2026-07-06). */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 768px) {
  .compare-table { min-width: 600px; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }
}

/* ── VERIFY placeholder (visible only in HTML source) ── */
/* All [VERIFY] items are wrapped in HTML comments — see BUILD_NOTES.md */

/* ── FOOTER ── */
.site-footer {
  background: var(--blue-deep);
  padding: 64px 60px 40px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-logo img { height: 32px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-col ul li a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.32);
}

.footer-certs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-badge {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Trust link in footer */
.footer-trust-link {
  font-size: 13px;
  color: rgba(255,255,255,0.52);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.footer-trust-link:hover { color: var(--white); }

/* ── PLACEHOLDER (images not yet dropped in) ── */
.img-placeholder {
  background: rgba(0,59,92,0.05);
  border: 2px dashed rgba(0,59,92,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 32px 20px;
  min-height: 200px;
}

/* ═══════════════════════════════════════════════
   M3: SIGNAL-FLOW ANIMATION
   Hub-and-spoke diagram with animated data flow
═══════════════════════════════════════════════ */

/* Pulse glow on sensor chips */
@keyframes sensorPulse {
  0%, 80%, 100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
    border-color: rgba(255,255,255,0.13);
  }
  40% {
    box-shadow: 0 0 0 6px rgba(255,255,255,0.10), 0 0 16px rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.45);
  }
}

/* Brain hub glow */
@keyframes brainGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(219,150,31,0);
    border-color: var(--gold);
  }
  50% {
    box-shadow: 0 0 24px 8px rgba(219,150,31,0.35), 0 0 48px 12px rgba(219,150,31,0.10);
    border-color: #e8b054;
  }
}

/* Flow dot traveling left→right */
@keyframes flowDot {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Output chip highlight */
@keyframes outputLight {
  0%, 60%, 100% {
    border-color: rgba(219,150,31,0.3);
    background: rgba(219,150,31,0.06);
  }
  80% {
    border-color: rgba(219,150,31,0.7);
    background: rgba(219,150,31,0.14);
  }
}

/* Animated sensor chips */
.hub-sensor-chip.anim-s1 { animation: sensorPulse 4s ease-in-out 0s infinite; }
.hub-sensor-chip.anim-s2 { animation: sensorPulse 4s ease-in-out 0.5s infinite; }
.hub-sensor-chip.anim-s3 { animation: sensorPulse 4s ease-in-out 1.0s infinite; }
.hub-sensor-chip.anim-s4 { animation: sensorPulse 4s ease-in-out 1.5s infinite; }
.hub-sensor-chip.anim-s5 { animation: sensorPulse 4s ease-in-out 2.0s infinite; }

/* Animated brain */
.hub-brain.anim-brain { animation: brainGlow 3s ease-in-out 1s infinite; }

/* Animated output chips */
.hub-output-chip.anim-out { animation: outputLight 4s ease-in-out 2.5s infinite; }

/* Flow arrow — animated dashes via SVG in HTML */
.flow-arrow-animated {
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
  position: relative;
  width: 48px;
  overflow: visible;
}

/* ═══════════════════════════════════════════════
   M3: LANCE INTERACTIVE DEMO PANEL (platform.html)
═══════════════════════════════════════════════ */

.lance-demo-panel {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.lance-demo-panel::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,245,34,0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.ldp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.ldp-brain-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  animation: brainDot 2s ease-in-out infinite;
}

@keyframes brainDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.ldp-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
}

.ldp-query-wrap {
  background: rgba(255,245,34,0.07);
  border: 1px solid rgba(255,245,34,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.ldp-query-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,245,34,0.6);
  margin-bottom: 6px;
}

.ldp-query-text {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  line-height: 1.5;
}

/* Thinking dots */
.ldp-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: thinkShow 8s ease-in-out 0.5s infinite;
}

@keyframes thinkShow {
  0%    { opacity: 0; }
  5%    { opacity: 1; }
  25%   { opacity: 1; }
  30%   { opacity: 0; }
  100%  { opacity: 0; }
}

.ldp-thinking-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: thinkDot 1.2s ease-in-out infinite;
}

.ldp-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.ldp-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-5px); opacity: 1; }
}

.ldp-thinking-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* Response panel */
.ldp-response {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: respShow 8s ease-in-out 0.5s infinite;
}

@keyframes respShow {
  0%    { opacity: 0; }
  30%   { opacity: 0; }
  38%   { opacity: 1; }
  90%   { opacity: 1; }
  100%  { opacity: 0; }
}

.ldp-resp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.ldp-resp-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.ldp-resp-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 5px;
}

.ldp-evidence {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   M3: HONEYCOMB CLIENT-LOGO WALL (proof.html)
═══════════════════════════════════════════════ */

.honeycomb-section {
  background: var(--bg-page);
  padding: 80px 60px;
}

.honeycomb-section .section-inner {
  text-align: center;
}

.honeycomb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 48px auto 0;
  /* Offset rows via negative margin trick */
}

/* Hex cell */
.hex-cell {
  width: 120px;
  height: 104px;
  margin: 0 4px 8px;
  position: relative;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: rgba(0,59,92,0.07);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  cursor: default;
}

.hex-cell:hover {
  background: rgba(0,59,92,0.12);
}

/* Offset every other "row-group" — done by adding margin-top to nth-child groups */
/* Row shifting via flex row wrapping — rows of 4-5 */
.hex-row {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 8px;
  margin-bottom: -20px; /* tighten vertical for hex overlap */
}

.hex-row.offset {
  margin-left: 64px; /* half-hex offset for honeycomb stagger */
}

.hex-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
}

.hex-placeholder-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,59,92,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-placeholder-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  opacity: 0.6;
}

.hex-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.hex-sector {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

.honeycomb-caption {
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .site-nav { padding: 0 32px; }
  .nav-links { gap: 18px; }
  .hero, .section-wrap, .feature-block, .sensor-strip, .page-cta, .site-footer { padding-left: 32px; padding-right: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .sensor-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-inner { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .honeycomb-section { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; gap: 12px; height: auto; }
  .nav-links { display: none; }
  .nav-lang  { display: none; }
  .nav-login { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav open state — full-viewport panel (shared rules below also apply) */
  .site-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    flex: 0 0 100%;
    gap: 0;
    padding: 12px 0 0;
    order: 3;
  }

  .site-nav.nav-open .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .site-nav.nav-open .nav-links a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
  }

  .hero { padding: 80px 24px 72px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .stats-bar { gap: 28px; }
  .stat-num { font-size: 32px; }

  .section-wrap, .feature-block, .sensor-strip, .page-cta { padding: 72px 24px; }
  .section-title { font-size: 30px; }

  .grid-3, .grid-2, .sensor-grid, .enroll-grid,
  .feature-inner, .feature-inner.flip { grid-template-columns: 1fr; direction: ltr; }

  .proof-metrics { gap: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .site-footer { padding: 48px 24px 32px; }
  .honeycomb-section { padding: 64px 24px; overflow-x: hidden; }
  .honeycomb-grid { max-width: 100%; }
  .hex-cell { width: 84px; height: 72px; }
  .hex-row.offset { margin-left: 42px; }
}

@media print {
  .site-nav { position: static; }
}

/* ═══════════════════════════════════════════════
   NAV — PLATFORM DROPDOWN (Foundation, 2026-07-09)
   Desktop: hover/focus/click opens; navy panel, gold accents.
   Mobile: accordion inside the open hamburger menu.
   Reuses nav tokens; invents no new colours.
═══════════════════════════════════════════════ */
.nav-dd { position: relative; display: flex; align-items: center; }

.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-dd-toggle:hover,
.nav-dd[data-open="true"] .nav-dd-toggle { color: var(--white); }
.nav-dd-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 3px;
}
.nav-dd-caret { font-size: 13px; line-height: 1; display: inline-block; transition: transform 0.18s ease; }
.nav-dd[data-open="true"] .nav-dd-caret { transform: rotate(180deg); }


.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 320px;
  background: var(--blue-dark);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
  padding: 8px;
  z-index: 210;
  display: none;
}
/* Invisible hover bridge so the pointer can travel from toggle to panel */
.nav-dd-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dd[data-open="true"] .nav-dd-menu,
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { display: block; }

.nav-dd-menu a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.16s ease;
}
.nav-dd-menu a:hover,
.nav-dd-menu a:focus-visible { background: rgba(255,255,255,0.08); }
.nav-dd-menu a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.nav-dd-overview { border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 4px; padding-bottom: 11px; }

.nav-dd-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.nav-dd-sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  line-height: 1.35;
}
/* i18n: longer non-EN dropdown labels must wrap inside the fixed-width menu, not overflow.
   .nav-links a sets white-space:nowrap which inherits here — override it for dropdown text. */
.nav-dd-menu a, .nav-dd-name, .nav-dd-sub, .nav-dd-head, .nav-dd-head-note { white-space: normal; overflow-wrap: break-word; }
.nav-dd-name { min-width: 0; }

/* i18n: let long compound words (esp. German — "Personalentscheidung", "Führungsmannschaft")
   break instead of overflowing narrow screens. overflow-wrap:break-word only breaks a word when
   it can't otherwise fit, so desktop wrapping is unaffected. */
h1, h2, h3, h4, .hero h1, .hero-punch, .section-title, .accent, .accent-ss4,
.hub-brain-name, .hub-brain-sub, .hub-output-chip-name, .hub-output-chip-desc, .hub-sensor-chip-name {
  overflow-wrap: break-word;
}

.nav-dd-group { padding: 6px 0; }
.nav-dd-group + .nav-dd-group { border-top: 1px solid rgba(255,255,255,0.08); }

.nav-dd-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-dd-head-note {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: none;
  font-style: italic;
  color: rgba(255,255,255,0.50);
}

.nav-dd-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(219,150,31,0.16);
  padding: 1px 7px;
  border-radius: 20px;
}

/* Mobile: dropdown becomes an accordion inside the open hamburger menu */
@media (max-width: 768px) {
  .nav-dd { display: block; width: 100%; }
  .site-nav.nav-open .nav-dd-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
  }
  .nav-dd-menu {
    position: static;
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    padding: 4px 4px 8px;
    margin: 0 0 8px;
  }
  .nav-dd-menu::before { display: none; }
  /* On mobile, hover/focus-within must NOT auto-open — only the data-open toggle does */
  .nav-dd:hover .nav-dd-menu,
  .nav-dd:focus-within .nav-dd-menu { display: none; }
  .nav-dd[data-open="true"] .nav-dd-menu { display: block; }
  .nav-dd-menu a { padding: 8px 12px; }
  .nav-dd-overview { border-bottom-color: rgba(255,255,255,0.08); }
}

/* i18n responsive nav (2026-07-10, v2). The nav (8 links + switcher + login + demo) is wide, and
   labels expand a lot by language. Measured horizontal-nav fit-widths: EN ~1300, ZH ~1250, DE ~1600,
   MS ~1700, ES ~1800. So collapse to the hamburger accordion at a PER-LANGUAGE breakpoint (each
   language's own fit-width) rather than one global value — the horizontal nav stays on screens wide
   enough to hold it, and hamburgers where it wouldn't fit. The switcher stays visible at all widths.
   Open-menu rules are unconditional: inert unless JS adds .nav-open (only when the hamburger
   button is visible). Full-viewport panel so page content does not show under the menu on
   tablet/mobile. */
.site-nav.nav-open {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 0;
  padding-bottom: 24px;
  z-index: 200;
  overscroll-behavior: contain;
}
.site-nav.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  flex: 0 0 100%;
  gap: 0;
  padding: 12px 0 0;
  order: 3;
}
.site-nav.nav-open .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-nav.nav-open .nav-links a { display: block; padding: 12px 4px; font-size: 15px; color: rgba(255,255,255,0.85); }
.site-nav.nav-open .nav-dd-toggle { display: flex; width: 100%; justify-content: space-between; padding: 12px 4px; font-size: 15px; color: rgba(255,255,255,0.85); }
.site-nav.nav-open .nav-dd-menu { position: static; width: 100%; background: rgba(255,255,255,0.03); border: none; border-radius: 8px; box-shadow: none; padding: 4px 4px 8px; margin: 0 0 8px; }
.site-nav.nav-open .nav-dd-menu::before { display: none; }
.site-nav.nav-open .nav-dd:hover .nav-dd-menu, .site-nav.nav-open .nav-dd:focus-within .nav-dd-menu { display: none; }
.site-nav.nav-open .nav-dd[data-open="true"] .nav-dd-menu { display: block; }
/* Keep the top bar (logo / CTA / close) on a fixed 72px row inside the full-screen panel */
.site-nav.nav-open .nav-logo {
  min-height: 56px;
  display: flex;
  align-items: center;
}
.site-nav.nav-open .nav-hamburger {
  min-height: 56px;
  align-self: center;
  justify-content: center;
}

/* i18n responsive nav — retuned 2026-07-13 after nav tightening (gap/font/padding) + label
   shortening (CTA + longest labels in ES/MS/DE). Measured fit-widths: EN 1211, ZH 1046, MS 1329,
   DE 1358, ES 1362. Each language collapses to the hamburger just below its own fit-width, so the
   full nav now holds on any standard laptop (≥~1366) in every language — where before ES/MS
   hamburgered below 1840. Switcher stays visible at all these widths. */
@media (max-width: 1214px) {
  html[lang="en"] .nav-links { display: none; }
  html[lang="en"] .nav-login { display: none; }
  html[lang="en"] .nav-hamburger { display: flex; }
  html[lang="en"] .nav-dd { display: block; width: 100%; }
}
@media (max-width: 1050px) {
  html[lang="zh-Hans"] .nav-links, html[lang="zh-Hant"] .nav-links { display: none; }
  html[lang="zh-Hans"] .nav-login, html[lang="zh-Hant"] .nav-login { display: none; }
  html[lang="zh-Hans"] .nav-hamburger, html[lang="zh-Hant"] .nav-hamburger { display: flex; }
  html[lang="zh-Hans"] .nav-dd, html[lang="zh-Hant"] .nav-dd { display: block; width: 100%; }
}
@media (max-width: 1332px) {
  html[lang="ms"] .nav-links { display: none; }
  html[lang="ms"] .nav-login { display: none; }
  html[lang="ms"] .nav-hamburger { display: flex; }
  html[lang="ms"] .nav-dd { display: block; width: 100%; }
}
@media (max-width: 1364px) {
  html[lang="de"] .nav-links, html[lang="es"] .nav-links { display: none; }
  html[lang="de"] .nav-login, html[lang="es"] .nav-login { display: none; }
  html[lang="de"] .nav-hamburger, html[lang="es"] .nav-hamburger { display: flex; }
  html[lang="de"] .nav-dd, html[lang="es"] .nav-dd { display: block; width: 100%; }
}
/* Small phones: tighten nav padding so logo + demo + hamburger clear a 360–400px viewport. */
@media (max-width: 480px) {
  .site-nav { padding: 0 14px; }
}

/* Mobile: surface the language switcher INSIDE the open hamburger menu (2026-07-13).
   Previously .nav-lang was display:none below 768px with no in-menu fallback, so phones had no
   way to change language. There isn't room for it in the collapsed top bar on a ~360px phone, so
   when the menu opens we restack .nav-right full-width below the links and render the language
   options as a static tappable list. Collapsed bar is unchanged (logo + Book a Demo + hamburger). */
@media (max-width: 768px) {
  .site-nav.nav-open .nav-right {
    order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.10);
  }
  .site-nav.nav-open .nav-lang { display: block; width: 100%; position: static; }
  .site-nav.nav-open .nav-lang-btn { display: none; }
  .site-nav.nav-open .nav-lang-menu {
    position: static; display: block; width: 100%; min-width: 0;
    background: transparent; border: none; box-shadow: none; padding: 0; margin: 0;
  }
  .site-nav.nav-open .nav-lang-menu li {
    color: rgba(255,255,255,0.85); border-radius: 0; padding: 12px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-nav.nav-open .nav-lang-menu li:hover { background: rgba(255,255,255,0.05); }
  .site-nav.nav-open .nav-lang-menu li.is-active { color: #fff; font-weight: 600; }
  .site-nav.nav-open .nav-lang-menu .soon { color: var(--gold); background: rgba(219,150,31,0.18); }
  .site-nav.nav-open .nav-book { text-align: center; }
}
