/* ==========================================================================
   CerebraQ Automation — Design System v3
   Bright enterprise light theme. Dark is reserved for two places only:
   the dashboard mockups (framed physical displays) and the footer.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;

  /* Text */
  --ink: #16202e;
  --text: #3d4a5c;
  --muted: #626f85;

  /* Accents */
  --primary: #0a5cd6;
  --primary-dark: #0847a6;
  --primary-soft: #e8f0fd;
  --amber: #e8940a;

  /* Lines & elevation */
  --border: #e3e8ef;
  --border-dark: #c6cfdb;
  --shadow-sm: 0 1px 3px rgba(22, 32, 46, 0.08);
  --shadow-md: 0 4px 14px rgba(22, 32, 46, 0.08);

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* Layout (4/8px scale) */
  --container: 1160px;
  --radius: 8px;
  --radius-sm: 6px;
  --header-h: 72px;
}

/* Dark scope — dashboards and footer only */
.panel, .site-footer {
  --d-bg: #0d1321;
  --d-raised: #131a2b;
  --d-panel: #182136;
  --d-inset: #0a0f1a;
  --d-border: #223050;
  --d-border-strong: #2e3f66;
  --d-text: #e6ebf4;
  --d-text2: #9aa7bf;
  --d-text3: #64718c;
  --ok: #3fb950;
  --warn: #f5a623;
  --alarm: #f85149;
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

/* Prevent grid/flex children (esp. SVG panels) from forcing horizontal overflow */
.hero-grid > *, .split > *, .card-grid > *, .case-grid > *,
.compare-grid > *, .footer-grid > *, .form-grid > *, .stats-grid > * { min-width: 0; }

section { padding: 80px 0; }

.section-alt { background: var(--bg-alt); }

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

/* Eyebrow label above section headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo em { font-style: normal; color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active:not(.btn)::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.active:not(.btn) { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-soft); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn-whatsapp {
  background: #1f9d55;
  color: #fff;
}
.btn-whatsapp:hover { background: #18874a; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  position: relative;
}

/* Faint blueprint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 92, 214, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 92, 214, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.03;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-sub { padding: 72px 0 40px; }
.hero-sub p.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

/* Home hero: Andon panel overlaps into the section below */
.hero-overlap { padding-bottom: 0; }
.hero-overlap .panel { margin-bottom: -72px; }
.after-overlap { padding-top: 152px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
a.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--text); }
.card p:last-child { margin-bottom: 0; }

.card .card-link {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  margin-top: 12px;
}

/* Checklist bullets */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--primary-soft);
}

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.split + .split { margin-top: 80px; }

/* Supporting illustration inside a split */
.side-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.side-visual img { width: 100%; display: block; }
.side-visual figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

/* Placeholder slot for real product screenshots (remove .slot-hidden to show) */
.shot-slot {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-alt);
}
.shot-slot.slot-hidden { display: none; }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  text-align: center;
}

.stat .stat-value {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
}
.stat .stat-value em { font-style: normal; color: var(--primary); }
.stat.stat-amber .stat-value,
.stat.stat-amber .stat-value em { color: #b26e00; }
.stat .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 10px;
}

/* ---------- Comparison ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.compare-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}
.compare-col.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.compare-col p { color: var(--text); }

.compare-col .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-amber { background: #fdf1dd; color: #8a5600; }

/* ---------- Process steps / timeline ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 99px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.92rem; margin: 0; color: var(--text); }

/* ---------- Case studies ---------- */

.case {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9c6100;
  margin-bottom: 10px;
}

.case-facts {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: -6px 0 18px;
}

.case > p { color: var(--text); }

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

.case-block h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.case-block ul, .case-block p { font-size: 0.95rem; color: var(--text); }

.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tech-chips li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  color: var(--text);
  margin: 0;
}

/* ---------- Industry cards ---------- */

.industry-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.industry-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.industry-card .thumb-icon {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}
.industry-card .thumb-icon svg { width: 52px; height: 52px; }
.industry-card .body { padding: 22px 22px 24px; }
.industry-card .body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.industry-card .body p { font-size: 0.9rem; margin: 0; color: var(--text); }

/* Double-width feature cards (Automotive, Pharma) */
.industry-card.feature-card .thumb { aspect-ratio: 21 / 9; }
.industry-card.feature-card .body h3 { font-size: 1.2rem; }
.industry-card.feature-card .body p { font-size: 0.95rem; }

.confidential-note {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
}

/* ---------- About the team ---------- */

.about-band .container { max-width: 860px; }
.about-band p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text);
}

/* ==========================================================================
   Dashboards — dark framed displays on the light page
   ========================================================================== */

.panel {
  background: var(--d-inset);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--d-border-strong);
  /* physical display: dark bezel + realistic drop shadow */
  box-shadow:
    0 0 0 6px #1a2333,
    0 0 0 7px #2e3f66,
    0 14px 28px rgba(22, 32, 46, 0.22),
    0 34px 64px rgba(22, 32, 46, 0.18);
}

.panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--d-panel);
  border-bottom: 1px solid var(--d-border);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--d-text3);
}
.panel-titlebar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.dot-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot-warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot-alarm { background: var(--alarm); box-shadow: 0 0 8px var(--alarm); }

.panel-body { padding: 0; }
.panel-body svg { width: 100%; height: auto; display: block; }

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.led-run { animation: pulse-glow 2.2s ease-in-out infinite; }

/* Scanline / glass overlay */
.panel-screen { position: relative; }
.panel-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0%, transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.live-dot { color: var(--ok); font-family: var(--font-mono); }
.live-dot::before {
  content: "●";
  margin-right: 5px;
  animation: live-pulse 1.6s ease-in-out infinite;
}

/* KPI header row (inside dark panel) */
.kpi-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 12px;
  background: var(--d-inset);
  border-bottom: 1px solid var(--d-border);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--d-text3);
  display: block;
  margin-bottom: 3px;
}
.kpi-value { font-size: 1.45rem; font-weight: 700; color: var(--d-text); line-height: 1.1; }
.kpi-value.dim { color: var(--d-text2); }

.kpi-value .digit { display: inline-block; }
@keyframes digit-tick {
  from { transform: translateY(0.45em); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.kpi-value .digit.tick { animation: digit-tick 0.35s ease-out; }

.kpi-progress {
  height: 3px;
  background: var(--d-border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.kpi-progress > span {
  display: block;
  height: 100%;
  background: #2f81f7;
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* TAKT: green while healthy, amber when under 15s */
.kpi-value[data-takt] { color: var(--ok); }
.kpi-value[data-takt].takt-low { color: var(--warn); }

/* OEE circular gauge */
.gauge { display: flex; align-items: center; gap: 8px; }
.gauge svg { width: 46px; height: 46px; }
.gauge .gauge-track { stroke: var(--d-border); }
.gauge .gauge-arc {
  stroke: var(--ok);
  stroke-linecap: round;
  transition: stroke-dasharray 0.9s ease;
}
@keyframes gauge-in { from { stroke-dasharray: 0 100; } }
.gauge .gauge-arc { animation: gauge-in 1.2s ease-out; }
.gauge .gauge-text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ok);
}

/* Station tile states */
[data-station] rect { transition: fill 0.35s ease, stroke 0.35s ease; }
[data-station] {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease;
}
[data-station].state-change { transform: scale(1.05); }
@keyframes tile-blink {
  0%, 100% { fill-opacity: 1; }
  50% { fill-opacity: 0.45; }
}
[data-station].st-warn rect { animation: tile-blink 1.4s ease-in-out infinite; }
@keyframes tile-alarm-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(248, 81, 73, 0.7)); }
  50% { filter: drop-shadow(0 0 9px rgba(248, 81, 73, 0.9)); }
}
[data-station].st-down rect { animation: tile-alarm-glow 1.2s ease-in-out infinite; }

/* Hourly bars */
.bar-anim {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes bar-grow { from { transform: scaleY(0); } }
@keyframes bar-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.bar-current { animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both var(--d, 0s), bar-shimmer 2.4s ease-in-out 1.2s infinite; }

/* Alarm/event ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--d-border);
  background: var(--d-panel);
  padding: 7px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--warn);
  opacity: 0.75;
  padding-left: 100%;
  animation: ticker-scroll 28s linear infinite;
}
@keyframes ticker-scroll {
  to { transform: translateX(-100%); }
}

/* Flow diagram dots + node pulse */
.flow-dot { filter: drop-shadow(0 0 4px rgba(47, 129, 247, 0.9)); }
@keyframes node-pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.45; }
}
.node-pulse { animation: node-pulse 3s ease-in-out infinite; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 88px 0;
}
.cta-band h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 540px; margin: 0 auto 32px; color: var(--muted); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field label .req { color: #c62828; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: #c62828; }

.field-error {
  display: none;
  font-size: 0.8rem;
  color: #c62828;
  margin-top: 5px;
}
.form-field.invalid .field-error { display: block; }

.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-top: 8px;
}
.form-status.ok { display: block; background: #e7f6ec; color: #1b6b34; border: 1px solid #9fd4af; }
.form-status.err { display: block; background: #fdeceb; color: #a3271f; border: 1px solid #efb0ab; }

/* ---------- Footer (the one dark section) ---------- */

.site-footer {
  --d-text3: #7b88a3;
  background: var(--d-bg);
  color: var(--d-text2);
  padding: 64px 0 32px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--d-text3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--d-text2); }
.footer-col a:hover { color: #7db2f9; }
.footer-col a:focus-visible { outline: 2px solid #7db2f9; outline-offset: 2px; }

.site-footer .logo { color: var(--d-text); }
.site-footer .logo em { color: #2f81f7; }
.footer-brand p { color: var(--d-text3); font-size: 0.88rem; max-width: 320px; }
.footer-brand address {
  font-style: normal;
  color: var(--d-text3);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--d-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--d-text3);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--d-text3); }
.footer-bottom a:hover { color: #7db2f9; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger: 60ms steps */
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flow-dot { display: none; }
  .ticker-track { animation: none; padding-left: 16px; }
  .live-dot::before { animation: none; }
}

/* ==========================================================================
   Responsive — mobile-first: 480 / 768 / 1024 / 1440
   ========================================================================== */

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

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field.full { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-card.feature-card { grid-column: span 2; }
}

@media (min-width: 1024px) {
  section { padding: 96px 0; }
  .hero { padding: 104px 0 96px; }
  .hero-overlap { padding-bottom: 0; }
  /* Asymmetric hero: text 55 / panel 45 */
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.rev > .split-media { order: 2; }
  .split.narrow-media { grid-template-columns: 1.3fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1440px) {
  :root { --container: 1240px; }
}

/* Mobile nav (below 900 — desktop nav needs the room to avoid wrapping) */
@media (max-width: 899.98px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 0 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .main-nav a:not(.btn)::after { content: none; }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav .btn { margin: 14px 24px 0; }

  .hero-overlap .panel { margin-bottom: -48px; }
  .after-overlap { padding-top: 120px; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .nav-toggle, .cta-band, .ticker { display: none; }
  body { background: #fff; color: #16202e; }
  .panel { box-shadow: none; border: 1px solid #999; }
  .site-footer { background: #fff; color: #16202e; border-top: 1px solid #999; }
  .site-footer a, .footer-col a, .footer-brand p, .footer-brand address, .footer-bottom { color: #3d4a5c; }
  .reveal { opacity: 1; transform: none; }
}

/* Industry card SVG icons (v4) */
.industry-card .icon-wrap{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:12px;background:#eef4fd;color:#0a5cd6;margin:20px 0 4px 20px}
.industry-card .ind-icon{width:36px;height:36px}
.industry-card:hover .icon-wrap{background:#0a5cd6;color:#ffffff;transition:background .25s,color .25s}
@media (max-width:768px){.industry-card .icon-wrap{margin:16px 0 0 16px}}
