/* ==========================================================================
   ZenSource Electronics — Official Website
   Palette: deep green #1B4D3E · deep navy #0F2A43 · gold accent #C9A54B
   ========================================================================== */

:root {
  /* Brand colors */
  --navy-950: #07192B;
  --navy-900: #0A2135;
  --navy-800: #0F2A43;
  --navy-700: #153552;
  --navy-600: #1C4568;

  --green-800: #14352B;
  --green-700: #1B4D3E;
  --green-600: #246657;
  --green-500: #2E7D6B;

  --gold-700: #8A6A2A;
  --gold-600: #A9852F;
  --gold-500: #C9A54B;
  --gold-400: #D9BC6E;
  --gold-300: #E8D5A0;

  /* Neutrals */
  --ivory-50: #F9F7F2;
  --ivory-100: #F2EFE6;
  --ivory-200: #E9E5D8;
  --line: #E3DED0;
  --ink-900: #16231E;
  --ink-700: #33413B;
  --ink-500: #62716A;

  --white: #FFFFFF;

  /* Type */
  --font-display: 'Space Grotesk', 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --header-h: 78px;
  --shadow-card: 0 18px 40px -22px rgba(7, 25, 43, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.btn-sm { padding: 11px 22px; font-size: 14px; }

.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-300); background: rgba(201, 165, 75, 0.08); }

.btn-outline { border-color: var(--gold-600); color: var(--gold-700); }
.btn-outline:hover { background: rgba(201, 165, 75, 0.1); }

.btn-block { width: 100%; }

/* ==========================================================================
   Eyebrow
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  flex: none;
}
.eyebrow.on-dark { color: var(--gold-400); }
.eyebrow.on-dark .dot { background: var(--gold-400); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 25, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  height: 62px;
  width: auto;
  transform-origin: 50% 50%;
  animation: logoSpinIn 1.1s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}
@keyframes logoSpinIn {
  0% { opacity: 0; transform: rotate(-360deg) scale(0.5); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
.footer-logo { height: 40px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--white); }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 14px; font-size: 15px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Pages & routing
   ========================================================================== */
.page { display: none; }
.page.active { display: block; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 900px);
  padding-top: var(--header-h);
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero.jpg') center / cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 85% at 50% 44%, rgba(15, 42, 67, 0) 0%, rgba(10, 33, 53, 0.22) 60%, rgba(7, 25, 43, 0.45) 100%),
    linear-gradient(115deg, rgba(7, 25, 43, 0.96) 0%, rgba(10, 33, 53, 0.86) 40%, rgba(15, 42, 67, 0.55) 78%, rgba(7, 25, 43, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(56px, 10vh, 120px);
  padding-bottom: 48px;
  max-width: 860px;
}

.hero-title {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 25, 43, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 26px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(72px, 9vw, 116px); }

.section-light { background: var(--ivory-50); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 18px;
}
.section-head .lead { margin: 0; }

.lead {
  font-size: 1.06rem;
  color: var(--ink-500);
  line-height: 1.75;
}

/* Dark band with circuit pattern — radial glow: lighter center, deeper edges */
.band-dark {
  position: relative;
  background: radial-gradient(ellipse 118% 96% at 50% 42%, var(--navy-800) 0%, var(--navy-900) 56%, var(--navy-950) 100%);
  color: var(--white);
}
.band-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.045' stroke-width='1'%3E%3Cpath d='M0 40h70v50h60v40h70'/%3E%3Cpath d='M0 130h50v-60h60v-30h40'/%3E%3Cpath d='M260 70h-60v50h-50v40h-60'/%3E%3Cpath d='M260 200h-70v-40h-40v-40h-40'/%3E%3Cpath d='M60 260v-40h40v-50h50'/%3E%3Cpath d='M170 260v-50h40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.band-dark > .container { position: relative; z-index: 1; }

.on-dark { color: var(--white); }
.on-dark-sub { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 72px);
  background: radial-gradient(ellipse 125% 105% at 50% 36%, var(--navy-800) 0%, var(--navy-900) 52%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M0 40h70v50h60v40h70'/%3E%3Cpath d='M0 130h50v-60h60v-30h40'/%3E%3Cpath d='M260 70h-60v50h-50v40h-60'/%3E%3Cpath d='M260 200h-70v-40h-40v-40h-40'/%3E%3Cpath d='M60 260v-40h40v-50h50'/%3E%3Cpath d='M170 260v-50h40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}
.page-hero-lead {
  max-width: 680px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   Home — product preview
   ========================================================================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -24px rgba(7, 25, 43, 0.35);
  border-color: rgba(201, 165, 75, 0.55);
}
.prod-media { aspect-ratio: 4 / 3; overflow: hidden; }
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.prod-card:hover .prod-media img { transform: scale(1.05); }
.prod-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; flex: 1; }
.prod-body h3 { font-size: 1.24rem; }
.prod-body p { color: var(--ink-500); font-size: 0.96rem; }
.text-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--gold-600); }

/* ==========================================================================
   Features / Why ZenSource
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.feature-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.16rem; margin-bottom: 10px; }
.feature p { font-size: 0.96rem; color: rgba(255, 255, 255, 0.68); }

/* ==========================================================================
   Industries
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 165, 75, 0.55);
  box-shadow: var(--shadow-card);
}
.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--ivory-100);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-700);
}
.industry-icon svg { width: 24px; height: 24px; }
.industry-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.industry-card p { font-size: 0.95rem; color: var(--ink-500); }

/* ==========================================================================
   Regions / global
   ========================================================================== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.region-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.region-card:hover { border-color: rgba(201, 165, 75, 0.5); background: rgba(255, 255, 255, 0.05); }
.region-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.region-card p:last-child { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-row p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--gold-300); }

/* ==========================================================================
   About — split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.split-reverse { grid-template-columns: 7fr 5fr; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 20px; }
.split-body p { margin-bottom: 16px; color: var(--ink-700); }

/* ==========================================================================
   Promise
   ========================================================================== */
.promise-inner { text-align: center; max-width: 880px; padding-block: clamp(40px, 6vw, 72px); }
.promise-quote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.promise-sign {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* ==========================================================================
   Values
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  position: relative;
}
.value-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 26px;
  height: 2px;
  background: var(--gold-500);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; color: var(--ink-500); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 34px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(201, 165, 75, 0.35);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: -34px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--navy-950);
  border: 2px solid var(--gold-500);
}
.timeline-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  margin-bottom: 10px;
}
.timeline-item p { font-size: 0.97rem; color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   Products — categories
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: rgba(201, 165, 75, 0.55); }
.category-card:last-child { grid-column: 1 / -1; }
.category-media { aspect-ratio: 16 / 9; overflow: hidden; }
.category-media img { width: 100%; height: 100%; object-fit: cover; }
.category-body { padding: 30px 32px 34px; }
.category-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.category-body h2 { font-size: 1.5rem; margin-bottom: 10px; }
.category-body > p { color: var(--ink-500); font-size: 0.98rem; margin-bottom: 18px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory-50);
  font-size: 13px;
  color: var(--ink-700);
}

/* ==========================================================================
   Traceability band
   ========================================================================== */
.trace-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.trace-inner h2 { margin-bottom: 18px; }
.trace-inner .lead { margin-bottom: 34px; }

/* ==========================================================================
   Services
   ========================================================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.adv-card:hover { transform: translateY(-3px); border-color: rgba(201, 165, 75, 0.55); }
.adv-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.adv-card p { font-size: 0.97rem; color: var(--ink-500); }
.adv-sub {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--green-600);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.svc-card:hover { border-color: rgba(201, 165, 75, 0.5); background: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }
.svc-card:nth-child(5) { grid-column: span 2; }
.svc-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.svc-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
/* Process - how we work */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.process-step:hover { transform: translateY(-3px); border-color: rgba(201, 165, 75, 0.55); }
.process-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -19px;
  top: 28px;
  z-index: 2;
  font-size: 1.15rem;
  color: var(--gold-500);
}
.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold-700);
  border: 1px solid rgba(201, 165, 75, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--ink-500); }

/* Value-added services */
.vas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.vas-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 26px 28px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.vas-card:hover {
  border-color: rgba(201, 165, 75, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.vas-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gold-400);
  background: rgba(201, 165, 75, 0.1);
  border: 1px solid rgba(201, 165, 75, 0.28);
  margin-bottom: 16px;
}
.vas-icon svg { width: 22px; height: 22px; }
.vas-card h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--white); }
.vas-card p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); }

/* ==========================================================================
   Quality
   ========================================================================== */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.qa-card {
  border-top: 2px solid var(--gold-500);
  padding-top: 30px;
}
.qa-card .feature-num { margin-bottom: 14px; }
.qa-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.qa-card p { font-size: 0.97rem; color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; }
.contact-item {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 6px;
}
.contact-item a { font-size: 1.05rem; font-weight: 500; color: var(--ink-900); transition: color 0.2s ease; }
.contact-item a:hover { color: var(--green-600); }
.contact-item p { color: var(--ink-700); }
.contact-note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px 38px;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory-50);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 165, 75, 0.18);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-hint { margin-top: 14px; font-size: 0.85rem; color: var(--ink-500); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: radial-gradient(ellipse 130% 100% at 50% 8%, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { font-size: 0.95rem; margin-top: 16px; max-width: 380px; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-top: 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.footer-col a { font-size: 0.95rem; transition: color 0.2s ease; width: fit-content; }
.footer-col a:hover { color: var(--gold-300); }
.footer-muted { font-size: 0.9rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Brands we cover
   ========================================================================== */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.logo-wall li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 14px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.logo-wall li:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.logo-wall img {
  max-width: 80%;
  max-height: 48px;
  object-fit: contain;
  filter: saturate(0.85);
  transition: filter 0.25s ease;
}
.logo-wall li:hover img { filter: saturate(1); }
.brands-note {
  margin-top: 30px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Industries (domain showcase)
   ========================================================================== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.domain-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: var(--shadow-card);
}
.domain-media { overflow: hidden; }
.domain-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.domain-card:hover .domain-media img { transform: scale(1.05); }
.domain-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px 22px;
  background: linear-gradient(to top, rgba(7, 25, 43, 0.96) 12%, rgba(7, 25, 43, 0.6) 62%, rgba(7, 25, 43, 0) 100%);
}
.domain-overlay h3 { color: var(--white); font-size: 1.18rem; margin-bottom: 4px; }
.domain-overlay p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }

/* ==========================================================================
   Quality — testing capabilities
   ========================================================================== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.test-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.test-card:hover { transform: translateY(-3px); border-color: rgba(201, 165, 75, 0.55); }
.test-media { aspect-ratio: 16 / 9; overflow: hidden; }
.test-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.test-card:hover .test-media img { transform: scale(1.05); }
.test-body { padding: 26px 28px 28px; }
.test-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.test-body h3 { font-size: 1.22rem; margin-bottom: 10px; }
.test-body p { font-size: 0.95rem; color: var(--ink-500); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .vas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(7, 25, 43, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-link::after { display: none; }
  .nav-cta { margin: 18px 0 4px; justify-content: center; }
}

@media (max-width: 760px) {
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card:nth-child(5) { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-step:not(:last-child)::after {
    content: "\2193";
    right: 50%;
    top: auto;
    bottom: -19px;
  }
  .vas-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .domain-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card:last-child { grid-column: span 1; }
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline-item::before { top: 3px; left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .prod-media img { transition: none; }
  .prod-card, .industry-card, .adv-card, .svc-card, .category-card, .region-card, .process-step, .vas-card, .test-card { transition: none; }
  .logo-wall li, .domain-media img { transition: none; }
  .btn { transition: none; }
  .lang-fab, .lang-panel, .lang-panel li { transition: none; }
  .glow-dot { animation: none !important; opacity: .5 !important; transform: none !important; }
  .brand-logo { animation: none !important; }
}

/* ==========================================================================
   Floating language switcher
   ========================================================================== */
.lang-switch {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

.lang-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-300);
  background: radial-gradient(circle at 32% 26%, var(--navy-700) 0%, var(--green-700) 125%);
  border: 1px solid rgba(201, 165, 75, 0.55);
  box-shadow: 0 10px 26px -10px rgba(7, 25, 43, 0.65);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.lang-fab svg { width: 23px; height: 23px; display: block; }
.lang-fab:hover {
  transform: translateY(-1px);
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(201, 165, 75, 0.15), 0 14px 30px -10px rgba(7, 25, 43, 0.7);
}
.lang-fab:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.lang-panel {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(10, 33, 53, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 165, 75, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 44px -16px rgba(7, 25, 43, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.lang-switch.open .lang-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.lang-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-panel li:hover,
.lang-panel li:focus { background: rgba(255, 255, 255, 0.07); color: #fff; outline: none; }
.lang-panel li.active { color: var(--gold-400); }
.lang-check { font-size: 13px; line-height: 1; color: var(--gold-400); opacity: 0; }
.lang-panel li.active .lang-check { opacity: 1; }

@media (max-width: 480px) {
  .lang-switch { right: 14px; }
  .lang-fab { width: 42px; height: 42px; }
  .lang-fab svg { width: 20px; height: 20px; }
  .lang-panel { right: 52px; min-width: 150px; }
}

/* ==========================================================================
   Animated gold glow dots (dark circuit bands)
   ========================================================================== */
.glow-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: .35;
  transform: scale(.8);
  box-shadow: 0 0 6px 1px rgba(201, 165, 75, .5), 0 0 16px 4px rgba(201, 165, 75, .22);
  animation: glowPulse 3.6s ease-in-out infinite;
  will-change: opacity, transform;
}
.glow-dot.is-faint { animation-name: glowPulseFaint; }
.glow-dot.is-bright { background: var(--gold-300); animation-name: glowPulseBright; }

@keyframes glowPulse {
  0%, 100% { opacity: .2; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes glowPulseFaint {
  0%, 100% { opacity: .08; transform: scale(.6); }
  50% { opacity: .5; transform: scale(1); }
}
@keyframes glowPulseBright {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.3); }
}
