/* ==========================================================================
   Fidevra — site styles
   Layout: left-aligned editorial grid (max 1180px), navy bands alternating
   with off-white, one bold moment (the live swarm hero), quiet elsewhere.
   Brand: coral #FF4F63 · off-white #F5F5F8 · deep charcoal surfaces (brand navy #12235A kept for the mark)
   ========================================================================== */

:root {
  /* colour */
  --navy: #0E121D;        /* dark surfaces: deep charcoal with a faint cool tint */
  --navy-deep: #090C14;
  --navy-raised: #171C2A;
  --navy-soft: #202638;
  --coral: #FF4F63;
  --coral-deep: #E23A50;
  --coral-soft: rgba(255, 79, 99, 0.12);
  --sky: #B8C2E6;
  --sky-soft: rgba(184, 194, 230, 0.14);
  --paper: #F5F5F8;
  --paper-2: #EBECF1;
  --white: #FFFFFF;
  --ink: #141A2B;
  --ink-2: #3A4258;
  --muted: #6B7287;
  --line: rgba(20, 26, 43, 0.12);
  --line-strong: rgba(20, 26, 43, 0.22);
  --fg-dark: #F4F5F9;
  --muted-dark: #B7C0D9;
  --line-dark: rgba(244, 245, 249, 0.14);
  --ok: #2FBF8E;
  --warn: #FFB547;

  /* type */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* shape + rhythm */
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --shadow: 0 18px 50px -24px rgba(20, 26, 43, 0.35);
  --shadow-dark: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--coral); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.container-wide { max-width: 1320px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type scale */
.display { font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.h3 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; line-height: 1.2; }
.h4 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.on-dark { color: var(--fg-dark); }
.on-dark .lede, .hero .lede, .page-hero .lede, .cta-band .lede { color: #CBD3EA; }
.on-dark .eyebrow { color: var(--coral); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.measure { max-width: 64ch; }

/* --------------------------------------------------------------------------
   Buttons, chips, links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral); color: var(--white); box-shadow: 0 12px 30px -12px rgba(255, 79, 99, 0.7); }
.btn-coral:hover { background: var(--coral-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-raised); }
.btn-ghost-dark { border-color: rgba(244, 245, 249, 0.35); color: var(--fg-dark); background: rgba(244, 245, 249, 0.04); }
.btn-ghost-dark:hover { border-color: var(--fg-dark); background: rgba(244, 245, 249, 0.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}
.text-link .arrow { width: 18px; height: 18px; transition: transform 0.18s ease; }
.text-link:hover .arrow { transform: translateX(3px); }
.on-dark .text-link { color: var(--sky); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
}
.chip-dark { background: rgba(244, 245, 249, 0.06); border-color: var(--line-dark); color: var(--fg-dark); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.badge-pp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 99, 0.55);
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-pp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--navy);
  z-index: 60;
}
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--fg-dark);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(9, 12, 20, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; height: 34px; }
.brand svg { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav > li { position: relative; }
.nav a, .nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--fg-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  opacity: 0.88;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { opacity: 1; background: rgba(244, 245, 249, 0.08); }
.nav .caret { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav > li.is-open .caret { transform: rotate(180deg); }
.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(9, 12, 20, 0.6), 0 0 0 1px var(--line);
  display: none;
}
.nav > li.is-open .menu { display: block; }
.menu a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  opacity: 1;
  font-weight: 700;
}
.menu a:hover { background: var(--paper); }
.menu .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.menu .icon svg { width: 20px; height: 20px; }
.menu small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--fg-dark);
  place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .close { display: none; }
.site-header.is-open .menu-toggle .open { display: none; }
.site-header.is-open .menu-toggle .close { display: block; }

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 18px var(--gutter-r) 40px var(--gutter-l);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--navy-deep);
    overflow-y: auto;
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .menu { position: static; box-shadow: none; background: rgba(244, 245, 249, 0.05); color: var(--fg-dark); margin: 4px 0 10px; }
  .menu a { color: var(--fg-dark); }
  .menu a:hover { background: rgba(244, 245, 249, 0.06); }
  .menu small { color: var(--muted-dark); }
  .menu .icon { background: rgba(244, 245, 249, 0.1); }
  .header-cta .btn { display: none; }
  .menu-toggle { display: grid; }
  .nav .cta-mobile { display: block; margin-top: 14px; }
}
@media (min-width: 961px) { .nav .cta-mobile { display: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.band-navy { background: var(--navy); color: var(--fg-dark); }
.band-deep { background: var(--navy-deep); color: var(--fg-dark); }
.band-white { background: var(--white); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--fg-dark);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(64px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 18% 40%, rgba(14, 18, 29, 0.92) 0%, rgba(14, 18, 29, 0.55) 45%, rgba(14, 18, 29, 0) 100%),
    linear-gradient(180deg, rgba(14, 18, 29, 0) 70%, var(--navy) 100%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-copy .display { max-width: 12ch; }
.hero-copy .lede { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted-dark); text-transform: uppercase; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* agent run console */
.console {
  position: relative;
  border-radius: var(--radius);
  background: rgba(9, 12, 20, 0.72);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.console-bar .pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--sky); }
.console-bar .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: blink 2s ease-in-out infinite; }
.console-body { padding: 16px 18px 18px; display: grid; gap: 8px; min-height: 260px; }
.console-line { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--fg-dark); }
.console-line .g { color: var(--ok); font-weight: 500; }
.console-line.warn .g { color: var(--warn); }
.console-line.info .g { color: var(--sky); }
.console-line.dim { color: var(--muted-dark); }
.console-line .k { color: var(--sky); }
.console-line .num { color: var(--warn); }
.console-line .sys { color: var(--muted-dark); }
.console-line.is-new { animation: rise 0.45s ease both; }
.console-footer { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 11.5px; letter-spacing: 0.04em; }
.console-footer b { color: var(--fg-dark); font-weight: 500; }
.cursor { display: inline-block; width: 8px; height: 14px; vertical-align: -2px; background: var(--coral); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
@keyframes rise { from { transform: translateY(6px); opacity: 0.2; } to { transform: none; opacity: 1; } }

/* platform strip */
.platforms { padding-block: 28px; border-top: 1px solid var(--line-dark); background: var(--navy-deep); color: var(--fg-dark); }
.platforms-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.platforms-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap; }
.platforms-list { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms-list .chip-dark { font-size: 14px; }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-card .art { background: var(--navy); aspect-ratio: 4 / 3; max-width: 100%; }
.product-card .art img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 26px 28px 30px; display: grid; gap: 12px; align-content: start; }
.product-card .kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.product-card p { color: var(--ink-2); font-size: 16px; }
.product-card .text-link { margin-top: 6px; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Feature grids, steps, principles
   -------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); align-content: start; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 6px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.on-dark .feature { background: rgba(244, 245, 249, 0.05); border-color: var(--line-dark); }
.on-dark .feature p { color: var(--muted-dark); }
.on-dark .feature .icon { background: rgba(244, 245, 249, 0.1); }
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .features, .features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features, .features.two { grid-template-columns: 1fr; } }

/* feature list (inline, no cards) */
.feature-list { display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.feature-list .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 16px; height: 16px; }
.feature-list b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 3px; }
.feature-list p { color: var(--ink-2); font-size: 15.5px; }
.on-dark .feature-list p { color: var(--muted-dark); }
.on-dark .feature-list .tick { background: rgba(255, 79, 99, 0.18); }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; padding: 22px 20px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--coral);
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps.four { grid-template-columns: 1fr; } }

/* stats / facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fact { padding: 22px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(244, 245, 249, 0.05); display: grid; gap: 6px; }
.fact b { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.fact span { color: var(--muted-dark); font-size: 15px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* use-case columns */
.usecases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.usecase { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 2px solid var(--navy); }
.usecase h3 { font-size: 20px; }
.usecase ul { display: grid; gap: 10px; }
.usecase li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); }
.usecase li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.usecase .sys { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .usecases { grid-template-columns: 1fr; } }

/* principles (why) */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.principle .num { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--coral); line-height: 1; }
.principle h3 { font-size: 21px; margin-bottom: 8px; }
.principle p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* figure (illustration) */
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); max-width: 100%; }
.figure img { width: 100%; height: auto; }
.on-dark .figure { box-shadow: var(--shadow-dark); border: 1px solid var(--line-dark); }

/* swarm monitor demo */
.monitor {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  max-width: 100%;
}
.monitor canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.monitor-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 12, 20, 0.82);
  border: 1px solid var(--line-dark);
  color: var(--fg-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 0;
}
.monitor-bar .state { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.monitor-bar.is-alert .state { background: var(--coral); animation: blink 0.9s ease-in-out infinite; }
.monitor-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-legend { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.monitor-legend .chip-dark { font-size: 11.5px; padding: 5px 10px; font-family: var(--font-mono); font-weight: 500; background: rgba(9, 12, 20, 0.7); }
.monitor-legend .dot.ok { background: var(--ok); }
.monitor-legend .dot.sky { background: var(--sky); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--coral); flex: none; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--navy); color: var(--fg-dark); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 99, 0.35), rgba(255, 79, 99, 0) 70%);
  pointer-events: none;
}
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta-inner .h2 { max-width: 18ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* --------------------------------------------------------------------------
   Product page hero
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  color: var(--fg-dark);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(184, 194, 230, 0.12), rgba(184, 194, 230, 0) 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 79, 99, 0.14), rgba(255, 79, 99, 0) 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .hero-copy { gap: 22px; }
.page-hero .h1 { max-width: 20ch; }
.page-hero .figure { margin-top: 8px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); display: flex; gap: 10px; }
.breadcrumb a:hover { color: var(--fg-dark); }

/* plain hero (about/contact/legal) */
.page-hero.simple { padding-bottom: clamp(40px, 6vw, 72px); }

/* prose for legal + about */
.prose { max-width: 72ch; display: grid; gap: 18px; font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 4px rgba(20, 26, 43, 0.12); }
.field .hint { font-size: 13px; color: var(--muted); }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-note { font-size: 13.5px; color: var(--muted); max-width: 60ch; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.ok { display: block; background: rgba(47, 191, 142, 0.14); color: #136B4D; }
.form-status.err { display: block; background: var(--coral-soft); color: var(--coral-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: grid; gap: 22px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-card h3 { font-size: 18px; }
.contact-card .big { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; word-break: break-all; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; font-family: var(--font-display); }
.copy-btn:hover { border-color: var(--navy); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--fg-dark); padding-block: clamp(48px, 6vw, 80px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand svg { height: 30px; width: auto; }
.footer-brand p { color: var(--muted-dark); max-width: 36ch; font-size: 15px; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--fg-dark); opacity: 0.85; font-size: 15px; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted-dark); font-size: 13.5px; }
.footer-bottom a { color: var(--fg-dark); opacity: 0.8; }
.footer-bottom a:hover { opacity: 1; }
.footer-legal { max-width: 70ch; color: var(--muted-dark); font-size: 12.5px; line-height: 1.5; margin-top: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.reveal { transform: translateY(14px); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .console-line.is-new, .cursor, .console-bar .pill i, .monitor-bar.is-alert .state { animation: none; }
  .btn, .product-card, .text-link .arrow, .btn .arrow { transition: none; }
}


/* --------------------------------------------------------------------------
   News: listing, cards, articles
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; }
.post-card p { color: var(--ink-2); font-size: 15.5px; }
.post-card .text-link { margin-top: 4px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-meta .post-tag { color: var(--coral); }
.post-meta .sep { opacity: 0.5; }
.on-dark.post-meta, .on-dark .post-meta { color: var(--muted-dark); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--fg-dark);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured-copy { display: grid; gap: 16px; }
.featured-copy .h2 { max-width: 20ch; }
.featured-copy .lede { color: #CBD3EA; }
.featured-copy .text-link { color: var(--sky); }
.featured-art { min-height: 240px; border-radius: 14px; background-color: var(--navy-deep); background-size: cover; background-position: 70% 50%; border: 1px solid var(--line-dark); }
@media (max-width: 800px) { .featured-post { grid-template-columns: 1fr; } .featured-art { min-height: 160px; } }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; } }
.article { max-width: 72ch; font-size: 18px; line-height: 1.7; color: var(--ink-2); display: grid; gap: 20px; }
.article h2 { font-size: 28px; color: var(--ink); margin-top: 18px; }
.article h3 { font-size: 22px; color: var(--ink); margin-top: 8px; }
.article p strong, .article li strong { color: var(--ink); }
.article ul, .article ol { display: grid; gap: 8px; padding-left: 22px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article blockquote { margin: 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--coral); color: var(--ink); font-weight: 600; font-size: 19px; }
.article a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article code { font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.article pre { background: var(--navy); color: var(--fg-dark); padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article pre code { background: none; padding: 0; color: inherit; }
.article img { border-radius: 12px; margin-block: 6px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin-block: 10px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--ink); font-family: var(--font-display); }
.hero-note a { color: var(--fg-dark); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 18px; }
.notfound .display { max-width: 14ch; }
