/* ==========================================================================
   KRYZALONE — Design System
   "Atelier de précision" — Industrial / luminous / blueprint
   Light-first. Dark is the exception (.section--dark): hero, footer, CNC, CTA.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens (LIGHT defaults) --------------------------------------- */
:root {
  /* Surfaces — paper / steel */
  --paper: #F4F8FB;
  --paper-alt: #EEF4F8;
  --paper-warm: #E8EEF7;
  --card: #FFFFFF;
  --card-2: #F8FAFC;

  /* Dark surfaces (used by .section--dark) */
  --ink-0: #050814;
  --ink-1: #070C18;
  --ink-2: #0B1220;
  --ink-surface: #111C2E;

  /* Text */
  --text-1: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;
  --steel: #334155;

  /* Lines */
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.16);
  --blueprint: rgba(47, 128, 255, 0.10);

  /* Accents */
  --cyan: #22D3EE;
  --cyan-ink: #0E7A8E;       /* cyan legible on light */
  --blue: #2F80FF;
  --blue-deep: #1D5FD6;
  --violet: #7C3AED;
  --violet-2: #8B5CF6;
  /* Industrial signature — safety amber */
  --amber: #F2913D;
  --amber-deep: #D97316;
  --rust: #C2410C;

  /* State */
  --ok: #16A34A;
  --warn: #D97316;
  --err: #DC2626;
  --bordeaux: #BE3455;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;

  /* Shadow — crisp, not glowy */
  --shadow-1: 0 1px 2px rgba(15,23,42,0.05), 0 1px 0 rgba(15,23,42,0.03);
  --shadow-2: 0 18px 50px -28px rgba(15,23,42,0.30), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-card: 0 1px 0 rgba(15,23,42,0.04), 0 2px 4px rgba(15,23,42,0.04);

  /* Layout */
  --container: 1240px;
  --container-narrow: 980px;
  --header-h: 76px;
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(47,128,255,0.20); color: var(--text-1); }

/* Global background — luminous blueprint paper */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% -5%, rgba(47,128,255,0.07), transparent 55%),
    radial-gradient(ellipse 60% 45% at 5% 10%, rgba(34,211,238,0.06), transparent 55%),
    linear-gradient(180deg, #FBFDFF 0%, var(--paper) 40%, var(--paper-alt) 100%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 20%, transparent 75%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

/* ---------- Type --------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-1);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 600; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0; }

p { margin: 0; color: var(--text-2); text-wrap: pretty; }
p.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 62ch; }

.mono { font-family: var(--font-mono); }
.cyan { color: var(--cyan-ink); }
.accent-blue { color: var(--blue-deep); }
.accent-amber { color: var(--amber-deep); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

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

section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin-bottom: 56px; }

.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); }

/* ==========================================================================
   DARK SECTION SCOPE — hero, footer, CNC, CTA
   ========================================================================== */
.section--dark {
  --text-1: #F5F7FA;
  --text-2: #AEB9CC;
  --text-3: #7A879B;
  --steel: #CBD5E1;
  --card: rgba(17, 28, 46, 0.72);
  --card-2: rgba(11, 18, 32, 0.72);
  --line: rgba(167, 176, 192, 0.12);
  --line-strong: rgba(167, 176, 192, 0.20);
  --paper: var(--ink-2);
  --paper-alt: var(--ink-2);
  color: var(--text-1);
  background: var(--ink-2);
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.section--dark.deep { background: var(--ink-0); }
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,176,192,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,176,192,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
.section--dark > * { position: relative; z-index: 1; }
.section--dark .eyebrow { color: var(--cyan); }
.section--dark .eyebrow::before { background: linear-gradient(90deg, transparent, var(--cyan)); }
.section--dark .cyan { color: var(--cyan); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-1); }
.section--dark .card {
  background: linear-gradient(180deg, rgba(17,28,46,0.72) 0%, rgba(11,18,32,0.72) 100%);
  border-color: var(--line-strong);
  box-shadow: none;
}
.section--dark .card:hover { border-color: rgba(34,211,238,0.30); }
.section--dark .svc-icon { background: linear-gradient(180deg, rgba(34,211,238,0.08), transparent); color: var(--cyan); }
.section--dark .tag { background: rgba(11,18,32,0.5); border-color: var(--line-strong); color: var(--text-2); }
.section--dark .tag.cyan { color: var(--cyan); border-color: rgba(34,211,238,0.30); background: transparent; }
.section--dark .status-bar { background: rgba(11,18,32,0.5); border-color: var(--line-strong); }
.section--dark .status-value { color: var(--text-1); }
.section--dark .btn-secondary { background: rgba(17,24,39,0.5); color: var(--text-1); border-color: var(--line-strong); }
.section--dark .btn-secondary:hover { border-color: rgba(34,211,238,0.5); color: var(--cyan); }
.section--dark .link-arrow { color: var(--cyan); }
.section--dark .crumbs, .section--dark .crumbs a { color: var(--text-3); }
.section--dark .crumbs span.current { color: var(--cyan); }
.section--dark ::selection { background: rgba(34,211,238,0.30); color: #fff; }

/* ---------- Header --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
/* Default = light glass (over light content / scrolled) */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; }
.brand img { height: 38px; width: auto; transition: opacity .25s ease; }
.brand .logo-dark, .brand .logo-light { display: block; }
.brand .logo-light { position: absolute; top: 0; left: 0; }
/* Logo crossfade: show light logo only when header is over dark hero (top, not scrolled) */
.brand .logo-light { opacity: 0; }
.brand .logo-dark { opacity: 1; }
.site-header.on-dark:not(.scrolled) .brand .logo-light { opacity: 1; }
.site-header.on-dark:not(.scrolled) .brand .logo-dark { opacity: 0; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s ease;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--text-1); }
.site-header.on-dark:not(.scrolled) .nav a { color: rgba(231,238,247,0.75); }
.site-header.on-dark:not(.scrolled) .nav a:hover,
.site-header.on-dark:not(.scrolled) .nav a.active { color: #fff; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.site-header.on-dark:not(.scrolled) .nav a.active::after {
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.header-cta { margin-left: 12px; }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 42px; height: 42px;
  border-radius: 10px;
  color: var(--text-1);
  align-items: center;
  justify-content: center;
}
.site-header.on-dark:not(.scrolled) .menu-toggle { color: #fff; border-color: rgba(255,255,255,0.25); }
.menu-toggle svg { width: 18px; height: 18px; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.97);
  backdrop-filter: blur(20px);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .mn-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .mn-top .brand .logo-dark { display: none; }
.mobile-nav .mn-top .brand .logo-light { position: static; opacity: 1; }
.mobile-nav .menu-toggle { display: inline-flex; color: #fff; border-color: rgba(255,255,255,0.25); }
.mobile-nav .mn-links { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.mobile-nav .mn-links a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(167,176,192,0.15);
  color: #fff;
}
.mobile-nav .mn-cta { margin-top: 32px; }

/* ---------- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: all .2s ease;
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: linear-gradient(180deg, #3A8BFF 0%, #2F80FF 55%, #1D5FD6 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 10px 24px -10px rgba(47,128,255,0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 16px 34px -10px rgba(47,128,255,0.65);
}
.section--dark .btn-primary {
  background: linear-gradient(180deg, #1FE2FF 0%, #22D3EE 50%, #0EA5BD 100%);
  color: #051420;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.6), 0 10px 30px -10px rgba(34,211,238,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-1);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
.btn-secondary:hover {
  border-color: rgba(47,128,255,0.5);
  color: var(--blue-deep);
}

.btn-ghost { background: transparent; color: var(--text-1); padding: 13px 16px; }
.btn-ghost:hover { color: var(--blue-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue-deep);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: gap .2s ease, border-color .2s ease;
}
.link-arrow:hover { gap: 12px; border-bottom-color: var(--blue); }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- Cards --------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47,128,255,0.06), transparent 42%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { border-color: rgba(47,128,255,0.35); box-shadow: var(--shadow-2); }
.card:hover::before { opacity: 1; }

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card-num { font-family: var(--font-mono); font-size: 11px; color: var(--blue-deep); letter-spacing: 0.10em; }

/* ---------- Badges / tags --------------------------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: var(--card-2);
}
.tag.cyan { color: var(--cyan-ink); border-color: rgba(34,211,238,0.45); background: rgba(34,211,238,0.06); }
.tag.blue { color: var(--blue-deep); border-color: rgba(47,128,255,0.35); background: rgba(47,128,255,0.06); }
.tag.amber { color: var(--amber-deep); border-color: rgba(217,115,22,0.35); background: rgba(242,145,61,0.08); }
.tag.violet { color: #6D28D9; border-color: rgba(124,58,237,0.30); background: rgba(124,58,237,0.06); }
.tag.dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(47,128,255,0.5);
}
.tag.cyan.dot::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- Status bar --------------------------------------------------- */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.status-cell {
  flex: 1 1 0;
  min-width: 180px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-cell:last-child { border-right: none; }
.status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(22,163,74,0.5);
  animation: pulse 2.4s ease-in-out infinite;
}
.status-value { font-family: var(--font-display); font-size: 16px; color: var(--text-1); font-weight: 600; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}

/* ---------- Service card ---------------------------------------------------- */
.service-card { display: flex; flex-direction: column; gap: 20px; padding: 28px; height: 100%; }
.service-card .svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(47,128,255,0.08), #FFFFFF);
  color: var(--blue-deep);
  flex-shrink: 0;
}
.svc-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 22px; font-weight: 600; }
.service-card p { font-size: 14.5px; }

/* ---------- Use case card --------------------------------------------------- */
.use-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.use-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; }
.use-card .use-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-deep); }

/* ---------- Footer (always dark) ------------------------------------------- */
.site-footer {
  position: relative;
  border-top: 2px solid var(--blue);
  padding-block: 80px 32px;
  background: var(--ink-0);
  color: #AEB9CC;
  isolation: isolate;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,176,192,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,176,192,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #7A879B;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #AEB9CC; font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-col p { color: #8A93A6; }
.site-footer .status-label { color: #8A93A6; }
.footer-bottom {
  border-top: 1px solid rgba(167,176,192,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #7A879B;
}
.footer-bottom .legals { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Page hero (sub-pages) — light blueprint ------------------------ */
.page-hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 64px;
  position: relative;
}
.page-hero .crumbs {
  display: flex; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 32px;
}
.page-hero .crumbs a { color: var(--text-3); }
.page-hero .crumbs a:hover { color: var(--blue-deep); }
.page-hero .crumbs span.current { color: var(--blue-deep); }
.page-hero h1 { max-width: 16ch; margin-bottom: 24px; }
.page-hero .lead { max-width: 60ch; }
/* page hero that should be dark uses .page-hero + .section--dark */

/* ---------- Forms --------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.form-field label .req { color: var(--blue-deep); }
.form-field input, .form-field select, .form-field textarea {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-1);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: rgba(47,128,255,0.55);
  box-shadow: 0 0 0 4px rgba(47,128,255,0.10);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232F80FF' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.checkbox-row input { accent-color: var(--blue); margin-top: 3px; }

/* ---------- Timeline / Method --------------------------------------------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.timeline::before {
  content: '';
  position: absolute;
  top: 24px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong) 0, var(--blue) 50%, var(--line-strong) 100%);
}
.tl-step { position: relative; padding: 0 16px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tl-dot {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--blue-deep);
  z-index: 1;
  box-shadow: var(--shadow-1);
}
.tl-dot::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(47,128,255,0.35);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tl-step h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.tl-step p { font-size: 14px; }

/* ---------- Reveal --------------------------------------------------------- */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.js-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(20px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Light background helpers (default is already light) ----------- */
.section--light { background: var(--paper); }
.section--light.alt { background: var(--paper-alt); }
.section--light.warm { background: var(--paper-warm); }

/* ---------- CTA card (dark, industrial) ----------------------------------- */
.cta-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(167,176,192,0.18);
  padding: 64px;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(47,128,255,0.25), transparent 70%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(34,211,238,0.16), transparent 70%),
    linear-gradient(180deg, #0B1220, #070C18);
  color: #F5F7FA;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
.cta-card .eyebrow { color: var(--cyan); }
.cta-card .eyebrow::before { background: linear-gradient(90deg, transparent, var(--cyan)); }
.cta-card h2 { font-size: clamp(32px, 4vw, 48px); max-width: 22ch; margin-inline: auto; color: #fff; }
.cta-card p { max-width: 60ch; margin: 18px auto 32px; font-size: 17px; color: #AEB9CC; }
.cta-card .btn-primary {
  background: linear-gradient(180deg, #1FE2FF 0%, #22D3EE 50%, #0EA5BD 100%);
  color: #051420;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.6), 0 10px 30px -10px rgba(34,211,238,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ---------- Detail page layouts ------------------------------------------- */
.svc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.detail-card h4 { font-size: 16px; font-weight: 600; font-family: var(--font-display); }
.detail-card p { font-size: 14px; }
.detail-card .num { font-family: var(--font-mono); color: var(--blue-deep); font-size: 11px; letter-spacing: 0.16em; }
.section--dark .detail-card .num { color: var(--cyan); }

.bullet-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.bullet-list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.bullet-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--blue);
}
.section--dark .bullet-list li::before { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.problem-card {
  padding: 24px;
  border-left: 3px solid var(--amber);
  display: flex; flex-direction: column; gap: 8px;
}
.problem-card .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-deep); }
.problem-card h4 { font-size: 15px; font-weight: 600; font-family: var(--font-display); }

/* ---------- Industrial decorative: corner crops & dimension ribbon -------- */
.crop {
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid var(--blue);
  opacity: 0.5;
  pointer-events: none;
}
.crop.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.crop.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.crop.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.crop.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.section--dark .crop { border-color: var(--cyan); }

.dim-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dim-ribbon .seg { display: flex; align-items: center; gap: 8px; }
.dim-ribbon .tick { width: 1px; height: 10px; background: var(--line-strong); }
.dim-ribbon .rule { height: 1px; width: 28px; background: var(--line-strong); position: relative; }

/* ---------- Utility --------------------------------------------------------- */
.spacer-2 { height: 16px; } .spacer-4 { height: 32px; } .spacer-6 { height: 64px; }
.flex { display: flex; } .flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.center { text-align: center; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { display: none; }
  .tl-step { padding: 0; }
}
@media (max-width: 900px) {
  .svc-detail-grid { grid-template-columns: 1fr; }
  .bullet-list { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  section { padding-block: 64px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .status-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .status-cell:last-child { border-bottom: none; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
