/* ===========================================================================
   AutoCops Netgraph — site layout & components
   This file is hand-authored and consumes the variables in theme.css.
   theme.css is generated; site.css is not. Keep all color literals OUT of here
   (use --ng-* tokens) so the brand stays driven by tokens.json.

   Color discipline:
     - Body text reads from --ng-ink / --ng-slate / --ng-muted (auto-flip).
     - Links / eyebrows / success ticks use the *role* tokens
       (--ng-link, --ng-accent, --ng-success) which also auto-flip per theme.
     - Anything sitting on the brand gradient uses --ng-ink (dark) as body text
       so contrast stays >= WCAG AA on every gradient stop (audit in build.sh).
   =========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ng-font-sans);
  color: var(--ng-ink);
  background: var(--ng-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ng-link); text-decoration: none; }
a:hover { color: var(--ng-link-strong); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ng-ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ng-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--ng-maxw); margin-inline: auto; padding-inline: var(--ng-gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--alt { background: var(--ng-surface-alt); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ng-accent); margin-bottom: .75rem;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ng-slate); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; font-size: .98rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--ng-radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* Primary: white on the darker side of the gradient => >= 5.5:1 contrast everywhere */
.btn--primary {
  color: var(--ng-white);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--ng-blue) 88%, var(--ng-black)),
      color-mix(in srgb, var(--ng-azure) 90%, var(--ng-black)),
      color-mix(in srgb, var(--ng-teal) 84%, var(--ng-black)),
      color-mix(in srgb, var(--ng-green) 86%, var(--ng-black)));
  box-shadow: var(--ng-shadow-glow);
}
.btn--primary:hover { box-shadow: var(--ng-shadow-lg); }
.btn--ghost { color: var(--ng-ink); background: transparent; border-color: var(--ng-line-strong); }
.btn--ghost:hover { background: var(--ng-surface-alt); border-color: var(--ng-accent); }
.btn--sm { padding: .6rem 1rem; font-size: .88rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--ng-surface) 86%, transparent);
  border-bottom: 1px solid var(--ng-line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 88px; position: relative; }
.nav__brand {
  display: flex; align-items: center; gap: .65rem; margin-right: auto;
  /* Logo gets a bit of vertical breathing room; ratio 2.83:1 -> ~159px wide at 56px tall */
  padding-block: 6px;
}
.nav__brand img { height: 56px; width: auto; display: block; }
@media (max-width: 560px) {
  .nav__brand img { height: 44px; }
}
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { color: var(--ng-slate); font-weight: 550; font-size: .95rem; }
.nav__links a:hover { color: var(--ng-ink); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--ng-radius-pill); border: 1px solid var(--ng-line-strong);
  background: var(--ng-surface); cursor: pointer; color: var(--ng-ink); font-size: 1.05rem;
}
.theme-toggle:hover { border-color: var(--ng-accent); }

/* ---------- hero (corporate-blue) ---------- */
/* The hero is the only deeply saturated band on the page. Text on it is always
   white (--ng-hero-ink) => >= 10.4:1 contrast on every gradient stop. Audited. */
.hero { position: relative; overflow: hidden; background: var(--ng-grad-hero); color: var(--ng-hero-ink); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40rem 30rem at 85% -10%, rgba(var(--ng-teal-rgb), .14), transparent 60%),
    radial-gradient(36rem 28rem at -5% 110%, rgba(var(--ng-blue-rgb), .22), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 140px); }
.hero .eyebrow { color: var(--ng-hero-accent); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; color: var(--ng-hero-ink); }
.hero h1 .grad-text {
  /* on the navy hero, swap the brand-text gradient for a bright cyan-to-mint
     so the gradient word stays readable instead of fading into the background */
  background: linear-gradient(90deg, var(--ng-hero-accent), var(--ng-accent) 60%, var(--ng-success-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--ng-hero-ink-soft); margin-top: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero .btn--ghost { color: var(--ng-hero-ink); border-color: var(--ng-hero-chip-border); background: transparent; }
.hero .btn--ghost:hover { background: var(--ng-hero-chip-bg); border-color: var(--ng-hero-accent); }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.hero .chip {
  color: var(--ng-hero-ink);
  background: var(--ng-hero-chip-bg);
  border-color: var(--ng-hero-chip-border);
  backdrop-filter: blur(4px);
}
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--ng-ink-soft);
  background: color-mix(in srgb, var(--ng-surface) 78%, transparent);
  border: 1px solid var(--ng-line-strong); padding: .4rem .8rem; border-radius: var(--ng-radius-pill);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ng-grad-main); }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat__num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--ng-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--ng-slate); font-size: .92rem; }

/* ---------- module grid ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--ng-surface); border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius-lg); padding: 1.5rem;
  box-shadow: var(--ng-shadow-sm); transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ng-shadow-md); border-color: var(--ng-accent); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--ng-radius-md);
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--ng-grad-main); color: var(--ng-white); font-size: 1.25rem;
  box-shadow: var(--ng-shadow-glow);
}
.card h3 { font-size: 1.12rem; color: var(--ng-ink); }
.card p { color: var(--ng-slate); font-size: .94rem; margin: 0; }

/* ---------- ethos cards (Made in India + practitioner-driven) ---------- */
.ethos-card {
  position: relative;
  background: var(--ng-surface);
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--ng-shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.ethos-card::before {
  /* signature gradient stripe along the top — the unique-brand cue */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--ng-grad-main);
}
.ethos-card:hover { transform: translateY(-3px); box-shadow: var(--ng-shadow-md); border-color: var(--ng-accent); }
.ethos-card__icon {
  font-size: 1.8rem; line-height: 1; margin-bottom: 1rem;
  width: 56px; height: 56px; border-radius: var(--ng-radius-md);
  display: grid; place-items: center;
  background: var(--ng-surface-sunken); border: 1px solid var(--ng-line);
}
.ethos-card h3 { font-size: clamp(1.2rem, 2.3vw, 1.5rem); color: var(--ng-ink); }
.ethos-card__lede { color: var(--ng-slate); font-size: 1rem; }
.ethos-card ul { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .65rem; }
.ethos-card li { display: flex; gap: .65rem; color: var(--ng-ink); font-size: .95rem; }
.ethos-card li::before { content: "✓"; color: var(--ng-success); font-weight: 800; flex-shrink: 0; }

/* ---------- diff / feature rows ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 96px); }
.feature--rev { direction: rtl; }
.feature--rev > * { direction: ltr; }
.feature p { color: var(--ng-slate); }
.feature ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.feature li { display: flex; gap: .7rem; color: var(--ng-ink); }
.feature li::before { content: "✓"; color: var(--ng-success); font-weight: 800; }
.feature__panel {
  background: var(--ng-surface); border: 1px solid var(--ng-line-strong);
  border-radius: var(--ng-radius-lg); box-shadow: var(--ng-shadow-md); overflow: hidden;
}
.panel__bar { display: flex; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--ng-line-strong); background: var(--ng-surface-sunken); }
.panel__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--ng-line); }
.panel__bar span:nth-child(1){ background: var(--ng-window-red); } .panel__bar span:nth-child(2){ background: var(--ng-window-amber); } .panel__bar span:nth-child(3){ background: var(--ng-success); }
.panel__body { padding: 1.2rem 1.4rem; font-family: var(--ng-font-mono); font-size: .85rem; color: var(--ng-ink); }
.panel__body .k { color: var(--ng-link); }
.panel__body .v { color: var(--ng-success); }
.panel__body .c { color: var(--ng-muted); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ng-line); border-radius: var(--ng-radius-lg); background: var(--ng-surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; color: var(--ng-ink); }
.cmp th, .cmp td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--ng-line); }
.cmp thead th { background: var(--ng-surface-sunken); color: var(--ng-ink); font-weight: 700; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--ng-success); font-weight: 700; }
.cmp .no { color: var(--ng-muted); }
.cmp .ours { background: var(--ng-highlight-row); color: var(--ng-highlight-row-ink); font-weight: 650; }
.cmp .ours.yes { color: var(--ng-success-strong); }
.cmp abbr { /* column header tooltips: hover for the vendor-type description */
  border-bottom: 1px dotted var(--ng-muted);
  text-decoration: none; cursor: help;
}
.cmp-note {
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: var(--ng-surface-sunken); border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius-md);
  font-size: .85rem; color: var(--ng-slate); line-height: 1.6;
}
.cmp-note strong { color: var(--ng-ink); }
.cmp-note em { font-style: normal; font-weight: 650; color: var(--ng-ink-soft); }

/* ---------- "Powered by" navy section + knowledge-graph flow ---------- */
.section--navy {
  position: relative; overflow: hidden;
  background: var(--ng-grad-hero);
  color: var(--ng-hero-ink);
}
.section--navy::before {
  /* subtle node-grid backdrop, hand-derived from the brand */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px),
    radial-gradient(40rem 30rem at 90% -10%, rgba(var(--ng-teal-rgb), .18), transparent 60%),
    radial-gradient(36rem 28rem at -5% 110%, rgba(var(--ng-blue-rgb), .22), transparent 60%);
  background-size: 28px 28px, auto, auto;
  pointer-events: none;
}
.section--navy .container { position: relative; z-index: 1; }
.section--navy .eyebrow,
.eyebrow--on-navy { color: var(--ng-hero-accent); letter-spacing: .22em; }
.section--navy h2,
.on-navy { color: var(--ng-hero-ink); }
.section--navy .lead,
.lead--on-navy { color: var(--ng-hero-ink-soft); max-width: 70ch; }
.section-head--centered { margin-inline: auto; text-align: center; }
.section-head--centered .lead { margin-inline: auto; }

.grad-text--cyan {
  background: linear-gradient(90deg, var(--ng-hero-accent), var(--ng-accent) 60%, var(--ng-success-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Living knowledge-graph flow (SVG + CSS animation) ----------
   Mate-style horizontal flow, our own composition:
     sources (5 cards) -> correlator -> context-graph sphere -> agents (5 chips)
   plus a feedback loop right-to-left.
   IMPORTANT: do NOT apply `transform` to any positioned <g> in the SVG via
   CSS — the SVG `transform="translate(x y)"` attribute would be overwritten
   and every group would collapse to (0,0). All "motion" lives either on
   <animateMotion> (declarative SVG) or on stand-alone CSS keyframes applied
   to elements that have no SVG transform attribute (sphere glow, blink). */
.kg-graph {
  margin: clamp(32px, 5vw, 56px) auto 0;
  max-width: 1200px;
  position: relative;
}
.kg-graph__svg {
  display: block; width: 100%; height: auto;
  border-radius: var(--ng-radius-lg);
  background:
    radial-gradient(50% 60% at 50% 45%, rgba(125,220,255,.10), transparent 70%),
    radial-gradient(40% 50% at 12% 20%, rgba(var(--ng-teal-rgb), .10), transparent 70%),
    radial-gradient(40% 50% at 88% 80%, rgba(255,102,168,.12), transparent 70%);
  border: 1px solid var(--ng-hero-chip-border);
  overflow: visible;
}

/* Sphere outer glow pulses; the inner sphere itself is static so the
   internal nodes/edges read cleanly. */
.kg-sphere__glow {
  transform-box: fill-box; transform-origin: center;
  animation: kg-sphere-pulse 5s ease-in-out infinite;
}
@keyframes kg-sphere-pulse {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* Correlator dot-cloud subtle shimmer */
.kg-corr-dots circle { animation: kg-shimmer 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.kg-corr-dots circle:nth-child(2) { animation-delay: .3s; }
.kg-corr-dots circle:nth-child(3) { animation-delay: .6s; }
.kg-corr-dots circle:nth-child(4) { animation-delay: .9s; }
.kg-corr-dots circle:nth-child(5) { animation-delay: 1.2s; }
.kg-corr-dots circle:nth-child(6) { animation-delay: 1.5s; }
.kg-corr-dots circle:nth-child(7) { animation-delay: 1.8s; }
@keyframes kg-shimmer {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* Sphere internal nodes — gentle scale "breathing" without translating
   (so they don't drift off their edges) */
.kg-sphere__nodes circle { transform-box: fill-box; transform-origin: center; animation: kg-breathe 4s ease-in-out infinite; }
.kg-sphere__nodes circle:nth-child(2)  { animation-delay: .2s; }
.kg-sphere__nodes circle:nth-child(3)  { animation-delay: .4s; }
.kg-sphere__nodes circle:nth-child(4)  { animation-delay: .6s; }
.kg-sphere__nodes circle:nth-child(5)  { animation-delay: .8s; }
.kg-sphere__nodes circle:nth-child(6)  { animation-delay: 1.0s; }
.kg-sphere__nodes circle:nth-child(7)  { animation-delay: 1.2s; }
.kg-sphere__nodes circle:nth-child(8)  { animation-delay: 1.4s; }
.kg-sphere__nodes circle:nth-child(9)  { animation-delay: 1.6s; }
.kg-sphere__nodes circle:nth-child(10) { animation-delay: 1.8s; }
.kg-sphere__nodes circle:nth-child(11) { animation-delay: 2.0s; }
.kg-sphere__nodes circle:nth-child(12) { animation-delay: 2.2s; }
.kg-sphere__nodes circle:nth-child(13) { animation-delay: 2.4s; }
.kg-sphere__nodes circle:nth-child(14) { animation-delay: 2.6s; }
@keyframes kg-breathe {
  0%, 100% { transform: scale(1);    opacity: .9; }
  50%      { transform: scale(1.18); opacity: 1;   filter: drop-shadow(0 0 4px currentColor); }
}

.kg-graph__caption { margin-top: 1rem; text-align: center; }
.kg-graph__legend {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ng-hero-ink-soft); font-size: .88rem;
  max-width: 92ch; text-align: left;
}
.kg-graph__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ng-hero-ink);
  box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 10px var(--ng-hero-accent);
  animation: kg-blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes kg-blink {
  0%, 100% { opacity: .5; transform: scale(.9); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* ---------- Compact named-loop strip beneath the graph ---------- */
.kg-loop {
  list-style: none; padding: 0;
  margin: clamp(28px, 4vw, 44px) auto 0;
  max-width: 1000px;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: clamp(8px, 1.5vw, 16px);
}
.kg-loop li {
  display: grid; align-items: center; gap: .2rem;
  grid-template-rows: auto auto auto;
  background: var(--ng-hero-chip-bg);
  border: 1px solid var(--ng-hero-chip-border);
  border-radius: var(--ng-radius-md);
  padding: .7rem 1rem;
  min-width: 160px;
  color: var(--ng-hero-ink);
  backdrop-filter: blur(6px);
}
.kg-loop__n {
  font-family: var(--ng-font-mono);
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  color: var(--ng-hero-accent);
}
.kg-loop li strong { font-weight: 700; color: var(--ng-hero-ink); }
.kg-loop li span:last-child { color: var(--ng-hero-ink-soft); font-size: .82rem; }
.kg-loop__sep {
  background: transparent; border: 0; padding: 0;
  display: grid; place-items: center; min-width: 24px;
  color: var(--ng-hero-accent); font-size: 1.4rem; font-weight: 600;
}
.kg-loop__sep--back { color: var(--ng-hero-accent); opacity: .8; }

.kg-footnote {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
  font-size: .95rem;
  color: var(--ng-hero-ink-soft);
  max-width: 78ch; margin-inline: auto;
}
.kg-footnote em { font-style: normal; color: var(--ng-hero-ink); font-weight: 600; }

/* ---- responsive: shrink graph viewport, stack the loop ---- */
@media (max-width: 760px) {
  .kg-graph__svg { min-height: 380px; }
  .kg-loop { flex-direction: column; align-items: stretch; max-width: 360px; }
  .kg-loop__sep { transform: rotate(90deg); margin: -.2rem auto; }
}

/* ---- accessibility: honour reduced-motion ---------------------------------
   We stop all decorative animation: SVG <animateMotion> via begin="indefinite"
   override, CSS keyframes via animation: none. Composition is preserved so
   the diagram still reads as a graph. */
@media (prefers-reduced-motion: reduce) {
  .kg-sphere__glow,
  .kg-corr-dots circle,
  .kg-sphere__nodes circle,
  .kg-graph__dot { animation: none !important; }
  /* Hide moving packets so they don't pile up at path start as static blobs */
  .kg-packets { display: none; }
}

/* ---------- compliance band ----------
   Band gradient is theme-stable (always the brand gradient). Text on it must
   stay readable in both themes => dark ink + dark pills. */
.band { background: var(--ng-grad-main); color: var(--ng-ink); }
.band .eyebrow { color: var(--ng-navy); }
.band h2 { color: var(--ng-white); text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.band .lead { color: var(--ng-navy); }
.band .pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.band .pills span {
  background: rgba(11,18,32,.18);
  border: 1px solid rgba(11,18,32,.28);
  color: var(--ng-white);
  padding:.45rem .9rem; border-radius: var(--ng-radius-pill);
  font-weight:600; font-size:.85rem;
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.cta .hero__actions { justify-content: center; }

/* ---------- contact form ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-info p { color: var(--ng-slate); }
.contact-info .mailto {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ng-link); font-weight: 600;
}
.contact-info .mailto:hover { color: var(--ng-link-strong); }
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; }
.contact-info li { color: var(--ng-ink); display: flex; gap: .65rem; }
.contact-info li::before { content: "→"; color: var(--ng-accent); font-weight: 800; }

.contact-form {
  background: var(--ng-surface); border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius-lg); box-shadow: var(--ng-shadow-md);
  padding: clamp(20px, 3vw, 32px);
}
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label {
  font-size: .82rem; font-weight: 600; color: var(--ng-ink-soft);
  letter-spacing: .02em;
}
.field label .req { color: var(--ng-danger); margin-left: .15rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ng-ink);
  background: var(--ng-surface); border: 1px solid var(--ng-line-strong);
  border-radius: var(--ng-radius-md); padding: .7rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ng-muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ng-accent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ng-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ng-accent) 28%, transparent);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--ng-danger);
}
.field--inline { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--inline .field { margin-bottom: 0; }
.consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--ng-slate); margin: .25rem 0 1.25rem; }
.consent input { width: 1rem; height: 1rem; margin-top: .25rem; accent-color: var(--ng-accent); }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.form-status {
  display: none; margin-top: 1rem; padding: .8rem 1rem;
  border-radius: var(--ng-radius-md); font-size: .92rem;
  border: 1px solid transparent;
}
.form-status.is-on { display: block; }
.form-status--ok    { background: color-mix(in srgb, var(--ng-success) 14%, var(--ng-surface)); border-color: var(--ng-success); color: var(--ng-ink); }
.form-status--err   { background: color-mix(in srgb, var(--ng-danger)  14%, var(--ng-surface)); border-color: var(--ng-danger);  color: var(--ng-ink); }
.form-status--info  { background: var(--ng-surface-sunken); border-color: var(--ng-line-strong); color: var(--ng-ink); }
.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; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ng-line); background: var(--ng-surface-alt); padding-block: 3rem; color: var(--ng-ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid img { height: 30px; margin-bottom: 1rem; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ng-ink-soft); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-grid a { color: var(--ng-slate); font-size: .92rem; }
.footer-grid a:hover { color: var(--ng-ink); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ng-line); display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; color: var(--ng-muted); font-size:.86rem; }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--rev { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-grid; place-items:center; width:40px;height:40px;
    border:1px solid var(--ng-line-strong); border-radius: var(--ng-radius-pill);
    background:var(--ng-surface); color: var(--ng-ink); cursor:pointer;
  }
  .nav__links.is-open {
    display: flex; position: absolute; top: 88px; left: 0; right: 0; flex-direction: column;
    background: var(--ng-surface); border-bottom: 1px solid var(--ng-line); padding: 1rem var(--ng-gutter); gap: 1rem;
  }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field--inline { grid-template-columns: 1fr; }
}
