/* ==========================================================================
   ImmuneWorks — Enterprise AI Immune System
   All colors via theme tokens (var(--*)). No hardcoded palette values.
   Tints/overlays are derived with color-mix so every bundled theme adapts.
   ========================================================================== */

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

:root {
  --maxw: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* derived tokens (theme-agnostic) */
  --tint-1: color-mix(in srgb, var(--primary) 8%, transparent);
  --tint-2: color-mix(in srgb, var(--primary) 14%, transparent);
  --tint-3: color-mix(in srgb, var(--primary) 22%, transparent);
  --ink-panel: color-mix(in srgb, var(--text) 92%, var(--bg));
  --hairline: color-mix(in srgb, var(--border) 80%, transparent);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Hide content visually but keep for a11y */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 8px 24px var(--tint-3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ===================== Top Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand .logo { width: 28px; height: 28px; flex: none; }
.brand b { font-weight: 800; }
.brand .brand-sub { color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500;
  color: var(--text-muted); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--tint-1); }
.nav-links a.active { color: var(--primary); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--text-muted);
  padding: 6px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.lang-toggle button.active { background: var(--primary); color: var(--on-primary); }

/* Mobile menu toggle */
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .2s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

/* ===================== Theme Switcher (consumes theme-switcher.js classes) ===================== */
.theme-switcher { position: relative; }
.theme-switcher__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 500;
}
.theme-switcher__btn:hover { border-color: var(--primary); }
.theme-switcher__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--tint-2); }
.theme-switcher__pop {
  position: absolute; top: calc(100% + 8px); right: 0; width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 200; max-height: 70vh; overflow-y: auto;
}
.theme-switcher__group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); padding: 10px 8px 4px; font-weight: 700; }
.theme-switcher__item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: transparent;
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; text-align: left;
}
.theme-switcher__item:hover { background: var(--tint-1); }
.theme-switcher__swatch { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.theme-switcher__name { flex: 1; }
.theme-switcher__check { color: var(--primary); font-weight: 700; width: 14px; }

/* ===================== Section primitives ===================== */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head .lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); }

/* ===================== Hero ===================== */
.hero { position: relative; padding: clamp(72px, 12vh, 132px) 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 8%, var(--tint-2), transparent 70%),
    radial-gradient(48% 40% at 8% 90%, var(--tint-1), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 60% at 50% 25%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 25%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.hero .badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--tint-3); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--tint-3); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--primary); }
.hero .subtitle { margin-top: 24px; font-size: clamp(17px, 2vw, 22px); color: var(--text-muted); max-width: 660px; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--text-subtle); font-size: 13px; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-subtle); }

/* ===================== Logos / trust band ===================== */
.trustband { padding: 36px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trustband p { text-align: center; color: var(--text-subtle); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 16px 44px; align-items: center; justify-content: center; opacity: .8; }
.logo-row span { font-weight: 700; font-size: 17px; color: var(--text-muted); letter-spacing: -.01em; }

/* ===================== Stat band ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.stat .num { font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.stat .lbl { margin-top: 6px; color: var(--text-muted); font-size: 14px; }

/* ===================== Generic card grid ===================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-md); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .ico {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--tint-2); color: var(--primary); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }

/* ===================== Immune Mesh products ===================== */
.mesh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; position: relative; overflow: hidden;
}
.product-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.product-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.product-card:hover::after { transform: scaleX(1); }
.product-card .ico { width: 50px; height: 50px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--tint-2); color: var(--primary); margin-bottom: 20px; }
.product-card .ico svg { width: 26px; height: 26px; }
.product-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.product-card h3 { font-size: 21px; margin: 6px 0 12px; }
.product-card p { color: var(--text-muted); font-size: 15px; flex: 1; }
.product-card .biolayer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-subtle); display: flex; gap: 8px; align-items: center; }
.product-card .biolayer b { color: var(--text-muted); font-weight: 600; }
.product-card .more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* product deep section */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 80px 0; border-bottom: 1px solid var(--hairline); }
.product-detail:nth-child(even) .pd-media { order: -1; }
.pd-body .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.pd-body .tag .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--tint-2); display: grid; place-items: center; }
.pd-body .tag .ico svg { width: 17px; height: 17px; }
.pd-body h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 8px; }
.pd-body .pd-sub { color: var(--primary); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.pd-body > p { color: var(--text-muted); font-size: 16px; margin-bottom: 22px; }
.feat-list { display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.feat-list .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tint-2); color: var(--primary); display: grid; place-items: center; margin-top: 1px; }
.feat-list .ck svg { width: 13px; height: 13px; }
.feat-list b { font-weight: 600; }
.feat-list span { color: var(--text-muted); }

/* mock panel media */
.mock {
  background: var(--ink-panel); color: color-mix(in srgb, var(--bg) 88%, var(--text));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; overflow: hidden; box-shadow: var(--shadow-lg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 40%, var(--text)); opacity: .5; }
.mock-bar .ttl { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; opacity: .7; }
.mock-body { padding: 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; }
.mock-body .ln { display: flex; gap: 10px; white-space: nowrap; }
.mock-body .mut { opacity: .55; }
.mock-body .ok { color: var(--success); }
.mock-body .warn { color: var(--warning); }
.mock-body .bad { color: var(--danger); }
.mock-body .acc { color: var(--primary); }
.mock-body .pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: color-mix(in srgb, var(--primary) 25%, transparent); color: color-mix(in srgb, var(--bg) 85%, var(--primary)); }

/* ===================== Mesh diagram ===================== */
.mesh-diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.mesh-diagram .core { grid-column: 1 / -1; text-align: center; padding: 22px; border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); font-weight: 700; }
.mesh-node { text-align: center; padding: 18px 12px; border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--border)); border-radius: var(--radius-md); background: var(--tint-1); font-size: 13.5px; font-weight: 600; }

/* ===================== Solutions split ===================== */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sol-card { padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.sol-card .ico { width: 54px; height: 54px; border-radius: var(--radius-md); background: var(--tint-2); color: var(--primary); display: grid; place-items: center; margin-bottom: 20px; }
.sol-card .ico svg { width: 28px; height: 28px; }
.sol-card h3 { font-size: 23px; margin-bottom: 12px; }
.sol-card > p { color: var(--text-muted); margin-bottom: 22px; }
.sol-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--tint-1); color: var(--text-muted); border: 1px solid var(--hairline); font-weight: 500; }
.sol-card .stack { display: grid; gap: 10px; }
.sol-card .stack .row { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-muted); }
.sol-card .stack .row .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--tint-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.sol-card .stack .row .ck svg { width: 12px; height: 12px; }

/* ===================== How it works ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step .n { counter-increment: step; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.step .n::before { content: "0" counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint-2); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ===================== Lifecycle (Detect → Verify → Respond → Learn → Adapt) ===================== */
.lifecycle { margin-top: 8px; }
.lc-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lc-stage {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 18px; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.lc-stage:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-md); }
.lc-stage::after {
  content: "→"; position: absolute; right: -13px; top: 34px; z-index: 2;
  color: var(--primary); font-weight: 800; font-size: 18px; line-height: 1;
}
.lc-stage:last-child::after { content: ""; }
.lc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lc-i { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-subtle); }
.lc-ico { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--tint-2); color: var(--primary); display: grid; place-items: center; }
.lc-ico svg { width: 20px; height: 20px; }
.lc-stage h3 { font-size: 18px; margin-bottom: 8px; }
.lc-stage p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
.lc-note {
  margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--text-subtle);
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.lc-note::before { content: "↻"; color: var(--primary); font-size: 18px; font-weight: 700; }
@media (max-width: 980px) {
  .lc-flow { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .lc-stage::after { content: ""; }
}
@media (max-width: 560px) {
  .lc-flow { grid-template-columns: 1fr; }
}

/* ===================== CTA band ===================== */
.cta-band { padding: 84px 0; text-align: center; position: relative; overflow: hidden; background: var(--surface); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, var(--tint-2), transparent 70%); pointer-events: none; }
.cta-band .inner { position: relative; max-width: 680px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-band p { margin-top: 16px; color: var(--text-muted); font-size: 18px; }
.cta-band .hero-cta { justify-content: center; }

/* ===================== About page ===================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px; border-left: 3px solid var(--primary); background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.value h3 { font-size: 18px; margin-bottom: 10px; }
.value p { color: var(--text-muted); font-size: 14.5px; }
.prose { max-width: 760px; }
.prose p { color: var(--text-muted); font-size: 17px; margin-bottom: 20px; }
.prose p strong { color: var(--text); }
.timeline { display: grid; gap: 0; max-width: 760px; }
.timeline .ev { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--hairline); }
.timeline .ev .yr { font-weight: 800; color: var(--primary); font-size: 18px; }
.timeline .ev h4 { font-size: 17px; margin-bottom: 6px; }
.timeline .ev p { color: var(--text-muted); font-size: 15px; }

/* ===================== Contact / form ===================== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .lead { color: var(--text-muted); font-size: 17px; margin: 16px 0 28px; }
.contact-points { display: grid; gap: 18px; }
.contact-points .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .row .ico { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--tint-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.contact-points .row .ico svg { width: 20px; height: 20px; }
.contact-points .row b { display: block; font-size: 15px; }
.contact-points .row span { color: var(--text-muted); font-size: 14px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.form-msg.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.form-fine { margin-top: 14px; font-size: 12.5px; color: var(--text-subtle); }

/* ===================== Page hero (sub pages) ===================== */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 80% 0%, var(--tint-1), transparent 70%); pointer-events: none; }
.page-hero .inner { position: relative; max-width: 760px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.page-hero p { margin-top: 18px; font-size: clamp(16px, 1.8vw, 20px); color: var(--text-muted); max-width: 640px; }
.breadcrumb { font-size: 13px; color: var(--text-subtle); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }

/* ===================== FAQ ===================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); transition: transform .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; color: var(--text-muted); font-size: 15px; max-width: 92%; }

/* ===================== Footer ===================== */
.footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer .about { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); margin-bottom: 16px; font-weight: 700; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-muted); font-size: 14px; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.footer-bottom p { color: var(--text-subtle); font-size: 13px; }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); }
.footer-bottom .socials a:hover { color: var(--primary); border-color: var(--primary); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .grid-3, .mesh-grid, .steps, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .product-detail:nth-child(even) .pd-media { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; margin: 0; display: none; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-burger { display: inline-flex; }
  .nav .desktop-only { display: none; }
  .split, .grid-2, .grid-3, .mesh-grid, .steps, .value-grid, .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline .ev { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
