/*
 * e-sender.pro — landing stylesheet.
 * Built entirely on assets/css/tokens.css. No new colour values are invented here; anything that
 * looks like a raw colour below is either a token or a translucency of one.
 *
 * Structure
 *   01 base            06 hero + architecture
 *   02 primitives      07 sections
 *   03 layout          08 footer
 *   04 header          09 motion / reveal
 *   05 mobile menu     10 responsive
 */

/* ═══════════════════════════════ 01 · BASE ═══════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, pre, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-dim); color: var(--text-primary); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: var(--space-3); left: var(--space-3);
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ═══════════════════════════════ 02 · PRIMITIVES ═══════════════════════════════ */

/* --- eyebrow / mono label: the page's structural voice --- */
.eyebrow,
.s-head__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow__tick,
.s-head__tick {
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 1px 0 #ffffff26 inset, 0 6px 20px var(--accent-glow);
}
.btn--primary:hover { background: #5ccbfa; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); background: var(--accent-strong); }

.btn--secondary {
  background: var(--surface-card);
  border-color: var(--border-default);
  color: var(--text-primary);
}
.btn--secondary:hover { background: var(--surface-card-hover); border-color: var(--border-strong); }

.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover { color: var(--text-primary); background: var(--surface-card); }

.btn--sm { min-height: 38px; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { min-height: 52px; padding: var(--space-4) var(--space-6); font-size: var(--text-body); }
.btn--block { width: 100%; }

/* --- status: LED + word. The word is never optional; colour never carries meaning alone. --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-3) 3px var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
}
.status__led {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}
.status--available { color: var(--badge-available); border-color: #34d39938; background: var(--status-healthy-bg); }
.status--available .status__led { box-shadow: 0 0 8px currentColor; }
.status--soon { color: var(--badge-soon); border-color: #38bdf838; background: #38bdf814; }
.status--soon .status__led { background: none; border: 2px solid currentColor; width: 8px; height: 8px; }
.status--dev { color: var(--badge-development); border-color: #a78bfa38; background: var(--status-automation-bg); }
.status--dev .status__led {
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
  border: 1.5px solid currentColor; width: 8px; height: 8px;
}
.status--planned { color: var(--badge-planned); border-color: var(--border-subtle); background: var(--surface-raised); }
.status--planned .status__led { background: none; border: 1.5px dashed currentColor; width: 8px; height: 8px; }

.status--lg { font-size: var(--text-xs); padding: 5px var(--space-4) 5px var(--space-3); }
.status--sm { font-size: 0.6875rem; padding: 1px var(--space-2) 1px 5px; }
.status--sm .status__led { width: 6px; height: 6px; }

/* --- headings --- */
.h-sub {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.h-sub--lg { font-size: var(--text-h3); line-height: var(--leading-snug); }

.caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-3);
}
.caption--center { text-align: center; }

/* --- capability lists --- */
.caps { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.caps li {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.caps li:hover { border-color: var(--border-strong); color: var(--text-primary); }
.caps--dense li { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }

.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pills li {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: #38bdf80f;
  border: 1px solid #38bdf826;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* --- mockup frame ---
   The mockups draw their own window chrome, so this wrapper adds only depth and a caption. */
.frame--wide { margin-top: var(--space-7); }
.frame--flat { margin-top: var(--space-6); }

.frame__caption {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.frame__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}
.frame--flat .frame__media { box-shadow: var(--shadow-card); }
/* A faint measurement grid sits behind the artwork, so a mockup that does not fill the frame
   letterboxes onto a control-panel surface rather than a void. */
.frame__media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, var(--border-subtle) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--border-subtle) 31px 32px);
  opacity: .3;
}
.frame__media img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
/* If a mockup file has not landed yet, the box keeps its shape and says so. */
.frame__media.is-missing img { display: none; }
.frame__media.is-missing::after {
  content: attr(data-missing-label);
  position: absolute; inset: 0;
  display: grid; place-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- callout --- */
.callout {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--border-strong);
  background: var(--surface-raised);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.callout--rule { border-left-color: var(--status-warning); }

/* ═══════════════════════════════ 03 · LAYOUT ═══════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-gap); position: relative; }
.section--alt { background: var(--surface-raised); }
.section--alt::before,
.section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--border-subtle);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }
.section--flush { padding-top: var(--space-8); }

/* --- section head: the rail. A hairline across the container, a mono channel tag on it. --- */
.s-head {
  position: relative;
  padding-top: var(--space-5);
  margin-bottom: var(--space-7);
  max-width: 62ch;
}
.s-head::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--border-subtle) 40%, transparent);
}
.s-head__title {
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-4);
  text-wrap: balance;
}
.s-head__lede {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 60ch;
}
.s-head__sub-emphasis {
  margin-top: var(--space-3);
  font-size: var(--text-h3);
  color: var(--accent);
  font-weight: var(--weight-medium);
}
.s-head--product { max-width: 78ch; }
.s-head__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.s-head--center { max-width: 68ch; margin-inline: auto; text-align: center; }
.s-head--center .s-head__tag { justify-content: center; }

/* ═══════════════════════════════ 04 · HEADER ═══════════════════════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  transition: background var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 76px;
  transition: height var(--dur-base) var(--ease-out);
}
.site-header__rule {
  height: 1px;
  background: var(--border-subtle);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { background: #0a0c10e0; backdrop-filter: blur(14px); }
.site-header.is-scrolled .site-header__inner { height: 60px; }
.site-header.is-scrolled .site-header__rule { opacity: 1; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--accent);
  flex: none;
}
.logo__mark { width: 30px; height: 30px; }
.logo__text {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo__text b { font-weight: var(--weight-semibold); }
.logo__tld { color: var(--text-muted); font-weight: var(--weight-regular); }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); background: var(--surface-card); }
.nav__caret { transition: transform var(--dur-fast) var(--ease-out); }
.nav__trigger[aria-expanded="true"] { color: var(--text-primary); background: var(--surface-card); }
.nav__trigger[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__item--has-menu { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 2rem));
  z-index: var(--z-dropdown);
  padding: var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-raised);
  animation: dropIn var(--dur-fast) var(--ease-out);
}
.dropdown[hidden] { display: none; }
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -6px); } }

.dropdown__label,
.dropdown__foot {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  padding-inline: var(--space-3);
}
.dropdown__foot {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.dropdown__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: var(--space-3);
}
.dropdown__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.dropdown__item:hover { background: var(--surface-card-hover); }
.dropdown__name { grid-column: 1; grid-row: 1; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.dropdown__item .status { grid-column: 2; grid-row: 1; justify-self: end; }
.dropdown__desc { grid-column: 1 / -1; grid-row: 2; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }

/* --- language switcher ---
   The active locale is carried by aria-pressed for assistive tech and by a filled pill plus an
   inset ring visually, so it never depends on the accent colour alone. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
}
.lang__btn {
  min-width: 40px;
  height: 32px;
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.lang__btn:hover { color: var(--text-primary); background: var(--surface-card); }
.lang__btn.is-active {
  color: var(--accent);
  background: var(--surface-card-hover);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}
.lang__btn[aria-busy="true"] { opacity: .6; }

.lang--block { width: 100%; justify-content: stretch; border-radius: var(--radius-md); padding: 4px; }
.lang--block .lang__btn { flex: 1; height: 44px; border-radius: var(--radius-sm); font-size: var(--text-sm); }

/* A non-English visitor gets the page revealed only after the strings are swapped, so the
   English baseline never flashes. English visitors never carry this class at all. */
.i18n-pending body { visibility: hidden; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars i {
  height: 2px; background: var(--text-primary); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ═══════════════════════════════ 05 · MOBILE MENU ═══════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 60px 0 0;
  z-index: calc(var(--z-header) - 1);
  background: var(--surface-page);
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__scroll { padding: var(--space-5) var(--container-pad) var(--space-8); }
.mobile-menu__label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.mobile-menu__products { margin-bottom: var(--space-6); }
.mobile-menu__products a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.mobile-menu__links { margin-bottom: var(--space-6); }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1.0625rem;
  font-weight: var(--weight-medium);
}
.mobile-menu .lang--block { margin-bottom: var(--space-6); }
.mobile-menu__actions { display: grid; gap: var(--space-3); }

/* ═══════════════════════════════ 06 · HERO + ARCHITECTURE ═══════════════════════════════ */

.hero {
  position: relative;
  padding-top: calc(76px + var(--space-8));
  padding-bottom: var(--space-9);
  overflow: clip;
}
.hero__grid-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  background:
    radial-gradient(900px 420px at 20% -10%, var(--accent-glow), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 47px, var(--border-subtle) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, var(--border-subtle) 47px 48px);
  mask-image: linear-gradient(#000 0%, #0000 92%);
  opacity: .55;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: var(--space-8) var(--space-7);
  align-items: center;
}

.hero__title {
  margin-top: var(--space-5);
  /* Sized so each of the two headline lines stays on one line down to 1040px, where the
     layout goes single-column and --text-hero can take over again. */
  font-size: clamp(2.375rem, 3.9vw, 3.75rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.032em;
  font-weight: var(--weight-semibold);
}
/* Cyrillic sets longer than English at the same point size; step it down so the headline still
   lands on the two lines the composition is built around. */
:root[data-locale="uk"] .hero__title,
:root[data-locale="ru"] .hero__title { font-size: clamp(2.125rem, 3.35vw, 3.25rem); }
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(96deg, var(--accent) 0%, #7dd3fc 45%, var(--status-automation) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: var(--space-5);
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--text-secondary);
}
.hero__statement {
  margin-top: var(--space-5);
  padding-left: var(--space-4);
  border-left: 2px solid var(--border-accent);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hero__statement span { color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* --- the signature: a live control-plane diagram --- */
.arch {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 50% 42%, #38bdf80a, transparent 70%),
    var(--surface-raised);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.arch__caption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-card);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.arch__caption-tag {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.arch__caption-text { color: var(--text-faint); margin-left: auto; }

.arch__stage {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-5);
}
.arch__links {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.arch__link { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.arch__flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 14 190;
  opacity: .85;
  animation: flowRun 4.4s linear infinite;
}
@keyframes flowRun { to { stroke-dashoffset: -204; } }

.arch__band { position: relative; }
.arch__band-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.arch__row { display: grid; gap: var(--space-3); }
.arch__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arch__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.node {
  position: relative;
  display: grid;
  gap: 2px;
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.node:hover { border-color: var(--border-strong); background: var(--surface-card-hover); }
.node__name {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}
.node__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}
.node--owned {
  background: var(--surface-panel);
  border-style: dashed;
  border-color: var(--border-default);
}
.node--owned .node__name { color: var(--text-secondary); }
.node__led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-idle);
  margin-bottom: 2px;
}
.node__led--healthy { background: var(--status-healthy); box-shadow: 0 0 8px var(--status-healthy); }
.node__led--automation { background: var(--status-automation); }
.node__led--idle { background: var(--status-idle); }
.node.is-live { border-color: #34d39947; background: linear-gradient(var(--status-healthy-bg), transparent), var(--surface-card); }

.arch__band--hub { display: grid; }
.node--hub {
  justify-items: center;
  text-align: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border-color: var(--border-accent);
  background: linear-gradient(#38bdf814, transparent), var(--surface-card);
  box-shadow: var(--shadow-accent);
}
.node__hub-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.node__hub-name {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.node__hub-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.arch__foot {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.arch__foot strong { color: var(--text-muted); font-weight: var(--weight-medium); }

/* ═══════════════════════════════ 07 · SECTIONS ═══════════════════════════════ */

/* --- architecture chains --- */
.chains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.chain {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.chain__label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.chain__path { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.chain__path li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.chain__path li::after {
  content: "→";
  color: var(--accent);
  opacity: .6;
  font-size: var(--text-xs);
}
.chain__path li:last-child { color: var(--text-primary); font-weight: var(--weight-medium); }
.chain__path li:last-child::after { content: none; }

/* --- problem / compare --- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.compare__col {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-page);
}
.compare__col--after { border-color: var(--border-accent); background: linear-gradient(#38bdf80a, transparent), var(--surface-page); }
.compare__title {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.compare__col--after .compare__title { color: var(--accent); }
.compare__list { display: grid; gap: 1px; background: var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.compare__list li {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  font-size: var(--text-sm);
}
.compare__from { color: var(--text-primary); font-weight: var(--weight-medium); }
.compare__arrow { color: var(--text-faint); }
.compare__to { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
.compare__close {
  margin-top: auto;
  padding-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--status-warning);
}
.compare__close--good { color: var(--status-healthy); }

.stack-flow { display: grid; gap: var(--space-2); }
.stack-flow__step {
  position: relative;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  text-align: center;
}
.stack-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(-1 * var(--space-2) - 1px);
  width: 1px; height: var(--space-2);
  background: var(--accent);
  opacity: .5;
}
.stack-flow__name { font-size: var(--text-sm); color: var(--text-secondary); }
.stack-flow__step--hub {
  border-color: var(--border-accent);
  background: linear-gradient(#38bdf814, transparent), var(--surface-card);
}
.stack-flow__step--hub .stack-flow__name {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- product ecosystem bento --- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.bento__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.bento__card:hover {
  border-color: var(--border-strong);
  background: var(--surface-card-hover);
  transform: translateY(-2px);
}
.bento__card--lead {
  grid-column: span 2;
  grid-row: span 2;
  padding: var(--space-6);
  border-color: var(--border-accent);
  background:
    radial-gradient(500px 260px at 15% 0%, #38bdf814, transparent 70%),
    var(--surface-card);
}
.bento__card--lead:hover { border-color: #38bdf866; }
.bento__card--wide { grid-column: span 2; }
.bento__card--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-6);
}
.bento__card--full .bento__head { flex: none; width: 260px; }
.bento__card--full .bento__desc { max-width: 68ch; }

.bento__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.bento__name {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
}
.bento__card--lead .bento__name { font-size: var(--text-h3); }
.bento__desc { font-size: var(--text-sm); color: var(--text-secondary); }
.bento__card--lead .bento__desc { font-size: var(--text-body); max-width: 46ch; }
.bento__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bento__tags li {
  padding: 3px var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.bento__go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
}
.bento__go-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.bento__card:hover .bento__go-arrow { transform: translateX(3px); }

/* --- product sections --- */
.product__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
  align-items: start;
}
.product__block { margin-top: var(--space-7); }
.product__block .callout { max-width: 72ch; }
.product__side { display: grid; gap: var(--space-5); align-content: start; }
.product__side .h-sub { margin-bottom: 0; }
.product__side > .callout:first-child { margin-top: 0; }
.product .metrics { margin-top: var(--space-7); }

.pitch {
  padding: var(--space-6);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  background: radial-gradient(500px 240px at 80% 0%, #38bdf814, transparent 70%), var(--surface-card);
  align-self: start;
}
.pitch__lead {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}
.pitch__body { margin-top: var(--space-3); color: var(--text-secondary); }
.pitch .btn { margin-top: var(--space-5); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.metric {
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-top-width: 2px;
  border-top-color: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  text-align: center;
}
.metric__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
}
.metric__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.metric--healthy { border-top-color: var(--status-healthy); }
.metric--healthy .metric__value { color: var(--status-healthy); }
.metric--warning { border-top-color: var(--status-warning); }
.metric--warning .metric__value { color: var(--status-warning); }
.metric--critical { border-top-color: var(--status-critical); }
.metric--critical .metric__value { color: var(--status-critical); }

/* --- workflow flows --- */
.flows { display: grid; gap: var(--space-4); margin-top: var(--space-7); }
.flow {
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.flow__label {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}
.flow__steps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 0; }
.flow__step {
  position: relative;
  padding: var(--space-2) var(--space-4);
  margin-right: var(--space-5);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.flow__step::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--space-5) + 2px);
  top: 50%;
  width: calc(var(--space-5) - 8px);
  height: 1px;
  background: var(--border-strong);
}
.flow__step::before {
  content: "";
  position: absolute;
  right: calc(-1 * var(--space-5) + 2px);
  top: calc(50% - 2.5px);
  border: 3px solid transparent;
  border-left-color: var(--border-strong);
}
.flow__step:last-child { margin-right: 0; }
.flow__step:last-child::after,
.flow__step:last-child::before { content: none; }
.flow__step--trigger { border-color: #38bdf84d; color: var(--accent); }
.flow__step--wait { color: var(--text-muted); }
.flow__step--check { border-color: #fbbf2440; color: var(--status-warning); }
.flow__step--action { border-color: #a78bfa4d; color: var(--status-automation); }

/* --- monitor health --- */
.health {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
}
.health__item {
  display: grid;
  gap: 2px;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-left-width: 2px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
}
.health__key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.health__val { font-size: 1.125rem; font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.health__item--healthy { border-left-color: var(--status-healthy); }
.health__item--healthy .health__val { color: var(--status-healthy); }
.health__item--warning { border-left-color: var(--status-warning); }
.health__item--warning .health__val { color: var(--status-warning); }
.health__item--automation { border-left-color: var(--status-automation); }
.health__item--automation .health__val { color: var(--status-automation); }

.selfheal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  align-items: start;
  margin-top: var(--space-8);
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-page);
}
.selfheal__intro { max-width: 46ch; }
.selfheal > .timeline { grid-column: 2; grid-row: 1; }
.selfheal > .caption { grid-column: 2; grid-row: 2; margin-top: 0; }
.selfheal__intro .h-sub { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.selfheal__text { color: var(--text-secondary); font-size: var(--text-sm); }

.timeline { display: grid; gap: 0; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-left: 1px solid var(--border-default);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -4.5px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--surface-page);
  border: 2px solid var(--border-strong);
}
.timeline__time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.timeline__event { font-size: var(--text-sm); color: var(--text-secondary); }
.timeline__item--critical::before { border-color: var(--status-critical); }
.timeline__item--critical .timeline__event { color: var(--status-critical); }
.timeline__item--warning::before { border-color: var(--status-warning); }
.timeline__item--warning .timeline__event { color: var(--status-warning); }
.timeline__item--automation::before { border-color: var(--status-automation); }
.timeline__item--healthy::before { border-color: var(--status-healthy); background: var(--status-healthy); }
.timeline__item--healthy .timeline__event { color: var(--status-healthy); font-weight: var(--weight-medium); }
.timeline__item:last-child { border-left-color: transparent; }

/* --- supporting gates --- */
.support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.support__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  scroll-margin-top: 96px;
}
.support__card--wide { grid-column: 1 / -1; }
.support__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.support__name { font-size: var(--text-h4); font-weight: var(--weight-semibold); letter-spacing: -0.015em; }
.support__desc { font-size: var(--text-sm); color: var(--text-secondary); }

.maps { display: grid; gap: var(--space-2); margin-top: auto; }
.maps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-panel);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.maps i { color: var(--accent); font-style: normal; }

.entity {
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
}
.entity__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-3);
}
.entity__fields { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.entity__fields li {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
}
.entity__used { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--text-faint); }

.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.ai-qa {
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
}
.ai-qa__q {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.ai-qa__marker {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-content: center;
  border-radius: var(--radius-sm);
  background: var(--status-automation-bg);
  color: var(--status-automation);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.ai-qa__a { font-size: var(--text-sm); color: var(--text-secondary); }
.ai-qa__rec {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.ai-qa__rec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--status-automation);
  margin-bottom: var(--space-2);
}

/* --- platform core --- */
.core {
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  padding: var(--space-7) var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 260px at 50% 50%, #38bdf80f, transparent 70%),
    var(--surface-page);
}
.core__mid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  max-width: 940px;
}
/* The hairline is the point of the section: these services are one bus, not nine apps. */
.core__mid::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 25%, var(--border-strong) 75%, transparent);
}
.core__hub {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-7);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-accent);
}
.core__hub-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.core__hub-name { font-size: var(--text-h3); font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
.core__ring {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  max-width: 62ch;
}
.core__ring--left { flex-direction: column; align-items: flex-end; }
.core__ring--right { flex-direction: column; align-items: flex-start; }
.core__ring li {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.core__ring li:hover { color: var(--accent); border-color: var(--border-accent); }

/* --- own your infrastructure --- */
.own__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}
.own__col {
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.own__col--us {
  border-color: var(--border-accent);
  background: radial-gradient(500px 300px at 50% 0%, #38bdf814, transparent 70%), var(--surface-raised);
}
.own__title {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}
.own__col--us .own__title { color: var(--accent); }
.own__list { display: grid; gap: var(--space-2); }
.own__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}
.own__list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--text-faint);
  flex: none;
}
.own__col--us .own__list li { color: var(--text-primary); }
.own__col--us .own__list li::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.own__divider { display: grid; place-items: center; }
.own__divider span {
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}
.own__claims {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.own__claims li {
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
}

/* --- how it works --- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.step {
  position: relative;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--border-strong);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface-page);
  transition: border-top-color var(--dur-base) var(--ease-out);
}
.step:hover { border-top-color: var(--accent); }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-h3);
  color: var(--text-faint);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.step__title { font-size: var(--text-h4); font-weight: var(--weight-semibold); letter-spacing: -0.015em; }
.step__text { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); }

/* --- use cases --- */
.cases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.case {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.case:hover { border-color: var(--border-strong); background: var(--surface-card); }
.case__name { font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.35; }

/* --- developers --- */
.dev {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-6);
  align-items: start;
}
.dev__caps { display: grid; gap: var(--space-3); }
.dev__caps li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-page);
}
.dev__cap-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
}
.dev__cap-text { font-size: var(--text-sm); color: var(--text-secondary); }

.code {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-inset);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-card);
}
.code__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.code__note { font-size: var(--text-xs); color: var(--text-faint); }
.code__body { overflow-x: auto; }
.code__pre {
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.75;
  color: var(--text-secondary);
  min-width: max-content;
}
.c-cm { color: var(--text-faint); }
.c-mt { color: var(--status-healthy); font-weight: var(--weight-medium); }
.c-pt { color: var(--text-primary); }
.c-k  { color: var(--accent); }
.c-s  { color: var(--status-automation); }
.c-pn { color: var(--text-muted); }

/* --- roadmap --- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 13px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--status-automation) 45%, var(--border-default));
  opacity: .45;
}
.roadmap__phase { position: relative; padding-top: var(--space-7); }
.roadmap__phase::before {
  content: "";
  position: absolute;
  top: 8px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface-page);
  border: 2px solid var(--border-strong);
}
.roadmap__phase--now::before { border-color: var(--status-healthy); background: var(--status-healthy); }
.roadmap__phase--next::before { border-color: var(--accent); }
.roadmap__stage {
  position: absolute;
  top: 4px; left: var(--space-5);
  background: var(--surface-page);
  padding-right: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.roadmap__phase--now .roadmap__stage { color: var(--status-healthy); }
.roadmap__phase--next .roadmap__stage { color: var(--accent); }
.roadmap__items { display: grid; gap: var(--space-2); }
.roadmap__items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.roadmap__item-name { font-size: var(--text-sm); font-weight: var(--weight-medium); }

/* --- security --- */
.sec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.sec__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 68px;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-page);
}
.sec__item::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  transform: rotate(45deg);
}
.sec__name { font-size: var(--text-sm); color: var(--text-secondary); }
.sec__note {
  margin-top: var(--space-5);
  max-width: 72ch;
  font-size: var(--text-sm);
  color: var(--text-faint);
}

/* --- pricing --- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.tier {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  min-height: 168px;
}
.tier--enterprise { border-color: var(--border-accent); background: linear-gradient(#38bdf80a, transparent), var(--surface-raised); }
.tier__name { font-size: var(--text-h4); font-weight: var(--weight-semibold); letter-spacing: -0.015em; }
.tier__for { font-size: var(--text-sm); color: var(--text-secondary); }

.pricing__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.pricing__note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-faint); }

/* --- final CTA --- */
.cta {
  position: relative;
  padding-block: var(--space-10);
  border-top: 1px solid var(--border-subtle);
  overflow: clip;
  text-align: center;
}
.cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 50% 100%, var(--accent-glow), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 63px, var(--border-subtle) 63px 64px);
  mask-image: linear-gradient(#0000, #000 60%);
  pointer-events: none;
}
.cta__inner { position: relative; display: grid; justify-items: center; gap: var(--space-4); }
.cta__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.028em;
  line-height: var(--leading-tight);
}
.cta__sub { font-size: 1.125rem; color: var(--text-secondary); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.cta__signup {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.cta__foot {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════ 08 · FOOTER ═══════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  padding-block: var(--space-8) var(--space-6);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: var(--space-7);
}
.site-footer__tagline { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-secondary); }
.site-footer__statement {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  max-width: 34ch;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}
.site-footer__col ul { display: grid; gap: var(--space-3); }
.site-footer__col a,
.site-footer__col .pending {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer__col a:hover { color: var(--accent); }
.site-footer__col .pending { color: var(--text-faint); cursor: default; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ═══════════════════════════════ 09 · MOTION ═══════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .arch__flow { display: none; }
}

/* ═══════════════════════════════ 10 · RESPONSIVE ═══════════════════════════════ */

@media (max-width: 1440px) {
  .hero__inner { gap: var(--space-7) var(--space-6); }
}

/* Translated nav labels run longer than English, so the row tightens earlier. */
@media (max-width: 1400px) {
  .nav__list { gap: 0; }
  .nav__link { padding-inline: var(--space-2); }
  .site-header__inner { gap: var(--space-4); }
}

@media (max-width: 1240px) {
  .cases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .health { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .own__claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Header collapses to a mobile menu before the nav can crowd the CTA. Sized for the longest
   locale (Ukrainian), not for English. */
@media (max-width: 1220px) {
  .nav, .site-header__actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { justify-content: space-between; height: 64px; }
  .site-header.is-scrolled .site-header__inner { height: 60px; }
  .site-header { background: #0a0c10d9; backdrop-filter: blur(14px); }
  .site-header__rule { opacity: 1; }

  .hero { padding-top: calc(64px + var(--space-7)); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: var(--text-hero); }
  .hero__copy { max-width: 60ch; }
  .hero__sub { max-width: 62ch; }

  .dev { grid-template-columns: minmax(0, 1fr); }
  .support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--lead { grid-column: 1 / -1; grid-row: auto; }
  .bento__card--wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .product__split { grid-template-columns: minmax(0, 1fr); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .chains { grid-template-columns: minmax(0, 1fr); }
  .roadmap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .roadmap::before { display: none; }
  .roadmap__phase { padding-top: var(--space-6); padding-left: var(--space-5); }
  .roadmap__phase::before { top: 5px; }
  .roadmap__phase::after {
    content: "";
    position: absolute;
    top: 20px; left: 5px; bottom: -24px;
    width: 1px;
    background: var(--border-default);
  }
  .roadmap__phase:last-child::after { display: none; }
  .roadmap__stage { top: 0; }
  .core__mid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); justify-items: center; }
  .core__mid::before { display: none; }
  .core__ring--left, .core__ring--right { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; }
  .core__ring--left { order: 2; }
  .core__hub { order: 1; }
  .core__ring--right { order: 3; }
  .selfheal { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .selfheal > .timeline,
  .selfheal > .caption { grid-column: 1; grid-row: auto; }
  .selfheal > .caption { margin-top: var(--space-3); }
  .bento__card--full { flex-direction: column; gap: var(--space-3); }
  .bento__card--full .bento__head { width: auto; }
  .own__split { grid-template-columns: minmax(0, 1fr); }
  .own__divider { display: none; }
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below this the architecture diagram stops trying to be a wide graph. */
@media (max-width: 720px) {
  .arch__stage { gap: var(--space-5); padding: var(--space-5) var(--space-4); }
  .arch__row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch__band + .arch__band::before {
    content: "";
    position: absolute;
    left: 50%; top: calc(-1 * var(--space-5));
    width: 1px; height: var(--space-5);
    background: linear-gradient(var(--border-strong), var(--accent));
  }
  .arch__band--hub + .arch__band::before { background: linear-gradient(var(--accent), var(--border-strong)); }

  .support { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__card--lead, .bento__card--wide { grid-column: auto; }
  .flow__steps { display: grid; gap: var(--space-3); }
  .flow__step { margin-right: 0; }
  .flow__step::after {
    right: auto; left: var(--space-5); top: auto;
    bottom: calc(-1 * var(--space-3));
    width: 1px; height: var(--space-3);
  }
  .flow__step::before {
    right: auto; left: calc(var(--space-5) - 2.5px);
    top: auto; bottom: calc(-1 * var(--space-3) + 1px);
    border-left-color: transparent;
    border-top-color: var(--border-strong);
  }
}

@media (max-width: 620px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health { grid-template-columns: minmax(0, 1fr); }
  .own__claims { grid-template-columns: minmax(0, 1fr); }
  .compare__list li { grid-template-columns: 1fr auto 1fr; }
  .selfheal { padding: var(--space-5) var(--space-4); }
  .timeline__item { grid-template-columns: 56px 1fr; gap: var(--space-3); padding-left: var(--space-4); }
  .site-footer__nav { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .own__col, .compare__col, .tier { padding: var(--space-5); }
  .arch__caption { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
  .arch__caption-text { margin-left: 0; flex: 1 0 100%; }
  .code__pre { font-size: 0.75rem; padding: var(--space-4); }
}

@media (max-width: 420px) {
  /* Four-node bands stay two-up so the diagram does not become an endless column. */
  .arch__row--3 { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: var(--space-7); }
  .hero__cta .btn, .cta__actions .btn { width: 100%; }
}

/* ═══════════════════════════════ 11 · DIALOGS ═══════════════════════════════ */
/* Signing in, registering and asking for a demo are all the same object: a short conversation
   that should not cost the visitor the page they are reading. One shell serves all three.
   It is a native <dialog>, so the browser owns the focus trap, the top layer and the Esc key;
   everything visible comes from the tokens, so the box reads as part of the control plane. */

/* Registration cannot work without JavaScript, so its entry points only appear when it can. */
html:not(.js) .js-only { display: none; }

.modal {
  position: relative;
  width: min(100% - 2rem, 460px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-raised);
}

/* The one flourish: a lit rail along the top edge, the same signal the header rule gives when
   the page is in motion. Everything else in here stays quiet. */
.modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--accent) 26%, var(--accent) 46%, transparent 86%);
  opacity: 0.6;
}

.modal::backdrop {
  background: #04070ecc;
  backdrop-filter: blur(6px);
}

.modal[open] { animation: modal-rise var(--dur-base) var(--ease-out) both; }
.modal[open]::backdrop { animation: modal-veil var(--dur-base) var(--ease-out) both; }

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}
@keyframes modal-veil {
  from { opacity: 0; }
}

.modal__panel {
  max-height: min(88svh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-6) var(--space-6) var(--space-5);
  /* A system-coloured scrollbar in a graphite panel reads as somebody else's window. */
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.modal__close:hover { color: var(--text-primary); background: var(--surface-card); }

.modal__eyebrow { margin-bottom: var(--space-3); }

.modal__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  padding-right: var(--space-6);
}

.modal__lede {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.modal__foot {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* A button that reads as a link: it changes what this dialog shows, it does not navigate. */
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: inherit;
  font-weight: var(--weight-medium);
  cursor: pointer;
  text-underline-offset: 3px;
}
.link:hover { text-decoration: underline; }

/* --- forms --- */
.form { margin-top: var(--space-5); }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--space-4); }

.field__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.field__input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-inset);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field__input::placeholder { color: var(--text-faint); }
.field__input:hover { border-color: var(--border-strong); }
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field__input[aria-invalid="true"] { border-color: var(--status-critical); }
.field__input:disabled { opacity: 0.6; cursor: not-allowed; }

.field__input--area {
  min-height: 104px;
  resize: vertical;
}

.field__hint { font-size: var(--text-xs); color: var(--text-faint); }

/* Red is the second signal here, never the first: the sentence says what is wrong. */
.field__error { font-size: var(--text-xs); color: var(--status-critical); }

.form__alert {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #f8717140;
  border-radius: var(--radius-md);
  background: var(--status-critical-bg);
  color: #fca5a5;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.form__actions { margin-top: var(--space-5); }

.form__note {
  margin-top: var(--space-3);
  color: var(--text-faint);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; background: var(--accent); }

/* --- registration outcome: the account exists, the cabinet does not run yet --- */
.status--pending {
  color: var(--status-warning);
  border-color: #fbbf2440;
  background: var(--status-warning-bg);
}

.modal__done { margin-top: var(--space-5); }
.modal__done:focus { outline: none; }

.modal__done-title {
  margin-top: var(--space-4);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
}

.modal__done-body {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* A real sequence — created, reviewed, told — so the numbers carry information. */
.modal__steps {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.modal__step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}
.modal__step-n {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .modal { width: min(100% - 1.5rem, 460px); }
  .modal__panel { padding: var(--space-6) var(--space-5) var(--space-5); }
}
