/* ============================================================
   Massive System & Technology — Site Stylesheet (v2)
   ============================================================ */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0e1422;
  --surface:   #131a2b;
  --surface-2: #1a2238;
  --border:    rgba(231, 236, 243, 0.08);
  --border-2:  rgba(231, 236, 243, 0.16);
  --text:      #e7ecf3;
  --text-2:    #a5adbf;
  --text-3:    #6c7689;
  --accent:    #818cf8;     /* signature hue — used everywhere */
  --accent-2:  #38bdf8;     /* utility, sparing — info icons in diagrams only */
  --accent-3:  #818cf8;     /* utility, very sparing — keyboard focus echo only */
  --danger:    #f87171;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 24px 48px -24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.3);

  --container: 1180px;
  --header-h:  68px;

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

  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--accent);
  color: #0a0e17;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; color: #0a0e17; outline-offset: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

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

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

::selection { background: rgba(129,140,248, 0.35); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-2); }

/* Section numerator — structural mono cue, top-right of a section */
.section-num {
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  background: var(--bg);
  padding: 0 8px;
}
.section--alt .section-num { background: var(--bg-2); }

/* Eyebrow — reserved for sections that need a category label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: #fff;
  margin: 0 0 20px;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.15;
}
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 16px; color: var(--text-2); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 720px;
}

.muted { color: var(--text-3); }
.mono  { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(10, 14, 23, 0.7);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 14, 23, 0.92); border-bottom-color: var(--border-2); }

.site-header .inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { height: 28px; width: auto; }
.brand span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  border-left: 1px solid var(--border);
  padding-left: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-2);
  border-radius: var(--radius-sm);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  margin: 6px auto 0;
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
  padding: 9px 16px !important;
  background: var(--accent);
  color: #0a0e17 !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: #6366f1 !important; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13, 18, 30, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 0;
  }
  .nav.open a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav.open a[aria-current="page"]::after { display: none; }
  .nav.open .nav-cta { margin: 16px 0 0 !important; text-align: center; }
}

main { padding-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border 160ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #0a0e17; }
.btn--primary:hover { background: #6366f1; color: #0a0e17; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(255,255,255,0.04); color: #fff; border-color: var(--border-2); }
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 156px 0 112px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Engineering-document hero backdrop:
   - sparse cross-hair grid (24px) replaces the template square grid
   - subtle teal vignette only (no sky/indigo gradients)
   - faint scan lines suggest video sensing */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(129,140,248, 0.12), transparent 60%),
    radial-gradient(700px 460px at -10% 110%, rgba(129,140,248, 0.06), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(231,236,243,0.045) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(231,236,243,0.045) 0 1px, transparent 1px 24px);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 70%);
}

/* Detection-box motif (AI video analytics reference) */
.detection-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.detection-marks .det {
  position: absolute;
  border: 1px solid rgba(129,140,248, 0.45);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(129,140,248, 0.85);
  padding: 2px 5px;
}
.detection-marks .det::before {
  content: attr(data-label);
  position: absolute;
  top: -16px;
  left: -1px;
  background: rgba(129,140,248, 0.10);
  border: 1px solid rgba(129,140,248, 0.40);
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}
.detection-marks .det.d1 { top: 18%;  right: 7%;  width: 138px; height: 96px; }
.detection-marks .det.d2 { top: 56%;  right: 22%; width: 102px; height: 76px; }
.detection-marks .det.d3 { top: 38%;  right: 38%; width:  82px; height: 60px; }
@media (max-width: 960px) { .detection-marks { display: none; } }

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero p.lead { margin-bottom: 36px; max-width: 640px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero data band — labels in sans, VALUES in mono (engineering-document voice) */
.hero-meta {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-meta > div {
  padding: 22px 28px 22px 0;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.hero-meta > div:first-child { border-left: 0; padding-left: 0; }
.hero-meta dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--text);
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta > div { padding: 18px 0 18px 18px; border-left: 1px solid var(--border); }
  .hero-meta > div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .hero-meta > div { border-top: 1px solid var(--border); }
  .hero-meta > div:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .grid--6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; }
}

/* Bento spans (used on home) */
.card--feature { grid-column: span 3; }
.card--compact { grid-column: span 2; }
@media (max-width: 1024px) {
  .card--feature { grid-column: span 4; }
  .card--compact { grid-column: span 2; }
}
@media (max-width: 960px) {
  .card--feature, .card--compact { grid-column: span 2; }
}
@media (max-width: 640px) {
  .card--feature, .card--compact { grid-column: span 1; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease);
}
.card:hover {
  border-color: rgba(129,140,248, 0.35);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(129,140,248, 0.08);
  color: var(--accent);
  margin-bottom: 22px;
  border: 1px solid rgba(129,140,248, 0.20);
}
.card .icon .ico { width: 22px; height: 22px; color: var(--accent); }

.card .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
}

.card--feature { padding: 32px; }
.card--feature h3 { font-size: 1.5rem; margin-top: 4px; }

/* ---------- Section heading ---------- */
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 460px; margin: 0; }
@media (max-width: 800px) { .section-heading { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Feature row ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature--reverse { grid-template-columns: 1fr 1.05fr; }
.feature--reverse .feature__media { order: -1; }

/* Specimen frame — converts catalogue photography into engineering-document artifacts */
.feature__media,
.specimen {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 28px 40px;
}
.feature__media::before,
.specimen::before,
.feature__media::after,
.specimen::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(129,140,248, 0.55);
  opacity: 0.55;
}
.feature__media::before, .specimen::before {
  top: 10px; left: 10px;
  border-right: 0; border-bottom: 0;
}
.feature__media::after, .specimen::after {
  bottom: 10px; right: 10px;
  border-left: 0; border-top: 0;
}
.feature__media .caption,
.specimen .caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  display: block;
}
.feature__media img,
.specimen img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}
.feature__media svg,
.specimen svg {
  width: 100%;
  height: auto;
  display: block;
}

.feature h2 { margin-top: 14px; }

.feature ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.feature li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-2);
}
.feature li svg.ico,
.feature li .check { color: var(--accent); padding-top: 4px; width: 16px; height: 16px; }
.feature li strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

@media (max-width: 880px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- Capabilities list (the signature layout) ---------- */
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
.cap-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 200ms var(--ease);
}
.cap-list li:hover { background: linear-gradient(90deg, rgba(129,140,248,0.04), transparent 60%); }
.cap-list li .num {
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.cap-list li h3 { margin: 0 0 4px; }
.cap-list li p { margin: 0; color: var(--text-2); }
.cap-list li .chev { color: var(--text-3); transition: transform 200ms var(--ease), color 200ms var(--ease); }
.cap-list li:hover .chev { color: var(--accent); transform: translateX(4px); }
@media (max-width: 640px) {
  .cap-list li { grid-template-columns: 56px 1fr; }
  .cap-list li .chev { display: none; }
}

/* ---------- Use-case chip rows (for AI CCTV / smart-city categories) ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 880px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .usecase-grid { grid-template-columns: 1fr; } }

.usecase {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-2);
}
.usecase::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  justify-self: center;
}
.usecase strong { color: var(--text); display: block; font-size: 0.95rem; margin-bottom: 2px; font-weight: 600; }

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card, .map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-card { padding: 36px; }

.contact-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .check, .contact-row .ico { color: var(--accent); padding-top: 4px; width: 18px; height: 18px; }
.contact-row i.fa, .contact-row i.fas, .contact-row i.fab { color: var(--accent); padding-top: 4px; font-size: 16px; }
.contact-row .label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.contact-row .value { color: var(--text); }

.map-card iframe {
  display: block; width: 100%; height: 100%; min-height: 380px; border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95);
}

.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.social-row a:hover { background: var(--accent); color: #0a0e17; border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border 200ms var(--ease);
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--text-2); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  background:
    radial-gradient(540px 240px at 92% 18%, rgba(129,140,248, 0.14), transparent 60%),
    radial-gradient(420px 220px at 0% 86%, rgba(129,140,248, 0.08), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../svg/circuit-constellation.svg") no-repeat center / cover;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { max-width: 600px; }
.cta-banner .hero-actions { margin-top: 28px; }

/* Hero mesh art (right side) */
.hero-mesh {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 64%;
  max-width: 880px;
  pointer-events: none;
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 90%, transparent 100%);
  z-index: 1;
}
.hero-mesh object { width: 100%; height: auto; display: block; }
@media (max-width: 1080px) { .hero-mesh { width: 56%; opacity: 0.45; } }
@media (max-width: 880px)  { .hero-mesh { display: none; } }

/* Page hero topographic backdrop */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../svg/topographic.svg") no-repeat center / cover;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,0.5), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-2); font-size: 0.95rem; }
.footer-grid ul a:hover { color: #fff; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 0.85rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 360px at 78% -6%, rgba(129,140,248, 0.10), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero p { max-width: 640px; font-size: 1.05rem; }

/* ---------- Diagram frame ---------- */
.diagram-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.diagram-frame::before {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.diagram-frame svg { width: 100%; height: auto; display: block; }

/* ---------- Sprite ico ---------- */
.ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  color: var(--accent);
  vertical-align: middle;
  fill: none;
}

/* ---------- Process flow (uses external SVG) ---------- */
.process-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px 36px;
  margin-top: 32px;
}
.process-flow svg { width: 100%; height: auto; }

/* ---------- Industries (used on home) ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.industries > div {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 200ms var(--ease);
}
.industries > div:hover { background: var(--surface-2); }
.industries > div:nth-child(4n) { border-right: 0; }
.industries > div:nth-last-child(-n+4) { border-bottom: 0; }
.industries .ico { color: var(--accent); margin-bottom: 14px; width: 22px; height: 22px; }
.industries h4 { margin: 0 0 6px; }
.industries p { margin: 0; font-size: 0.92rem; }
@media (max-width: 880px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industries > div:nth-child(2n) { border-right: 0; }
  .industries > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); }
  .industries > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .industries { grid-template-columns: 1fr; }
  .industries > div { border-right: 0; }
  .industries > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .industries > div:last-child { border-bottom: 0; }
}

/* ---------- IoT section pattern background ---------- */
.section--pattern {
  position: relative;
  overflow: hidden;
}
.section--pattern .bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.section--pattern .bg-pattern svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.section--pattern > .container { position: relative; z-index: 1; }

/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.not-found .container { text-align: center; }
.not-found .glyph {
  font-family: var(--mono);
  font-size: clamp(5rem, 12vw, 9rem);
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}

/* ---------- Anchor offset ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Certification block ---------- */
.cert-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.cert-block::before {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.cert-block__badge {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}
.cert-block__body h3 { margin-bottom: 8px; }
.cert-block__body .standard {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.cert-block__body .issuer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.cert-block__body .issuer::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 720px) {
  .cert-block { grid-template-columns: 1fr; text-align: center; }
  .cert-block__badge { margin: 0 auto; }
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 16px;
}
.cert-chip svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--accent); }
.cert-chip strong { color: var(--text); font-weight: 600; }

/* HUD live-status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(129,140,248,0.6);
  animation: pulse-dot 1.8s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(129,140,248,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(129,140,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(129,140,248,0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-chip::before { animation: none; }
}

/* ---------- Prose (privacy / legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; font-size: 1.4rem; }
.prose h3 { margin-top: 32px; font-size: 1.1rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
