/* Altilia — site stylesheet
   Palette: Altilia brand slate + teal on paper. One type family: Instrument Sans. */

:root {
  --paper: #ffffff;
  --mist: #f2f5f6;
  --mist-2: #e9eef0;
  --ink: #151b21;
  --slate: #202830;
  --slate-2: #2a343e;
  --steel: #5a6570;
  --line: #e1e7ea;
  --line-dark: rgba(255, 255, 255, 0.12);
  --teal: #14e4cc;
  --teal-ink: #0c8f86;
  --teal-soft: rgba(20, 228, 204, 0.16);
  --amber: #f2b234;

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --pill: 999px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --section-s: clamp(48px, 7vw, 88px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

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

::selection {
  background: var(--teal-soft);
}

/* ---------- Type scale ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.display-m {
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2,
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h3,
.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h4,
.h4 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--steel);
  max-width: 34em;
}

.lead strong {
  color: var(--ink);
  font-weight: 500;
}

.muted {
  color: var(--steel);
}

.small {
  font-size: 0.925rem;
}

.measure {
  max-width: 66ch;
}

.ink-link {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.ink-link:hover {
  border-color: var(--ink);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container.wide {
  max-width: 1440px;
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section.tight {
  padding-top: var(--section-s);
  padding-bottom: var(--section-s);
}

.section.mist {
  background: var(--mist);
}

.section.dark {
  background: var(--slate);
  color: #fff;
}

.section.dark .lead,
.section.dark .muted {
  color: rgba(255, 255, 255, 0.68);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head.split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
}

.section-head h2 {
  max-width: 20ch;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack > * + * {
  margin-top: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--pill);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--slate-2);
  border-color: var(--slate-2);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(21, 27, 33, 0.28);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(21, 27, 33, 0.04);
}

.btn-teal {
  background: var(--teal);
  color: var(--slate);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: #2ff0da;
}

.dark .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.dark .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dark .btn-primary {
  background: #fff;
  color: var(--slate);
  border-color: #fff;
}

.dark .btn-primary:hover {
  background: #eef2f4;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.925rem;
}

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.875rem;
  text-align: center;
  padding: 9px var(--gutter);
}

.announce a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
  margin-left: 8px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.nav.scrolled {
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
  flex: none;
  min-width: 90px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.nav-links > li {
  position: relative;
  flex: none;
}

.nav-links .chev {
  flex: none;
}

.nav-links a,
.nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 9px;
  white-space: nowrap;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links > li.open > button,
.nav-links a.active {
  background: var(--mist);
}

.nav-links a.active {
  color: var(--teal-ink);
}

.nav-links .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.nav-links > li.open .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 10px;
  box-shadow: 0 24px 60px -30px rgba(21, 27, 33, 0.35);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav-links > li.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.dropdown a .t {
  display: block;
  font-weight: 500;
}

.dropdown a .d {
  display: block;
  font-size: 0.875rem;
  color: var(--steel);
  font-weight: 400;
  margin-top: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s, top 0.25s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  margin-top: 28px;
}

.hero-actions {
  margin-top: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
}

.hero-aside {
  color: var(--steel);
  max-width: 34ch;
  font-size: 1.05rem;
  padding-bottom: 8px;
}

.hero-aside strong {
  color: var(--ink);
  font-weight: 500;
}

.sub-hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.sub-hero h1 {
  max-width: 17ch;
}

/* ---------- OS window (hero visual) ---------- */

.os-window {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--slate);
  border-radius: var(--radius-l);
  padding: 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 60px 120px -60px rgba(21, 27, 33, 0.55);
}

.os-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 80% 0%, rgba(20, 228, 204, 0.18), transparent 70%);
  pointer-events: none;
}

.os-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.os-dots {
  display: flex;
  gap: 7px;
}

.os-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}

.os-dots i:first-child {
  background: var(--teal);
}

.os-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.os-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20, 228, 204, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 228, 204, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(20, 228, 204, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(20, 228, 204, 0);
  }
}

.os-screen {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.os-screen img {
  width: 100%;
  height: auto;
}

.os-dock {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 6px;
  position: relative;
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.dock-item .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--slate);
  background: var(--teal);
}

.dock-item .ic.w {
  background: #9fd8ff;
}

.dock-item .ic.s {
  background: #b3f0b1;
}

.dock-item .ic.p {
  background: #ffcf8a;
}

.dock-item .ic.x {
  background: var(--teal);
}

/* ---------- Marquees ---------- */

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--mq-gap, 64px);
  width: max-content;
  animation: marquee var(--mq-dur, 48s) linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track > * {
  flex: 0 0 auto;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - var(--mq-gap, 64px) / 2));
  }
}

.logo-strip {
  padding: 40px 0 56px;
}

.logo-strip .label {
  text-align: center;
  color: var(--steel);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.logo-strip img {
  height: 34px;
  width: auto;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.logo-strip img:hover {
  filter: none;
  opacity: 1;
}

.logo-strip img.tall {
  height: 44px;
}

.proof-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  --mq-gap: 48px;
  --mq-dur: 70s;
}

.proof-ticker a {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}

.proof-ticker a .arr {
  color: var(--teal-ink);
  font-size: 0.9em;
}

.proof-ticker a:hover {
  color: var(--teal-ink);
}

.chip-marquee {
  --mq-gap: 12px;
  --mq-dur: 36s;
}

.chip-marquee.reverse .marquee-track {
  animation-direction: reverse;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Statement / OS section ---------- */

.statement {
  font-size: clamp(1.6rem, 3.3vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 24ch;
}

.statement em {
  font-style: normal;
  color: var(--teal);
}

.os-layers {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.layer {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.layer h3 {
  font-size: 1.15rem;
}

.layer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}

.layer .tag {
  color: var(--teal);
  font-size: 0.85rem;
}

.layer.full {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.layer.full h3 {
  margin-right: 12px;
}

/* ---------- Product triad ---------- */

.triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  border-radius: var(--radius-l);
  background: var(--mist);
  padding: 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.product-card:hover {
  background: var(--mist-2);
}

.product-card .kicker {
  color: var(--teal-ink);
  font-weight: 500;
}

.product-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  max-width: 14ch;
}

.product-card p {
  color: var(--steel);
}

.product-card .visual {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 16 / 9;
}

.product-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.product-card .visual.dark {
  background: var(--slate);
  border-color: transparent;
}

.product-card .link {
  font-weight: 500;
  border-bottom: 1px solid rgba(21, 27, 33, 0.25);
  align-self: flex-start;
}

.product-card:hover .link {
  border-color: var(--ink);
}

/* mini app tiles inside product card */
.app-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  height: 100%;
  align-content: center;
}

.app-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate);
}

/* ---------- Metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.metric {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}

.metric:last-child {
  border-right: 0;
  margin-right: 0;
}

.metric .n {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric .l {
  margin-top: 10px;
  font-weight: 500;
}

.metric .s {
  color: var(--steel);
  font-size: 0.9rem;
  margin-top: 4px;
}

.dark .metrics {
  border-color: var(--line-dark);
}

.dark .metric {
  border-color: var(--line-dark);
}

.dark .metric .s {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Industry tabs ---------- */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab {
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tab:hover {
  border-color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.industry-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.industry-panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  max-width: 18ch;
}

.industry-panel .lead {
  font-size: 1.1rem;
  margin-top: 16px;
}

.agent-list {
  display: grid;
  gap: 10px;
}

.agent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.agent-row:hover {
  border-color: var(--ink);
}

.agent-row .t {
  font-weight: 500;
}

.agent-row .d {
  color: var(--steel);
  font-size: 0.925rem;
  margin-top: 2px;
}

.agent-row .m {
  text-align: right;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  max-width: 180px;
}

.agent-row .m span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------- Agent catalog ---------- */

.filters {
  position: sticky;
  top: 72px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

@media (max-width: 960px) {
  .filters-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

.filters-row::-webkit-scrollbar {
  display: none;
}

.filters-row .tab {
  flex: 0 0 auto;
}

.filters-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--steel);
}

.cap-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cap-filters button {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}

.cap-filters button[aria-pressed="true"] {
  background: var(--teal-soft);
  border-color: var(--teal-ink);
  color: var(--teal-ink);
}

.industry-section {
  padding-top: var(--section-s);
  padding-bottom: var(--section-s);
  border-bottom: 1px solid var(--line);
}

.industry-section:last-child {
  border-bottom: 0;
}

.industry-section .ind-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.industry-section .ind-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.industry-section .ind-head p {
  color: var(--steel);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  min-height: 250px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.agent-card:hover {
  border-color: var(--ink);
}

.agent-card .caps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cap {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--mist);
  color: var(--steel);
}

.cap.teal {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.agent-card h3 {
  font-size: 1.2rem;
  margin-top: 4px;
}

.agent-card p {
  color: var(--steel);
  font-size: 0.95rem;
}

.agent-card .stat {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.agent-card .stat b {
  font-weight: 600;
  color: var(--ink);
}

.agent-card .stat span {
  color: var(--steel);
}

.agent-card.hidden {
  display: none;
}

.empty-note {
  display: none;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--steel);
}

/* ---------- Agent detail ---------- */

.agent-hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.crumbs {
  display: flex;
  gap: 8px;
  color: var(--steel);
  font-size: 0.9rem;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .sep {
  opacity: 0.5;
}

.agent-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.agent-hero .lead {
  margin-top: 20px;
}

.agent-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.detail-block + .detail-block {
  margin-top: 40px;
}

.detail-block h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.detail-block ul {
  display: grid;
  gap: 8px;
}

.detail-block li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.facts {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  background: var(--mist);
}

.facts dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.facts dt {
  font-size: 0.85rem;
  color: var(--steel);
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 500;
}

.facts dd .n {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.facts .apps-in {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.facts .apps-in a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.facts .apps-in a:hover {
  border-color: var(--ink);
}

.facts .apps-in .ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--slate);
}

.ic.w {
  background: #9fd8ff;
}

.ic.s {
  background: #b3f0b1;
}

.ic.p {
  background: #ffcf8a;
}

.ic.x {
  background: var(--teal);
}

/* ---------- Apps page ---------- */

.app-hero-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}

.app-tile-lg {
  border-radius: var(--radius-l);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--slate);
  transition: transform 0.25s var(--ease);
}

.app-tile-lg:hover {
  transform: translateY(-4px);
}

.app-tile-lg .glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(32, 40, 48, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.app-tile-lg h3 {
  font-size: 1.5rem;
  margin-top: 40px;
}

.app-tile-lg p {
  margin-top: 6px;
  opacity: 0.8;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: var(--section-s) 0;
  border-top: 1px solid var(--line);
}

.app-section:nth-child(even) .app-copy {
  order: 2;
}

.app-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.app-visual .stack2 {
  display: grid;
  gap: 12px;
}

.app-copy .app-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.app-copy .app-id .glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--slate);
}

.app-copy .app-id span {
  font-weight: 500;
}

.app-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.app-copy .lead {
  font-size: 1.1rem;
  margin-top: 16px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-top: 2px;
  flex: none;
}

.feature-list li i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.feature-list b {
  font-weight: 500;
}

.feature-list span {
  display: block;
  color: var(--steel);
  font-size: 0.95rem;
}

.app-visual {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--slate);
  padding: 12px;
}

.app-visual img {
  border-radius: 16px;
  width: 100%;
}

.app-visual .fake {
  border-radius: 16px;
  background: #fff;
  aspect-ratio: 4 / 3;
  padding: 22px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-agents {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.app-agents .l {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 10px;
}

.app-agents .row a {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
}

.app-agents .row a:hover {
  border-color: var(--ink);
}

/* Fake doc/sheet/slide renderings for apps */
.doc-lines {
  display: grid;
  gap: 10px;
}

.doc-lines i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--mist-2);
}

.doc-lines i.h {
  height: 16px;
  width: 60%;
  background: var(--ink);
}

.doc-lines i.hl {
  background: var(--teal-soft);
  outline: 1px solid var(--teal-ink);
}

.sheet {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.8rem;
}

.sheet div {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.sheet div:nth-child(4n) {
  border-right: 0;
}

.sheet .hd {
  background: var(--mist);
  font-weight: 500;
}

.sheet .ok {
  color: var(--teal-ink);
  font-weight: 500;
}

.sheet .warn {
  color: #b7791f;
  font-weight: 500;
}

.slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slides div {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 5px;
  align-content: start;
}

.slides i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--mist-2);
}

.slides i.h {
  background: var(--ink);
  width: 70%;
  height: 7px;
}

.slides i.bar {
  height: 22px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-ink);
}

.agent-chat {
  border-radius: 12px;
  background: var(--mist);
  padding: 12px 14px;
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
}

.agent-chat b {
  color: var(--teal-ink);
  font-weight: 500;
}

/* ---------- Feature rows (platform) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pillar {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
  order: 2;
}

.pillar p {
  order: 3;
}

.pillar h3 {
  font-size: 1.3rem;
}

.pillar p {
  color: var(--steel);
  font-size: 0.975rem;
}

.dark .pillars,
.dark .pillar {
  border-color: var(--line-dark);
}

.dark .pillar p {
  color: rgba(255, 255, 255, 0.66);
}

.dark .pillar .k {
  color: var(--teal);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--slate);
  padding: 12px;
}

.frame img {
  border-radius: 16px;
}

.frame.light {
  background: var(--mist);
}

/* Architecture diagram */
.arch {
  display: grid;
  gap: 10px;
  color: #fff;
}

.arch .band {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.arch .band .n {
  font-weight: 500;
  font-size: 0.95rem;
}

.arch .band .n small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-top: 2px;
}

.arch .items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch .items span {
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

.arch .band.core {
  background: rgba(20, 228, 204, 0.08);
  border-color: rgba(20, 228, 204, 0.35);
}

.arch .band.core .items span {
  background: rgba(20, 228, 204, 0.14);
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-weight: 500;
  color: var(--steel);
  font-size: 0.875rem;
}

.compare td:first-child {
  font-weight: 500;
}

.compare .y {
  color: var(--teal-ink);
  font-weight: 600;
}

.compare .n {
  color: var(--steel);
}

.compare .p {
  color: #b7791f;
}

.compare td small {
  display: block;
  color: var(--steel);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 2px;
}

.compare thead th:nth-child(2) {
  color: var(--ink);
  font-weight: 600;
}

.compare td:nth-child(2) {
  background: var(--mist);
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

/* Steps (true sequence: lending pipeline) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 26px 24px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  color: var(--teal-ink);
  font-weight: 600;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: var(--steel);
  font-size: 0.95rem;
}

.step .save {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Quote ---------- */

.quote {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 30ch;
}

.quote-by {
  margin-top: 24px;
  color: var(--steel);
}

.dark .quote-by {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

.person {
  display: grid;
  gap: 12px;
}

.person img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
  background: var(--mist);
}

.person .n {
  font-weight: 500;
}

.person .r {
  color: var(--steel);
  font-size: 0.925rem;
}

.person .b {
  color: var(--steel);
  font-size: 0.875rem;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.15rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--steel);
  transition: transform 0.2s;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .a {
  padding: 0 0 24px;
  color: var(--steel);
  max-width: 70ch;
}

/* ---------- Blog ---------- */

.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.blog-featured:hover {
  border-color: var(--slate);
}

.blog-featured img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.blog-featured .copy {
  padding: 16px 20px 16px 0;
  display: grid;
  gap: 16px;
  align-content: center;
}

.blog-featured h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.blog-featured p {
  color: var(--steel);
  font-size: 1.05rem;
}

.blog-featured .ink-link {
  justify-self: start;
}

.blog-featured + .blog-cats {
  margin-top: 48px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--steel);
  font-size: 0.875rem;
}

.post-meta .cat {
  color: var(--teal-ink);
  font-weight: 500;
}

.post-meta .dot::before {
  content: "·";
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.post:hover {
  border-color: var(--slate);
}

.post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.post .copy {
  padding: 22px 24px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.post h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.post p {
  color: var(--steel);
  font-size: 0.95rem;
}

.post .more {
  color: var(--teal-ink);
  font-weight: 500;
  font-size: 0.925rem;
  margin-top: auto;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* article */
.article-head {
  padding: 56px 0 28px;
}

.article-head .kicker {
  color: var(--teal-ink);
  font-weight: 500;
  font-size: 0.925rem;
  margin-bottom: 14px;
}

.article-head h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 20ch;
}

.article-head .post-meta {
  margin-top: 22px;
  font-size: 0.95rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-l);
  display: block;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: 64px;
  justify-content: space-between;
  padding: 48px 0 24px;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-body > * + * {
  margin-top: 1.25em;
}

.article-body h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2em;
}

.article-body p.lede {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--slate);
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
  display: grid;
  gap: 0.6em;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li::marker {
  color: var(--teal-ink);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 6px 0 6px 24px;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
}

.article-body blockquote footer {
  font-size: 0.925rem;
  color: var(--steel);
  margin-top: 12px;
  letter-spacing: 0;
}

.article-body figure {
  margin-top: 2em;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  display: block;
}

.article-body figcaption {
  font-size: 0.875rem;
  color: var(--steel);
  margin-top: 10px;
}

.article-body .box {
  background: var(--mist);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin-top: 2em;
}

.article-body .box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.article-body .box ul {
  font-size: 1rem;
  gap: 0.5em;
}

.article-body .closing {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 2.5em;
  font-weight: 600;
  font-size: 1.15rem;
}

.article-body .closing .row {
  margin-top: 16px;
}

.article-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 24px;
}

.author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.author img,
.author .ph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  background: var(--mist);
  flex: none;
}

.author .ph {
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--slate);
  filter: none;
}

.author .n {
  font-weight: 600;
}

.author .r {
  color: var(--steel);
  font-size: 0.875rem;
}

.side-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 12px;
}

.toc {
  display: grid;
  gap: 8px;
  font-size: 0.925rem;
}

.toc a {
  color: var(--slate);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.share {
  display: flex;
  gap: 8px;
}

.share button,
.share a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.share button:hover,
.share a:hover {
  border-color: var(--slate);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter form {
  display: grid;
  gap: 12px;
}

.newsletter .row-in {
  display: flex;
  gap: 10px;
}

.newsletter .row-in input {
  flex: 1;
}

a.card .ink-link,
.card > .ink-link {
  width: max-content;
  margin-top: auto;
}

/* metrics inside a half-width column */
.two-col .metrics {
  grid-template-columns: repeat(2, 1fr);
}

.two-col .metrics .n {
  font-size: 2.2rem;
}

/* ---------- Footer certification badges ---------- */

.footer-bottom .certs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom .certs img {
  width: 72px;
  height: 72px;
  display: block;
  opacity: 0.92;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.65;
}

.legal > * + * {
  margin-top: 1em;
}

.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6em;
}

.legal ol,
.legal ul {
  padding-left: 1.4em;
  display: grid;
  gap: 0.5em;
  list-style: lower-alpha;
}

.legal ul {
  list-style: disc;
}

.legal ul.plain {
  list-style: none;
  padding-left: 0;
  word-break: break-all;
}

.legal .note {
  color: var(--steel);
  font-size: 0.9rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.legal-table th {
  width: 160px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Training pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  counter-reset: pipe;
}

.pipe-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 20px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.pipe-step .n {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-ink);
  letter-spacing: 0.06em;
}

.pipe-step h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pipe-step p {
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--teal-ink);
  border-right: 1.5px solid var(--teal-ink);
  transform: rotate(45deg);
}

@media (max-width: 1100px) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipe-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipe-step::after {
    display: none;
  }
}

/* ---------- Language menu ---------- */

.lang-menu {
  position: relative;
}

.lang-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-menu > button:hover,
.lang-menu.open > button {
  border-color: var(--slate);
}

.lang-menu .dropdown {
  left: auto;
  right: 0;
  min-width: 180px;
}

.lang-menu.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.lang-menu.open .chev {
  transform: rotate(180deg);
}

.lang-menu .dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
}

.lang-menu .dropdown a.current {
  color: var(--teal-ink);
  font-weight: 500;
}

.lang-menu .dropdown a .code {
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.85rem;
  margin-top: 14px;
}

.footer-langs a.current {
  color: #fff;
  font-weight: 500;
}

/* ---------- Personal AI / Harness ---------- */

.steps.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.code-card {
  background: var(--slate);
  color: #e6ecef;
  border-radius: var(--radius-m);
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid var(--line-dark);
}

.code-card .cm {
  color: #8a97a0;
}

.code-card .kw {
  color: var(--teal);
}

.code-card pre {
  margin: 0;
  white-space: pre;
}

.code-card .title {
  font-family: inherit;
  color: #8a97a0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: #fff;
}

.tech-card .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.tech-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.tech-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tech-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--slate);
}

.tech-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.role {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
}

.role .tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.role .tag b {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.role h3 {
  font-size: 1.2rem;
}

.role p {
  color: var(--steel);
  font-size: 0.95rem;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.phases::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--slate) 0%, var(--teal) 100%);
}

.phase {
  padding-top: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.phase .n {
  color: var(--teal-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.phase h3 {
  font-size: 1.25rem;
}

.phase p {
  color: var(--steel);
  font-size: 0.95rem;
}

.phase .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.phase .tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.phase-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 12px;
}

.chips-static {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-static span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  background: #fff;
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.open-grid .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  color: #fff;
}

.open-grid .card .k {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.open-grid .card h3 {
  color: #fff;
}

.open-grid .card p {
  color: rgba(255, 255, 255, 0.7);
}

.dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dual .card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dual .card .k {
  color: var(--teal-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.dual .card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.form .f2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--steel);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--teal-ink);
  outline-offset: 0;
  border-color: transparent;
}

.form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
}

.form .check input {
  margin-top: 4px;
}

.form-note {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 500;
}

.form.sent .form-note {
  display: block;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  background: #fff;
}

.card.mist {
  background: var(--mist);
  border-color: transparent;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 228, 204, 0.14), transparent 62%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.cta-band .row {
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 40px;
  font-size: 0.925rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer .brand img {
  height: 32px;
}

.footer .tag {
  margin-top: 16px;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: #fff;
  font-size: 0.925rem;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.footer li + li {
  margin-top: 8px;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 3px;
}

.footer-mid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.6);
}

.footer-mid b {
  color: #fff;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.certs span {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Utilities ---------- */

.center {
  text-align: center;
}

.mt-1 {
  margin-top: 16px;
}

.mt-2 {
  margin-top: 32px;
}

.mt-3 {
  margin-top: 48px;
}

.mb-2 {
  margin-bottom: 32px;
}

.divider {
  height: 1px;
  background: var(--line);
}

.pad-top {
  padding-top: var(--section-s);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s var(--ease) forwards;
}

.reveal.d1 {
  animation-delay: 0.08s;
}

.reveal.d2 {
  animation-delay: 0.16s;
}

.reveal.d3 {
  animation-delay: 0.28s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-hero-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1440px) {
  .nav-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 1180px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    gap: 2px;
    max-height: calc(100vh - 72px);
    overflow: auto;
  }

  .nav.menu-open .nav-links a,
  .nav.menu-open .nav-links button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 1.05rem;
  }

  .nav.menu-open .dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    display: none;
  }

  .nav.menu-open .nav-links > li.open .dropdown {
    display: block;
  }

  .nav.menu-open .nav-toggle span {
    background: transparent;
  }

  .nav.menu-open .nav-toggle span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav.menu-open .nav-toggle span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .hero-grid,
  .section-head.split,
  .industry-panel,
  .two-col,
  .detail-grid,
  .app-section,
  .industry-section .ind-head {
    grid-template-columns: 1fr;
  }

  .app-section:nth-child(even) .app-copy {
    order: 0;
  }

  .os-layers,
  .triad,
  .agent-grid,
  .pillars,
  .steps,
  .blog-featured,
  .newsletter,
  .steps.four,
  .open-grid,
  .posts,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .facts {
    position: static;
  }

  .arch .band {
    grid-template-columns: 1fr;
  }

  .footer-mid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .article {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-side {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .blog-featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-featured .copy {
    padding: 8px 6px 10px;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter .row-in {
    flex-direction: column;
  }

  .announce {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .os-titlebar > div:nth-child(2) {
    display: none;
  }

  .os-layers,
  .triad,
  .agent-grid,
  .pillars,
  .steps,
  .posts,
  .grid-2,
  .grid-3,
  .grid-4,
  .app-hero-tiles,
  .team-grid,
  .footer-top,
  .form .f2 {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .os-dock {
    flex-wrap: wrap;
  }

  .agent-row {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .filters {
    top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .os-live::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Book a demo: Calendly inline widget */
.calendly-card {
  padding: 24px 16px 8px;
}
.calendly-intro {
  margin: 0 16px 8px;
  color: var(--steel);
  font-size: 0.95rem;
}
.calendly-inline-widget {
  width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
}
@media (max-width: 720px) {
  .calendly-inline-widget {
    height: 1000px !important;
  }
}
.calendly-fallback {
  margin: 4px 16px 12px;
  color: var(--steel);
  font-size: 0.9rem;
  text-align: center;
}

/* Newsletter form: Mailchimp states */
.form .hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: rgba(242, 178, 52, 0.18);
  color: #7a5200;
  font-weight: 500;
}
.form.error .form-error {
  display: block;
}

.form.sent.already .form-note:not(.form-note-already) { display: none; }
.form.sent:not(.already) .form-note-already { display: none; }
