/* =====================================================
   Energy Tech — Premium Industrial Rebuild
   Plain CSS · design tokens · responsive · accessible
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #081427;
  --navy-800: #0c1f3d;
  --navy-700: #122c52;
  --navy-600: #1a3a66;

  --blue-600: #1b4dd8;   /* primary brand */
  --blue-500: #2f6bf0;
  --blue-400: #5b8cff;

  --red: #e2231a;        /* logo accent — used sparingly */

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --line: #e2e8f0;

  --text: #0d1b2a;
  --muted: #5b6b7f;
  --muted-light: #9fb2c9;

  /* Effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px -12px rgba(8, 20, 39, 0.18);
  --shadow-card: 0 18px 50px -20px rgba(8, 20, 39, 0.28);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 76px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #0a1424;
  --surface: #0f1d33;
  --surface-2: #16273f;
  --line: #1f3252;

  --text: #e8eef6;
  --muted: #9fb2c9;
  --muted-light: #7e93ac;

  --shadow-soft: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 22px 55px -22px rgba(0, 0, 0, 0.75);
}

/* Smooth transition when switching themes */
body,
.site-header,
.product-card,
.cert-card,
.info-card,
.contact__form,
.field input,
.field textarea,
.spec,
.pill,
.about__badge {
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--navy-800);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head--light { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--blue-400); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.6rem;
  opacity: 0.7;
}

.section-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 700; }
.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: 65ch;
}
.section-lead--light { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 12px 26px -12px rgba(27, 77, 216, 0.7);
}
.btn--primary:hover { background: var(--blue-500); box-shadow: 0 16px 32px -12px rgba(27, 77, 216, 0.85); }

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); background: rgba(47, 107, 240, 0.06); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); }

.btn--lg { padding: 1.02rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 250, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(8, 20, 39, 0.4);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand { margin-right: auto; display: inline-flex; }
.brand__logo { height: 34px; width: auto; }

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--blue-500); color: var(--blue-500); }
.theme-toggle__icon { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Language switch (flags) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lang-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lang-btn.is-active { opacity: 1; background: var(--surface-2); }
.lang-btn img {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(8, 20, 39, 0.12);
  pointer-events: none;
}
.lang-btn:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
:root[data-theme="dark"] .lang-btn img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 0.4rem; }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.32rem;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover { color: var(--blue-600); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--blue-600); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark-mode component fixes (sections that hardcode light values) */
:root[data-theme="dark"] .site-header { background: rgba(10, 20, 36, 0.72); }
:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(15, 29, 51, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.7);
}
:root[data-theme="dark"] .product-card__media {
  background: radial-gradient(75% 70% at 50% 35%, #1a2c47 0%, #122139 70%, #0d1a2e 100%);
}
:root[data-theme="dark"] .product-card__img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
:root[data-theme="dark"] .spec--accent {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
}
:root[data-theme="dark"] .nav-toggle { border-color: var(--line); }
:root[data-theme="dark"] .nav-toggle__bar { background: var(--text); }
:root[data-theme="dark"] .btn--outline { color: var(--blue-400); }
:root[data-theme="dark"] .btn--outline:hover { background: rgba(91, 140, 255, 0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 100% at 80% -10%, var(--navy-700) 0%, var(--navy-900) 55%),
    var(--navy-900);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 25%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 10%, #000 25%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(47, 107, 240, 0.4) 0%, transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: min(72vh, 640px);
}
.hero__title {
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #cdd9ec;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d7e2f3;
}
.trust-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.18);
}

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__product-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.86;
}
.hero__ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(91, 140, 255, 0.25);
}
.hero__ring--2 { width: 100%; border-color: rgba(91, 140, 255, 0.12); }
.hero__product {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.spec-chip {
  position: absolute;
  background: rgba(12, 31, 61, 0.72);
  border: 1px solid rgba(91, 140, 255, 0.4);
  backdrop-filter: blur(6px);
  color: #eaf1ff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}
.spec-chip--a { top: 8%; left: 0; }
.spec-chip--b { top: 42%; right: -2%; }
.spec-chip--c { bottom: 10%; left: 6%; }

/* ---------- Products ---------- */
.products { background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: #cfe0ff;
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background:
    radial-gradient(75% 70% at 50% 35%, #ffffff 0%, #eef2f8 70%, #e6ecf5 100%);
  border-bottom: 1px solid var(--line);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(8, 20, 39, 0.18));
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.04); }

.product-card__body { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem 1.5rem 1.7rem; flex: 1; }
.product-card__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(47, 107, 240, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}
.product-card__title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

.spec-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.1rem; }
.spec {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
}
.spec--accent {
  color: #0a7d3a;
  background: rgba(16, 160, 80, 0.1);
  border-color: rgba(16, 160, 80, 0.25);
}
.product-card__cta { margin-top: auto; align-self: flex-start; }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.about__text { margin-top: 1.2rem; font-size: 1.06rem; color: var(--muted); max-width: 56ch; }
.about__badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
}
.about__badge-num { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--text); white-space: nowrap; }
.about__badge-text { color: var(--muted); font-size: 0.95rem; }

/* Blueprint visual */
.blueprint {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 20% 0%, var(--navy-700), var(--navy-900));
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.blueprint__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 85%);
          mask-image: linear-gradient(120deg, #000, transparent 85%);
}
.blueprint__brandmark {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  align-self: flex-start;
  box-shadow: var(--shadow-soft);
}
.blueprint__brandmark img { height: 30px; width: auto; }
.blueprint__stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid rgba(91, 140, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.bp-stat {
  background: rgba(8, 20, 39, 0.55);
  backdrop-filter: blur(4px);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bp-stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; }
.bp-stat__label { font-size: 0.78rem; color: var(--muted-light); }

/* ---------- Quality ---------- */
.quality {
  background:
    linear-gradient(180deg, rgba(8, 20, 39, 0.92), rgba(8, 20, 39, 0.97)),
    radial-gradient(100% 120% at 80% 0%, rgba(18, 44, 82, 0.85) 0%, transparent 60%),
    url("../img/home/Q.jpg") center / cover no-repeat,
    var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.quality__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 80%);
          mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 80%);
  pointer-events: none;
}
.quality .container { position: relative; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.cert-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 140, 255, 0.55);
  background: rgba(47, 107, 240, 0.1);
}
.cert-card__icon { width: 46px; height: 46px; color: var(--blue-400); margin-bottom: 0.3rem; }
.cert-card__code { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -0.01em; }
.cert-card__label { font-size: 0.85rem; color: var(--muted-light); }

/* ---------- Global Reach ---------- */
.reach { background: var(--bg); }
.reach__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.reach__text { margin-top: 1.2rem; font-size: 1.06rem; color: var(--muted); max-width: 56ch; }
.reach__badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.reach-map {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 100% at 30% 20%, var(--navy-700), var(--navy-900));
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.reach-map__svg { width: 100%; height: auto; display: block; }
.reach-map__pulse { transform-origin: 205px 175px; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.reach-map__hub-label {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: #eaf1ff;
  background: rgba(8, 20, 39, 0.6);
  border: 1px solid rgba(91, 140, 255, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.info-card:hover { transform: translateY(-3px); border-color: #cfe0ff; box-shadow: var(--shadow-soft); }
.info-card__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(47, 107, 240, 0.1);
  color: var(--blue-600);
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card__meta { display: flex; flex-direction: column; min-width: 0; }
.info-card__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.info-card__value { font-weight: 600; color: var(--text); word-break: break-word; }
.contact__quick { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  width: 100%;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa8ba; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 107, 240, 0.15);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--red); }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-note.is-error { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c6d3e6; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.footer__logo-plate {
  display: inline-block;
  background: #fff;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
}
.footer__logo-plate img { height: 30px; width: auto; }
.footer__tagline { margin-top: 1.1rem; font-size: 0.92rem; color: var(--muted-light); max-width: 38ch; }
.footer__heading {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__list { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__list a, .footer__list span { font-size: 0.93rem; color: #c6d3e6; transition: color 0.18s var(--ease); }
.footer__list a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted-light);
}
.footer__meta { letter-spacing: 0.04em; }

/* ---------- Mobile nav offcanvas (panel set in media query) ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 39, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  z-index: 90;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* scroll offset for sticky header */
:where(#home, #products, #why, #about, #technology, #quality, #process, #reach, #faq, #contact) { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Reveal-on-scroll animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* Directional & scale variants — the .is-visible rule above resets them all */
.reveal--left  { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.reveal--up    { transform: translateY(44px); }
.reveal--down  { transform: translateY(-32px); }
.reveal--zoom  { transform: scale(0.92); }
.reveal--fade  { transform: none; }
.reveal--blur  { filter: blur(10px); }

/* ---------- Centered section heads ---------- */
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-lead--center { margin-inline: auto; }

/* ---------- Stats band ---------- */
.stats-band {
  position: relative;
  background:
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  border-top: 1px solid rgba(91, 140, 255, 0.18);
  border-bottom: 1px solid rgba(91, 140, 255, 0.12);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.stat {
  text-align: center;
  padding: 0.6rem 0.8rem;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(91, 140, 255, 0.22);
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #9bb8ff);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__suffix { -webkit-text-fill-color: initial; color: var(--blue-400); font-size: 0.55em; margin-left: 0.12em; }
.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-light);
}

/* ---------- Why Choose Us / Features ---------- */
.features { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
}
.feature-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: #cfe0ff;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(47, 107, 240, 0.1);
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card__text { color: var(--muted); font-size: 0.96rem; }
:root[data-theme="dark"] .feature-card__icon { background: rgba(91, 140, 255, 0.14); color: var(--blue-400); }

/* ---------- About photo plate ---------- */
.blueprint__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(91, 140, 255, 0.25);
  align-self: flex-start;
}
.blueprint__photo img { width: 100%; height: clamp(160px, 22vw, 220px); object-fit: cover; display: block; }
.blueprint__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 20, 39, 0.55));
}

/* ---------- Technology ---------- */
.technology { background: var(--bg); overflow: hidden; }
.tech__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.tech__text { margin-top: 1.2rem; font-size: 1.06rem; color: var(--muted); max-width: 56ch; }
.tech__list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.tech-point { display: flex; gap: 1rem; align-items: flex-start; }
.tech-point__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(47, 107, 240, 0.1);
  color: var(--blue-600);
}
.tech-point__icon svg { width: 22px; height: 22px; }
.tech-point strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--text); }
.tech-point span span { color: var(--muted); font-size: 0.95rem; }
:root[data-theme="dark"] .tech-point__icon { background: rgba(91, 140, 255, 0.14); color: var(--blue-400); }

.tech-compare {
  background: radial-gradient(120% 100% at 20% 0%, var(--navy-700), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tech-compare__row { display: flex; flex-direction: column; gap: 0.6rem; }
.tech-compare__name { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted-light); }
.tech-compare__row--accent .tech-compare__name { color: var(--blue-400); }
.tech-compare__track {
  height: 56px;
  border-radius: var(--radius);
  background: rgba(8, 20, 39, 0.5);
  border: 1px solid rgba(91, 140, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.tech-compare__wave { position: absolute; inset: 0; }
.tech-compare__wave--square {
  background-image: repeating-linear-gradient(90deg,
    rgba(120, 140, 170, 0.55) 0 4px, transparent 4px 8px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 44px);
          mask-image: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 44px);
  opacity: 0.7;
}
.tech-compare__wave--smooth {
  background: linear-gradient(90deg, rgba(47, 107, 240, 0.15), rgba(91, 140, 255, 0.5));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56' viewBox='0 0 120 56'%3E%3Cpath d='M0 40 Q30 8 60 28 T120 20' fill='none' stroke='%23000' stroke-width='6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56' viewBox='0 0 120 56'%3E%3Cpath d='M0 40 Q30 8 60 28 T120 20' fill='none' stroke='%23000' stroke-width='6'/%3E%3C/svg%3E");
  -webkit-mask-size: 120px 56px; mask-size: 120px 56px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.tech-compare__legend { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tech-compare__chip {
  font-size: 0.76rem; font-weight: 600;
  color: #eaf1ff;
  background: rgba(47, 107, 240, 0.18);
  border: 1px solid rgba(91, 140, 255, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
}

/* ---------- Process ---------- */
.process { background: var(--surface); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.3vw, 1.9rem);
}
.process-step__num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue-600);
  background: rgba(47, 107, 240, 0.1);
  width: 56px; height: 56px;
  line-height: 56px;
  text-align: center;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.process-step__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.45rem; }
.process-step__text { color: var(--muted); font-size: 0.94rem; }
/* connector arrows between steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(clamp(1.4rem, 2.3vw, 1.9rem) + 28px);
  right: calc(clamp(1.1rem, 2.4vw, 1.8rem) / -2 - 4px);
  width: 8px; height: 8px;
  border-top: 2px solid var(--blue-400);
  border-right: 2px solid var(--blue-400);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}
:root[data-theme="dark"] .process-step__num { background: rgba(91, 140, 255, 0.14); color: var(--blue-400); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq__inner { max-width: 820px; margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item[open] { border-color: #cfe0ff; box-shadow: var(--shadow-soft); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__mark {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq-item__mark::before,
.faq-item__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq-item__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__mark::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
.faq-item__a {
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}
:root[data-theme="dark"] .faq-item__mark::before,
:root[data-theme="dark"] .faq-item__mark::after { background: var(--blue-400); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 20, 39, 0.92), rgba(18, 44, 82, 0.86)),
    url("../img/home/Contact.jpg") center / cover no-repeat;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; max-width: 18ch; }
.cta-band__lead { margin-top: 0.8rem; color: #cdd9ec; max-width: 48ch; font-size: 1.04rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Accessibility helper ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  will-change: transform;
}

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  z-index: 90;
  color: #fff;
  background: var(--blue-600);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(27, 77, 216, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s var(--ease), background 0.18s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-500); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Spec comparison table ---------- */
.compare { background: var(--surface-2); }
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}
.compare-wrap:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.96rem;
}
.compare-table th,
.compare-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  white-space: nowrap;
}
.compare-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.compare-table tbody th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.compare-table tbody td { color: var(--text); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th { background: rgba(47, 107, 240, 0.05); }
.compare-table .compare-strong {
  font-weight: 700;
  color: var(--blue-600);
}
:root[data-theme="dark"] .compare-table .compare-strong { color: var(--blue-400); }
.compare-hint {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  display: none;
}

/* ---------- Applications ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: #cfe0ff;
}
.app-card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  color: var(--blue-600);
  background: rgba(47, 107, 240, 0.1);
}
.app-card__icon svg { width: 26px; height: 26px; }
.app-card__title { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.5rem; }
.app-card__text { color: var(--muted); font-size: 0.95rem; }
:root[data-theme="dark"] .app-card:hover { border-color: var(--blue-600); }

/* ---------- Global Reach photo ---------- */
.reach__visual { position: relative; }
.reach__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 2;
}
.reach__photo img { width: 100%; height: 100%; object-fit: cover; }
.reach__visual .reach-map {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 56%;
  min-width: 180px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -22px rgba(8, 20, 39, 0.55);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface-2); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.testi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.testi-card__quote {
  width: 34px; height: 34px;
  color: var(--blue-400);
  opacity: 0.55;
  flex-shrink: 0;
}
.testi-card__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}
.testi-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.testi-card__name { font-family: var(--font-head); font-weight: 600; color: var(--text); }
.testi-card__role { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer legal links ---------- */
.footer__legal { display: inline-flex; gap: 1.1rem; }
.footer__legal a { color: var(--muted-light); font-size: 0.9rem; transition: color 0.18s var(--ease); }
.footer__legal a:hover { color: var(--blue-400); }

/* ---------- Legal page ---------- */
.legal-home { margin-right: auto; }
.legal-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--bg); }
.legal-wrap { max-width: 820px; }
.legal-section {
  margin-top: 2.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.legal-section__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 0.4rem; }
.legal-section__sub {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.6rem 0 0.4rem;
}
.legal-section__lead { color: var(--muted); margin-bottom: 0.6rem; }
.legal-section__meta { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 0.8rem; }
.legal-section p { color: var(--muted); }
.legal-section a { color: var(--blue-600); }
:root[data-theme="dark"] .legal-section a { color: var(--blue-400); }
.legal-dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.6rem 1.4rem;
  margin: 1.2rem 0 0.5rem;
}
.legal-dl dt { font-weight: 600; color: var(--text); }
.legal-dl dd { margin: 0; color: var(--muted); }
.legal-back-link { margin-top: 2.6rem; }
@media (max-width: 540px) {
  .legal-dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .legal-dl dd { margin-bottom: 0.8rem; }
  .legal-home { font-size: 0.85rem; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero__content { order: 1; }
  .hero__visual { order: 2; max-width: 460px; margin-inline: auto; }
  .hero__actions, .trust-badges { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .stats-band__grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1px; }
  .stat:nth-child(3)::before { display: none; }

  .about__inner, .reach__inner, .contact__inner, .tech__inner { grid-template-columns: 1fr; }
  .about__visual { order: 2; }
  .about__content { order: 1; }
  .tech__visual { order: 2; max-width: 520px; margin-inline: auto; width: 100%; }
  .tech__content { order: 1; }
  .reach__visual { max-width: 480px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    background: var(--surface);
    box-shadow: -20px 0 50px -20px rgba(8, 20, 39, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 95;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__link { display: block; padding: 0.9rem 0.6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.2rem; width: 100%; }

  .hero__product-stage { aspect-ratio: 1 / 0.8; }
  .spec-chip { font-size: 0.72rem; padding: 0.35rem 0.65rem; }

  .compare-hint { display: block; }
  .reach__visual .reach-map {
    position: static;
    width: 100%;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
  }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: block; }
  .stat:nth-child(odd)::before { display: none; }
  .blueprint__stats { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions .btn, .contact__quick .btn, .cta-band__actions .btn { flex: 1 1 auto; }
  .spec-chip--b { right: 0; }
  .cta-band__actions { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition-delay: 0s !important; }
}
