@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&display=swap');

/* ==========================================================================
   AI Automation Agency — landing page
   Hand-written CSS. No framework, no build step.

   THEME — "Golden Hour on Canopy"
   Acacian is named for the wattle: a golden flower on deep foliage. The dark
   canvas is kept (it suits the infrastructure half of the product) but warmed
   from neutral zinc-black to green-black, and the cold blue primary is replaced
   by wattle gold with sap green as the secondary.

   Every text colour below clears 4.5:1 on --bg-body; the values are annotated
   with their measured ratios. Gold on near-black measures ~10.4:1, so the
   accent can carry text without any legibility cost.
   ========================================================================== */

:root {
  /* Surfaces — green-black rather than neutral black */
  --bg-body: #0a100c;
  --bg-body-lg: #050806;
  --bg-shell: #0b120d;
  --bg-panel: #0e1611;
  --bg-card: rgba(26, 37, 30, 0.3);
  --bg-elevated: #1a251e;
  --bg-track: #141d17;

  /* Text — warm whites and green-greys, not pure/neutral */
  --text-hi: #f7f3e8;      /* ~17.4:1 */
  --text-strong: #e2e6da;  /* ~14.6:1 */
  --text-body: #a8b0a4;    /* ~8.6:1  */
  --text-muted: #8e9a8a;   /* ~6.4:1  */
  --text-dim: #7a8677;     /* ~5.1:1  */

  /*
    Accents — semantic names.

    Brand:  gold (wattle bloom) + sap green + bark cream.
    Status: green = success, amber = warning, rose = risk/error. Warm hues are
            reserved for meaning only; they never appear as decoration.
  */
  --gold-300: #f5c860;   /* ~12.2:1 — small text on dark */
  --gold-400: #f0b429;   /* ~10.4:1 — primary accent */
  --gold-500: #d99a1f;   /* ~7.9:1  — underlines, links */

  --sap-300: #6fbf8a;
  --sap-400: #4ea471;
  --sap-500: #3e8e5a;
  --sap-600: #2f6b45;
  --sap-700: #245236;

  --bark-300: #efe6d2;
  --bark-400: #d8cba8;
  --bark-500: #c9bc96;

  --amber-400: #f08a3c;  /* warning — pushed redder than gold so it never reads as brand */
  --amber-500: #e0701f;

  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;

  /*
    Legacy aliases.

    The existing rules were written against the old sky/blue/indigo/emerald
    scale. Rather than touch ~80 call sites, the old names are remapped onto
    the botanical palette. Rename to the semantic tokens above when convenient.
  */
  --sky-300: var(--gold-300);
  --sky-400: var(--gold-400);
  --sky-500: var(--gold-500);
  --blue-600: var(--sap-600);
  --blue-700: var(--sap-700);
  --indigo-300: var(--bark-300);
  --indigo-500: var(--bark-500);
  --emerald-400: var(--sap-300);
  --emerald-500: var(--sap-500);
  --orange-400: var(--amber-400);
  --orange-500: var(--amber-500);
  --purple-400: var(--bark-400);
  --purple-300: var(--bark-300);

  /* Lines & borders — hairlines carry the gold, which is what stops a dark
     theme reading as generic grey software */
  --hairline: rgba(240, 180, 41, 0.12);
  --hairline-soft: rgba(240, 180, 41, 0.06);
  --hairline-strong: rgba(240, 180, 41, 0.24);
  --grid-line: rgba(240, 180, 41, 0.05);

  /* Fonts — Figtree is a warm humanist sans; Inter read cool against this palette */
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-display: 'Newsreader', Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Metrics */
  --shell-max: 1400px;
  --radius-shell: 2.5rem;
  --gutter: 1.5rem;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

::selection {
  background: rgba(240, 180, 41, 0.3);
  color: var(--gold-300);
}

@media (min-width: 1024px) {
  body {
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-body-lg);
  }
}

:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   2. Utilities
   ========================================================================== */

.u-serif {
  font-family: var(--font-display);
  font-weight: 400;
}

.u-italic {
  font-style: italic;
}

.u-tight {
  letter-spacing: -0.025em;
}

.u-gradient-text {
  background-image: linear-gradient(90deg, var(--sky-400), var(--indigo-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Horizontally faded edges — replaces the alpha-mask inline styles. */
.u-fade-x {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.u-no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.u-no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* A 1px hairline painted only along the top edge, via a gradient border. */
.u-top-rule {
  border-top: 1px solid var(--hairline-soft);
}

/*
  Gradient border via mask-composite. Apply `grad-border` to any element and
  set `--grad-border` (and optionally `--grad-radius`) inline.
*/
.grad-border {
  position: relative;
}

.grad-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--grad-radius, inherit);
  background: var(--grad-border);
  -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   3. Animations
   ========================================================================== */

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes dash-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1000; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

@keyframes sweep-x {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes workflow-packet {
  0%, 3% { top: 8%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  6%, 23% { top: 8%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  25%, 48% { top: 36%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%, 73% { top: 64%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75%, 82% { top: 92%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  88%, 100% { top: 92%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Risk matrix timeline — 7s loop.
   0-8%    matrix fades in
   8-40%   scan beam sweeps left to right
   40-46%  token lands on the high-risk cell and pings
   46-90%  warning card holds
   90-100% everything resets */

@keyframes risk-reveal {
  0%   { opacity: 0; transform: scale(0.96); }
  8%   { opacity: 1; transform: scale(1); }
  90%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}

/* Settled variants — the sequence plays once and rests on its final frame.
   The loop keyframes above are swapped back in on hover. */
@keyframes risk-reveal-once {
  0%   { opacity: 0; transform: scale(0.96); }
  8%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes risk-plot-once {
  0%, 10% { left: 8%; top: 92%; opacity: 0; }
  14%      { opacity: 1; }
  100%     { left: 90%; top: 10%; opacity: 1; }
}

@keyframes risk-target-once {
  0%, 38%  { box-shadow: 0 0 0 rgba(244, 63, 94, 0); }
  100%     { box-shadow: 0 0 18px rgba(244, 63, 94, 0.65); }
}

@keyframes risk-alert-once {
  0%, 40%  { opacity: 0; transform: translateY(10px); }
  100%     { opacity: 1; transform: translateY(0); }
}

@keyframes risk-scan {
  0%, 8%   { left: -34%; opacity: 0; }
  12%      { opacity: 1; }
  40%      { left: 71%; opacity: 1; }
  44%, 100% { left: 71%; opacity: 0; }
}

@keyframes risk-plot {
  0%, 10%  { left: 8%; top: 92%; opacity: 0; }
  14%      { opacity: 1; }
  40%      { left: 90%; top: 10%; opacity: 1; }
  90%      { left: 90%; top: 10%; opacity: 1; }
  96%, 100% { left: 90%; top: 10%; opacity: 0; }
}

@keyframes risk-ping {
  0%, 40%  { transform: scale(0.6); opacity: 0; }
  44%      { opacity: 0.9; }
  62%      { transform: scale(3.4); opacity: 0; }
  100%     { transform: scale(3.4); opacity: 0; }
}

@keyframes risk-target {
  0%, 38%  { box-shadow: 0 0 0 rgba(244, 63, 94, 0); }
  44%, 100% { box-shadow: 0 0 18px rgba(244, 63, 94, 0.65); }
}

@keyframes risk-alert {
  0%, 40%  { opacity: 0; transform: translateY(10px); }
  47%      { opacity: 1; transform: translateY(0); }
  90%      { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes risk-beacon {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 4px rgba(244, 63, 94, 0); }
}

@keyframes ndb-beacon {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.6); }
  50%      { opacity: 0.45; box-shadow: 0 0 0 4px rgba(251, 146, 60, 0); }
}

@keyframes govern-in {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

.anim-float {
  animation: float-subtle 6s ease-in-out infinite;
}

.anim-float.is-late   { animation-delay: 200ms; }
.anim-float.is-later  { animation-delay: 500ms; }

.anim-beam {
  stroke-dasharray: 40 400;
  animation: dash-flow 10s linear infinite;
}

.anim-pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.anim-gradient-x {
  background-image: linear-gradient(90deg, var(--sky-300), var(--indigo-300), var(--sky-300));
  background-size: 200% 100%;
  animation: sweep-x 6s linear infinite;
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .anim-float,
  .anim-beam,
  .anim-pulse,
  .anim-gradient-x,
  .govern-node__frame,
  .workflow-viz__packet,
  .risk__stage,
  .risk__scan,
  .risk__token,
  .risk__token::after,
  .risk__cell.is-target,
  .risk__alert,
  .risk__alert-mark i,
  .ndb__node.is-pending i {
    animation: none;
  }

  .risk__scan,
  .risk__token { display: none; }

  .risk__alert { opacity: 1; transform: none; }

  /* The hover rules are more specific, so neutralise them explicitly. */
  .risk:hover .risk__stage,
  .risk:hover .risk__cell.is-target,
  .risk:hover .risk__scan,
  .risk:hover .risk__token,
  .risk:hover .risk__token::after,
  .risk:hover .risk__alert { animation: none; }
}

/* ==========================================================================
   4. Page shell
   ========================================================================== */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: var(--bg-shell);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 0%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 0%, #000 80%, transparent);
}

.shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

@media (min-width: 1024px) {
  .shell {
    max-width: var(--shell-max);
    min-height: 900px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-shell);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  }
}

/* Six vertical hairlines pinned to the shell's padding box. */
.vlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
  opacity: 0.5;
}

.vlines span {
  width: 1px;
  height: 100%;
  background: var(--grid-line);
}

.vlines span:nth-child(2) { display: block; }
.vlines span:nth-child(3) { display: none; }
.vlines span:nth-child(4) { display: none; }
.vlines span:nth-child(5) { display: none; }

@media (min-width: 640px)  { .vlines span:nth-child(3) { display: block; } }
@media (min-width: 768px)  { .vlines span:nth-child(4) { display: block; } }
@media (min-width: 1024px) { .vlines span:nth-child(5) { display: block; } }
@media (min-width: 1024px) { .vlines { opacity: 1; } }
@media (min-width: 768px)  { .vlines { padding: 0 3rem; } }

.section {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 6rem var(--gutter);
}

@media (min-width: 768px) {
  .section { padding: 6rem 3rem; }
}

@media (min-width: 1024px) {
  .section { padding-top: 8rem; padding-bottom: 8rem; }
}

.section--tinted { background: rgba(0, 0, 0, 0.5); }
.section--ruled  { border-top: 1px solid var(--hairline-soft); }

.section-head {
  max-width: 48rem;
  margin: 0 auto 5rem;
  text-align: center;
}

.section-head__title {
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--text-hi);
}

.section-head__lede {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
}

@media (min-width: 768px) {
  .section-head__title { font-size: 3.5rem; }
  .section-head__lede   { font-size: 1.25rem; }
}

/* --- AI-ready data / enterprise evidence matrix --- */

.ai-ready-section {
  overflow: hidden;
}

.ai-ready-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-ready-head {
  margin-bottom: 4rem;
}

.ai-ready-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .ai-ready-grid { grid-template-columns: repeat(3, 1fr); }
}

.ai-ready-card {
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  padding: 1.5rem;
  background: var(--bg-panel);
  transition: background-color 300ms ease;
}

@media (min-width: 768px) {
  .ai-ready-card { padding: 2rem; }
}

.ai-ready-card:hover {
  background: var(--bg-elevated);
}

.ai-ready-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.ai-ready-card__eyebrow,
.ai-ready-card__state,
.ai-ready-card__details dt {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ai-ready-card__eyebrow {
  color: var(--gold-300);
}

.ai-ready-card__state {
  color: var(--text-dim);
  text-align: right;
}

.ai-ready-card__title {
  margin: 1.5rem 0 .75rem;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.ai-ready-card > p {
  margin: 0;
  color: var(--text-body);
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.65;
}

.ai-ready-card__rule {
  width: 3rem;
  height: 1px;
  margin: 2rem 0 1.25rem;
  background: var(--gold-400);
}

.ai-ready-card__details {
  display: grid;
  gap: .875rem;
  margin: auto 0 0;
}

.ai-ready-card__details > div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: .75rem;
  align-items: baseline;
}

.ai-ready-card__details dt {
  color: var(--text-dim);
}

.ai-ready-card__details dd {
  margin: 0;
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .ai-ready-card { transition: none; }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 999px;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              transform 0.3s ease, box-shadow 0.3s ease, color 0.25s ease;
}

.btn--nav {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-hi);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 1px 0 rgba(247, 243, 232, 0.06);
}

.btn--nav:hover {
  background: #24332a;
  border-color: rgba(240, 180, 41, 0.4);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(247, 243, 232, 0.08);
}

.btn--nav svg { width: 1rem; height: 1rem; color: var(--gold-300); }

.btn--solid {
  height: 3rem;
  padding: 0 2rem;
  font-weight: 600;
  color: #000;
  background: #fff;
}

.btn--solid:hover {
  background: #e4e4e7;
  transform: scale(1.05);
}

.btn--ghost {
  height: 3rem;
  padding: 0 2rem;
  font-weight: 600;
  color: var(--text-hi);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.btn--ghost:hover {
  background: #24332a;
  border-color: var(--hairline-strong);
}

.btn--compact {
  height: 2.5rem;
  padding: 0 1.25rem;
  font-weight: 600;
  color: var(--text-hi);
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
}

.btn--compact:hover {
  background: #24332a;
  border-color: var(--hairline-strong);
}

.btn--compact.is-primary {
  color: #000;
  background: #fff;
  border-color: transparent;
}

.btn--compact.is-primary:hover { background: #e4e4e7; }
.btn--compact svg { width: 1rem; height: 1rem; }

/*
  Magnetic button: a spinning conic-gradient ring sits under a solid fill.
  On hover the fill fades out, letting the ring read as a moving border.
*/
.btn-mag {
  --ring: var(--gold-400);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .btn-mag { width: auto; }
}

.btn-mag__ring {
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0%, transparent 75%, var(--ring) 100%);
  opacity: 0;
  animation: spin 3s linear infinite;
  transition: opacity 0.3s ease;
}

.btn-mag__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-elevated);
  transition: opacity 0.3s ease;
}

.btn-mag__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a251e, #0a100c);
  box-shadow: inset 0 1px 0 rgba(240, 180, 41, 0.12);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-mag__label svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.btn-mag--ghost .btn-mag__label {
  color: var(--text-body);
  background: #000;
}

.btn-mag:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(240, 180, 41, 0.3);
}

.btn-mag:hover .btn-mag__ring { opacity: 1; }
.btn-mag:hover .btn-mag__fill { opacity: 0; }
.btn-mag:hover .btn-mag__label { background: linear-gradient(180deg, #141d17, #050806); }
.btn-mag:hover .btn-mag__label svg { transform: translateX(2px); }

.btn-mag--ghost:hover {
  box-shadow: 0 0 15px rgba(240, 180, 41, 0.14);
}

.btn-mag--ghost:hover .btn-mag__label { color: var(--text-hi); }

/* Text link with a coloured underline. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-hi);
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 0.125rem;
  transition: color 0.25s ease;
}

.link-arrow:hover { color: var(--gold-300); }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   6. Navigation
   ========================================================================== */

/*
  NOTE: `.shell` sets `backdrop-filter`, which makes it the containing block for
  any `position: fixed` descendant — a fixed nav would scroll away with the page.
  The nav therefore stays in flow.
*/
.nav {
  position: relative;
  z-index: 50;
  /* `.shell` is a column flexbox, so `width: auto` alone would stretch the pill
     to the full column. `align-self` + `fit-content` shrink it to its contents
     while `max-width` keeps it clear of the shell's padding box. */
  align-self: center;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  min-width: min(100%, 20rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.875rem var(--gutter) 0;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--text-hi);
  background: rgba(10, 16, 12, 0.72);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(247, 243, 232, 0.08);
}

@media (min-width: 768px) {
  .nav {
    gap: 2rem;
    margin: 1.25rem 3rem 0;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    max-width: calc(100% - 6rem);
    min-width: min(100%, 34rem);
  }
}

/* Footer mark. The header uses `.nav__mark` / `.nav__word` instead. */
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f4f4f5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Wordmark lockup — logo tile + ACACIAN, mirroring the reference nav. */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 0.625rem;
  background: #f4f4f5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.nav__word {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hi);
  line-height: 1;
}

.nav__brand:hover .nav__mark {
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Links sit on the pill surface — no inner glass container. */
.nav__links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav__link:hover { color: var(--text-hi); }

.nav__link.is-active {
  color: var(--gold-300);
  font-weight: 600;
}

.nav__cta { display: none; }

@media (min-width: 640px) {
  .nav__cta { display: flex; }
}

/* CSS-only mobile menu: no JS, the checkbox drives a sibling panel. */
.nav__toggle { display: block; color: var(--text-muted); }
.nav__toggle:hover { color: var(--text-hi); }
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
}

.nav__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__drawer {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 12rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(10, 16, 12, 0.96);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6);
}

/* The drawer sits on the same dark palette as the pill. */
.nav__drawer .nav__link {
  padding: 0.625rem 0.875rem;
  color: var(--text-body);
}

.nav__drawer .nav__link:hover { color: var(--text-hi); }

.nav__drawer .nav__link.is-active { color: var(--text-hi); }

@media (max-width: 767px) {
  .nav__checkbox:checked ~ .nav__drawer { display: flex; }
  .nav__checkbox:focus-visible ~ .nav__drawer { outline: 2px solid var(--sky-400); }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 20;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Legibility scrim behind the copy on narrow screens. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 12, 0.9), rgba(10, 16, 12, 0.6) 60%, transparent);
}

@media (min-width: 768px) {
  .hero__scrim { display: none; }
}

.hero__content {
  position: relative;
  z-index: 30;
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__content {
    max-width: 36rem;
    margin: 0;
    padding: 6rem 3rem 3rem;
  }
}

.hero__content > * { pointer-events: auto; }

/* Stretch to fill the column so .trust can be pushed to the bottom. */
.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 36rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--gold-300);
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.24);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.15);
}

.badge__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--gold-400);
  box-shadow: 0 0 8px rgba(245, 200, 96, 0.8);
}

.hero__title {
  margin-bottom: 2rem;
  font-size: 3.5rem;
  line-height: 0.95;
  color: var(--text-hi);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero__title { font-size: 3.5rem; margin-bottom: 2rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 5rem; }
}

.hero__lede {
  max-width: 28rem;
  margin-bottom: 3rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
}

@media (min-width: 768px) {
  .hero__lede { font-size: 1.5rem; margin-bottom: 3rem; }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}

@media (min-width: 768px) {
  .hero__actions { margin-bottom: 5rem; }
}

/* --- Trust strip --- */

.trust {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.trust__label {
  margin: 0 0 1.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .trust__label { text-align: left; }
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-left: 1rem;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
  .trust__logos { justify-content: flex-start; gap: 2.5rem; }
}

.trust:hover .trust__logos { opacity: 1; }

.trust__logos svg {
  display: none;
}

.trust__logos span {
  color: var(--text-hi);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   8. Hero visualisation (roads + floating node cards)
   ========================================================================== */

/*
  Mobile-first: the workflow card sits in normal flow *below* the copy, so the
  two can never overlap. `position: relative` (not static) so it stacks above
  `.hero__scrim`, which is absolutely positioned and would otherwise paint over
  an unpositioned sibling. `.hero__viz` precedes `.hero__content` in the DOM, so
  `order` puts the headline first in the stacked layout. Opt-in absolute
  side-by-side lives in the 1280px query below — the narrowest width at which a
  36rem copy column and a 34rem card actually fit without collision.
*/
.hero__viz {
  position: relative;
  z-index: 20;
  order: 2;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}

.hero__content { order: 1; }

@media (min-width: 768px) {
  .hero__viz { opacity: 1; }
}

.hero__viz-canvas {
  width: 100%;
  height: 100%;
}

/* Noodle tracks — desktop only, as in the source design. */
.hero__noodles { display: none; }

@media (min-width: 1024px) {
  .hero__noodles { display: block; }
}

/* --- Floating node cards --- */

.node {
  position: absolute;
  z-index: 40;
  display: none;
  transform-origin: bottom right;
}

@media (min-width: 768px) {
  .node { display: block; }
}

.node--deliver {
  right: 2rem;
  bottom: 20rem;
  transform-origin: bottom right;
}

@media (min-width: 1024px) {
  .node--deliver { right: 10%; top: 15%; bottom: auto; }
}

.node--transform {
  right: 2rem;
  bottom: 12rem;
  transform-origin: bottom right;
}

@media (min-width: 1024px) {
  .node--transform { right: 25%; bottom: 40%; }
}

.node--ingest {
  right: 2rem;
  bottom: 3rem;
  transform-origin: bottom left;
}

@media (min-width: 1024px) {
  .node--ingest { left: 52%; right: auto; bottom: 12%; }
}

.node__card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 13rem;
  padding: 1.25rem;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.node--transform .node__card { width: 14rem; }

.node__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.node__id {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.node__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: 4px;
}

.node__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.node__icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.node__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.node__status-dot.is-green {
  background: var(--sap-500);
  box-shadow: 0 0 8px rgba(78, 164, 113, 0.4);
}

.node__status-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-body);
}

.node__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.node__row dt,
.node__row .node__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.node__row .node__val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--emerald-400);
}

/* Code window inside the Transform card. */
.node__code {
  padding: 0.625rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
}

.node__dots {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.node__dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.node__dots i:nth-child(1) { background: rgba(239, 68, 68, 0.4); }
.node__dots i:nth-child(2) { background: rgba(234, 179, 8, 0.4); }
.node__dots i:nth-child(3) { background: rgba(34, 197, 94, 0.4); }

.node__code code {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-body);
}

.node__code .kw { color: var(--purple-400); }

/* Source rows in the Ingest card. */
.node__sources { display: grid; gap: 0.5rem; }

.node__source {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node__source-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-body);
}

.node__source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 10px;
  border-radius: 4px;
  border: 1px solid;
}

.node__source-icon svg { width: 10px; height: 10px; }

.node__source-icon.is-orange {
  color: var(--amber-400);
  background: rgba(120, 58, 22, 0.3);
  border-color: rgba(240, 138, 60, 0.2);
}

.node__source-icon.is-blue {
  color: var(--sap-300);
  background: rgba(36, 82, 54, 0.3);
  border-color: rgba(111, 191, 138, 0.2);
}

.pill-live,
.pill-idle {
  padding: 0.125rem 0.375rem;
  font-size: 9px;
  font-weight: 500;
  border-radius: 999px;
}

.pill-live {
  color: var(--sap-300);
  background: rgba(78, 164, 113, 0.1);
  border: 1px solid rgba(78, 164, 113, 0.2);
}

.pill-idle { color: var(--text-dim); }

/* --- Workflow evidence panel --- */

/* Stacked by default: centred card, full-width on small screens. */
.hero__viz {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter) 2.5rem;
  opacity: 0.9;
}

.workflow-viz {
  position: relative;
  width: min(100%, 34rem);
  padding: 1.25rem;
  overflow: hidden;
  pointer-events: auto;
  background: linear-gradient(145deg, rgba(26, 37, 30, 0.94), rgba(10, 16, 12, 0.92));
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 50px rgba(240, 180, 41, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.workflow-viz__glow {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.14), transparent 68%);
}

.workflow-viz__header,
.workflow-viz__asset,
.workflow-viz__result,
.workflow-viz__notice {
  position: relative;
  z-index: 1;
}

.workflow-viz__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.workflow-viz__eyebrow,
.workflow-viz__status,
.workflow-step__state,
.workflow-viz__asset-state,
.workflow-viz__notice-link {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-viz__eyebrow { color: var(--gold-300); }

.workflow-viz__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.workflow-viz__status i,
.workflow-viz__notice-dot {
  width: 0.4rem;
  height: 0.4rem;
  flex: none;
  border-radius: 999px;
}

.workflow-viz__status i {
  background: var(--sap-300);
  box-shadow: 0 0 10px rgba(111, 191, 138, 0.75);
}

.workflow-viz__asset {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
}

.workflow-viz__asset-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 0.5rem;
}

.workflow-viz__asset div:not(.workflow-viz__asset-icon) {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}

.workflow-viz__asset strong,
.workflow-viz__notice strong,
.workflow-viz__result strong {
  color: var(--text-strong);
  font-size: 0.75rem;
  font-weight: 600;
}

.workflow-viz__asset span:not(.workflow-viz__asset-state) {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.workflow-viz__asset-state {
  margin-left: auto;
  color: var(--gold-300);
  white-space: nowrap;
}

.workflow-viz__rail {
  position: relative;
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
  padding: 0.25rem 0;
}

.workflow-viz__rail::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1rem;
  width: 1px;
  background: linear-gradient(var(--gold-400), var(--hairline-strong) 52%, var(--hairline-soft));
}

.workflow-viz__packet {
  position: absolute;
  top: 8%;
  left: 1rem;
  z-index: 3;
  padding: 0.2rem 0.3rem;
  color: var(--bg-body);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gold-300);
  border-radius: 0.2rem;
  box-shadow: 0 0 16px rgba(245, 200, 96, 0.75);
  transform: translate(-50%, -50%);
  will-change: top, transform, opacity;
  animation: workflow-packet 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.workflow-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.workflow-step__indicator {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--bg-panel);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}

.workflow-step__copy { min-width: 0; }

.workflow-step__title {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-step__meta {
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-step__state { color: var(--text-dim); }

.workflow-step.is-complete .workflow-step__indicator {
  color: var(--bg-body);
  background: var(--sap-300);
  border-color: var(--sap-300);
}

.workflow-step.is-complete .workflow-step__state { color: var(--sap-300); }

.workflow-step.is-active {
  background: rgba(240, 180, 41, 0.1);
  border-color: rgba(240, 180, 41, 0.3);
  transform: translateX(0.25rem);
}

.workflow-step.is-active .workflow-step__indicator {
  color: var(--gold-300);
  background: rgba(240, 180, 41, 0.18);
  border-color: var(--gold-400);
  box-shadow: 0 0 16px rgba(240, 180, 41, 0.3);
}

.workflow-step.is-active .workflow-step__state { color: var(--gold-300); }

.workflow-viz__notice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 0.75rem;
  background: rgba(240, 138, 60, 0.08);
  border: 1px solid rgba(240, 138, 60, 0.22);
  border-radius: 0.75rem;
}

.workflow-viz__notice-dot { background: var(--amber-400); box-shadow: 0 0 10px rgba(240, 138, 60, 0.6); }

.workflow-viz__notice div {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.workflow-viz__notice div span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-viz__notice-link {
  margin-left: auto;
  color: var(--orange-400);
  white-space: nowrap;
}

.workflow-viz__result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  border-top: 1px solid var(--hairline-soft);
}

.workflow-viz__result-mark {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  place-items: center;
  color: var(--sap-300);
  font-size: 0.75rem;
  background: rgba(78, 164, 113, 0.1);
  border: 1px solid rgba(111, 191, 138, 0.25);
  border-radius: 999px;
}

/*
  Side-by-side only from 1280px, where the shell (max 1400px) still has room for
  a 36rem copy column plus a 34rem card. Below this the card stacks, so the
  percentage offsets never collide with the copy.
*/
@media (min-width: 1280px) {
  .hero__viz {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 0;
    justify-content: flex-end;
    width: 54%;
    padding: 5rem 3rem 3rem 1rem;
  }
}

@media (min-width: 1536px) {
  .hero__viz {
    padding: 6rem 4rem 4rem 1rem;
  }
}

@media (max-width: 767px) {
  .hero__viz {
    padding: 0 var(--gutter) 2rem;
  }

  .workflow-viz { width: 100%; }
}

@media (max-width: 420px) {
  .workflow-viz { padding: 1rem; }
  .workflow-step { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .workflow-step__indicator { width: 1.75rem; height: 1.75rem; }
  .workflow-step__state { display: none; }
}

/* ==========================================================================
   9. Feature cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  /* Card 1 spans full width; cards 2 + 3 share the row below it */
  .card-grid .feature--wide { grid-column: 1 / -1; }
  .card-grid .feature:not(.feature--wide) { height: 100%; }
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  transition: border-color 0.5s ease;
}

.feature:hover { border-color: var(--hairline-strong); }

.feature__body {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 2rem;
}

@media (min-width: 768px) {
  .feature__body { padding: 2.5rem; }
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-hi);
}

.feature__title svg { width: 28px; height: 28px; flex: none; }

.feature__title span { min-width: 0; }

.feature__lede {
  margin-bottom: 3rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
}

/* --- Card 1 viz: 5x5 inherent risk matrix --- */

.risk {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 320px;
  margin-top: auto;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--hairline-soft);
  border-radius: 1rem;
}

.risk__floor {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(500px) rotateX(60deg) translateY(50px) scale(1.5);
}

.risk__head {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.risk__legend {
  display: flex;
  gap: 0.75rem;
}

.risk__legend span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.risk__legend i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0.1rem;
}

.risk__legend i.is-cool { background: rgba(111, 191, 138, 0.55); }
.risk__legend i.is-warm { background: rgba(240, 138, 60, 0.7); }
.risk__legend i.is-hot  { background: rgba(251, 113, 133, 0.85); }

.risk__stage {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem 0.75rem;
  /* Reveal lives here so the axis titles fade with the matrix — they are
     siblings of it, so animating the matrix alone would strand them. */
  animation: risk-reveal-once 7s ease-in-out 1 both;
}

.risk__axis {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.risk__axis-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.risk__plot {
  position: relative;
  width: 188px;
}

.risk__axis-x {
  margin-top: 0.375rem;
  text-align: center;
}

.risk__matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hairline-soft);
  border-radius: 0.5rem;
}

.risk__cell {
  aspect-ratio: 1;
  border-radius: 0.1875rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.16);
}

.risk__cell.is-warm {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.28);
}

.risk__cell.is-hot {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.36);
}

.risk__cell.is-target {
  position: relative;
  z-index: 2;
  background: rgba(244, 63, 94, 0.3);
  border-color: rgba(253, 164, 175, 0.7);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
  animation: risk-target-once 7s ease-in-out 1 both;
}

.risk__scan {
  position: absolute;
  inset: 3px auto 3px 3px;
  z-index: 3;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: risk-scan 7s cubic-bezier(0.45, 0, 0.55, 1) 1 both;
}

.risk__token {
  position: absolute;
  z-index: 4;
  width: 0.875rem;
  height: 0.875rem;
  margin: -0.4375rem 0 0 -0.4375rem;
  border: 1.5px solid var(--rose-300);
  border-radius: 0.1875rem;
  background: rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.6);
  animation: risk-plot-once 7s cubic-bezier(0.5, 0, 0.3, 1) 1 both;
}

.risk__token::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border: 1px solid var(--rose-400);
  border-radius: 0.3rem;
  animation: risk-ping 7s ease-out 1 both;
}

.risk__alert {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0 1rem 1rem;
  padding: 0.6875rem 0.875rem;
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: 0.75rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: risk-alert-once 7s ease-in-out 1 both;
}

/* Replay the whole sequence only while the tile is hovered. */
.risk:hover .risk__stage       { animation: risk-reveal 7s ease-in-out infinite; }
.risk:hover .risk__cell.is-target { animation: risk-target 7s ease-in-out infinite; }
.risk:hover .risk__scan          { animation: risk-scan 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.risk:hover .risk__token         { animation: risk-plot 7s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
.risk:hover .risk__token::after  { animation: risk-ping 7s ease-out infinite; }
.risk:hover .risk__alert         { animation: risk-alert 7s ease-in-out infinite; }

.risk__alert-mark {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.4375rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-300);
  background: rgba(244, 63, 94, 0.18);
  border-radius: 0.25rem;
}

.risk__alert-mark i {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--rose-400);
  animation: risk-beacon 2s ease-in-out infinite;
}

.risk__alert-copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.5;
}

.risk__alert-copy b {
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: 0.01em;
}

.risk__alert-copy b em {
  font-style: normal;
  color: var(--rose-300);
}

.risk__alert-copy span {
  color: var(--text-muted);
}

.risk__alert-copy span::before {
  content: attr(data-key) ":";
  margin-right: 0.375rem;
  color: var(--text-dim);
}

/* --- Card 3: disclosures & incident response --- */

.feature--wide { grid-column: 1 / -1; }

.feature__body--split { gap: 0; }

.feature__copy { display: flex; flex-direction: column; }

.feature__copy .link-arrow { align-self: flex-start; }

/* Enterprise inventory card: the content carries the signal, not vendor marks. */
.feature--wide .feature__title svg,
.feature--wide .link-arrow svg,
.feature--wide > .feature__body > .diagram { display: none; }

.feature__eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--sky-300);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature--wide .feature__title {
  max-width: 30rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.035em;
}

.feature__detail {
  max-width: 32rem;
  margin: -0.5rem 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.inventory-panel {
  position: relative;
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
  padding: 1.25rem;
  overflow: hidden;
  background: rgba(9, 9, 11, 0.54);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.9);
}

.inventory-panel::before {
  position: absolute;
  top: 0;
  right: 1.25rem;
  left: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.6), transparent);
  content: '';
}

.inventory-panel__topline,
.inventory-panel__status,
.inventory-record__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inventory-panel__topline {
  padding-bottom: 0.9rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-panel__status { color: var(--sap-300); letter-spacing: 0.04em; }
.inventory-panel__status i { width: 0.4rem; height: 0.4rem; background: var(--sap-300); border-radius: 50%; box-shadow: 0 0 0 3px rgba(111, 191, 138, 0.12); }

.inventory-panel__sources { border-top: 1px solid var(--hairline-soft); }

.inventory-source {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.8rem;
}

.inventory-source span:first-child { color: var(--text-body); font-weight: 500; }
.inventory-source span:last-child { color: var(--text-dim); text-align: right; }

.inventory-panel__rail { height: 1.25rem; margin: 0 0.9rem; border-left: 1px solid rgba(125, 211, 252, 0.45); }
.inventory-panel__rail span { display: block; width: 0.35rem; height: 0.35rem; margin-left: -0.2rem; background: var(--sky-300); border-radius: 50%; box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.1); }

.inventory-record { padding: 1rem; background: rgba(24, 24, 27, 0.72); border: 1px solid var(--hairline-strong); border-radius: 0.5rem; }
.inventory-record__head { display: grid; gap: 0.35rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--hairline-soft); }
.inventory-record__head span, .inventory-record__fields dt, .inventory-record__footer { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.inventory-record__head strong { color: var(--text-hi); font-size: 0.95rem; font-weight: 500; }
.inventory-record__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; padding: 0.9rem 0; }
.inventory-record__fields div { display: grid; gap: 0.35rem; min-width: 0; }
.inventory-record__fields dd { margin: 0; overflow: hidden; color: var(--text-body); font-size: 0.72rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.inventory-record__footer { justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--hairline-soft); color: var(--sap-300); letter-spacing: 0.03em; text-transform: none; }
.inventory-record__footer span:last-child { color: var(--text-dim); }

@media (max-width: 520px) {
  .inventory-record__fields { grid-template-columns: 1fr 1fr; }
  .inventory-record__fields div:last-child { grid-column: 1 / -1; }
  .inventory-record__footer { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
}

/* Tidy: half-width tiles share one row under the wide inventory card.
   Keep titles/lede rhythm identical and pin both viz blocks to the bottom
   so the two cards stay equal height. */
.card-grid .feature:not(.feature--wide) .feature__title {
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-grid .feature:not(.feature--wide) .feature__lede {
  margin-bottom: 1.5rem;
}

.card-grid .feature:not(.feature--wide) .risk,
.card-grid .feature:not(.feature--wide) .ndb {
  margin-top: auto;
}

.feature__points {
  display: grid;
  gap: 0.625rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
}

@media (min-width: 900px) {
  .feature__body--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.feature__points li {
  position: relative;
  padding-left: 1.25rem;
}

.feature__points li::before {
  content: '›';
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 600;
  color: var(--sky-400);
}

.ndb {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 2rem;
  padding: 1.25rem;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1);
  transition: box-shadow 0.5s ease;
}

@media (min-width: 900px) {
  .feature__body--split .ndb { margin-top: 0; }
}

.feature:hover .ndb { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1), 0 0 40px rgba(56, 189, 248, 0.1); }

.ndb__head {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.ndb__title { display: flex; align-items: center; gap: 0.5rem; }

.ndb__title b {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--text-hi);
}

.ndb__count {
  padding: 0.125rem 0.375rem;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-soft);
  border-radius: 0.375rem;
}

.ndb__dots { display: flex; gap: 0.375rem; }

.ndb__dots i {
  width: 0.5rem;
  height: 0.5rem;
  background: #3f3f46;
  border-radius: 999px;
}

.ndb__track {
  position: relative;
  height: 0.875rem;
  margin: 0.25rem 0.5rem 1.25rem;
}

.ndb__rail {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #27272a;
  transform: translateY(-50%);
}

.ndb__fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 33%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-500), var(--sky-500));
  transform: translateY(-50%);
}

.ndb__node {
  position: absolute;
  top: 50%;
  left: var(--at);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.ndb__node.is-done {
  background: var(--emerald-400);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.ndb__node.is-pending {
  background: #18181b;
  border: 1px solid var(--orange-400);
}

.ndb__node.is-pending i {
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: var(--orange-400);
  animation: ndb-beacon 2.6s ease-in-out infinite;
}

.ndb__tasks {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

@media (min-width: 640px) {
  .ndb__tasks { font-size: 0.75rem; }
}

.ndb__task {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.ndb__tick {
  flex: none;
  padding: 0.125rem 0.375rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 0.25rem;
}

.ndb__tick.is-pending {
  color: var(--orange-400);
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(251, 146, 60, 0.3);
}

.ndb__task-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-body);
}

.ndb__task-meta { flex: none; color: var(--text-dim); }

.ndb__task.is-pending .ndb__task-name { color: var(--text-hi); }
.ndb__task.is-pending .ndb__task-meta { color: var(--orange-400); }

.ndb__glow {
  position: absolute;
  right: -1.25rem;
  bottom: -2.5rem;
  width: 8rem;
  height: 8rem;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  transition: background 0.7s ease;
}

.feature:hover .ndb__glow { background: rgba(56, 189, 248, 0.16); }

/* ==========================================================================
   10. Card 1 viz — inventory & integration diagram
   ========================================================================== */

.feature .diagram { max-width: 26rem; }

.diagram {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.diagram__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.diagram__labels span:last-child { margin-right: 3rem; }

.diagram__tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.tool-group {
  display: flex;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .tool-group { gap: 1rem; }
}

.tool-group--agent {
  padding-left: 2rem;
  border-left: 1px dashed var(--hairline-soft);
}

.tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: rgba(255, 255, 255, 0.5);
  background: #18181b;
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tool svg { width: 20px; height: 20px; }

.tool:hover {
  color: var(--text-hi);
  border-color: var(--hairline-strong);
  transform: scale(1.05);
}

.diagram__wires {
  position: absolute;
  top: 2.5rem;
  left: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 180px;
  overflow: visible;
  pointer-events: none;
}

@media (min-width: 640px) {
  .diagram__wires { display: block; }
}

.diagram__stack {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

/* Terminal node in the ingestion diagram — the logo itself is the
   destination, so no card chrome sits around it. */
.govern-node {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Same card language as the tool chips above, scaled up so the
   destination of the diagram reads as the terminal, larger node. */
.govern-node__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  padding: 1.25rem;
  background: #18181b;
  border: 1px solid var(--hairline);
  border-radius: 1.75rem;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.35);
  animation: govern-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.govern-node__frame:hover {
  border-color: var(--hairline-strong);
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, 0.45);
  transform: scale(1.03);
}

.govern-node__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Soft indigo bloom tying the mark back to the wires feeding into it. */
.govern-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
  transform: translate(-50%, -58%);
  pointer-events: none;
}

.govern-node__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.payload-row {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(24, 24, 27, 0.5);
  border: 1px solid var(--hairline-soft);
  border-radius: 0.5rem;
}

.payload-row__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.payload-row__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange-500);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.payload-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.payload-row__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payload-row__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payload-row__side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.chip {
  padding: 0.125rem 0.375rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-body);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
}

.chip__count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 10px;
  color: var(--text-body);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
}

/* Connector between the two event cards. */
.connector {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connector__stem {
  width: 1px;
  height: 1.5rem;
  border-right: 1px dashed #3f3f46;
}

.connector__stem--top { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent); }
.connector__stem--bottom { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1)); }

.connector__logo { width: 2.5rem; height: 2.5rem; margin: 0.5rem 0; object-fit: contain; }

/* ==========================================================================
   11. Case carousel
   ========================================================================== */

.cases {
  position: relative;
  z-index: 10;
}

.cases__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .cases__head { flex-direction: row; align-items: flex-end; }
}

.cases__title {
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 0.95;
  color: var(--text-hi);
}

@media (min-width: 768px) {
  .cases__title { font-size: 3.5rem; }
}

.cases__title span {
  display: block;
  font-style: italic;
  color: var(--text-muted);
}

.cases__actions {
  display: flex;
  gap: 0.75rem;
  flex: none;
}

.rail {
  display: flex;
  gap: 1.5rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: 1rem var(--gutter) 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

@media (min-width: 768px) {
  .rail {
    margin: 0;
    padding: 1rem 0 3rem 3rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  }
}

.case {
  min-width: 320px;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .case { min-width: 440px; }
}

.case:hover { transform: translateY(-0.5rem); }

.case__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.case:hover .case__frame {
  border-color: var(--hairline-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.case__chrome {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 1rem;
  background: rgba(24, 24, 27, 0.5);
  border-bottom: 1px solid var(--hairline-soft);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.case__chrome i {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(82, 82, 91, 0.5);
  border-radius: 999px;
}

.case__chrome i:first-child { background: rgba(63, 63, 70, 0.9); }

.case__url {
  width: 8rem;
  height: 1rem;
  margin-left: 1rem;
  background: rgba(39, 39, 42, 0.5);
  border-radius: 999px;
}

.case__body {
  position: relative;
  z-index: 10;
  height: calc(100% - 2rem);
  padding: 1.5rem;
  overflow: hidden;
  background: #18181b;
}

.case__body--gradient {
  background: linear-gradient(135deg, #27272a, #000);
}

.case__body--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case__dotfield {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 16px 16px;
}

.case__halo {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 999px;
  filter: blur(64px);
  transition: background 0.5s ease;
}

.case:hover .case__halo { background: rgba(16, 185, 129, 0.1); }

.case__heading {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-hi);
}

.case__sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* Bar chart preview (case 1). */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 6rem;
  margin-top: auto;
  padding: 0.5rem;
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  transition: gap 0.5s ease;
}

.case:hover .chart { gap: 0.375rem; }

.chart i {
  width: 20%;
  background: var(--indigo-500);
  border-radius: 2px;
  transition: height 0.5s ease;
}

.chart i:nth-child(1) { height: 40%; opacity: 0.4; }
.chart i:nth-child(2) { height: 60%; opacity: 0.5; }
.chart i:nth-child(3) { height: 30%; opacity: 0.6; }
.chart i:nth-child(4) { height: 80%; opacity: 0.7; }
.chart i:nth-child(5) { height: 75%; }

.case:hover .chart i:nth-child(1) { height: 50%; }
.case:hover .chart i:nth-child(2) { height: 70%; }
.case:hover .chart i:nth-child(3) { height: 45%; }
.case:hover .chart i:nth-child(4) { height: 90%; }
.case:hover .chart i:nth-child(5) { height: 85%; }

.case__tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-chip {
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: 4px;
}

.tag-chip.is-indigo { color: var(--indigo-300); background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); }
.tag-chip.is-sky    { color: var(--sky-300); background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(56, 189, 248, 0.2); }

/* Checklist preview (case 2). */
.checklist {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.checklist div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist b { color: var(--emerald-400); font-weight: 400; }
.checklist u { color: var(--text-hi); text-decoration: none; }
.checklist s { color: #f87171; text-decoration: none; }

/* Trigger listener preview (case 3). */
.listener {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  height: 8rem;
  border: 1px dashed #3f3f46;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

.case:hover .listener { border-color: var(--text-dim); }

.listener__fill {
  position: absolute;
  inset: 0;
  background: rgba(14, 165, 233, 0.05);
  transition: background 0.3s ease;
}

.case:hover .listener__fill { background: rgba(14, 165, 233, 0.1); }

.listener__label {
  position: relative;
  z-index: 10;
  text-align: center;
}

.listener__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.5rem;
  color: #fff;
  background: var(--sky-500);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
  transition: transform 0.3s ease;
}

.case:hover .listener__badge { transform: scale(1.1); }

.listener__badge svg { width: 1rem; height: 1rem; }

.listener__label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sky-200, #bae6fd);
}

.listener__wire,
.listener__node {
  position: absolute;
  top: 50%;
  background: #3f3f46;
}

.listener__wire { right: -1rem; width: 1rem; height: 1px; }
.listener__node { right: -1.5rem; width: 0.5rem; height: 0.5rem; transform: translateY(-50%); border-radius: 999px; }

/* JSON preview (case 4). */
.case__meta {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.case__meta span:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.json {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 0.75rem;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--text-body);
  background: #000;
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.case:hover .json { border-color: var(--hairline); }

.json .p { color: var(--purple-400); }
.json .s { color: var(--orange-400); }
.json .g { color: var(--emerald-400); }

.case__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem;
}

.case__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-hi);
  background: #27272a;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color 0.3s ease;
}

.case:hover .case__avatar { border-color: rgba(255, 255, 255, 0.3); }

.case__avatar svg { width: 20px; height: 20px; }

.case__who b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-hi);
}

.case__who span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. CTA
   ========================================================================== */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  margin-bottom: 2rem;
  font-size: 3rem;
  color: var(--text-hi);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .cta__title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .cta__title { font-size: 5rem; }
}

.cta__lede {
  max-width: 42rem;
  margin-bottom: 3rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-body);
}

@media (min-width: 768px) {
  .cta__lede { font-size: 1.25rem; }
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .cta__actions { flex-direction: row; width: auto; }
}

.cta__actions .btn--solid span { margin-right: 0.5rem; }
.cta__actions .btn--solid svg { width: 20px; height: 20px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.footer {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .footer { padding: 4rem 3rem; }
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(6, 1fr); }
}

.footer__brand {
  grid-column: span 2;
  padding-right: 2rem;
}

.footer__brand-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer__brand-head b {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-hi);
}

.footer__blurb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer__social a:hover { color: var(--text-hi); }
.footer__social svg { width: 18px; height: 18px; }

.footer__col h3 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-hi);
}

.footer__col ul { display: grid; gap: 0.75rem; }

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer__col a:hover { color: var(--sky-400); }

.footer__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer__base { flex-direction: row; }
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer__status { margin-top: 0; }
}

.footer__status i {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--emerald-500);
  border-radius: 999px;
}

/* ==========================================================================
   14. Personas / shared evidence views
   The tabs are views into one governed record, not separate product pitches.
   ========================================================================== */

.personas {
  position: relative;
  z-index: 10;
  max-width: 76rem;
  margin: 0 auto;
}

.persona-tabs {
  display: flex;
  justify-content: center;
  margin: -1rem auto 3.5rem;
}

.persona-tabs__pill {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline);
}

.persona-tab {
  position: relative;
  padding: 0.875rem 1.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.persona-tab::after {
  position: absolute;
  right: 1.25rem;
  bottom: -1px;
  left: 1.25rem;
  height: 2px;
  content: '';
  background: var(--gold-400);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.persona-tab:hover,
.persona-tab.is-active { color: var(--text-hi); background: rgba(240, 180, 41, 0.04); }
.persona-tab.is-active::after { opacity: 1; transform: scaleX(1); }

.persona-stage {
  position: relative;
  min-height: 26rem;
}

.persona-panel {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  animation: persona-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.persona-panel[hidden] { display: none; }

@media (min-width: 900px) {
  .persona-panel { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
}

@keyframes persona-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-copy__eyebrow,
.persona-card__eyebrow,
.persona-card__state {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.persona-copy__eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-300);
}

.persona-copy__title {
  max-width: 28rem;
  margin-bottom: 1.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.03;
  color: var(--text-hi);
}

.persona-points {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-body);
}

.persona-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.persona-tick { margin-top: 0.15rem; font-weight: 600; }
.persona-tick.is-green { color: var(--sap-300); }
.persona-tick.is-amber { color: var(--amber-400); }
.persona-tick.is-sky { color: var(--gold-300); }

.persona-visual { width: 100%; }

.persona-card {
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(240, 180, 41, 0.06), transparent 42%),
    var(--bg-panel);
  border: 1px solid var(--hairline-strong);
  border-radius: 0.75rem;
  box-shadow: 0 28px 55px -36px rgba(0, 0, 0, 0.95);
}

.persona-card::before {
  position: absolute;
  top: 0;
  right: 1.5rem;
  left: 1.5rem;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0.75;
}

.persona-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.persona-card__eyebrow { color: var(--text-muted); }

.persona-card__state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.persona-card__state.is-green { color: var(--sap-300); }
.persona-card__state.is-amber { color: var(--amber-400); }
.persona-card__state i { width: 0.35rem; height: 0.35rem; border-radius: 50%; }
.persona-card__state.is-green i { background: var(--sap-300); box-shadow: 0 0 0 3px rgba(111, 191, 138, 0.12); }
.persona-card__state.is-amber i { background: var(--amber-400); box-shadow: 0 0 0 3px rgba(240, 138, 60, 0.12); }

.persona-card__main { margin-top: 2rem; }
.persona-card__main--line { padding-left: 1.25rem; border-left: 2px solid var(--sap-500); }

.persona-card__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-hi);
}

.persona-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.persona-card__meta--foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--hairline-soft); color: var(--text-dim); }

.persona-card__rows { display: grid; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--hairline-soft); }

.persona-card__rows li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--hairline-soft);
}

.persona-card__rows li em { margin-left: auto; font-style: normal; font-size: 0.6875rem; color: var(--text-dim); text-align: right; }
.persona-card__rows li i { width: 0.4rem; height: 0.4rem; flex: none; border-radius: 50%; }
.persona-card__rows li i.is-green { background: var(--sap-300); box-shadow: 0 0 8px rgba(111, 191, 138, 0.5); }
.persona-card__rows li i.is-amber { background: var(--amber-400); box-shadow: 0 0 8px rgba(240, 138, 60, 0.5); }

.persona-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2rem; background: var(--hairline); border: 1px solid var(--hairline); }

.persona-stat { min-height: 8rem; padding: 1.25rem; background: rgba(14, 22, 17, 0.82); }

.persona-stat b { display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 3.25rem; font-weight: 400; line-height: 1; color: var(--text-hi); }
.persona-stat b.is-amber { color: var(--amber-400); }
.persona-stat span { font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.persona-cli {
  margin-top: 2rem;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 2;
  color: var(--text-body);
  background: rgba(5, 8, 6, 0.72);
  border: 1px solid var(--hairline-soft);
}

.persona-cli__cmd { display: block; margin-bottom: 0.5rem; color: var(--gold-300); white-space: nowrap; }
.persona-cli__line { display: block; }
.persona-cli__line i { font-style: normal; margin-right: 0.5rem; }
.persona-cli__line i.is-green { color: var(--sap-300); }
.persona-cli__line i.is-amber { color: var(--amber-400); }

@media (max-width: 600px) {
  .persona-tabs { justify-content: flex-start; margin-top: -0.5rem; }
  .persona-tab { padding-right: 0.875rem; padding-left: 0.875rem; }
  .persona-tab::after { right: 0.875rem; left: 0.875rem; }
  .persona-card { padding: 1.25rem; }
  .persona-card__head { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .persona-card__rows li { align-items: flex-start; }
  .persona-card__rows li em { max-width: 48%; }
}

@media (prefers-reduced-motion: reduce) {
  .persona-panel,
  .persona-tab::after { animation: none; transition: none; }
}

/* ==========================================================================
   13. Lead-capture modal
   A single native <dialog> serves both CTA intents. "Book a free call" and
   "Request Pilot" open the same dialog with a different copy + intent field,
   so the visitor stays on the page and we still know which ask converted.
   Native <dialog> gives us the focus trap, Esc-to-close and inert backdrop
   without reimplementing any of it.
   ========================================================================== */

.cta-modal {
  width: min(34rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
  background: var(--bg-panel);
  color: var(--text-body);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  overflow: visible;
}

.cta-modal::backdrop {
  background: rgba(5, 8, 6, 0.78);
  backdrop-filter: blur(6px);
}

.cta-modal[open] {
  animation: ctaModalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta-modal::backdrop[open] {
  animation: ctaBackdropIn 0.35s ease;
}

@keyframes ctaModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes ctaBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cta-modal__inner { padding: 2.5rem; }

.cta-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.cta-modal__close:hover {
  color: var(--text-hi);
  background: var(--bg-elevated);
  border-color: var(--hairline);
}

.cta-modal__close svg { width: 1rem; height: 1rem; }

.cta-modal__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.75rem;
}

.cta-modal__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  margin-bottom: 0.625rem;
}

.cta-modal__lede {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-form { display: grid; gap: 1rem; }

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-field { display: grid; gap: 0.4rem; }

.cta-field label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cta-field input,
.cta-field select,
.cta-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-hi);
  background: var(--bg-body);
  border: 1px solid var(--hairline);
  border-radius: 0.625rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cta-field textarea { resize: vertical; min-height: 5.5rem; }

.cta-field input::placeholder,
.cta-field textarea::placeholder { color: var(--text-dim); }

.cta-field input:hover,
.cta-field select:hover,
.cta-field textarea:hover { border-color: var(--hairline-strong); }

.cta-field input:focus,
.cta-field select:focus,
.cta-field textarea:focus {
  outline: none;
  border-color: rgba(240, 180, 41, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.1);
}

.cta-field select { appearance: none; cursor: pointer; }
.cta-field select option { background: var(--bg-panel); color: var(--text-hi); }

.cta-form__submit {
  height: 3rem;
  margin-top: 0.25rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cta-form__submit[disabled] { opacity: 0.6; cursor: progress; }

.cta-form__note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

/* Honeypot — hidden from people, tempting to bots. */
.cta-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-form__error {
  font-size: 0.8rem;
  color: var(--rose-400);
  text-align: center;
}

.cta-form__error:empty { display: none; }

.cta-modal__done { text-align: center; padding: 1rem 0; }

.cta-modal__done-mark {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--gold-300);
  background: var(--bg-elevated);
}

.cta-modal__done-mark svg { width: 1.25rem; height: 1.25rem; }

.cta-modal__done .cta-modal__title { margin-bottom: 0.5rem; }

@media (max-width: 640px) {
  .cta-modal__inner { padding: 2rem 1.5rem; }
  .cta-modal__title { font-size: 1.5rem; }
  .cta-form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-modal[open],
  .cta-modal::backdrop[open] { animation: none; }
}

/* --- Enterprise control cards ---------------------------------------------
   These two cards are the governance proof points. Their visual language is
   intentionally closer to an operating console than a marketing tile: an
   explicit control identifier, state, scope, and evidence surface. */

.feature--enterprise {
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(240, 180, 41, 0.035), transparent 12rem),
    rgba(18, 27, 21, 0.72);
  border-color: rgba(240, 180, 41, 0.18);
}

.feature--enterprise::before {
  position: absolute;
  top: 0;
  right: 1.5rem;
  left: 1.5rem;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(240, 180, 41, 0.8), transparent);
}

.feature--enterprise:hover { border-color: rgba(240, 180, 41, 0.42); }

.feature--enterprise .feature__body { padding: 2rem; }

.feature--enterprise .feature__eyebrow {
  margin-bottom: 0.7rem;
  color: var(--gold-300);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
}

.feature--enterprise .feature__title {
  max-width: 24rem;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.15;
}

.feature--enterprise .feature__title svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold-300);
}

.feature--enterprise .feature__status {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.feature--enterprise .feature__status i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
}

.feature__status--active {
  color: var(--sap-300);
  background: rgba(111, 191, 138, 0.06);
}

.feature__status--active i {
  background: var(--sap-300);
  box-shadow: 0 0 0 3px rgba(111, 191, 138, 0.12);
}

.feature__status--watch {
  color: var(--amber-400);
  background: rgba(240, 138, 60, 0.06);
}

.feature__status--watch i {
  background: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(240, 138, 60, 0.12);
}

.feature--enterprise .feature__lede {
  max-width: 36rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.feature__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.feature__meta span { min-width: 0; }

.feature__meta b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-dim);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.feature--enterprise .feature__points {
  gap: 0;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.feature--enterprise .feature__points li {
  padding: 0.65rem 0 0.65rem 1.1rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.feature--enterprise .feature__points li:first-child { border-top: 1px solid var(--hairline-soft); }

.feature--enterprise .feature__points li::before {
  top: 0.65rem;
  content: '•';
  color: var(--gold-400);
}

.feature--enterprise .risk,
.feature--enterprise .ndb { border-radius: 0.5rem; }

.feature--response .ndb {
  margin-top: auto;
  border-color: rgba(240, 180, 41, 0.16);
}

@media (min-width: 768px) {
  .feature--enterprise .feature__body { padding: 2.25rem; }
  .feature--enterprise .feature__status { top: 2.25rem; right: 2.25rem; }
}

@media (max-width: 560px) {
  .feature--enterprise .feature__status {
    position: static;
    margin: -0.25rem 0 1.25rem;
    align-self: flex-start;
  }

  .feature__meta { grid-template-columns: 1fr; gap: 0.6rem; }
}
