/* ==========================================================================
   iTech Innovations · website styles (shared by all pages)
   Dark + light themes on the brand green (#4db22c) · 5px corners throughout
   Theme is set on <html data-theme="dark|light"> by the inline script in <head>.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #050c08;
  --bg-2: #07130d;
  --bg-3: #0b1a12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --stroke: rgba(150, 230, 170, 0.1);
  --stroke-2: rgba(150, 230, 170, 0.2);

  --text: #eaf5ec;
  --text-2: #b7cbbd;
  --muted: #86a08e;

  --green: #4db22c;
  --accent: #7ddc5a;                      /* green used for text & thin lines */
  --green-soft: rgba(77, 178, 44, 0.12);
  --green-glow: rgba(77, 178, 44, 0.35);
  --accent-border: rgba(125, 220, 90, 0.35);
  --accent-grad: linear-gradient(145deg, #11532a 0%, #0a2c16 100%);
  --on-accent: #eaf5ec;
  --on-accent-2: #d5e8d9;
  --grad-text: linear-gradient(95deg, #a4f27f 0%, #4db22c 60%, #2e8a1b 100%);
  --ink-on-green: #04110a;

  --header-bg: rgba(5, 12, 8, 0.8);
  --control-bg: rgba(5, 12, 8, 0.55);
  --hover-bg: rgba(255, 255, 255, 0.05);
  --field-bg: rgba(0, 0, 0, 0.3);
  --placeholder: #6b8373;
  --footer-bg: #040a06;
  --cta-bg: #061009;
  --hero-base: #06110b;
  --hero-glow: rgba(77, 178, 44, 0.2);
  --grid-line: rgba(150, 230, 170, 0.05);
  --stage-grid: rgba(125, 220, 90, 0.13);
  --stage-glow: rgba(77, 178, 44, 0.3);
  --stage-code: rgba(125, 220, 90, 0.2);
  --drop: rgba(0, 0, 0, 0.6);
  --tile-bg: #f2f6f1;
  --tile-border: transparent;
  --dot: rgba(234, 245, 236, 0.22);
  --dot-hover: rgba(234, 245, 236, 0.45);
  --card-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
  --danger-text: #fca5a5;
  --danger-strong: #fecaca;
  --danger-border: rgba(248, 113, 113, 0.35);
  --danger-bg: rgba(248, 113, 113, 0.1);
  --danger-input: #f87171;
  --map-filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95) contrast(0.9);
  --particle-rgb: 125, 220, 90;           /* read by script.js */
  --particle-node: rgba(160, 235, 130, 0.85);
  --particle-packet: rgba(200, 255, 170, 0.95);

  --radius: 5px;
  --header-h: 76px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f7f3;
  --bg-2: #e9f0e7;
  --bg-3: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7faf6;
  --stroke: rgba(18, 58, 30, 0.12);
  --stroke-2: rgba(18, 58, 30, 0.22);

  --text: #0f1f15;
  --text-2: #3b5143;
  --muted: #566e5e;

  --accent: #2a7d14;
  --green-glow: rgba(77, 178, 44, 0.3);
  --accent-border: rgba(46, 140, 30, 0.35);
  --accent-grad: linear-gradient(145deg, #e4f4dc 0%, #d1ebc3 100%);
  --on-accent: #0f1f15;
  --on-accent-2: #2f4a36;
  --grad-text: linear-gradient(95deg, #3fa322 0%, #2a7d14 100%);

  --header-bg: rgba(244, 247, 243, 0.88);
  --control-bg: rgba(255, 255, 255, 0.85);
  --hover-bg: rgba(18, 58, 30, 0.06);
  --field-bg: #ffffff;
  --placeholder: #7b8f81;
  --footer-bg: #e9f0e7;
  --cta-bg: #e3efdf;
  --hero-base: #eef5eb;
  --hero-glow: rgba(77, 178, 44, 0.16);
  --grid-line: rgba(18, 80, 30, 0.07);
  --stage-grid: rgba(46, 140, 30, 0.14);
  --stage-glow: rgba(77, 178, 44, 0.24);
  --stage-code: rgba(46, 140, 30, 0.22);
  --drop: rgba(20, 40, 25, 0.28);
  --tile-bg: #ffffff;
  --tile-border: rgba(18, 58, 30, 0.12);
  --dot: rgba(18, 58, 30, 0.2);
  --dot-hover: rgba(18, 58, 30, 0.4);
  --card-shadow: 0 24px 60px -36px rgba(20, 40, 25, 0.35);
  --danger-text: #b91c1c;
  --danger-strong: #7f1d1d;
  --danger-border: rgba(185, 28, 28, 0.35);
  --danger-bg: rgba(254, 226, 226, 0.7);
  --danger-input: #dc2626;
  --map-filter: none;
  --particle-rgb: 46, 140, 30;
  --particle-node: rgba(46, 140, 30, 0.7);
  --particle-packet: rgba(46, 140, 30, 0.9);

  color-scheme: light;
}

/* logo variants: light ink on dark theme, dark ink on light theme */
:root[data-theme="light"] .on-dark { display: none !important; }
:root:not([data-theme="light"]) .on-light { display: none !important; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.nav-locked { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

::selection { background: rgba(77, 178, 44, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: 1440px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--ink-on-green);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

.icon {
  width: 1.25em; height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-play { fill: currentColor; }
.icon-lg { width: 40px; height: 40px; color: var(--accent); }

/* ---------- 3. Type helpers ---------- */
.eyebrow {
  margin: 0 0 14px;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title { font: 700 clamp(2rem, 3.6vw, 3rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.section-lead { margin: 16px 0 0; color: var(--text-2); font-size: 1.1rem; }
.lead { max-width: 580px; color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s var(--ease);
}
.text-link:hover { gap: 12px; }

/* ---------- 4. Buttons & controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.95rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, #6ed648 0%, #4db22c 55%, #3a921f 100%);
  color: var(--ink-on-green);
  box-shadow: 0 10px 30px -12px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(77, 178, 44, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { border-color: var(--stroke-2); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }
.btn-sm { padding: 0.72rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.square-btn,
.motion-toggle,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.square-btn { width: 46px; height: 46px; color: var(--text); }
.square-btn:hover,
.motion-toggle:hover,
.theme-toggle:hover { color: var(--text); border-color: var(--green); background: var(--green-soft); }
.motion-toggle--sm { width: 36px; height: 36px; }
.motion-toggle .icon { width: 18px; height: 18px; }
.motion-toggle .icon-play,
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

.theme-toggle { color: var(--text); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--accent);
  font: 500 0.8rem var(--font-mono);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip-link:hover { border-color: var(--green); background: var(--green); color: var(--ink-on-green); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--stroke);
}
/* open mobile menu: solid colours (a blurred parent makes the panel look see-through) */
.site-header.menu-open {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: var(--stroke);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand-mark { width: 40px; height: auto; }
.brand-word { width: 96px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:not(.btn):hover { color: var(--text); background: var(--hover-bg); }
.main-nav a:not(.btn)[aria-current="page"] { color: var(--accent); }
.main-nav a:not(.btn)[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius);
  background: var(--control-bg);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Particle backgrounds (home hero, page heroes, CTA band) ---------- */
.particles { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-motion { position: absolute; right: 24px; bottom: 24px; z-index: 2; }

/* Home hero: text only, centred over the particle network */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 92vh;
  min-height: 92svh;
  padding: calc(var(--header-h) + 48px) 0 88px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 55% at 50% 45%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--hero-base) 0%, var(--bg) 100%);
}
.hero .particles { opacity: 0.85; }
.hero-center { display: flex; flex-direction: column; align-items: center; max-width: 960px; margin-inline: auto; }
.hero-center h1 { margin: 26px 0 22px; font: 700 clamp(2.5rem, 5.6vw, 4.6rem)/1.04 var(--font-display); letter-spacing: -0.035em; }
.hero-center .lead { max-width: 700px; margin-inline: auto; }
.hero-center .hero-cta,
.hero-center .hero-tags { justify-content: center; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius);
  background: rgba(77, 178, 44, 0.07);
  letter-spacing: 0.16em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-out infinite; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 500 0.78rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-tags li { display: flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--green); transform: rotate(45deg); }

/* Page hero (Solutions, Products, Contact) */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 52vh;
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--stroke);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(50% 70% at 80% 30%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--hero-base) 0%, var(--bg) 100%);
}
.page-hero .particles { opacity: 0.85; }
.page-hero h1 { max-width: 880px; font: 700 clamp(2.3rem, 5vw, 3.8rem)/1.06 var(--font-display); letter-spacing: -0.03em; }
.page-hero .lead { max-width: 660px; margin: 20px 0 0; }
.page-hero .hero-cta { margin-top: 30px; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 500 0.75rem var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--stroke-2); }
.crumbs [aria-current] { color: var(--accent); }

/* Call-to-action band */
.cta-band {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 8vw, 104px) 0;
  overflow: hidden;
  border-top: 1px solid var(--stroke);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(60% 90% at 20% 50%, var(--hero-glow), transparent 70%), var(--cta-bg);
}
.cta-band .particles { opacity: 0.75; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner h2 { max-width: 720px; font: 700 clamp(1.7rem, 3.2vw, 2.5rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.cta-inner p { margin: 12px 0 0; color: var(--text-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 7. Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--stroke); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; max-width: none; }
.section-head--split > div { max-width: 680px; }
.section-foot { display: flex; justify-content: center; margin-top: 40px; }
.subsection { margin-top: clamp(80px, 9vw, 120px); }

/* ---------- 8. Sectors we serve ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.sector-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
a.sector-card:hover { transform: translateY(-4px); border-color: var(--accent-border); }
a.sector-card:hover::after { transform: scaleX(1); }
.sector-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 8px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--accent);
}
.sector-icon .icon { width: 28px; height: 28px; }
.sector-card h3 { font: 600 1.25rem/1.3 var(--font-display); }
.sector-card > p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.sector-num { position: absolute; top: 26px; right: 26px; color: var(--muted); font: 500 0.74rem var(--font-mono); letter-spacing: 0.1em; }

/* detailed sector panels (solutions page) */
.sector-card--detail { gap: 12px; padding: 32px; }
.sector-card--detail h3 { font-size: 1.4rem; }
.sector-card--detail .feature-list { margin: 6px 0 4px; }
.sector-label { margin: 6px 0 0; color: var(--muted); font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.sector-products { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

/* ---------- 9. About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.about-copy .section-title { margin-bottom: 22px; }
.about-copy p { color: var(--text-2); font-size: 1.07rem; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-copy em { color: var(--accent); font-style: normal; }

.fact-stack { display: grid; gap: 16px; }
.fact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.fact-value { font: 700 clamp(2rem, 3.4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--accent); }
.fact-label { color: var(--muted); }
.fact-card--accent { flex-direction: row; align-items: center; gap: 18px; background: var(--accent-grad); border-color: var(--accent-border); }
.fact-value--sm { font-size: 1.25rem; line-height: 1.35; letter-spacing: 0; color: var(--on-accent); }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.x-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.x-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(77, 178, 44, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.x-card:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.x-card:hover::before { opacity: 1; }
.x-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--accent);
}
.x-icon .icon { width: 24px; height: 24px; }
.x-num { position: absolute; top: 30px; right: 28px; color: var(--muted); font: 500 0.74rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.x-card h3 { margin-bottom: 10px; font: 600 1.2rem/1.3 var(--font-display); }
.x-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.x-card--accent { background: var(--accent-grad); border-color: var(--accent-border); color: var(--on-accent); }
.x-card--accent p { color: var(--on-accent-2); }
.x-card--accent .x-num { color: var(--accent); }

/* ---------- 10. Solutions flow ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; }
.flow-card { padding: 28px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--accent); }
.flow-head .icon { width: 26px; height: 26px; }
.flow-step { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; }
.flow-card h3 { margin-bottom: 16px; font: 600 1.3rem/1.25 var(--font-display); }
.flow-card > p { margin: 0; color: var(--text-2); }
.flow-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flow-card li { display: flex; align-items: baseline; gap: 10px; color: var(--text-2); }
.flow-card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); transform: translateY(-2px); }
.flow-card--accent { background: var(--accent-grad); border-color: var(--accent-border); color: var(--on-accent); }
.flow-card--accent li,
.flow-card--accent > p { color: var(--on-accent-2); }
.flow-link {
  position: relative;
  align-self: center;
  height: 2px;
  margin: 0 8px;
  background: linear-gradient(90deg, rgba(77, 178, 44, 0.15), rgba(77, 178, 44, 0.6), rgba(77, 178, 44, 0.15));
}
.flow-link::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.packet {
  position: absolute;
  left: 0; top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px 3px rgba(77, 178, 44, 0.55);
  transform: translate(-50%, -50%);
  animation: packet 2.4s linear infinite;
}
.packet--2 { animation-delay: 1.2s; }

/* ---------- 11. Product cards (home) ---------- */
.pcard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--accent-border); }
.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--stroke);
  background: radial-gradient(60% 60% at 50% 50%, rgba(77, 178, 44, 0.22), transparent 72%), var(--surface-2);
}
.pcard-media img {
  position: absolute;
  left: 11%; top: 10%;
  width: 78%; height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px var(--drop));
  transition: transform 0.45s var(--ease);
}
.pcard:hover .pcard-media img { transform: translateY(-6px) scale(1.04); }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.pcard-code { color: var(--accent); font: 500 0.74rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.pcard-body h3 { font: 600 1.05rem/1.3 var(--font-display); }
.pcard-body p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.pcard--more {
  grid-column: span 2;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-color: var(--accent-border);
  background: var(--accent-grad);
  color: var(--on-accent);
}
.pcard--more h3 { font: 700 1.5rem/1.25 var(--font-display); }
.pcard--more p { margin: 8px 0 0; color: var(--on-accent-2); font-size: 0.95rem; }

/* ---------- 12. Clients ---------- */
.clients .section-head { margin-bottom: 36px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.marquee-track { display: flex; gap: 20px; width: max-content; margin: 0; padding: 6px 0; list-style: none; animation: marquee 70s linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee-group:hover .marquee-track,
.marquee-group:focus-within .marquee-track,
.marquee-group.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 236px; height: 132px;
  padding: 18px 24px;
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  background: var(--tile-bg);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
}
.marquee-track img { width: auto; height: auto; max-width: 188px; max-height: 94px; object-fit: contain; }
.clients-foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 20px; }

/* ---------- 13. Stage (shared glowing product backdrop) ---------- */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background:
    radial-gradient(58% 52% at 50% 46%, var(--stage-glow), rgba(77, 178, 44, 0.05) 48%, transparent 72%),
    var(--surface);
}
.stage::before {
  content: "";
  position: absolute;
  left: -25%; right: -25%; bottom: -8%;
  z-index: -1;
  height: 52%;
  background-image:
    linear-gradient(var(--stage-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.stage::after {
  content: "";
  position: absolute;
  left: 16%; right: 16%; bottom: 10%;
  z-index: -1;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 178, 44, 0.3), transparent);
  filter: blur(6px);
}

/* ---------- 14. Feature list ---------- */
.feature-list { display: grid; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.22em;
  width: 19px; height: 19px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234db22c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 15. Products showcase (large) ---------- */
.showcase-controls { display: flex; gap: 10px; flex: none; }
.showcase-controls .motion-toggle { width: 46px; height: 46px; }

.showcase-viewport { position: relative; }
.js .showcase-viewport { display: grid; }

.product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.product + .product { margin-top: 72px; }
.js .product {
  grid-area: 1 / 1;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.7s;
}
.js .product.is-active { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 0.6s ease 0.1s, visibility 0s; }
.js .product.is-leaving { visibility: visible; opacity: 0; transition: opacity 0.6s ease, visibility 0s linear 0.7s; }

.product-stage { display: grid; place-items: center; aspect-ratio: 1 / 0.84; touch-action: pan-y; }
.stage-code {
  position: absolute;
  top: 4%; left: 5%;
  z-index: -1;
  font: 700 clamp(4.5rem, 12vw, 10rem)/0.9 var(--font-display);
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--stage-code);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.stage-spin { width: 90%; height: 82%; margin-bottom: 3%; perspective: 1000px; }
.stage-float { position: relative; width: 100%; height: 100%; perspective: 900px; animation: float 7s ease-in-out infinite; }
.product-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--view-scale, 0.92));
  transition: opacity 0.7s ease, transform 0.8s var(--ease);
  filter: drop-shadow(0 34px 28px var(--drop)) drop-shadow(0 0 40px rgba(77, 178, 44, 0.12));
  -webkit-user-drag: none;
}
.product-img.is-current { --view-scale: 1; opacity: 1; }
.product-stage:hover .product-img { transition: opacity 0.7s ease, transform 0.3s ease-out; }

.js .product.is-active .stage-spin { animation: spinIn 1s var(--ease) both; }
.js .product.is-leaving .stage-spin { animation: spinOut 0.7s var(--ease) both; }

/* unlabeled photo indicators; photos change on their own */
.view-dots { position: absolute; left: 50%; bottom: 16px; z-index: 2; display: flex; gap: 4px; transform: translateX(-50%); }
.view-dot { position: relative; width: 34px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.view-dot::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--dot);
  transition: background 0.3s;
}
.view-dot:hover::after { background: var(--dot-hover); }
.view-dot.is-current::after { background: var(--green); }

.product-index { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.14em; }
.product-code {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-name { margin: 4px 0 14px; font: 700 clamp(2.1rem, 3.3vw, 3rem)/1.08 var(--font-display); letter-spacing: -0.025em; }
.product-desc { margin: 0 0 22px; color: var(--text-2); font-size: 1.16rem; line-height: 1.6; }
.product .feature-list { gap: 13px; margin-bottom: 26px; font-size: 1.08rem; line-height: 1.5; }
.product .feature-list li { padding-left: 38px; color: var(--text); }
.product .feature-list li::before { top: 0.02em; width: 24px; height: 24px; background-size: 15px; }
.product-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.product-meta div { padding: 14px 16px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.product-meta dt { color: var(--muted); font: 500 0.74rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.product-meta dd { margin: 5px 0 0; color: var(--text); font-size: 1.04rem; font-weight: 500; }

.js .product.is-active .product-info > * { animation: infoIn 0.7s var(--ease) both; }
.product-info > :nth-child(1) { animation-delay: 0.15s; }
.product-info > :nth-child(2) { animation-delay: 0.2s; }
.product-info > :nth-child(3) { animation-delay: 0.25s; }
.product-info > :nth-child(4) { animation-delay: 0.3s; }
.product-info > :nth-child(5) { animation-delay: 0.35s; }
.product-info > :nth-child(6) { animation-delay: 0.4s; }
.product-info > :nth-child(7) { animation-delay: 0.45s; }

/* product selector rail */
.rail-wrap { display: flex; align-items: stretch; gap: 12px; margin-top: 32px; }
.rail { position: relative; flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.rail-btn img { width: 100%; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 8px var(--drop)); transition: transform 0.3s var(--ease); }
.rail-btn:hover { border-color: var(--stroke-2); color: var(--text); }
.rail-btn:hover img { transform: translateY(-3px); }
.rail-btn.is-active { border-color: var(--accent-border); background: linear-gradient(180deg, rgba(77, 178, 44, 0.18), rgba(77, 178, 44, 0.04)); color: var(--text); }
.rail-code { max-width: 100%; overflow: hidden; font: 500 0.8rem var(--font-mono); letter-spacing: 0.04em; white-space: nowrap; text-overflow: ellipsis; }
.rail-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--green); }
.rail-btn.is-active .rail-progress { animation: progress var(--autoplay, 9000ms) linear forwards; }
.showcase.is-paused .rail-btn.is-active .rail-progress { animation-play-state: paused; }
.showcase.no-autoplay .rail-progress { display: none; }
.rail-software {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #5cc437, #2f8a18);
  color: var(--ink-on-green);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.rail-software:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--green-glow); }
.rail-software .icon { width: 28px; height: 28px; }
.rail-software strong { display: block; font: 700 1.05rem var(--font-display); }
.rail-software small { display: block; font-size: 0.8rem; line-height: 1.3; opacity: 0.85; }

/* ---------- 16. Software ---------- */
.software-grid { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 2.2fr); align-items: start; gap: clamp(24px, 4vw, 48px); }
.sw-features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sw-feature { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.sw-feature .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.sw-feature h3 { margin-bottom: 2px; font: 600 1.02rem/1.35 var(--font-display); }
.sw-feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sw-feature--accent { border-color: transparent; background: linear-gradient(135deg, #5cc437, #2f8a18); }
.sw-feature--accent h3,
.sw-feature--accent p,
.sw-feature--accent .icon { color: var(--ink-on-green); }

.screens { min-width: 0; }
.screens-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.screens-tabs {
  position: relative;
  flex: 1;
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-width: none;
}
.screens-tabs::-webkit-scrollbar { display: none; }
.screen-tab {
  position: relative;
  flex: none;
  overflow: hidden;
  padding: 9px 14px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-2);
  font: 500 0.85rem var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.screen-tab:hover { color: var(--text); }
.screen-tab.is-active { background: rgba(77, 178, 44, 0.2); color: var(--text); }
.tab-progress { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; transform: scaleX(0); transform-origin: left; background: var(--green); }
.screen-tab.is-active .tab-progress { animation: progress var(--autoplay, 6000ms) linear forwards; }
.screens.is-paused .screen-tab.is-active .tab-progress { animation-play-state: paused; }
.screens.no-autoplay .tab-progress { display: none; }

/* the device frame stays dark in both themes, because the screenshots are dark */
.device {
  padding: 10px;
  border: 1px solid rgba(150, 230, 170, 0.2);
  border-radius: var(--radius);
  background: #0b1510;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 70px -24px rgba(77, 178, 44, 0.3);
}
.device-top { display: flex; gap: 6px; padding: 4px 6px 10px; }
.device-top span { width: 10px; height: 10px; border-radius: 50%; background: #22362a; }
.device-screen { position: relative; display: block; aspect-ratio: 2000 / 1059; overflow: hidden; border-radius: 3px; background: #0a0f0c; }
.device-screen img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.35s ease; }
.device-screen img.is-swapping { opacity: 0; }
.zoom-hint {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(5, 12, 8, 0.85);
  color: #b7cbbd;
  font: 500 0.72rem var(--font-mono);
  opacity: 0;
  transition: opacity 0.3s;
}
.device-screen:hover .zoom-hint,
.device-screen:focus-visible .zoom-hint { opacity: 1; }
.screens-caption { min-height: 3em; margin: 14px 4px 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- 17. Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; }
.cert-card { overflow: hidden; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.cert-card--iso { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.cert-card--accent { background: var(--accent-grad); border-color: var(--accent-border); color: var(--on-accent); }
.cert-card--accent p { color: var(--on-accent-2); }
.cert-thumb { display: block; align-self: start; padding: 22px 0 22px 22px; }
.cert-thumb img {
  width: 100%; height: auto;
  padding: 8px;
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease);
}
.cert-thumb:hover img { transform: scale(1.03); }
.cert-body { padding: clamp(20px, 2.5vw, 30px); }
.cert-body .eyebrow { margin-bottom: 8px; }
.cert-body h3 { margin-bottom: 12px; font: 700 1.5rem/1.25 var(--font-display); }
.cert-body p { color: var(--text-2); }
.cert-side { display: grid; gap: 18px; }
.kv { display: grid; margin: 16px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--stroke); }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- 18. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.contact-list { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.c-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: var(--radius); background: var(--green-soft); color: var(--accent); }
.c-label { display: block; margin-bottom: 2px; color: var(--muted); font: 500 0.7rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.contact-list a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--accent); }
.map { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); }

.form-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.form-card h2 { margin-bottom: 6px; font: 700 1.7rem var(--font-display); }
.form-note { margin: 0 0 24px; color: var(--muted); font-size: 0.92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { color: var(--text-2); font-size: 0.86rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field textarea::placeholder { color: var(--placeholder); }
.field select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234db22c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.field select option { background: var(--bg-3); color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(77, 178, 44, 0.18); }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger-input); }
.field-error { color: var(--danger-text); font-size: 0.8rem; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[type="submit"] { margin-top: 6px; }
.contact-form button.is-loading { opacity: 0.7; pointer-events: none; }
.form-status { margin-top: 14px; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error { padding: 14px 16px; border-radius: var(--radius); }
.form-status.is-success { border: 1px solid var(--accent-border); background: var(--green-soft); color: var(--text); }
.form-status.is-error { border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-strong); }
.form-status a { color: inherit; font-weight: 600; }

/* ---------- 19. Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--stroke); background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand img { width: 118px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; color: var(--muted); font-size: 0.92rem; }
.footer-title { margin-bottom: 16px; color: var(--text-2); font: 500 0.74rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { color: var(--muted); font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .mono { font-size: 0.78rem; letter-spacing: 0.06em; }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--ink-on-green);
  box-shadow: 0 10px 30px -10px var(--green-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease); }

/* ---------- 20. Lightbox (always dark, like a photo viewer) ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #eaf5ec; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(2, 6, 4, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1500px, 92vw); margin: 0; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox figcaption { color: #b7cbbd; font-size: 0.9rem; text-align: center; }
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(150, 230, 170, 0.25);
  border-radius: var(--radius);
  background: rgba(5, 12, 8, 0.85);
  color: #eaf5ec;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lb-btn:hover { border-color: var(--green); background: rgba(77, 178, 44, 0.2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { top: 50%; left: 18px; transform: translateY(-50%); }
.lb-next { top: 50%; right: 18px; transform: translateY(-50%); }
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next { display: none; }

/* ---------- 21. Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 22. Keyframes ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77, 178, 44, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(77, 178, 44, 0); } }
@keyframes float { 0%, 100% { transform: translateY(-6px) rotateY(-8deg); } 50% { transform: translateY(8px) rotateY(8deg); } }
@keyframes spinIn {
  from { transform: perspective(1200px) rotateY(calc(var(--dir, 1) * 75deg)) translateX(calc(var(--dir, 1) * 22%)) scale(0.78); opacity: 0; }
  to { transform: perspective(1200px) rotateY(0deg) translateX(0) scale(1); opacity: 1; }
}
@keyframes spinOut {
  from { transform: perspective(1200px) rotateY(0deg) translateX(0) scale(1); opacity: 1; }
  to { transform: perspective(1200px) rotateY(calc(var(--dir, 1) * -75deg)) translateX(calc(var(--dir, 1) * -22%)) scale(0.78); opacity: 0; }
}
@keyframes infoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@keyframes packet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes packetV { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1100px) {
  .pcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard--more { grid-column: span 3; }
  .rail-software { min-width: 210px; }
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - var(--header-h));
    padding: 16px 24px 28px;
    overflow-y: auto;
    border-bottom: 1px solid var(--stroke);
    background: var(--bg);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .main-nav a:not(.btn)[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .nav-cta { align-self: flex-start; }

  .hero { min-height: 0; padding: calc(var(--header-h) + 56px) 0 80px; }
  .page-hero { min-height: 0; padding: calc(var(--header-h) + 48px) 0 56px; }

  .about-grid,
  .software-grid,
  .contact-grid,
  .cert-grid,
  .product { grid-template-columns: minmax(0, 1fr); }

  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-link {
    justify-self: center;
    width: 2px; height: 48px;
    margin: 8px 0;
    background: linear-gradient(180deg, rgba(77, 178, 44, 0.15), rgba(77, 178, 44, 0.6), rgba(77, 178, 44, 0.15));
  }
  .flow-link::after { right: auto; top: auto; left: 50%; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .packet { left: 50%; top: 0; animation-name: packetV; }

  .product-stage { aspect-ratio: 1 / 0.8; }
  .rail-wrap { flex-direction: column; }
  .rail { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .rail-btn { flex: 0 0 124px; scroll-snap-align: start; }

  .pcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--more { grid-column: span 2; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .brand-mark { width: 36px; }
  .brand-word { width: 86px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-motion { right: 16px; bottom: 16px; }
  .marquee-track li { width: 172px; height: 98px; padding: 12px 16px; }
  .marquee-track img { max-width: 138px; max-height: 70px; }

  .sector-grid,
  .expertise-grid { grid-template-columns: minmax(0, 1fr); }
  .sector-card,
  .sector-card--detail { padding: 24px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cert-card--iso { grid-template-columns: minmax(0, 1fr); }
  .cert-thumb { padding: 20px 20% 0; }
  .product-meta { grid-template-columns: minmax(0, 1fr); }
  .stage-spin { width: 88%; height: 66%; margin-bottom: 12%; }
  .product .feature-list { font-size: 1rem; gap: 10px; }
  .product .feature-list li { padding-left: 34px; }
  .product .feature-list li::before { width: 22px; height: 22px; }
  .pcard-body { padding: 12px 14px 14px; }
  .pcard-body p { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .kv div { flex-direction: column; gap: 2px; }
  .kv dd { text-align: left; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

/* ---------- 24. 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.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .packet { display: none; }
}
