/* 01. Compact language control, independent of the mobile navigation. */
.nav-shell { gap: 24px; }
.main-nav { margin-left: auto; }
.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px;
  gap: 2px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #f5f8fd;
}
.language-switch a {
  padding: 6px 10px;
  min-width: 38px;
  text-align: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: #64758c;
}
.language-switch a:hover { color: var(--blue); }
.language-switch a[aria-current="true"] {
  background: #0759e6;
  color: #fff;
  box-shadow: 0 2px 6px #0759e624;
}
.language-switch a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* 02. English copy wraps naturally without changing the centered page grid. */
html[lang="en"] .brand strong { letter-spacing: 1px; font-size: 22px; }
html[lang="en"] .hero h1 {
  white-space: normal;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1.16;
  letter-spacing: -1.6px;
}
html[lang="en"] .hero-principles { flex-wrap: wrap; gap: 12px 18px; }
html[lang="en"] .hero-kicker { letter-spacing: 1px; font-size: 10px; }
html[lang="en"] .main-nav { gap: clamp(16px, 2vw, 28px); font-size: 13px; }
html[lang="en"] .main-nav a { white-space: nowrap; }
html[lang="en"] .page-hero h1 { max-width: 950px; line-height: 1.25; }
html[lang="en"] .section h2 { line-height: 1.3; letter-spacing: -.7px; }
html[lang="en"] .industry-tabs button { white-space: normal; line-height: 1.4; }
html[lang="en"] .floating-node strong { font-size: 12px; }
html[lang="en"] .gateway-core strong { font-size: 17px; }
html[lang="en"] .gateway-core span { letter-spacing: 0; font-size: 10px; }
html[lang="en"] .ai-apps span { font-size: 10px; }
html[lang="en"] .delivery-steps small { line-height: 1.6; display: block; }
html[lang="en"] .graphic-label.label-bottom { letter-spacing: 0; font-size: 9px; }

/* 03. Tablet headers and mobile controls remain visible and touch-friendly. */
@media (min-width: 701px) and (max-width: 1100px) {
  .nav-shell { gap: 16px; }
  .main-nav { gap: 20px; }
  html[lang="en"] .main-nav { gap: 14px; font-size: 12px; }
  html[lang="en"] .brand strong { font-size: 18px; }
  html[lang="en"] .hero h1 { font-size: clamp(30px, 4vw, 42px); }
}
@media (max-width: 800px) and (min-width: 701px) {
  .nav-shell { gap: 10px; }
  .main-nav { gap: 12px; font-size: 12px; }
  html[lang="en"] .main-nav { gap: 10px; font-size: 11px; }
  .brand img { width: 34px; height: 34px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 19px; }
  html[lang="en"] .brand strong { font-size: 16px; }
  .language-switch a { padding-inline: 7px; min-width: 32px; }
}
@media (max-width: 700px) {
  .nav-shell { gap: 10px; }
  .brand { margin-right: auto; }
  .menu-toggle { order: 3; }
  .language-switch { order: 2; padding: 3px; }
  .language-switch a { min-height: 34px; min-width: 34px; padding: 7px 8px; font-size: 11px; }
  .main-nav { margin-left: 0; }
  html[lang="en"] .brand strong { font-size: 19px; }
  html[lang="en"] .hero h1 { font-size: clamp(34px, 8.7vw, 46px); letter-spacing: -1px; }
  html[lang="en"] .topbar .container > span:last-child { letter-spacing: 0; font-size: 9px; }
  html[lang="en"] .main-nav { gap: 0; font-size: 14px; }
  html[lang="en"] .page-hero h1 { font-size: clamp(27px, 7.4vw, 34px); }
  html[lang="en"] .section h2 { font-size: 27px; }
  html[lang="en"] .industry-tabs button { white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav-shell { gap: 6px; }
  .brand { gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong, html[lang="en"] .brand strong { font-size: 17px; }
  .brand small { font-size: 7px; letter-spacing: 1px; }
  .language-switch a { padding-inline: 6px; min-width: 30px; }
  .menu-toggle { padding-inline: 4px; }
}
