/* ==========================================================================
   Avectron SAS — Premium Dark Design System v3.0
   Clean · Cool · Bilingual · Glassmorphism
   ========================================================================== */

/* Design Tokens */
:root {
  /* Core Palette — Deep Navy Dark */
  --primary:            #3b9eff;
  --primary-mid:        #1a7fe0;
  --primary-deep:       #0054b8;
  --primary-glow:       rgba(59, 158, 255, 0.22);
  --primary-gradient:   linear-gradient(135deg, #1a7fe0 0%, #3b9eff 100%);
  --accent:             #00d4ff;
  --accent-green:       #00e5a0;

  /* Backgrounds */
  --bg-base:            #06091a;   /* Deepest background */
  --bg-surface:         #0c1128;   /* Page surface */
  --bg-card:            rgba(255, 255, 255, 0.04);
  --bg-card-hover:      rgba(255, 255, 255, 0.07);
  --bg-glass:           rgba(12, 17, 40, 0.7);
  --bg-modal:           #0e1530;

  /* Text */
  --text-main:          #f0f4ff;
  --text-muted:         #8899bb;
  --text-faint:         #4a5880;

  /* Borders */
  --border:             rgba(59, 158, 255, 0.12);
  --border-hover:       rgba(59, 158, 255, 0.35);
  --border-glass:       rgba(255, 255, 255, 0.08);

  /* Header / Footer */
  --header-bg:          rgba(6, 9, 26, 0.85);
  --footer-bg:          #04060f;

  /* Shadows */
  --shadow-sm:          0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md:          0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg:          0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow:        0 0 30px rgba(59, 158, 255, 0.2);
  --shadow-glow-strong: 0 0 50px rgba(59, 158, 255, 0.35);

  /* Layout */
  --header-height:       102px;
  --header-height-scroll: 82px;
  --max-width:           1200px;
  --radius-sm:           8px;
  --radius-md:           14px;
  --radius-lg:           22px;
  --radius-xl:           32px;

  /* Transitions */
  --ease-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast:   all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-scroll) + 24px);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-muted);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 158, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}


/* ── Page Loader ──────────────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  animation: loader-pulse 1.4s ease-in-out infinite;
}

.loader-logo .loader-svg {
  width: 320px;
  height: auto;
  max-width: 80vw;
  filter: drop-shadow(0 0 24px rgba(59, 158, 255, 0.5));
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.loader-bar-track {
  width: 240px;
  height: 3px;
  background: rgba(59, 158, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(59, 158, 255, 0.6);
  animation: loader-sweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loader-sweep {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: loader-fade 1.1s ease forwards;
}

@keyframes loader-fade {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ── Language Switcher ────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.38rem 0.75rem;
  color: var(--text-faint);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: var(--ease-fast);
}

.lang-btn.active {
  background: var(--primary-gradient);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--text-main);
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text-main);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 800; }

h2, .page-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 1.5rem auto 4.5rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
}

h3 { font-size: 1.45rem; margin-bottom: 0.75rem; font-weight: 700; }

p {
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--ease-fast);
}
a:hover { color: var(--accent); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

.section-alt {
  background: linear-gradient(180deg, rgba(59, 158, 255, 0.03) 0%, transparent 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

/* ── Decorative Orbs ──────────────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: orb-drift 30s infinite alternate ease-in-out;
}
.orb-1 { width: 650px; height: 650px; background: rgba(59, 158, 255, 0.07); top: 5%; right: -10%; }
.orb-2 { width: 500px; height: 500px; background: rgba(0, 212, 255, 0.05); bottom: 10%; left: -8%; animation-delay: -10s; }

@keyframes orb-drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(40px, -60px); }
  100% { transform: translate(-60px, 40px); }
}

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--ease-smooth);
  display: flex;
  align-items: center;
}

header.header-scrolled {
  height: var(--header-height-scroll);
  background: rgba(4, 6, 15, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
}
.logo-svg {
  height: 68px;
  width: auto;
  transition: var(--ease-smooth);
}
header.header-scrolled .logo-svg { height: 54px; }

/* Nav */
.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.45rem 0;
  letter-spacing: 0.02em;
  transition: var(--ease-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: var(--ease-fast);
}
.nav-link:hover, .nav-link.active { color: #ffffff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.burger-menu span {
  display: block;
  width: 100%; height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--ease-fast);
}
.burger-menu.open span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  transition: var(--ease-fast);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-main);
}

/* ── Glow Cards (Glassmorphism) ───────────────────────────────────────────── */
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 158, 255, 0.5) 0%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.glow-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.glow-card:hover::before { opacity: 1; }

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--bg-surface);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.3) blur(2px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 9, 26, 0.88) 0%,
    rgba(6, 9, 26, 0.65) 60%,
    rgba(6, 9, 26, 0.82) 100%
  );
  z-index: 2;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 4rem 0;
}

.hero-content { position: relative; z-index: 3; }

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.28);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-title {
  margin-bottom: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
  font-size: clamp(2.0rem, 4.4vw, 3.4rem); /* slightly smaller, clean hero title */
  line-height: 1.25;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  text-align: justify;
  text-justify: inter-word;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 610px; /* wider layout to reduce stretched spacing in justified text */
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.hero-globe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 3;
}

#globe-canvas {
  width: 560px;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  filter: drop-shadow(0 0 65px rgba(59, 158, 255, 0.36)) drop-shadow(0 0 25px rgba(0, 229, 255, 0.18));
}

/* ── Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── macOS Browser Frame ──────────────────────────────────────────────────── */
.browser-frame {
  background: #0a0f25;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 158, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.browser-bar {
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  gap: 6px;
  position: relative;
}

.browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.browser-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 5px;
  font-size: 0.72rem;
  padding: 0.18rem 2.5rem;
  color: var(--text-faint);
  font-family: monospace;
}

.browser-content { height: 350px; overflow: hidden; position: relative; }
.browser-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--ease-smooth);
}
.browser-frame:hover .browser-img { transform: scale(1.03); }

/* ── About Grid & Full-Bleed Image ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.about-text h2 { text-align: left; margin-bottom: 1.5rem; }

.about-image-spacer {
  height: 520px;
  pointer-events: none;
}

.about-side-image-bleed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48vw;
  background-image: url('assets/headquarters.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Glowing light fade effect blending into dark base background */
.about-side-image-bleed::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(to right, var(--bg-base) 0%, transparent 22%),
              linear-gradient(to bottom, var(--bg-base) 0%, transparent 8%, transparent 92%, var(--bg-base) 100%);
  pointer-events: none;
}

/* ── Stats Bar ────────────────────────────────────────────────────────────── */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-bar-card {
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: var(--ease-smooth);
}
.stat-bar-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Global Hubs Grid ─────────────────────────────────────────────────────── */
.hubs-section-title {
  margin-bottom: 0.8rem;
}
.hubs-section-subtitle {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 4rem;
  font-size: 1.05rem;
  text-align: center;
}

.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1025px) {
  .span-2 { grid-column: span 2; }
}

.hub-card {
  border-radius: var(--radius-md);
  height: 290px; /* fixed height prevents layout shifts on hover */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: var(--ease-smooth);
  border: 1px solid var(--border-glass);
  background-clip: padding-box; /* fixes sub-pixel gaps ("cut") around borders */
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  transition: var(--ease-smooth);
  z-index: 1;
}

.hub-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.82) 55%,
    rgba(0, 0, 0, 0.35) 85%,
    transparent 100%
  );
}

.hub-card:hover {
  border-color: var(--border);
  transform: none !important; /* keeps card static on hover, no floating up or shifting */
  box-shadow: var(--shadow-sm) !important; /* keeps shadow static */
}

.hub-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.6rem;
  z-index: 2;
}

.hub-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff; /* white text for high contrast readability */
  background: rgba(4, 6, 15, 0.75); /* dark backing */
  border: 1px solid rgba(59, 158, 255, 0.45); /* bright blue outline */
  border-radius: 4px;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hub-card-content h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0;
  transition: var(--ease-smooth);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hub-card-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82); /* slightly brighter text for better readability */
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hub-card:hover .hub-card-content p {
  max-height: 120px;
  opacity: 1;
}

/* ── Expansion Timeline ───────────────────────────────────────────────────── */
.expansion-timeline {
  position: relative;
  padding: 1rem 0 0.5rem;
}

/* Vertical spine running through the centre nodes */
.expansion-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(59, 158, 255, 0.35) 8%,
    rgba(59, 158, 255, 0.35) 92%,
    transparent 100%
  );
}

/* Each row: image | node | text  (or  text | node | image for --right) */
.tl-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0 1.5rem;
  margin-bottom: 5rem;
  position: relative;
}
.tl-item:last-child { margin-bottom: 0; }

/* Image block */
.tl-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.tl-image-wrap:hover {
  box-shadow: 0 12px 60px rgba(59,158,255,0.25);
  transform: scale(1.01);
}
.tl-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.tl-image-wrap:hover img { transform: scale(1.05); }
.tl-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(4,6,15,0.35) 0%,
    rgba(14,34,80,0.2) 100%);
  pointer-events: none;
}

/* Centre node column */
.tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.tl-node-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 4px rgba(59,158,255,0.18), 0 0 18px rgba(59,158,255,0.55);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.tl-item:hover .tl-node-dot {
  box-shadow: 0 0 0 6px rgba(59,158,255,0.3), 0 0 32px rgba(59,158,255,0.8);
  transform: scale(1.25);
}

/* Future dot — dashed / pulsing ring */
.tl-node-dot--future {
  background: linear-gradient(135deg, #7c3aed, #3b9eff);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.2), 0 0 18px rgba(124,58,237,0.55);
  animation: pulse-node 2.4s ease-in-out infinite;
}
@keyframes pulse-node {
  0%,100% { box-shadow: 0 0 0 4px rgba(124,58,237,0.2), 0 0 18px rgba(124,58,237,0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(124,58,237,0.08), 0 0 36px rgba(124,58,237,0.75); }
}

/* Connecting line below each dot (except last) */
.tl-node-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(59,158,255,0.5), rgba(59,158,255,0.12));
  margin-top: 6px;
}

/* Content block */
.tl-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Phase badge */
.tl-phase-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  width: fit-content;
}
.tl-phase-hq {
  background: rgba(59,158,255,0.12);
  border: 1px solid rgba(59,158,255,0.45);
  color: #5eb6ff;
}
.tl-phase-global {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.4);
  color: #00d4ff;
}
.tl-phase-future {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.45);
  color: #a78bfa;
}

.tl-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.tl-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}
.tl-desc strong { color: var(--text-main); font-weight: 600; }

/* Inline tag pills */
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0; margin: 0;
}
.tl-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}
.tl-tags li:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

/* --right variant: content left, image right — columns already flipped by HTML order */
/* The grid order is: col1 = left, col2 = centre, col3 = right
   --left:  image | node | text
   --right: text  | node | image   (already in HTML order, nothing to do)
*/

/* ── Responsive timeline ─────────────────────────────────────── */
@media (max-width: 900px) {
  .expansion-timeline::before { display: none; }

  .tl-item,
  .tl-item--right {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.25rem 0;
  }

  /* Always: image on top, node next (hidden), text below */
  .tl-item--left  .tl-image-wrap { order: 1; }
  .tl-item--left  .tl-node       { order: 2; }
  .tl-item--left  .tl-content    { order: 3; }

  .tl-item--right .tl-content    { order: 1; }
  .tl-item--right .tl-node       { order: 2; }
  .tl-item--right .tl-image-wrap { order: 3; }

  .tl-node { flex-direction: row; height: auto; gap: 0.75rem; }
  .tl-node-line { display: none; }
  .tl-image-wrap { height: 220px; }
  .tl-item { margin-bottom: 3.5rem; }
}

@media (max-width: 600px) {
  .tl-image-wrap { height: 180px; }
  .tl-item { margin-bottom: 2.5rem; }
}


/* ── Business Model ───────────────────────────────────────────────────────── */
.model-intro {
  max-width: 700px;
  margin: 0 auto 4.5rem;
  text-align: center;
}
.model-intro p { text-align: center; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.model-card { padding: 2.8rem 2.2rem; }

.model-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(59, 158, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--primary);
  border: 1px solid rgba(59, 158, 255, 0.2);
}

.model-card h3 { margin-bottom: 1rem; color: var(--text-main); }
.model-card p  { font-size: 0.95rem; }

.connection-flow-panel {
  margin-top: 4rem;
  background: var(--bg-card);
  padding: 3.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}
.connection-flow-panel h3 { color: var(--text-main); margin-bottom: 1.2rem; }

/* ── Products ─────────────────────────────────────────────────────────────── */
.products-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4.5rem;
}
.products-intro p { text-align: center; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-content {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.product-title { font-size: 1.3rem; margin-bottom: 0.9rem; color: var(--text-main); }
.product-description { font-size: 0.93rem; margin-bottom: 1.4rem; flex-grow: 1; }

.product-summary-specs {
  list-style: none;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.product-summary-specs li {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
}
.product-summary-specs li strong { color: var(--text-main); }

/* ── Hardware Chassis Panels ──────────────────────────────────────────────── */
.hardware-chassis-container {
  height: 220px;
  background: #030710;
  border-bottom: 1px solid var(--border-glass);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hardware-chassis-container::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,158,255,0.04), transparent);
  transform: skewX(-20deg);
  animation: chassis-sweep 7s infinite linear;
}

@keyframes chassis-sweep {
  0%   { left: -100%; }
  30%  { left: 200%; }
  100% { left: 200%; }
}

.chassis-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.7rem;
}

.chassis-badge {
  font-family: monospace;
  font-size: 0.68rem;
  padding: 0.1rem 0.5rem;
  background: rgba(59,158,255,0.12);
  border: 1px solid rgba(59,158,255,0.25);
  color: var(--primary);
  border-radius: 3px;
  font-weight: bold;
}

.chassis-leds-panel { display: flex; gap: 5px; }

.chassis-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a2540;
}
.chassis-led.led-blue  { background: var(--primary); box-shadow: 0 0 7px var(--primary); animation: blink-led 1s infinite step-end; }
.chassis-led.led-green { background: #00e5a0; box-shadow: 0 0 7px #00e5a0; animation: blink-led 1.7s infinite step-end alternate; }
.chassis-led.led-amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; animation: blink-led 3s infinite step-end; }

@keyframes blink-led { 50% { opacity: 0.2; } }

.chassis-slots-vent {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  height: 68px;
  margin: 0.9rem 0;
}

.chassis-slot-bay {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 3px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3px;
}

.chassis-slot-bay.loaded {
  background: rgba(59,158,255,0.07);
  border: 1px solid rgba(59,158,255,0.22);
}

.chassis-slot-bay::after {
  content: '';
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}

.chassis-slot-bay.loaded::after {
  background: var(--primary);
  box-shadow: 0 0 4px var(--primary);
}

.chassis-ports-matrix {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  height: 58px;
  margin: 0.9rem 0;
}

.chassis-port-connector {
  background: #0d1530;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  position: relative;
}

.chassis-port-connector.linked::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #00e5a0;
  box-shadow: 0 0 4px #00e5a0;
}

.chassis-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chassis-system-name {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* ── Comparison Table ─────────────────────────────────────────────────────── */
.comparison-section { margin-top: 5rem; }
.comparison-title { text-align: center; font-size: 1.8rem; margin-bottom: 2.5rem; color: var(--text-main); }

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}

table { width: 100%; border-collapse: collapse; text-align: left; min-width: 760px; }

th, td {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-glass);
}

th {
  background: rgba(59,158,255,0.05);
  color: var(--text-main);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(59,158,255,0.03); }
td strong { color: var(--text-main); }

td .spec-highlight {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  background: rgba(59,158,255,0.1);
  border: 1px solid rgba(59,158,255,0.22);
  border-radius: 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Compliance ───────────────────────────────────────────────────────────── */
.compliance-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.compliance-text p { margin-bottom: 1.8rem; }

.compliance-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.compliance-card { padding: 2.2rem 2rem; }
.compliance-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.compliance-card h3 svg { color: var(--primary); flex-shrink: 0; }
.compliance-card p { font-size: 0.9rem; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4.5rem; }
.contact-info-container { display: flex; flex-direction: column; gap: 0; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(59,158,255,0.08);
  border: 1px solid rgba(59,158,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--text-main); }
.contact-details p { font-size: 0.92rem; }

.map-card {
  margin-top: 2rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  position: relative;
  background: var(--bg-card);
  background-clip: padding-box; /* fixes sub-pixel gaps at rounded corners */
}

.map-card:hover {
  transform: none !important; /* keeps card static on hover */
  box-shadow: var(--shadow-sm) !important; /* keeps shadow static */
}

.map-placeholder-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transition: var(--ease-smooth);
}
.map-card:hover .map-placeholder-img { opacity: 0.28; }

.map-overlay-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
}
/* Override .btn-primary:hover transform to preserve centering — prevents the
   hover feedback-loop bug where the button jumps off-centre, loses hover,
   snaps back, re-triggers hover, and shakes indefinitely. */
.map-overlay-btn:hover {
  transform: translate(-50%, calc(-50% - 2px)) !important;
}

.contact-form-card { padding: 2.8rem; }

.form-group { margin-bottom: 1.6rem; position: relative; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
  letter-spacing: 0.06em;
  transition: var(--ease-fast);
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.93rem;
  transition: var(--ease-fast);
}

.form-input::placeholder { color: var(--text-faint); }

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,158,255,0.12);
  background: rgba(59,158,255,0.04);
}

.form-group:has(.form-input:focus) .form-label { color: var(--primary); }
.form-input:user-valid { border-color: var(--accent-green); }

textarea.form-input { resize: vertical; min-height: 120px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo-desc p { margin-top: 1rem; font-size: 0.92rem; max-width: 290px; }

.footer-col h3 { font-size: 1rem; margin-bottom: 1.4rem; color: var(--text-main); font-family: 'Outfit', sans-serif; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; transition: var(--ease-fast); }
.footer-links a:hover { color: #ffffff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a { font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: #ffffff; }

/* ── Spec Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 15, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-card-content {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.modal-overlay.open .modal-card-content { transform: scale(1); }

.modal-close-btn {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--ease-fast);
  line-height: 1;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.modal-header { padding: 2.4rem 2.4rem 1.5rem; border-bottom: 1px solid var(--border-glass); }
.modal-brand  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); display: block; margin-bottom: 0.4rem; }
.modal-title  { font-size: 1.5rem; color: var(--text-main); font-family: 'Outfit', sans-serif; }

.modal-body   { padding: 1.5rem 2.4rem 2.4rem; }

.modal-specs-list { display: flex; flex-direction: column; gap: 0.6rem; }

.modal-spec-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
}
.modal-spec-name  { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.modal-spec-value { font-size: 0.9rem; color: var(--text-main); }

/* ── Privacy Page ─────────────────────────────────────────────────────────── */
.privacy-hero {
  background: linear-gradient(135deg, rgba(59,158,255,0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-glass);
  padding: 3rem 0 2rem;
}

@media (max-width: 1024px) {
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-grid, .compliance-container { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .model-grid     { grid-template-columns: 1fr 1fr; }
  
  .about-image-spacer { display: none; }
  .about-side-image-bleed {
    position: relative;
    width: 100%;
    height: 380px;
    margin-top: 2rem;
  }
  .about-side-image-bleed::after {
    background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 15%, transparent 85%, var(--bg-base) 100%);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 76px;
    --header-height-scroll: 64px;
  }

  .logo-svg { height: 52px; }
  header.header-scrolled .logo-svg { height: 44px; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh; width: 280px;
    background: #04060f;
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.8rem;
    transition: var(--ease-smooth);
    z-index: 999;
  }
  .nav-menu.active { right: 0; }
  .burger-menu { display: flex; }

  .hero-grid-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-content { text-align: center; }
  .hero-description { text-align: center; margin: 0 auto 2rem; }
  .hero-title { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-globe-container { display: none; }

  .about-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-text h2  { text-align: center; }

  .model-grid, .products-grid, .hubs-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .span-2 { grid-column: span 1; }

  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  .modal-spec-row { grid-template-columns: 1fr; gap: 0.3rem; }

  .contact-form-card { padding: 2rem 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE OPTIMISATION LAYER
   Tested breakpoints: 375px (iPhone SE), 390px (iPhone 14), 412px (Pixel),
   768px (iPad), 1024px (iPad Pro)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Global overflow guard ────────────────────────────────────────────────── */
html, body { max-width: 100vw; overflow-x: hidden; }
img, video, canvas, iframe, table { max-width: 100%; }

/* ── Fluid typography ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1, .hero-title    { font-size: clamp(1.85rem, 7vw, 2.8rem) !important; line-height: 1.15 !important; }
  h2, .section-title { font-size: clamp(1.45rem, 5.5vw, 2.2rem) !important; }
  h3                 { font-size: clamp(1.05rem, 4vw, 1.35rem) !important; }
  .section           { padding: 4.5rem 0; }
  .container         { padding: 0 1.25rem; }
  .page-hero         { padding: 6rem 0 3rem; }
  .hubs-section-title, .section-lead { text-align: center; }
}

@media (max-width: 480px) {
  h1, .hero-title    { font-size: clamp(1.55rem, 8vw, 2rem) !important; }
  h2, .section-title { font-size: clamp(1.25rem, 6.5vw, 1.65rem) !important; }
  .section           { padding: 3rem 0; }
  .container         { padding: 0 1rem; }
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .stats-bar-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 0.75rem; }
  .stat-number    { font-size: 2rem; }
}

/* ── Hero CTA buttons ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Timeline ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .tl-title      { font-size: 1.1rem; }
  .tl-desc       { font-size: 0.87rem; }
  .tl-tags li    { font-size: 0.72rem; padding: 0.2rem 0.55rem; }
  .tl-phase-badge{ font-size: 0.67rem; }
}

/* ── Products page: table horizontal scroll ───────────────────────────────── */
@media (max-width: 900px) {
  .table-wrap, .product-table-wrap, .comparison-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
  .comparison-table, .spec-table { min-width: 540px; }
  .product-card { padding: 1.75rem 1.25rem; }
}

/* ── Business model cards ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .model-card { padding: 2rem 1.5rem; }
}

/* ── Compliance cards ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .compliance-container { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .comp-card { padding: 2rem 1.5rem; }
}

/* ── Contact page ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .map-card { height: 240px; min-height: 200px; }
  .contact-info-card { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .map-card { height: 200px; }
  .map-overlay-btn { font-size: 0.85rem; padding: 0.7rem 1.4rem; }
}

/* ── Modal full-screen on small phones ────────────────────────────────────── */
@media (max-width: 600px) {
  .modal-box     { width: 96vw; max-height: 90vh; padding: 1.5rem 1.1rem; border-radius: var(--radius-sm); overflow-y: auto; }
  .modal-close-btn { top: 0.75rem; right: 0.75rem; }
  .modal-header  { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .modal-tabs    { gap: 0.3rem; overflow-x: auto; flex-wrap: nowrap; }
  .modal-tab-btn { font-size: 0.82rem; padding: 0.5rem 0.9rem; white-space: nowrap; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  footer              { padding: 3rem 0 1.5rem; }
  .footer-links li    { margin-bottom: 0.4rem; }
  .footer-links a     { font-size: 0.88rem; }
  .footer-bottom      { gap: 1rem; font-size: 0.8rem; }
  .footer-bottom-links { flex-direction: column; align-items: center; gap: 0.5rem; }
  .footer-logo-desc p { max-width: 100%; }
}

/* ── Language switcher ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .lang-switcher { gap: 0.35rem; }
  .lang-btn      { padding: 0.28rem 0.65rem; font-size: 0.75rem; }
}

/* ── Tap target minimum size (WCAG) ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-link, .footer-links a, .lang-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .burger-menu { min-width: 44px; min-height: 44px; }
}

/* ── Nav mobile overlay backdrop ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 997;
    backdrop-filter: blur(3px);
  }
  .nav-overlay.active { display: block; }
}

/* ── About section image on mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .about-side-image-bleed { height: 240px; }
}
@media (max-width: 480px) {
  .about-side-image-bleed { height: 180px; }
}

/* ── Glow cards & general cards ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .glow-card { padding: 1.5rem 1.1rem; }
}

/* ── Section eyebrow labels ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-eyebrow { display: block; text-align: center; }
}
