/* ==========================================================================
   Tether — Landing Page
   Values mirror the Figma file "Slicing" (node 48:3033), 1440px frame.
   ========================================================================== */

:root {
  --n0: #ffffff;
  --n50: #fafafa;
  --n100: #f5f5f5;
  --n200: #e5e5e5;
  --n400: #a3a3a3;
  --n500: #737373;
  --n600: #525252;
  --n900: #262626;
  --n950: #0a0a0a;
  --slate-200: #cbd5e1;
  --blue: #0060d5;
  --blue-border: #0356bb;
  --card-stroke: #f3f3f3;
  --text-title: #191919;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 80px;
  --frame: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--n0);
  color: var(--n950);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: none; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
b, strong { font-weight: inherit; }

.container {
  position: relative;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Shared ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.48px;
  color: var(--blue);
}
.eyebrow--light { color: var(--n0); }

.btn-group { display: flex; gap: 12px; align-items: center; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
/* hover wipe */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn--dark { background: var(--n950); border-color: var(--n950); color: var(--n0); }
.btn--dark::before { background: var(--blue); }
.btn--dark:hover { border-color: var(--blue); }
.btn--light { background: var(--n100); border-color: var(--n200); color: var(--n950); }
.btn--light::before { background: var(--n950); }
.btn--light:hover { color: var(--n0); border-color: var(--n950); }
.btn--sm { height: 40px; padding: 0 15px; font-size: 14px; letter-spacing: -0.14px; }

.brand { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; }
.brand img { width: 26.6667px; height: 32px; }
.brand span { font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.6px; color: #000; }
.brand--light span { color: var(--n0); }

.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 3px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 0.6px var(--bd, transparent);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.12px;
  white-space: nowrap;
}
.badge--green { background: rgba(18, 183, 106, 0.08); --bd: rgba(18, 183, 106, 0.2); color: #12b76a; }
.badge--blue { background: rgba(0, 96, 213, 0.08); --bd: rgba(0, 96, 213, 0.2); color: var(--blue); }
.badge--amber { background: rgba(220, 143, 0, 0.08); --bd: rgba(220, 143, 0, 0.2); color: #dc8f00; }
.badge--red { background: rgba(240, 68, 56, 0.08); --bd: rgba(240, 68, 56, 0.2); color: #f04438; }
.badge--muted { background: var(--n50); --bd: var(--n100); color: var(--n400); }

.avatar { position: relative; flex-shrink: 0; border-radius: 100px; overflow: hidden; }
.avatar--32 { width: 32px; height: 32px; background: #1a7ff9; }
.avatar--16 { width: 16px; height: 16px; }
.avatar--photo img { position: absolute; height: 134.12%; width: 197%; left: -30.1%; top: -10.03%; }

/* hidden until the hero intro timeline has set its start values */
.js-anim .hero [data-hero-intro],
.js-anim .hero__title,
.js-anim .hero__hands,
.js-anim .agent-card { visibility: hidden; }

/* SplitText line masks */
.split-line { padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 1041px;
  overflow: hidden;
}

.announce {
  position: relative;
  z-index: 3;
  height: 34px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 1px;
  color: var(--n0);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.14px;
  white-space: nowrap;
}
.announce__link { display: flex; flex-direction: column; font-weight: 500; }
.announce__link img { width: 100%; height: 1px; margin-top: -1px; transform-origin: left; transition: transform 0.4s var(--ease-out); }
.announce__link:hover img { transform: scaleX(0.3); }

.nav {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__links {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.caret { display: flex; padding: 2px; }
.caret img { width: 12px; height: 12px; }

.hero__visual {
  position: absolute;
  top: 238px;
  left: 50%;
  width: 1614px;
  height: 1086px;
  margin-left: -807px;
  pointer-events: none;
  -webkit-mask-image: url("../assets/img/hero-mask.svg");
  mask-image: url("../assets/img/hero-mask.svg");
  -webkit-mask-size: 1673px 1672px;
  mask-size: 1673px 1672px;
  -webkit-mask-position: -29px -319px;
  mask-position: -29px -319px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero__hands { position: absolute; inset: 0; }
.hero__hands img { width: 100%; height: 100%; object-fit: cover; }

.hero__content {
  z-index: 2;
  max-width: calc(826px + var(--gutter) * 2);
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.hero__text { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }
.hero__heading { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.hero__title {
  font-weight: 400;
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -1.56px;
  color: var(--n950);
}
.hero__lead {
  max-width: 622px;
  color: var(--n600);
  font-size: 16px;
  line-height: 1.5;
}

/* Agent card */
.agent-card {
  position: absolute;
  z-index: 2;
  top: 584px;
  left: 1px;
  right: 0;
  margin: 0 auto;
  width: 347px;
  background: #fffffe;
  border: 1px solid var(--n200);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.agent-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--card-stroke);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--n950);
}
.live { display: flex; align-items: center; gap: 4px; color: var(--text-title); }
.live img { width: 6px; height: 6px; }
.live { position: relative; }
.live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #12b76a;
  animation: live-ping 1.8s var(--ease-out) infinite;
}
@keyframes live-ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}

.agent-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}
.agent-card__stack { display: flex; flex-direction: column; gap: 16px; padding: 0 12px; }

.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg--user { justify-content: flex-end; }
.msg__bubble {
  width: 238px;
  padding: 8px 10px;
  background: var(--n50);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--n100), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-title);
}
.msg__agent { width: 32px; height: 32px; flex-shrink: 0; }

.tool-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  background: var(--n900);
  border-radius: 6px;
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.08);
}
.tool-box__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: var(--n0);
  white-space: nowrap;
}
.tool-box__row--fixed { width: 202px; }

.agent-card__note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: var(--n400);
}

.approval-box {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--n900);
  border-radius: 6px;
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  color: var(--n0);
  font-family: var(--font-mono);
}
.approval-box__info { display: flex; gap: 8px; align-items: flex-start; }
.approval-box__info img { width: 20px; height: 20px; }
.approval-box__title { width: 190px; font-size: 12px; line-height: 1.3; }
.approval-box__meta { width: 190px; font-size: 11px; line-height: 12px; opacity: 0.6; }
.approval-box__btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--n0);
  border-radius: 4px;
  color: var(--n950);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: -0.11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.agent-card__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--n0);
  box-shadow: inset 0 1px 0 var(--n200);
}
.agent-card__input p {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: #aaa;
}
.send-btn {
  display: flex;
  padding: 5px;
  background: var(--blue);
  border-radius: 4px;
  box-shadow: inset 0 0 0 0.8px var(--blue-border), 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 1px rgba(255, 255, 255, 0.04);
}
.send-btn > span { display: flex; padding: 2px; }
.send-btn img { width: 12px; height: 12px; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.hiw { background: var(--n950); color: var(--n0); }
.hiw__inner { height: 864px; }

.hiw__head {
  position: absolute;
  top: 104px;
  left: var(--gutter);
  width: 529px;
  height: 232px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hiw__head-text { display: flex; flex-direction: column; gap: 16px; height: 188px; }
.hiw__title {
  flex: 1 0 0;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.44px;
}
.hiw__lead { width: 372px; color: var(--n400); font-size: 16px; line-height: 1.5; }

.hiw__stage {
  position: absolute;
  top: 160px;
  right: var(--gutter);
  width: 737px;
  height: 600px;
  overflow: hidden;
}
.hiw__stage-fit { position: absolute; inset: 0; }
.hiw__art { position: absolute; inset: 0; visibility: hidden; }
.hiw__art.is-active { visibility: visible; }
.hiw__art img { position: absolute; }
.hiw__art--connect img {
  width: 800px;
  height: 537.449px;
  left: -19px;
  top: calc(50% - 0.28px);
  margin-top: -268.72px;
}
/* slides 2 & 3 live in a 627px frame that starts 110px into the stage */
.hiw__art--rules,
.hiw__art--act { left: 110px; width: 627px; overflow: hidden; }
.hiw__art--rules img {
  width: 732.683px;
  height: 493.021px;
  left: calc(50% + 6.5px - 366.34px);
  top: calc(50% - 0.49px - 246.51px);
  object-fit: cover;
}
.hiw__art--act img {
  width: 830px;
  height: 559px;
  left: calc(50% - 0.5px - 415px);
  top: calc(50% + 0.5px - 279.5px);
  object-fit: cover;
}

.steps {
  position: absolute;
  top: 564px;
  left: var(--gutter);
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.steps__rail { position: relative; width: 4px; flex-shrink: 0; }
.steps__track { position: absolute; left: 1px; top: 0; width: 2px; height: 100%; background: var(--n0); opacity: 0.12; }
.steps__indicator { position: absolute; left: 0; top: 0; width: 4px; height: 80px; background: var(--n0); will-change: transform; }
.steps__list { width: 513px; display: flex; flex-direction: column; gap: 32px; }
.step__title {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: var(--n0);
  white-space: nowrap;
  transition: opacity 0.3s;
}
.step__title:hover { opacity: 0.8; }
.step__num { font-family: var(--font-mono); color: var(--n400); }
.step__desc { overflow: hidden; }
.step:not(.is-active) .step__desc { height: 0; }
.step__desc p {
  width: 364px;
  max-width: 100%;
  padding-top: 12px;
  color: var(--n400);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features { padding: 104px 0; }

.features__header { display: flex; align-items: flex-end; }
.features__eyebrow { flex: 0 0 326px; align-self: flex-start; margin-top: 7px; white-space: nowrap; }
.features__intro { width: 627px; display: flex; flex-direction: column; gap: 16px; }
.features__title { width: 609px; max-width: 100%; font-weight: 400; font-size: 48px; line-height: 1.2; letter-spacing: -1.44px; }
.features__lead { width: 354px; max-width: 100%; color: var(--n600); }
.features__cta { margin-left: auto; }

.features__tabbar {
  position: relative;
  z-index: 5;
  width: 955px;
  margin: 64px 0 0 325px;
  padding-left: 6px;
  background: var(--n0);
}
.tabs { position: relative; display: inline-flex; gap: 24px; border-bottom: 1px solid var(--slate-200); }
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: var(--n500);
  white-space: nowrap;
  transition: color 0.3s;
}
.tab img { width: 20px; height: 20px; transition: filter 0.3s; }
.tab.is-active { color: var(--n950); font-weight: 500; }
/* icons ship in their own colour: shield is dark, the rest are #737373 */
.tab:not(.is-active) img[src*="tab-shield"] { filter: invert(45%); }
.tab.is-active img:not([src*="tab-shield"]) { filter: brightness(0.088); }
.tab:hover { color: var(--n950); }
.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 1px;
  height: 1px;
  background: var(--n950);
  transform-origin: left;
}

.features__rows {
  width: 955px;
  margin: 64px 0 0 325px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 52px;
}
.feature-divider { width: 100%; height: 1px; margin-bottom: -1px; transform-origin: left; }

.feature { display: flex; gap: 24px; align-items: flex-end; width: 100%; }
.feature__visual {
  position: relative;
  flex-shrink: 0;
  width: 520px;
  height: 480px;
  background: var(--n950);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.feature__visual--1 { width: 519px; }
.feature__bg { position: absolute; left: 0; }
.feature__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.feature__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.feature__visual--1 .feature__bg { width: 1152px; height: 1712px; top: calc(50% - 20px - 856px); }
.feature__visual--2 .feature__bg { width: 1288px; height: 1918px; top: calc(50% - 20px - 959px); }
.feature__visual--3 .feature__bg { width: 1157px; height: 1724px; top: -622px; }

.feature__text { width: 411px; flex-shrink: 0; display: flex; flex-direction: column; gap: 48px; }
.feature__copy { display: flex; flex-direction: column; gap: 16px; }
.feature__title {
  width: var(--w, 335px);
  max-width: 100%;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.96px;
}
.feature__copy p { color: var(--n600); }

.spec-list { display: flex; flex-direction: column; gap: 12px; }
.spec-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.14px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--n600);
}
.spec-list li span:first-child { color: var(--n400); }
.spec-list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: url("../assets/icons/line-list.svg") no-repeat 0 0 / 100% 1px;
  transform-origin: left;
  transform: scaleX(var(--line, 1));
}
.spec-list li span:last-child { transition: transform 0.4s var(--ease-out), color 0.3s; }
.spec-list li:hover span:last-child { transform: translateX(-6px); color: var(--n950); }

/* ---------- Mini cards (built at 1x, zoomed to the Figma scale) ---------- */
.mini-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #fffffe;
  border: 1px solid var(--n200);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: var(--font-mono);
}
.mini-card--approvals { zoom: 1.328125; }
.mini-card--policies { zoom: 1.137; }
.mini-card--audit { zoom: 1.25; }

.mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--card-stroke);
  font-size: 14px;
  line-height: 1.4;
  color: var(--n950);
  white-space: nowrap;
}
.mini-card--audit .mini-card__head { color: var(--text-title); }
.mini-card__head span { color: var(--n500); }
.mini-card__dots { width: 20px; height: 20px; }
.mini-card__body { padding: 12px 0; box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.04); }
.mini-card__inner { display: flex; flex-direction: column; gap: 16px; padding: 0 12px; }

.mc-sender { display: flex; align-items: center; gap: 8px; }
.mc-avatar { width: 24px; height: 24px; }
.mc-sender__name { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.mc-sender__name strong { font-family: var(--font-sans); font-weight: 600; font-size: 14px; line-height: 1.3; letter-spacing: -0.42px; color: var(--n950); }
.mc-sender__name span { font-size: 12px; line-height: 1.35; letter-spacing: -0.5px; color: var(--n400); }
.mc-sub { font-size: 12px; line-height: 1.35; color: var(--n400); }

.mc-dark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  background: var(--n900);
  border-radius: 6px;
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  color: var(--n0);
}
.mc-dark--refund { gap: 16px; align-items: flex-start; }
.mc-refund__title { display: flex; align-items: center; gap: 4px; }
.mc-refund__title img { width: 16px; height: 16px; }
.mc-refund__title p { width: 190px; font-weight: 500; font-size: 12px; line-height: 1.3; }
.mc-refund__meta { display: flex; flex-direction: column; gap: 8px; font-size: 11px; line-height: 12px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.mc-refund__meta b { color: var(--n0); }

.mc-actions { display: flex; gap: 8px; }
.mc-btn {
  position: relative;
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 0.6px var(--bd, transparent), 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 1px rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.mc-btn__icon { display: flex; padding: 2px; }
.mc-btn__icon img { width: 12px; height: 12px; }
.mc-btn--reject { background: rgba(250, 0, 0, 0.03); --bd: rgba(250, 0, 0, 0.08); color: #fa0000; }
.mc-btn--approve { gap: 4px; background: var(--blue); --bd: var(--blue-border); color: var(--n0); }
.mc-btn--add { flex: none; }
.mc-add { display: flex; }

.mc-dark--rules { gap: 12px; }
.mc-rule { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mc-rule--last { width: 253px; }
.mc-rule__info { display: flex; gap: 7.04px; align-items: flex-start; }
.mc-rule__icon { display: flex; padding: 1.76px 0; }
.mc-rule__icon img { width: 12.31px; height: 12.31px; }
.mc-rule__info p { width: 190px; font-size: 12px; line-height: 1.3; color: var(--n0); }
.mc-rule__info p + p { font-size: 11px; color: var(--n500); }
.mc-rule-line { width: 100%; height: 1px; margin-bottom: -1px; }

.segmented { display: flex; gap: 2px; padding: 2px; background: #f0f0f0; border-radius: 5px; }
.segmented__item {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--n500);
  white-space: nowrap;
}
.segmented__item.is-active {
  background: var(--n0);
  border-radius: 4px;
  font-weight: 500;
  color: var(--n950);
  box-shadow: 0 0 0 0.6px #ececec, 0 2px 2px rgba(0, 0, 0, 0.01), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mc-dark--log { position: relative; gap: 12px; align-items: flex-start; }
.log-line {
  position: absolute;
  left: 12.6px;
  top: calc(50% - 16.8px - 60.4px);
  width: 1px;
  height: 120.8px;
  transform-origin: top;
}
.log-line img { position: absolute; left: 0; top: 0; width: 120.8px; height: 1px; transform-origin: 0 0; transform: rotate(90deg); }
.log-entry { position: relative; display: flex; gap: 8px; align-items: flex-start; }
.log-entry__dot { width: 6px; height: 14px; }
.log-entry__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.log-muted { width: 190px; font-size: 11px; color: var(--n500); }
.log-entry__text .log-muted:last-child { width: auto; white-space: nowrap; }
.log-main { font-size: 12px; color: var(--n0); white-space: nowrap; }
.log-entry > .log-entry__text > .log-main { width: 190px; }
.log-dim { font-size: 12px; color: var(--n0); opacity: 0.7; white-space: nowrap; }
.log-approved { display: flex; gap: 4px; align-items: flex-start; }
.log-blocked { display: flex; gap: 2px; align-items: center; }
.badge--log { padding: 0 4px; box-shadow: inset 0 0 0 0.68px var(--bd); border-radius: 4.55px; font-size: 12px; line-height: 15.92px; }

.mini-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #fffffe;
  border-top: 1px solid var(--card-stroke);
}
.mini-card__foot p { font-size: 12px; line-height: 1.35; color: var(--n900); white-space: nowrap; }
.mc-view {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--n100);
  border-radius: 4px;
  box-shadow: inset 0 0 0 0.6px var(--n200), 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  color: var(--n950);
  white-space: nowrap;
}
.mc-view__icon { display: flex; padding: 2px; }
.mc-view__icon img { width: 12px; height: 12px; }

/* ==========================================================================
   SECURITY
   ========================================================================== */
.security { background: var(--n950); color: var(--n0); padding: 104px 0; }
.security__head {
  width: 627px;
  max-width: 100%;
  height: 232px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.security__head .eyebrow { width: 100%; }
.security__head-text { width: 100%; height: 188px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.security__title {
  width: 609px;
  max-width: 100%;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -1.56px;
}
.security__lead { width: 415px; max-width: 100%; color: var(--n400); }

.diagram-fit { position: relative; margin-top: 140px; height: calc(304.212px * var(--fit, 1)); }
.diagram {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1280px;
  height: 304.212px;
  margin-left: -640px;
  transform: scale(var(--fit, 1));
  transform-origin: top center;
}
.diagram__group { position: absolute; inset: 0; }
.loop { position: absolute; }
.loop img { position: absolute; }
.loop--a { top: 0.03px; width: 287.5px; height: 297.283px; }
.loop--a img { inset: -0.17% -0.12% -0.17% -0.17%; width: calc(100% + 0.29%); height: calc(100% + 0.34%); }
.loop--b { top: 0; width: 86.5px; height: 304.212px; }
.loop--b img { inset: -0.16% -0.55% -0.16% -0.58%; width: calc(100% + 1.13%); height: calc(100% + 0.32%); }
.loop--c { top: 0.02px; width: 583px; height: 298.491px; }
.loop--c img { inset: -0.17% 0; width: 100%; height: calc(100% + 0.34%); }
.diagram__group--left .loop--a { left: 321.5px; }
.diagram__group--left .loop--b { left: 542px; }
.diagram__group--left .loop--c { left: 18px; }
.diagram__group--right .loop--a { left: 671.5px; }
.diagram__group--right .loop--b { left: 652px; }
.diagram__group--right .loop--c { left: 679.5px; }
.loop--flip { transform: scaleX(-1); }

.core { position: absolute; left: 590px; top: 102.11px; width: 100px; height: 100px; }
.core img { position: absolute; left: -2px; top: -1px; width: 104px; height: 104px; }
.core__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 96, 213, 0.7);
  opacity: 0;
}

.chip,
.chip-group { position: absolute; }
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  background: var(--n0);
  border: 1px solid var(--n200);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.14px;
  text-transform: uppercase;
  color: var(--n600);
  white-space: nowrap;
}
.chip-group { display: flex; gap: 8px; align-items: flex-start; }
.chip--static { position: relative; }
.node { position: absolute; width: 7px; height: 7px; background: var(--n0); }
.node--wide { width: 8px; }
.node--static { position: relative; flex-shrink: 0; }

/* ==========================================================================
   CUSTOMERS
   ========================================================================== */
.customers { padding: 104px 0; }
.customers__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.customers__intro { width: 514px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.customers__text { display: flex; flex-direction: column; gap: 16px; }
.customers__title { font-weight: 400; font-size: 48px; line-height: 1.2; letter-spacing: -1.44px; }
.customers__lead { width: 406px; max-width: 100%; color: var(--n600); }

.testimonials { display: flex; gap: 16px; align-items: flex-start; margin-top: 120px; }
.testimonial { width: 416px; display: flex; flex-direction: column; }
.testimonial--3 { align-self: stretch; }
.testimonial__strip { position: relative; height: 23px; overflow: hidden; background: var(--n50); }
.testimonial__strip::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.testimonial__strip img { position: absolute; object-fit: cover; will-change: transform; }
.testimonial--1 .testimonial__strip img { width: 416px; height: 620px; left: 0; top: calc(50% + 0.5px - 310px); }
.testimonial--2 .testimonial__strip img { width: 725px; height: 1080px; left: 0; top: calc(50% + 0.5px - 540px); }
.testimonial--3 .testimonial__strip img { width: 872px; height: 1296px; left: -75px; top: calc(50% + 0.5px - 648px); }

.testimonial__body {
  display: flex;
  flex-direction: column;
  background: var(--n50);
  border: 1px solid var(--n100);
  transition: background-color 0.4s var(--ease-out);
}
.testimonial:hover .testimonial__body { background: var(--n100); }
.testimonial--1 .testimonial__body { padding: 24px; gap: 64px; }
.testimonial--1 .testimonial__main { gap: 32px; }
.testimonial--2 .testimonial__body,
.testimonial--3 .testimonial__body { padding: 16px; }
.testimonial--3 .testimonial__body { flex: 1 0 0; }
.testimonial__main { display: flex; flex-direction: column; gap: 40px; }
.testimonial--3 .testimonial__main { flex: 1 0 0; }
.testimonial--3 blockquote { flex: 1 0 0; }

.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 44px; height: 44px; }
.person > div { width: 200px; }
.testimonial--2 .person > div { width: auto; }
.person__name { font-size: 16px; line-height: 1.5; letter-spacing: -0.48px; color: var(--n950); }
.person__role { font-size: 14px; line-height: 1.4; letter-spacing: -0.42px; color: var(--n500); white-space: nowrap; }
.testimonial--1 .person__role { color: var(--n600); }
blockquote { font-size: 24px; line-height: 1.5; letter-spacing: -0.24px; color: var(--n900); }
.testimonial__date { font-size: 16px; line-height: 1.4; letter-spacing: -0.48px; color: var(--n500); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 80px 0; }
.faq .container { display: flex; flex-direction: column; align-items: center; gap: 96px; }
.faq__head { width: 668px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.faq__title { margin-bottom: -4px; font-weight: 400; font-size: 48px; line-height: 1.2; letter-spacing: -1.44px; }
.faq__lead { width: 480px; max-width: 100%; color: var(--n500); letter-spacing: -0.16px; }

.accordion {
  width: 842px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0;
  border: 1px solid var(--n200);
}
.acc-item { padding: 0 24px; }
.acc-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: var(--n950);
}
.acc-icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.acc-icon img { position: absolute; inset: 0; width: 20px; height: 20px; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.acc-icon__minus { opacity: 0; transform: rotate(-90deg); }
.acc-item.is-open .acc-icon__plus { opacity: 0; transform: rotate(90deg); }
.acc-item.is-open .acc-icon__minus { opacity: 1; transform: rotate(0); }
.acc-item__a { overflow: hidden; }
.acc-item:not(.is-open) .acc-item__a { height: 0; }
.acc-item__a p { width: 618px; max-width: 100%; padding-top: 20px; color: var(--n500); letter-spacing: -0.16px; }
.acc-line { width: 100%; height: 1px; margin-bottom: -1px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; height: 889px; background: var(--n950); color: var(--n0); overflow: hidden; }
.footer__hands {
  position: absolute;
  top: 44px;
  left: calc(50% - 0.5px);
  width: max(1614px, 112.1vw);
  aspect-ratio: 1614 / 1086;
  transform: translateX(-50%);
  opacity: 0.3;
  pointer-events: none;
}
.footer__hands img { width: 100%; height: 100%; object-fit: cover; }
.footer__inner { height: 100%; padding-top: 80px; }
.footer__top { display: flex; justify-content: space-between; }
.footer__brand { width: 302px; }
.footer__brand-text { display: flex; flex-direction: column; gap: 12px; }
.footer__brand-text p { width: 226px; opacity: 0.7; letter-spacing: -0.16px; }
.socials { display: flex; gap: 12px; margin-top: 86px; }
.socials a { transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.socials a:hover { opacity: 0.7; transform: translateY(-2px); }
.socials img { width: 20px; height: 20px; }
.footer__cols { display: flex; gap: 24px; }
.footer__col { width: 180px; display: flex; flex-direction: column; gap: 12px; white-space: nowrap; }
.footer__col p { font-size: 20px; line-height: 1.3; letter-spacing: -0.4px; }
.footer__col a { align-self: flex-start; opacity: 0.7; letter-spacing: -0.16px; transition: opacity 0.3s; }
.footer__col a:hover { opacity: 1; }
.footer__bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.16px;
  white-space: nowrap;
}
.footer__bottom a { transition: opacity 0.3s; }
.footer__bottom a:hover { opacity: 0.7; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1360px) {
  :root { --gutter: 48px; }
  .features__tabbar,
  .features__rows { margin-left: auto; margin-right: 0; width: min(955px, 100%); }
  .features__eyebrow { flex-basis: auto; margin-right: auto; }
  .features__header { flex-wrap: wrap; gap: 24px; }
  .features__intro { order: 2; }
  .features__eyebrow { order: 1; width: 100%; flex: 0 0 100%; margin-top: 0; }
  .features__cta { order: 3; }
  .feature__visual { flex: 1 1 auto; width: auto; min-width: 0; }
  .testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .testimonial { width: auto; }
  .testimonial__body { flex: 1 0 auto; }
}

@media (max-width: 1180px) {
  /* How it works : stacked */
  .hiw__inner { height: auto; padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
  .hiw__head,
  .steps,
  .hiw__stage { position: relative; top: auto; left: auto; right: auto; }
  .hiw__head { width: 100%; max-width: 529px; height: auto; }
  .hiw__head-text { height: auto; }
  .hiw__stage { width: 100%; height: calc(600px * var(--fit, 1)); overflow: hidden; }
  .hiw__stage-fit { position: absolute; left: 50%; top: 0; width: 737px; height: 600px; margin-left: -368.5px; transform: scale(var(--fit, 1)); transform-origin: top center; }
  .steps__list { width: auto; max-width: 513px; }

  .hero__content { max-width: 826px; }
  .nav__links { gap: 24px; }

  .footer { height: auto; }
  .footer__inner { padding-bottom: 360px; }
  .footer__top { flex-direction: column; gap: 56px; }
  .footer__brand { width: auto; }
  .socials { margin-top: 32px; }
  .footer__cols { flex-wrap: wrap; row-gap: 40px; }
  .footer__hands { top: auto; bottom: -420px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .nav__links { display: none; }

  .feature { flex-direction: column; align-items: stretch; }
  .feature__visual { width: 100%; flex: none; }
  .feature__text { width: 100%; }
  .features__tabbar { padding-left: 0; overflow-x: auto; scrollbar-width: none; }
  .features__tabbar::-webkit-scrollbar { display: none; }
  .features__rows { gap: 48px; }

  .customers__header { flex-direction: column; align-items: flex-start; }
  .testimonials { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .hero { height: auto; padding-bottom: 96px; }
  .hero__content { margin-top: 48px; gap: 32px; }
  .hero__title { font-size: 36px; letter-spacing: -1px; }
  .hero__title br { display: none; }
  .hero__visual { top: 380px; }
  .agent-card { position: relative; top: auto; left: auto; margin-top: 72px; width: min(347px, calc(100% - 40px)); }
  .msg__bubble { width: auto; }
  .tool-box__row--fixed { width: auto; }
  .approval-box__title,
  .approval-box__meta { width: auto; }
  .announce { font-size: 12px; }
  .nav .btn--sm { font-size: 12px; padding: 8px 12px; height: 36px; }

  .btn-group { flex-wrap: wrap; }
  .btn { font-size: 14px; padding: 10px 16px; }

  .hiw__title,
  .features__title,
  .customers__title,
  .faq__title { font-size: 34px; letter-spacing: -1px; }
  .security__title { font-size: 36px; letter-spacing: -1px; }
  .hiw__lead { width: auto; }
  .step__title { font-size: 18px; white-space: normal; }

  .features { padding: 80px 0; }
  .features__intro { width: 100%; }
  .tab { font-size: 16px; }
  .tabs { gap: 20px; }
  .feature__visual { height: 400px; }
  .feature__visual--1 .mini-card { zoom: 1; }
  .feature__visual--2 .mini-card { zoom: 1; }
  .feature__visual--3 .mini-card { zoom: 1; }
  .feature__title { font-size: 26px; width: 100%; }
  .spec-list li { font-size: 12px; }

  .security { padding: 80px 0; }
  .security__head { height: auto; }
  .security__head-text { height: auto; }
  .diagram-fit { margin-top: 56px; }

  .customers { padding: 80px 0; }
  blockquote { font-size: 20px; }

  .faq .container { gap: 56px; }
  .acc-item__q { font-size: 17px; }

  .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .footer__col { width: auto; }
  .footer__bottom { position: static; flex-direction: column; gap: 12px; margin-top: 64px; }
  .footer__inner { padding-bottom: 48px; }
  .footer__hands { bottom: -620px; }
}

@media (prefers-reduced-motion: reduce) {
  .live::before { animation: none; }
  .btn::before,
  .acc-icon img { transition: none; }
}
