/* ==========================================================================
   Homepage — calm, product-first layout
   Builds on styles.css (tokens, header, hero, buttons, FAQ, footer). Every
   section follows one rhythm: a short heading, one sentence, one visual.
   ========================================================================== */

.home {
  --ok:   #6ee7a8;
  --bad:  #ef6a6a;
  --warn: #f2c14e;
  --card: #0d0d0d;
  --card-2: #121212;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-2: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.home main { display: block; }

/* ── Header: plain links, no segmented control ──────────────────────────── */
.home-nav { gap: 6px; }
.home-nav .nav-link { font-size: 11.5px; padding: 0 10px; }
.home-nav .btn { margin-left: 10px; }

/* ── Hero (image and scrim come from styles.css) ────────────────────────── */
.home .hero-actions { margin-bottom: 0; }

/* ── Section rhythm ─────────────────────────────────────────────────────── */
.sec { padding-top: 150px; }
.sec-center { text-align: center; }
.sec-center .sec-title, .sec-center .sec-sub { margin-inline: auto; }
.sec-tag {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ok);
}
.sec-title {
  margin: 0 0 14px;
  max-width: 760px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sec-sub {
  margin: 0 0 44px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Cards share one surface */
.app, .uc-panel, .card, .term, .canvas, .case-ui, .agents > div, .ready li, .cmp, .cta {
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--card);
}

/* ── Product shot ───────────────────────────────────────────────────────── */
.product { padding-top: 56px; }
.app {
  display: grid;
  grid-template-columns: 170px 270px minmax(0, 1fr);
  height: 560px;
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}
.app-side { padding: 16px 10px; border-right: 1px solid var(--edge); background: #0a0a0a; }
.app-ws { display: flex; align-items: center; gap: 8px; margin: 0 6px 18px; font-size: 13px; color: var(--text); }
.app-ws i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #222; font-style: normal; font-size: 11px; }
.app-side ul { margin: 0; padding: 0; list-style: none; }
.app-side li { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 6px; color: var(--text-muted); }
.app-side li.on { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.app-side li b { font-weight: 400; font-size: 11px; padding: 0 6px; border-radius: 9px; background: rgba(110, 231, 168, 0.15); color: var(--ok); }

.app-list { padding: 14px 10px; border-right: 1px solid var(--edge); overflow: hidden; }
.al-k { margin: 12px 8px 6px; font-size: 11px; color: var(--text-faint); }
.al-k:first-child { margin-top: 0; }
.al-item { position: relative; padding: 9px 10px 9px 28px; border-radius: 8px; transition: background 0.4s ease; }
.al-item.is-active { background: rgba(255, 255, 255, 0.05); }
.al-item b { display: block; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-item small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-faint); transition: color 0.4s ease; }
.al-dot { position: absolute; left: 10px; top: 13px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-faint); }
.al-dot.ok { border-color: var(--ok); background: var(--ok); }
.al-dot.warn { border-color: var(--warn); }
.al-dot.run { border-color: rgba(110, 231, 168, 0.25); border-top-color: var(--ok); animation: spin 0.9s linear infinite; }
.al-item.is-done .al-dot { animation: none; border-color: var(--ok); background: var(--ok); }
.al-item.is-done small { color: var(--ok); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--edge); }
.app-head b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-flow { display: flex; align-items: center; gap: 6px; flex: none; font-size: 11px; color: var(--text-muted); }
.app-flow i { font-style: normal; padding: 3px 8px; border: 1px solid var(--edge-2); border-radius: 6px; }
.app-flow em { width: 16px; height: 1px; background: var(--edge-2); }

.chat { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow: hidden; }
.msg { margin: 0; max-width: 88%; line-height: 1.5; }
.msg.me { align-self: flex-end; padding: 8px 12px; border-radius: 12px 12px 3px 12px; background: rgba(255, 255, 255, 0.08); }
.msg.ai { color: rgba(242, 242, 240, 0.86); }
.astep .st { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--text-muted); }
.astep ul { margin: 0; padding: 0 0 0 22px; list-style: none; font-size: 12.5px; color: var(--text-faint); }
.astep ul li::before { content: "· "; }
.astep ul.ok li { color: rgba(110, 231, 168, 0.85); }
.astep ul.ok li::before { content: "✓ "; }
.tick { position: relative; width: 13px; height: 13px; flex: none; border-radius: 50%; background: rgba(110, 231, 168, 0.18); }
.tick::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 3px; height: 6px; border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.msg.approve { align-self: stretch; max-width: none; padding: 12px 14px; border: 1px solid rgba(242, 193, 78, 0.35); border-radius: 10px; background: rgba(242, 193, 78, 0.05); }
.msg.approve p { margin: 0 0 10px; }
.msg.approve b { font-weight: 500; }
.ap-btns { display: flex; gap: 6px; }
.ap-btns i { padding: 5px 12px; border: 1px solid var(--edge-2); border-radius: 6px; font-style: normal; font-size: 12px; color: var(--text-muted); transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, border-color 0.25s ease; }
.ap-btns i.yes { background: var(--text); border-color: var(--text); color: #060606; }
.ap-btns i.pressed { background: var(--ok); border-color: var(--ok); color: #04130a; transform: scale(0.95); }
.app-input { margin: 0 18px 16px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; color: var(--text-faint); }

/* Scene states for the chat (JS adds .play; no-JS shows everything). */
.chat.play > *:not(.shown) { display: none; }
.chat.play > .shown { animation: msg-in 0.55s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.chat.play .astep:not(.done) .tick { background: none; border: 1.5px solid rgba(110, 231, 168, 0.25); border-top-color: var(--ok); animation: spin 0.8s linear infinite; }
.chat.play .astep:not(.done) .tick::after { display: none; }
.chat.play .astep:not(.done) ul { opacity: 0; }
.chat.play .astep ul { transition: opacity 0.4s ease 0.1s; }
.chat.play .say.typing::after { content: "▍"; margin-left: 1px; color: var(--ok); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Logo marquee ───────────────────────────────────────────────────────── */
.marquee-k { margin: 0 0 22px; font-size: 14px; color: var(--text-faint); }
.mq-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mq-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; margin: 0; padding: 0; list-style: none; }
.mq-list.loop { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 40s linear infinite; }
.mq-track:hover .mq-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 190px;
  height: 64px;
  margin-right: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(242, 242, 240, 0.6);
}
.mq-item .logo-img { height: 22px; width: auto; max-width: 70%; opacity: 0.7; }
.mq-item .logo-img.wide { height: 22px; max-width: 80%; }
.mq-item .logo-img.tall { height: 36px; }
.mq-item .logo-svg { width: 20px; height: 20px; }
.mq-item .logo-pair { gap: 8px; font-size: 15px; }
.mq-item .logo-pair .stacked { font-size: 12px; }

/* ── Use-case tabs ──────────────────────────────────────────────────────── */
.uc-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.uc-tab {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.uc-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.uc-tab.is-on { color: var(--text); background: var(--card); border-color: var(--edge-2); }
.uc-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ok); transform: scaleX(0); transform-origin: left; }
.uc-tab.is-on i { animation: tab-fill var(--tab-ms, 6000ms) linear forwards; }
.uc.is-paused .uc-tab.is-on i { animation: none; transform: scaleX(1); opacity: 0.5; }
@keyframes tab-fill { to { transform: scaleX(1); } }

.uc-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 330px; }
.uc-agent { padding: 28px 30px; border-right: 1px solid var(--edge); }
.uc-agent h3 { margin: 0 0 22px; font-size: 22px; font-weight: 400; letter-spacing: -0.015em; }
.uc-k { margin: 0 0 6px; font-size: 12px; color: var(--text-faint); }
.uc-goal { margin: 0 0 22px; max-width: 420px; font-size: 15px; line-height: 1.55; color: rgba(242, 242, 240, 0.82); }
.uc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.uc-chips span { padding: 5px 10px; border: 1px solid var(--edge-2); border-radius: 999px; font-size: 12.5px; color: rgba(242, 242, 240, 0.8); }
.uc-result { display: flex; flex-direction: column; padding: 28px 30px; background: #0b0b0b; border-radius: 0 14px 14px 0; }
.uc-alert { align-self: flex-start; margin: 0 0 18px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); font-size: 14px; }
.uc-lines { margin: 0 0 auto; padding: 0; list-style: none; }
.uc-lines li { position: relative; padding: 8px 0 8px 22px; font-size: 14.5px; color: rgba(242, 242, 240, 0.82); }
.uc-lines li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 4px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }
.uc-verdict { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 13px; color: var(--text-faint); }
/* Swap animation: fields fade/slide out, then in, line by line. */
.uc [data-f] { transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.uc.swap [data-f] { opacity: 0; transform: translateY(6px); }
.uc-lines li { transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.uc.reveal .uc-lines li { opacity: 0; transform: translateX(-6px); }

.v { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 12.5px; white-space: nowrap; }
.v::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v-bad { color: var(--bad); background: rgba(239, 106, 106, 0.12); }
.v-ok  { color: rgba(242, 242, 240, 0.75); background: rgba(255, 255, 255, 0.07); }
.v-ask { color: var(--warn); background: rgba(242, 193, 78, 0.12); }

/* ── Bento ──────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: 14px 14px 24px; transition: border-color 0.3s ease, transform 0.5s var(--ease); }
.card:hover { border-color: var(--edge-2); transform: translateY(-3px); }
.card h3 { margin: 20px 10px 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.card > p { margin: 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(120% 100% at 50% 0%, #161616, #0f0f0f);
}

.pr-in { margin: 0 0 12px; align-self: stretch; min-height: 62px; padding: 10px 12px; border: 1px solid var(--edge-2); border-radius: 10px; background: #0a0a0a; font-size: 13px; line-height: 1.45; color: var(--text); }
.pr-in.typing::after { content: "▍"; color: var(--ok); animation: blink 0.9s steps(1) infinite; }
.pr-out { display: flex; gap: 6px; margin: 0; }
.pr-out span { padding: 4px 10px; border-radius: 999px; background: rgba(110, 231, 168, 0.12); color: var(--ok); font-size: 12px; transition: opacity 0.35s ease, transform 0.45s var(--spring); }
.pr-out.hide span { opacity: 0; transform: scale(0.8); }

.ap-card { align-self: stretch; padding: 14px; border: 1px solid var(--edge-2); border-radius: 10px; background: #0a0a0a; }
.ap-k { margin: 0 0 6px; font-size: 11.5px; color: var(--warn); }
.ap-card b { display: block; font-weight: 400; font-size: 14px; }
.ap-card small { display: block; margin: 3px 0 12px; font-size: 12px; color: var(--text-faint); }
.ap-card.ok { border-color: rgba(110, 231, 168, 0.45); transition: border-color 0.3s ease; }

.log { align-self: stretch; margin: 0; padding: 0; list-style: none; }
.log li { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; padding: 6px 10px; border: 1px solid var(--edge); border-radius: 8px; background: #0a0a0a; font-size: 12.5px; color: rgba(242, 242, 240, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li:last-child { margin-bottom: 0; }
.log li i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.log li.enter { animation: log-in 0.6s var(--ease); }
@keyframes log-in { from { opacity: 0; transform: translateY(-12px); } }

.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; align-self: stretch; margin: 0; }
.int-grid span { padding: 9px 4px; border: 1px solid var(--edge); border-radius: 8px; background: #0a0a0a; font-size: 12px; text-align: center; color: rgba(242, 242, 240, 0.7); animation: int-glow 5.4s ease-in-out infinite; }
.int-grid span:nth-child(3n+2) { animation-delay: 0.6s; }
.int-grid span:nth-child(3n) { animation-delay: 1.2s; }
.int-grid span:nth-child(n+4) { animation-delay: calc(var(--d, 0s) + 1.8s); }
.int-grid span:nth-child(n+7) { animation-delay: 3s; }
@keyframes int-glow { 0%, 70%, 100% { border-color: var(--edge); color: rgba(242, 242, 240, 0.7); } 12% { border-color: rgba(110, 231, 168, 0.6); color: var(--ok); } }

.where { align-self: stretch; margin: 0; padding: 0; list-style: none; }
.where li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 8px; background: #0a0a0a; font-size: 13.5px; }
.where li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(110, 231, 168, 0.15); color: var(--ok); font-size: 11px; }
.where li:last-child { border-color: rgba(110, 231, 168, 0.4); }

.sensors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: stretch; margin: 0; }
.sensors span { padding: 16px 0; border: 1px solid var(--edge); border-radius: 10px; background: #0a0a0a; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--text); transition: transform 0.4s var(--spring); }
.card:hover .sensors span { transform: translateY(-2px); }
.card:hover .sensors span:nth-child(even) { transform: translateY(2px); }

/* ── AIDR ───────────────────────────────────────────────────────────────── */
.aidr { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.term { overflow: hidden; font-family: var(--mono); font-size: 12.5px; }
.term-bar { display: flex; justify-content: space-between; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--edge); color: var(--text-faint); font-size: 11.5px; }
.term-bar em { display: inline-flex; align-items: center; gap: 7px; font-style: normal; color: var(--ok); }
.term-bar em i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.kt { margin: 0; padding: 8px 0; list-style: none; }
.kt li { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; }
.kt span { font-size: 11px; color: var(--text-faint); }
.kt code { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: inherit; color: rgba(242, 242, 240, 0.86); }
.kt em { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.kt em.bad { color: var(--bad); background: rgba(239, 106, 106, 0.13); }
.kt em.warn { color: var(--warn); background: rgba(242, 193, 78, 0.12); }
.kt .kt-ok { grid-template-columns: 66px minmax(0, 1fr); margin: 6px 10px 2px; border-radius: 8px; background: rgba(110, 231, 168, 0.07); }
.kt .kt-ok span, .kt .kt-ok code { color: var(--ok); }
.kt.play li { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.kt.play li.shown { opacity: 1; transform: none; }
.kt.play em { opacity: 0; }
.kt.play li.stamped em { animation: stamp 0.45s var(--spring) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.7); } to { opacity: 1; transform: none; } }

/* ── Workflows ──────────────────────────────────────────────────────────── */
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mini div { padding: 16px 18px; border: 1px solid var(--edge); border-radius: 12px; }
.mini b { display: block; margin-bottom: 4px; font-weight: 500; font-size: 15px; }
.mini span { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.canvas { display: grid; grid-template-columns: 230px minmax(0, 1fr); overflow: hidden; }
.events { padding: 18px 16px; border-right: 1px solid var(--edge); background: #0a0a0a; }
.ev-k { margin: 0 0 14px; font-size: 12.5px; color: var(--text-faint); }
.ev-k b { font-weight: 400; color: var(--text); }
.events ol { margin: 0; padding: 0; list-style: none; }
.events li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 13px; color: var(--text-faint); transition: color 0.3s ease; }
.events li i { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--edge-2); transition: background 0.3s ease, border-color 0.3s ease; }
.events li.run { color: var(--text); }
.events li.run i { border-color: rgba(110, 231, 168, 0.25); border-top-color: var(--ok); animation: spin 0.8s linear infinite; }
.events li.wait { color: var(--warn); }
.events li.wait i { border-color: var(--warn); animation: pulse 1s ease-in-out infinite; }
.events li.done { color: rgba(242, 242, 240, 0.85); }
.events li.done i { border-color: var(--ok); background: var(--ok); }
.events li.done i::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid #04130a; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 30px 20px 32px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.node {
  position: relative;
  width: min(100%, 300px);
  padding: 10px 14px 11px;
  border: 1px solid var(--edge-2);
  border-radius: 10px;
  background: #121212;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, opacity 0.35s ease;
}
.node b { display: block; font-weight: 400; font-size: 13.5px; }
.node small { display: block; margin-top: 2px; font-size: 12px; color: rgba(239, 106, 106, 0.9); }
.n-k { display: block; margin-bottom: 3px; font-size: 11px; color: var(--text-faint); }
.n-agent .n-k, .n-end .n-k { color: var(--ok); }
.n-gate .n-k { color: var(--warn); }
.gate-btns { display: flex; gap: 6px; margin-top: 9px; }
.gate-btns i { padding: 4px 11px; border: 1px solid var(--edge-2); border-radius: 6px; font-style: normal; font-size: 11.5px; color: var(--text-muted); transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease; }
.gate-btns i.yes { background: var(--text); border-color: var(--text); color: #060606; }
.gate-btns i.pressed { transform: scale(0.94); background: var(--ok); border-color: var(--ok); color: #04130a; }

.flow > .node:not(:first-child)::before, .flow-par::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -25px;
  height: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.flow-par { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 540px; }
.flow-par::after { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: -11px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.flow-par .node { width: 100%; }
.flow-par .node::before, .flow-par .node::after { content: ""; position: absolute; left: 50%; height: 10px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.flow-par .node::before { top: -12px; }
.flow-par .node::after { bottom: -12px; }
.par-join { position: absolute; left: 16.6%; right: 16.6%; bottom: -12px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.flow > .node:not(:first-child)::before, .flow-par::before, .flow-par::after, .flow-par .node::before, .flow-par .node::after, .par-join { transition: border-color 0.35s ease; }

.flow.is-running .node:not(.run):not(.wait):not(.done) { opacity: 0.5; }
.node.run { border-color: rgba(110, 231, 168, 0.8); background: #0f1712; box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.1), 0 0 30px -6px rgba(110, 231, 168, 0.35); }
.node.wait { border-color: rgba(242, 193, 78, 0.9); animation: wait-glow 1.2s ease-in-out infinite; }
@keyframes wait-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.08); } 50% { box-shadow: 0 0 0 7px rgba(242, 193, 78, 0.04), 0 0 34px -6px rgba(242, 193, 78, 0.4); } }
.node.done { border-color: rgba(110, 231, 168, 0.4); }
.flow > .node.run::before, .flow > .node.wait::before, .flow > .node.done::before,
.flow-par.lit::before, .flow-par.lit::after, .flow-par.lit .node::before,
.flow-par.joined .node::after, .flow-par.joined .par-join { border-color: rgba(110, 231, 168, 0.75) !important; }
.n-state { position: absolute; top: 10px; right: 11px; width: 12px; height: 12px; }
.node.run .n-state { border: 1.5px solid rgba(110, 231, 168, 0.25); border-top-color: var(--ok); border-radius: 50%; animation: spin 0.7s linear infinite; }
.node.done .n-state::before { content: "✓"; position: absolute; inset: -3px 0 0; font-size: 12px; color: var(--ok); text-align: center; animation: pop 0.4s var(--spring); }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: none; opacity: 1; } }

/* ── Cases ──────────────────────────────────────────────────────────────── */
.case-ui { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); overflow: hidden; }
.cu-main { padding: 22px 26px 26px; }
.cu-crumb { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 12.5px; color: var(--text-faint); }
.cu-crumb b { font-weight: 400; color: var(--text); }
.sev { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(239, 106, 106, 0.13); color: var(--bad); font-size: 11.5px; }
.cu-main h3 { margin: 0 0 12px; font-size: 21px; font-weight: 400; letter-spacing: -0.015em; }
.cu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.cu-tags span { padding: 3px 10px; border: 1px solid var(--edge-2); border-radius: 999px; font-size: 12px; color: var(--text-muted); }
.cu-tags span:first-child { color: var(--ok); border-color: rgba(110, 231, 168, 0.35); }
.cu-sum { margin: 0 0 20px; }
.cu-sum div { display: grid; grid-template-columns: 70px minmax(0, 1fr); padding: 6px 0; font-size: 14px; }
.cu-sum dt { color: var(--text-faint); }
.cu-sum dd { margin: 0; color: rgba(242, 242, 240, 0.86); }
.cu-hosts { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.cu-hosts th { padding: 9px 12px; text-align: left; font-weight: 400; color: var(--text-faint); background: rgba(255, 255, 255, 0.02); }
.cu-hosts td { padding: 9px 12px; border-top: 1px solid var(--edge); color: rgba(242, 242, 240, 0.85); }
.cu-hosts td:first-child { font-family: var(--mono); font-size: 12px; }
.st-done, .st-run { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.st-done { color: var(--ok); }
.st-done::before { content: "✓"; }
.st-run { color: var(--text-muted); }
.st-run::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(110, 231, 168, 0.25); border-top-color: var(--ok); animation: spin 0.8s linear infinite; }
.cu-copilot { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-left: 1px solid var(--edge); background: #0a0a0a; }
.cu-k { margin: 0; font-size: 12.5px; color: var(--text-faint); }
.cu-next { padding: 12px 14px; border: 1px solid var(--edge); border-radius: 10px; }
.cu-k2 { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; }
.cu-next ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--text-muted); }
.cu-copilot .msg { font-size: 13.5px; }
.cu-copilot .msg.ai { padding: 9px 12px; border: 1px solid var(--edge); border-radius: 12px 12px 12px 3px; }

/* ── Coding agents ──────────────────────────────────────────────────────── */
.agents { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.agents > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 170px;
  padding: 26px 10px 22px;
  font-size: 14px;
  transition: transform 0.5s var(--ease), border-color 0.3s ease;
}
.agents > div:hover { transform: translateY(-4px); border-color: var(--edge-2); }
.ag-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #181818; font-family: var(--mono); font-size: 17px; color: var(--text); }
.agents > div:nth-child(1) .ag-ico { color: #e98a5f; }
.agents > div:nth-child(2) .ag-ico { color: #7cb7ff; }
.agents .is-us { border-color: rgba(110, 231, 168, 0.4); }
.agents .is-us .ag-ico { color: var(--ok); background: rgba(110, 231, 168, 0.1); }
.ag-plus { font-size: 22px; color: var(--text-faint); padding: 0 6px; }

/* ── Mission ready ──────────────────────────────────────────────────────── */
.ready { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ready li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 15px; }
.r-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: rgba(110, 231, 168, 0.1); color: var(--ok); font-size: 14px; }

/* ── Compare ────────────────────────────────────────────────────────────── */
.cmp { overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 22px; border-bottom: 1px solid var(--edge); text-align: left; font-weight: 400; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; vertical-align: top; }
.compare thead small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-faint); }
.compare tbody th { width: 34%; font-size: 15px; }
.compare td { font-size: 14px; color: var(--text-muted); }
.compare td.no { color: var(--text-faint); }
.compare .us { background: rgba(110, 231, 168, 0.05); }
.compare thead .us, .compare td.us { color: var(--ok); }
.compare td.yes::before { content: "✓ "; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--text-faint); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.home .faq { border-top: 1px solid var(--edge); }
.home .faq-item { border-bottom: 1px solid var(--edge); }
.home .faq-item:last-child { border-bottom: 1px solid var(--edge); }
.home .faq-item summary { padding: 20px 2px; }
.home .faq-item summary:hover { background: none; }
.home .faq-item summary h3 { font-size: 16.5px; }
.home .faq-item > p { margin: 0; padding: 0 2px 22px; max-width: 760px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ── Contact ────────────────────────────────────────────────────────────── */
#contact { padding-bottom: 130px; }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.cta-l { padding: 48px 44px; }
.cta-title { margin: 0 0 14px; font-size: clamp(28px, 2.8vw, 38px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.cta-l > p:not(.sec-tag) { margin: 0 0 28px; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.cta-r { padding: 48px 44px; border-left: 1px solid var(--edge); background: #0a0a0a; }
.cs { display: block; padding: 16px 0; border-top: 1px solid var(--edge); transition: opacity 0.2s ease; }
.cs:hover b { color: var(--ok); }
.cs small { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-faint); }
.cs b { display: block; margin-bottom: 4px; font-weight: 400; font-size: 17px; transition: color 0.2s ease; }
.cs span { font-size: 14px; color: var(--text-muted); }

/* ── Reveal on scroll (JS adds .rv) ─────────────────────────────────────── */
.home .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease var(--rvd, 0s), transform 0.9s var(--ease) var(--rvd, 0s); }
.home .rv.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .app { grid-template-columns: 230px minmax(0, 1fr); }
  .app-side { display: none; }
  .uc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aidr { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .home .nav-secondary { display: none; }
}

@media (max-width: 820px) {
  .sec { padding-top: 110px; }
  .app { grid-template-columns: 1fr; height: auto; }
  .app-list { display: none; }
  .chat { min-height: 470px; }
  .uc-panel, .case-ui, .cta { grid-template-columns: 1fr; }
  .uc-agent, .cu-copilot, .cta-r { border-right: 0; border-left: 0; }
  .uc-agent { border-bottom: 1px solid var(--edge); }
  .uc-result { border-radius: 0 0 14px 14px; }
  .cu-copilot, .cta-r { border-top: 1px solid var(--edge); }
  .canvas { grid-template-columns: 1fr; }
  .events { display: none; }
  .ready { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sec { padding-top: 90px; }
  .sec-sub { font-size: 16.5px; margin-bottom: 32px; }
  .product { padding-top: 36px; }
  .hero-pills li { font-size: 12px; padding: 5px 10px; }
  .app-flow { display: none; }
  .chat { padding: 14px; min-height: 520px; }
  .msg { max-width: 100%; }
  .uc-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .uc-tabs::-webkit-scrollbar { display: none; }
  .uc-tab { flex: none; white-space: nowrap; }
  .uc-agent, .uc-result { padding: 22px 20px; }
  .bento, .mini { grid-template-columns: 1fr; }
  .kt li { grid-template-columns: 54px minmax(0, 1fr); gap: 8px; padding: 10px 14px; }
  .kt em { grid-column: 2; justify-self: start; }
  .kt .kt-ok { grid-template-columns: 54px minmax(0, 1fr); }
  .kt .kt-ok code { white-space: normal; }
  .flow { padding: 24px 14px; }
  .flow-par { grid-template-columns: 1fr; gap: 24px; }
  .flow-par::after, .par-join, .flow-par .node::after { display: none; }
  .flow-par::before { display: none; }
  .flow-par .node::before { top: -25px; height: 24px; }
  .cu-main { padding: 20px; }
  .cu-hosts td:nth-child(2), .cu-hosts th:nth-child(2) { display: none; }
  .agents > div { width: calc(50% - 6px); }
  .ag-plus { display: none; }
  .cta-l, .cta-r { padding: 32px 22px; }

  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 16px 18px; border-bottom: 1px solid var(--edge); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { width: auto; padding: 0 0 8px; border: 0; }
  .compare td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0; background: none !important; }
  .compare td::before, .compare td.yes::before { content: attr(data-label); font-size: 12px; color: var(--text-faint); }
}

@media (prefers-reduced-motion: reduce) {
  .mq-list, .int-grid span, .term-bar em i, .uc-tab.is-on i { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .card:hover, .agents > div:hover { transform: none; }
}
.typing::after { content: "▍"; margin-left: 1px; color: var(--ok); animation: blink 0.9s steps(1) infinite; }
.cu-copilot .msg.ai:empty { display: none; }
.home section { position: relative; }
.anchor { position: absolute; top: 0; }
@media (max-width: 640px) {
  .chat { min-height: 430px; }
  .ready { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready li { font-size: 13.5px; padding: 14px; gap: 10px; }
}

/* ══ Two-product positioning ═════════════════════════════════════════════
   AutoSecOps is green (--a), AIDR is violet (--b), everywhere. */
.home { --a: #6ee7a8; --b: #b69cff; }
.dot-a, .dot-b, .dot-ab { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-a { background: var(--a); }
.dot-b { background: var(--b); }
.dot-ab { background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); }

.home .hero-lede b { font-weight: 500; }

/* Product cards */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 34px 30px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}
.prod::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9; transition: opacity 0.4s ease; }
.prod.is-a::before { background: radial-gradient(90% 70% at 100% 0%, rgba(110, 231, 168, 0.12), transparent 60%); }
.prod.is-b::before { background: radial-gradient(90% 70% at 100% 0%, rgba(182, 156, 255, 0.14), transparent 60%); }
.prod:hover { transform: translateY(-4px); }
.prod.is-a:hover { border-color: rgba(110, 231, 168, 0.45); box-shadow: 0 30px 80px -40px rgba(110, 231, 168, 0.35); }
.prod.is-b:hover { border-color: rgba(182, 156, 255, 0.5); box-shadow: 0 30px 80px -40px rgba(182, 156, 255, 0.4); }
.prod > * { position: relative; }
.prod-k { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--text-faint); }
.prod-k i { width: 8px; height: 8px; border-radius: 50%; }
.is-a .prod-k i { background: var(--a); }
.is-b .prod-k i { background: var(--b); }
.prod h3 { margin: 0 0 6px; font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: -0.03em; }
.is-a h3 { color: var(--a); }
.is-b h3 { color: var(--b); }
.prod-one { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.01em; color: var(--text); }
.prod-p { margin: 0 0 18px; max-width: 460px; font-size: 15.5px; line-height: 1.55; color: var(--text-muted); }
.prod-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.is-a .prod-go { color: var(--a); }
.is-b .prod-go { color: var(--b); }
.prod-go em { font-style: normal; transition: transform 0.3s var(--spring); }
.prod:hover .prod-go em { transform: translateX(4px); }
.prod-art { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--edge); }
.pa-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: rgba(242, 242, 240, 0.72); }
.pa-row i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pa-row i.ok { background: var(--ok); }
.pa-row i.bad { background: var(--bad); }
.pa-row i.warn { background: var(--warn); }

/* Product band: the divider that opens each product's chapter. */
.sec-tight { padding-top: 64px; }

/* AIDR chapter uses the violet accent */
.is-b .sec-tag { color: var(--b); }
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.how3 li { position: relative; padding: 22px 24px; border: 1px solid var(--edge); border-radius: 14px; background: var(--card); }
.how3 b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: rgba(182, 156, 255, 0.14); color: var(--b); font-weight: 500; font-size: 13px; }
.how3 h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.how3 p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.how3 li:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); z-index: 1; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--b); font-size: 12px; }

.layers { display: flex; flex-direction: column; justify-content: center; padding: 22px 22px 18px; border: 1px solid var(--edge); border-radius: 14px; background: var(--card); }
.ly-title { margin: 0 0 4px; font-size: 17px; font-weight: 500; }
.ly-sub { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.ly-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: center; padding: 11px 0; border-top: 1px solid var(--edge); }
.ly-row > span { font-size: 13.5px; color: rgba(242, 242, 240, 0.82); }
.ly-head { border-top: 0; padding-top: 0; }
.ly-head > span { font-size: 12px; text-align: center; color: var(--text-faint); }
.ly-head > span.ly-us { color: var(--b); font-weight: 500; }
.ly-row i { justify-self: center; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); }
.ly-row i.on { background: rgba(242, 242, 240, 0.5); border-color: transparent; }
.ly-row i.us { background: var(--b); box-shadow: 0 0 0 4px rgba(182, 156, 255, 0.16); }
.is-b .aidr { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.is-b .term-bar em { color: var(--b); }
.is-b .term-bar em i { background: var(--b); }

.works { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; padding: 18px 22px; border: 1px solid var(--edge); border-radius: 14px; }
.works p { margin: 0; font-size: 14.5px; color: var(--text); font-weight: 500; }
.works ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.works li { padding: 5px 11px; border: 1px solid var(--edge-2); border-radius: 999px; font-size: 13px; color: var(--text-muted); transition: border-color 0.25s ease, color 0.25s ease; }
.works li:hover { border-color: rgba(182, 156, 255, 0.55); color: var(--text); }
.together { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14.5px; color: var(--text-muted); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1120px) {
  .is-b .aidr { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .duo, .how3 { grid-template-columns: 1fr; }
  .how3 li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -18px; transform: translateX(-50%) rotate(90deg); }
}
@media (max-width: 640px) {
  .prod { padding: 26px 22px 24px; }
  .prod-one { font-size: 18px; }
}

/* ── Industries: a painting, a name, one sentence, the products that fit ── */
.inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ind { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 22px; border: 1px solid var(--edge); border-radius: 18px; background: var(--card); transition: transform 0.5s var(--ease), border-color 0.3s ease; }
.ind:hover { transform: translateY(-3px); border-color: var(--edge-2); }
.ind-art { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.ind-art::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; pointer-events: none; background: linear-gradient(180deg, rgba(13, 13, 13, 0), var(--card)); }
.ind h3 { margin: 0 22px 6px; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.022em; }
.ind-line { margin: 0 22px 16px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 22px 0; }
.ind-chips a { padding: 5px 11px; border: 1px solid var(--edge-2); border-radius: 999px; font-size: 12.5px; color: rgba(242, 242, 240, 0.86); transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.ind-chips a:hover { border-color: var(--a); background: rgba(110, 231, 168, 0.08); color: var(--text); }

/* ── Quote-based pricing ────────────────────────────────────────────────── */
.quotes2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.q { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 30px 28px; border: 1px solid var(--edge); border-radius: 16px; background: var(--card); }
.q.is-a { border-color: rgba(110, 231, 168, 0.3); background: linear-gradient(180deg, rgba(110, 231, 168, 0.06), var(--card) 55%); }
.q.is-b { border-color: rgba(182, 156, 255, 0.32); background: linear-gradient(180deg, rgba(182, 156, 255, 0.07), var(--card) 55%); }
.q-k { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.q h3 { margin: 0 0 8px; font-size: 30px; font-weight: 400; letter-spacing: -0.025em; }
.q > p:not(.q-k) { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.q ul { margin: 0 0 26px; padding: 0; list-style: none; }
.q li { position: relative; padding: 5px 0 5px 22px; font-size: 14.5px; color: rgba(242, 242, 240, 0.85); }
.q li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 4px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.q.is-a li::before { color: var(--a); }
.q.is-b li::before { color: var(--b); }
.q .btn { margin-top: auto; }

@media (max-width: 1120px) { .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .quotes2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .inds { grid-template-columns: 1fr; } .q { padding: 24px 22px; } }

/* ══ Frontier layer: proof strip, product pipelines, benchmark ═══════════ */
.hero-media picture { display: block; width: 100%; height: 100%; }

/* Pipelines: nodes joined by rails that carry moving signals. */
.pipe { display: flex; align-items: stretch; margin-top: 44px; }
.pn {
  flex: none;
  width: 190px;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 15px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--card);
}
.pn-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 9px; background: #171717; color: var(--text); }
.pn-ico svg, .r-ico svg, .ag-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pn b { font-weight: 500; font-size: 14.5px; }
.pn small { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--text-faint); }
.pipe-a .is-core { border-color: rgba(110, 231, 168, 0.5); box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.07), 0 0 50px -12px rgba(110, 231, 168, 0.4); }
.pipe-a .is-core .pn-ico { background: rgba(110, 231, 168, 0.14); color: var(--a); }
.pipe-b .is-core { border-color: rgba(182, 156, 255, 0.55); box-shadow: 0 0 0 4px rgba(182, 156, 255, 0.08), 0 0 50px -12px rgba(182, 156, 255, 0.45); animation: shield-hit 3s ease-out 1.95s infinite; }
.pipe-b .is-core .pn-ico { background: rgba(182, 156, 255, 0.16); color: var(--b); }
@keyframes shield-hit {
  0% { box-shadow: 0 0 0 4px rgba(239, 106, 106, 0.35), 0 0 60px -8px rgba(239, 106, 106, 0.6); border-color: rgba(239, 106, 106, 0.8); }
  25%, 100% { box-shadow: 0 0 0 4px rgba(182, 156, 255, 0.08), 0 0 50px -12px rgba(182, 156, 255, 0.45); border-color: rgba(182, 156, 255, 0.55); }
}

.pc { position: relative; flex: 1; min-width: 40px; align-self: center; height: 2px; margin: 0 -1px; background: linear-gradient(90deg, var(--edge-2), var(--edge-2)); overflow: visible; }
.pc em { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-style: normal; font-size: 11.5px; white-space: nowrap; color: var(--text-faint); }
.pc i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: rgba(242, 242, 240, 0.55); opacity: 0; animation: travel 3s linear infinite; }
.pc i:nth-child(2) { animation-delay: 0.5s; }
.pc i:nth-child(3) { animation-delay: 1s; }
.pc i:nth-child(4) { animation-delay: 1.5s; }
.pc i:nth-child(5) { animation-delay: 2s; }
.pc i:nth-child(6) { animation-delay: 2.5s; }
.pc i.w { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.pc i.r { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.pc i.g { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pipe-a .pc:nth-of-type(4) i { animation-duration: 3s; }
.pipe-a .pc:nth-of-type(4) i:nth-child(2) { animation-delay: 1.5s; }
.pipe-a .pc:nth-of-type(6) i:nth-child(2) { animation-delay: 1.5s; }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
/* AIDR: red signals never cross the kernel; they burst at the shield. */
.pc-in i:nth-child(1) { animation-delay: 0s; }
.pc-in i:nth-child(2) { animation-delay: 0.6s; animation-name: travel-stop; }
.pc-in i:nth-child(3) { animation-delay: 1.2s; }
.pc-in i:nth-child(4) { animation-delay: 1.95s; animation-name: travel-stop; animation-duration: 3s; }
.pc-in i:nth-child(5) { animation-delay: 2.4s; }
.pc-out i:nth-child(1) { animation-delay: 0.3s; }
.pc-out i:nth-child(2) { animation-delay: 1.5s; }
.pc-out i:nth-child(3) { animation-delay: 2.7s; }
@keyframes travel-stop {
  0% { left: 0; opacity: 0; transform: scale(1); }
  8% { opacity: 1; }
  88% { left: calc(100% - 8px); opacity: 1; transform: scale(1); }
  100% { left: calc(100% - 8px); opacity: 0; transform: scale(2.6); }
}
.pc-in em, .pc-out em { color: var(--text-faint); }

/* Benchmark */
.bench { padding: 30px 32px 24px; border: 1px solid var(--edge); border-radius: 16px; background: radial-gradient(80% 120% at 100% 0%, rgba(182, 156, 255, 0.08), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(110, 231, 168, 0.06), transparent 60%), var(--card); margin-bottom: 14px; }
.bench-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.bench-k { margin: 0 0 10px; font-size: 13px; color: var(--text-faint); }
.bench h3 { margin: 0; max-width: 620px; font-size: clamp(20px, 2vw, 26px); font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; }
.bench-big { flex: none; margin: 0; text-align: right; }
.bench-big b { display: block; font-size: clamp(48px, 5vw, 72px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bars { margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 52px; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--edge); }
.b-name { font-size: 14.5px; }
.b-name small { display: block; font-size: 12px; color: var(--text-faint); }
.b-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.b-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: rgba(242, 242, 240, 0.35); }
.bars li.is-us .b-track i { background: linear-gradient(90deg, var(--a), var(--b)); box-shadow: 0 0 18px rgba(182, 156, 255, 0.45); }
.bars li.is-us .b-name { color: var(--text); font-weight: 500; }
.bars b { font-weight: 400; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.bars li.is-us b { color: var(--a); }
.bench.play .b-track i { width: 0; transition: width 1.4s var(--ease); }
.bench.play.in .b-track i { width: var(--w); }
.bench.play.in li:nth-child(2) .b-track i { transition-delay: 0.12s; }
.bench.play.in li:nth-child(3) .b-track i { transition-delay: 0.24s; }
.bench.play.in li:nth-child(4) .b-track i { transition-delay: 0.36s; }
.bench-foot { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }

/* Research posts */
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 0; border-top: 0; }
.post-c { display: flex; flex-direction: column; gap: 10px; min-height: 140px; padding: 20px; border: 1px solid var(--edge); border-radius: 14px; background: var(--card); transition: transform 0.5s var(--ease), border-color 0.3s ease; }
.post-c:hover { transform: translateY(-3px); border-color: var(--edge-2); }
.post-c small { font-size: 12px; color: var(--text-faint); }
.post-c b { font-weight: 400; font-size: 15.5px; line-height: 1.4; }
.post-c::after { content: "Read →"; margin-top: auto; font-size: 13px; color: var(--a); }

.r-ico { width: 32px; height: 32px; }
.ag-ico svg { width: 20px; height: 20px; }

@media (max-width: 1120px) {
  .pn { width: 160px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Pipelines turn vertical; signals travel downward. */
  .pipe { flex-direction: column; align-items: stretch; max-width: 420px; }
  .pn { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .pn-ico { margin-bottom: 0; }
  .pn small { flex-basis: 100%; padding-left: 46px; margin-top: -4px; }
  .pc { width: 2px; height: 46px; min-width: 0; align-self: flex-start; margin: -1px 0 -1px 32px; }
  .pc em { left: 18px; top: 50%; transform: translateY(-50%); }
  .pc i { left: -3px; top: 0; animation-name: travel-v; }
  .pc-in i:nth-child(2), .pc-in i:nth-child(4) { animation-name: travel-v-stop; }
  @keyframes travel-v { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  @keyframes travel-v-stop { 0% { top: 0; opacity: 0; transform: scale(1); } 10% { opacity: 1; } 86% { top: calc(100% - 8px); opacity: 1; transform: scale(1); } 100% { top: calc(100% - 8px); opacity: 0; transform: scale(2.6); } }
  .bench-head { flex-direction: column; align-items: flex-start; }
  .bench-big { text-align: left; }
}
@media (max-width: 640px) {
  .bench { padding: 22px 18px 18px; }
  .bars li { grid-template-columns: minmax(0, 1fr) 46px; gap: 6px 12px; }
  .b-track { grid-column: 1 / -1; grid-row: 2; }
  .posts { grid-template-columns: 1fr; }
  .post-c { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pc i, .pipe-b .is-core { animation: none !important; }
  .pc i { opacity: 0; }
  .bench.play .b-track i { width: var(--w); transition: none; }
}
.bento > * { min-width: 0; }
.pr-out { flex-wrap: wrap; justify-content: center; }
@media (max-width: 900px) {
  .pipe .pc { flex: none; height: 52px; margin: 0 0 0 32px; }
  .pipe .pn { position: relative; z-index: 1; }
}

/* ══ Flagship layer ══════════════════════════════════════════════════════
   Display type, the floating header, the offense-to-defense hero, the proof
   band, the product index and the light band. Scoped to .home so the blog
   and case-study pages keep their own look. */
.home {
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Type ───────────────────────────────────────────────────────────────── */
.home .hero-title, .home .sec-title, .home .cta-title,
.home .prod h3, .home .q h3, .home .bench h3, .home .uc-agent h3, .home .cu-main h3 { font-family: var(--display); }
.home .sec-title { max-width: 820px; font-size: clamp(32px, 3.5vw, 50px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.home .sec-sub { text-wrap: pretty; }
.home .sec-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.home .sec-tag::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.home .prod h3 { font-weight: 500; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.home .btn { height: 38px; padding: 0 16px; border-radius: 10px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; text-transform: none; }
.home .btn-lg { height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.home .btn .chev { font-size: 15px; }
.home .btn-ghost { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.home .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); }
.home .btn-solid { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 12px 32px -14px rgba(255, 255, 255, 0.55); }

/* ── Announcement and floating header ───────────────────────────────────── */
.home .announce-link { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: rgba(242, 242, 240, 0.82); }
.home .site-header,
.home .site-header.is-scrolled,
.home .site-header.menu-open { height: 68px; margin-bottom: -68px; padding-top: 8px; border-bottom: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .header-inner {
  width: auto;
  max-width: none;
  height: 52px;
  /* The logo lines up with the hero copy; the pill overhangs it by 14px. */
  margin-inline: max(10px, calc((100% - var(--shell)) / 2 + 10px));
  padding-inline: 14px 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.home .site-header.is-scrolled .header-inner,
.home .site-header.menu-open .header-inner {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(11, 11, 11, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
}
.home .brand-logo { height: 28px; }
.home .site-footer .brand-logo { height: 32px; }
.home .home-nav { gap: 2px; }
.home .home-nav .nav-link { height: 36px; padding: 0 12px; border-radius: 9px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; text-transform: none; color: rgba(242, 242, 240, 0.72); transition: color 0.18s ease, background 0.18s ease; }
.home .home-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.home .home-nav .btn { margin-left: 8px; }
.home .burger { width: 38px; height: 36px; border-color: rgba(255, 255, 255, 0.14); border-radius: 10px; }

/* ── Hero: the copy sits low on the left; the landscape does the rest ───── */
/* A minimum, never a fixed height: if the copy wraps, the hero grows and the
   logo strip stays inside it. */
.home .hero { height: auto; min-height: clamp(640px, calc(100svh - 34px), 1040px); max-height: none; }
.home .hero-media img { object-position: 62% 42%; animation: hero-drift 28s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes hero-drift { from { transform: scale(1.1); } }
.home .hero-scrim {
  background:
    radial-gradient(70% 60% at 18% 66%, rgba(4, 4, 5, 0.7), transparent 72%),
    linear-gradient(90deg, rgba(4, 4, 5, 0.9) 0%, rgba(4, 4, 5, 0.6) 34%, rgba(4, 4, 5, 0.16) 64%, rgba(4, 4, 5, 0.34) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.82) 0%, rgba(4, 4, 5, 0.06) 24%, rgba(4, 4, 5, 0) 46%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 7, 0.84) 16%, rgba(7, 7, 7, 0) 48%);
}
.home .hero-inner { display: flex; align-items: flex-end; padding-top: 108px; padding-bottom: 44px; }
.home .hero-copy { max-width: 860px; }

.hero-cred { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 24px; font-size: 15px; }
.hero-cred b { font-weight: 400; font-size: 13.5px; color: rgba(242, 242, 240, 0.62); }
.hero-cred span { font-weight: 600; letter-spacing: -0.01em; color: rgba(242, 242, 240, 0.95); }
.hero-cred span + span::before { content: "/"; margin-right: 14px; font-weight: 400; color: rgba(242, 242, 240, 0.3); }

.home .hero-title { margin: 0 0 24px; font-size: clamp(44px, 5.5vw, 86px); font-weight: 600; line-height: 0.98; letter-spacing: -0.045em; }
/* Each line rises out of its own mask. The padding keeps descenders. */
.hero-title .hl { display: block; overflow: hidden; margin-bottom: -0.18em; padding-bottom: 0.18em; }
.hero-title .hl > * { display: block; animation: line-up 1.05s var(--ease) 0.1s both; }
.hero-title .hl + .hl > * { animation-delay: 0.24s; }
@keyframes line-up { from { transform: translateY(108%); } }
/* Second line: same weight, lit from white to mint. home.js decrypts it in. */
.hero-title .hl-2, .hero-title .hl-2.scr::after { background: linear-gradient(94deg, #fff 4%, #c9f7de 46%, var(--a) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .hl-2 { position: relative; padding-right: 0.04em; }
/* While decrypting, the words turn invisible and the scramble sits exactly over them. */
.hero-title .hl-2.scr { background: none; }
.hero-title .hl-2.scr::after { content: attr(data-s); position: absolute; inset: 0 0 auto; padding-right: 0.04em; }
.home .hero-lede { max-width: 520px; margin-bottom: 32px; font-size: 19px; line-height: 1.5; color: rgba(242, 242, 240, 0.8); }

/* Recognition logos sit on the bottom edge of the hero image. */
.hero-strip { position: relative; z-index: 10; border-top: 1px solid rgba(255, 255, 255, 0.08); animation: hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both; }
.hero-strip-inner { display: flex; align-items: center; gap: 40px; min-height: 84px; padding-block: 10px; }
.hero-strip .marquee-k { flex: none; max-width: 190px; margin: 0; font-size: 12.5px; line-height: 1.4; text-align: left; color: var(--text-faint); }
.hero-strip .mq-track { flex: 1; min-width: 0; }
.hero-strip .mq-list { flex-wrap: wrap; justify-content: flex-start; gap: 4px 0; }
.hero-strip .mq-list.loop { flex-wrap: nowrap; }
.hero-strip .mq-track:not(:has(.loop)) { -webkit-mask-image: none; mask-image: none; }
.hero-strip .mq-item { width: auto; height: 44px; margin-right: 0; padding: 0 32px; border-radius: 0; background: none; color: rgba(242, 242, 240, 0.72); }
.hero-strip .mq-item .logo-img { max-width: none; opacity: 0.82; }

/* ── Offense-proven: copy and numbers, a painting, then the three moves ─── */
.off-top { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); align-items: stretch; gap: 64px; margin-bottom: 14px; }
.off-copy { display: flex; flex-direction: column; padding-top: 8px; }
.offense .sec-sub { max-width: 500px; margin-bottom: 48px; }
/* Four numbers on hairlines: no box, so they read as type, not as tiles. */
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--edge); }
.creds li { display: flex; flex-direction: column; padding: 26px 28px 28px 0; border-bottom: 1px solid var(--edge); }
.creds li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--edge); }
.creds li:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 6px; }
.creds b { display: block; margin-bottom: 10px; font-family: var(--display); font-size: clamp(40px, 4vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.creds li:first-child b { background: linear-gradient(95deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.creds span { max-width: 250px; font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.creds a { display: flex; flex-direction: column; flex: 1; border-radius: 10px; transition: opacity 0.2s ease; }
.creds a:focus-visible { outline: 2px solid var(--a); outline-offset: 6px; }
.creds em { margin-top: 10px; font-style: normal; font-size: 13.5px; color: var(--a); transition: transform 0.3s var(--spring); }
.creds a:hover em { transform: translateX(4px); }

.off-art { min-height: 540px; margin: 0; border: 1px solid var(--edge); border-radius: 22px; }
.off-art figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; padding: 14px 18px 15px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: rgba(8, 8, 12, 0.56); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; line-height: 1.45; color: rgba(242, 242, 240, 0.78); }
.off-art figcaption b { display: block; margin-bottom: 2px; font-weight: 500; font-size: 15.5px; color: var(--text); }

/* ── Cursor light on cards (home.js adds .spot and tracks the pointer) ──── */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 62%); transition: opacity 0.35s ease; }
.spot:hover::after { opacity: 1; }

/* ── Paintings (art.js draws them; the gradient shows until it has) ─────── */
.paint { position: relative; overflow: hidden; background: linear-gradient(180deg, #0a0d24 0%, #241d4c 58%, #6a4560 100%); }
/* art.js wraps each picture in a stage: the canvas, the sheets that move over
   it, and a light layer on top. The stage fades in once the picture is whole. */
.paint > canvas { opacity: 0; }
.paint .stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.paint .stage.on { opacity: 1; }
.paint canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.paint .fx, .paint .b-screen { mix-blend-mode: screen; }
/* Sheets move only while the picture is on screen (art.js adds .live). */
.paint .lay { animation: var(--dur, 40s) ease-in-out var(--delay, 0s) infinite alternate paused; will-change: transform, opacity; }
.paint.live .lay, .paint.live .stage.kb { animation-play-state: running; }
.paint .m-drift { animation-name: art-drift; }
.paint .m-rise { animation-name: art-rise; }
.paint .m-sway { animation-name: art-sway; }
.paint .m-breathe { animation-name: art-breathe; }
.paint .m-spin { animation-name: art-spin; animation-timing-function: linear; animation-direction: normal; }
.paint .m-flash { animation-name: art-flash; animation-timing-function: linear; animation-direction: normal; }
.paint .stage.kb { animation: art-kb 40s ease-in-out infinite alternate paused; }
@keyframes art-drift { from { transform: translate3d(calc(var(--amt, 2%) * -1), 0, 0); } to { transform: translate3d(var(--amt, 2%), 0, 0); } }
@keyframes art-rise { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(var(--amt, 1%), calc(var(--amt, 1%) * -1.6), 0); opacity: 0.72; } }
@keyframes art-sway { from { transform: rotate(calc(var(--amt, 2deg) * -1)); } to { transform: rotate(var(--amt, 2deg)); } }
@keyframes art-breathe { from { opacity: var(--lo, 0.6); } to { opacity: 1; } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-flash { 0%, 100% { opacity: 0; } 6%, 34% { opacity: 1; } 58% { opacity: 0; } }
@keyframes art-kb { from { scale: 1; } to { scale: 1.05; } }

/* ── The model ──────────────────────────────────────────────────────────── */
.core { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); margin-bottom: 14px; overflow: hidden; border: 1px solid var(--edge); border-radius: 22px; background: var(--card); }
.core-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 42px 42px 38px; }
.core-k { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.core-k i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 0 14px rgba(182, 156, 255, 0.6); }
.core h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(28px, 2.9vw, 40px); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.core-p { max-width: 440px; margin: 0 0 30px; font-size: 16.5px; line-height: 1.55; color: var(--text-muted); }
.core-models { width: 100%; margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--edge); }
.core-models li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); font-size: 14.5px; line-height: 1.45; color: var(--text-muted); }
.core-models li:last-child { padding-bottom: 0; border-bottom: 0; }
.core-models b { font-weight: 500; color: var(--text); }
.core-art { min-height: 420px; }
.core-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--card) 0%, rgba(13, 13, 13, 0) 20%); }
.core-score { position: absolute; z-index: 1; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 18px 12px 16px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; background: rgba(8, 8, 14, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.core-score b { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.core-score span { max-width: 172px; font-size: 12.5px; line-height: 1.35; color: rgba(242, 242, 240, 0.82); }

.benches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.benches .bench { display: flex; flex-direction: column; margin: 0; padding: 28px 28px 22px; }
.benches .bench-head { align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.benches .bench h3 { font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.benches .bench-big b { font-family: var(--display); font-size: clamp(44px, 4.4vw, 62px); font-weight: 600; }
.benches .bars li { grid-template-columns: 150px minmax(0, 1fr) 46px; gap: 14px; padding: 9px 0; }
.benches .b-name { font-size: 14px; }
.benches .b-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.benches .bench-foot { margin-top: auto; padding-top: 16px; }
.bench.play.in li:nth-child(5) .b-track i { transition-delay: 0.48s; }
.benches .bench-big { text-align: right; }
.benches .bench-big span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.bench-foot a { color: var(--a); white-space: nowrap; }

/* ── Products: two flagships with a painting each, five more below ──────── */
.home .prod { padding-top: 0; scroll-margin-top: 110px; }
.prod-banner { height: 232px; margin: 0 -34px 26px; }
.prod-banner::after, .mp-art::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; pointer-events: none; background: linear-gradient(180deg, rgba(13, 13, 13, 0), var(--card)); }
.lineup-k { margin: 44px 0 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.more { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mp { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--edge); border-radius: 18px; background: var(--card); scroll-margin-top: 110px; transition: transform 0.5s var(--ease), border-color 0.3s ease; }
.mp:hover { transform: translateY(-4px); border-color: var(--edge-2); }
.mp-art { aspect-ratio: 4 / 3; }
.mp-art::after { height: 38%; }
.mp-k { margin: 14px 18px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.mp h3 { margin: 0 18px 8px; font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: -0.03em; }
.mp-p { margin: 0 18px 18px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.mp-go { display: inline-flex; gap: 8px; margin: auto 18px 20px; font-size: 13.5px; color: var(--text-muted); transition: color 0.2s ease; }
.mp-go em { font-style: normal; transition: transform 0.3s var(--spring); }
.mp:hover .mp-go { color: var(--text); }
.mp:hover .mp-go em { transform: translateX(4px); }

/* ── Every team ─────────────────────────────────────────────────────────── */
.teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--edge); border-radius: 18px; background: var(--card); }
.team { padding: 24px 24px 22px; border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge); transition: background 0.3s ease; }
.team:nth-child(4n) { border-right: 0; }
.team:nth-last-child(-n+4) { border-bottom: 0; }
.team:hover { background: rgba(255, 255, 255, 0.025); }
.team-n { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--a); }
.team h3 { margin: 0 0 6px; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.team-p { min-height: 42px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.team ul { margin: 0; padding: 0; list-style: none; }
.team li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid var(--edge); font-size: 13.5px; line-height: 1.4; color: rgba(242, 242, 240, 0.82); }
.team li::before { content: ""; position: absolute; left: 1px; top: 13px; width: 7px; height: 3.5px; border-left: 1.5px solid var(--a); border-bottom: 1.5px solid var(--a); transform: rotate(-45deg); }
.home .mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Light band: the buying sections flip to paper ──────────────────────── */
.band-light {
  --text: #0c0c0d;
  --text-muted: rgba(12, 12, 13, 0.66);
  --text-faint: rgba(12, 12, 13, 0.6);
  --edge: rgba(12, 12, 13, 0.1);
  --edge-2: rgba(12, 12, 13, 0.2);
  --card: #fff;
  --ok: #0a7a48;
  --a: #0a7a48;
  --b: #6b46e5;
  margin: 150px 12px 0;
  padding-bottom: 130px;
  border-radius: 36px;
  background: #f2f1ed;
  color: var(--text);
}
.band-light > .sec:first-child { padding-top: 120px; }
.band-light .btn-solid, .band-light .btn-solid:hover { border-color: var(--text); background: var(--text); color: #fff; box-shadow: none; }
.band-light .btn-solid:hover { background: #000; }
.band-light .r-ico { background: rgba(11, 138, 82, 0.1); }
.band-light .compare .us { background: rgba(11, 138, 82, 0.07); }
.band-light .compare thead th { font-weight: 500; }
.band-light .q.is-a { border-color: rgba(11, 138, 82, 0.28); background: linear-gradient(180deg, rgba(11, 138, 82, 0.07), var(--card) 55%); }
.band-light .q.is-b { border-color: rgba(107, 70, 229, 0.28); background: linear-gradient(180deg, rgba(107, 70, 229, 0.07), var(--card) 55%); }
.band-light .q li { color: var(--text-muted); }
.band-light .ready li, .band-light .cmp, .band-light .q { box-shadow: 0 1px 2px rgba(12, 12, 13, 0.04), 0 18px 40px -28px rgba(12, 12, 13, 0.25); }

/* ── Contact and footer ─────────────────────────────────────────────────── */
.home .cta { border-radius: 22px; }
.home .cta-l { position: relative; overflow: hidden; }
.cta-art { position: absolute; inset: 0; }
.cta-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 8, 10, 0.95) 6%, rgba(8, 8, 10, 0.84) 60%, rgba(8, 8, 10, 0.32) 100%); }
.cta-l > *:not(.cta-art) { position: relative; z-index: 1; }
.home .cta-title { font-size: clamp(34px, 3.6vw, 52px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.home .site-footer { margin-top: 110px; background: #0a0a0a; }
.home .footer-cols { grid-template-columns: repeat(2, minmax(120px, 160px)) minmax(240px, 330px); gap: 32px 44px; }
.footer-ents p:not(.footer-head) { margin: 0 0 3px; font-size: 13.5px; line-height: 1.45; color: rgba(242, 242, 240, 0.6); }
.footer-ents b { display: block; font-weight: 500; font-size: 14px; color: rgba(242, 242, 240, 0.9); }
.footer-tag { margin: 0; padding: 6px 0 46px; font-family: var(--display); font-size: clamp(40px, 5.9vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: rgba(242, 242, 240, 0.92); }
.footer-tag span { color: rgba(242, 242, 240, 0.24); }

/* ── Flagship responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Fill the screen, but never stretch past a tall-phone height. */
  .home .hero { height: auto; min-height: min(calc(100svh - 34px), 1040px); max-height: none; }
  .home .hero-inner { padding-top: 128px; }
}
@media (max-width: 980px) {
  .home .mobile-nav,
  .home .site-header.menu-open .mobile-nav { top: calc(100% + 6px); left: 10px; right: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(11, 11, 11, 0.97); }
  .home .mobile-nav-link { min-height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.045); font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); }
}
@media (max-width: 900px) {
  .footer-tag span { display: block; }
}
@media (max-width: 820px) {
  .band-light { margin: 110px 0 0; padding-bottom: 96px; border-radius: 28px; }
  .band-light > .sec:first-child { padding-top: 88px; }
  .home .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer-ents { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .an-long { display: none; }
  .home .hero-inner { padding-top: 104px; padding-bottom: 28px; }
  .home .hero-title { font-size: clamp(40px, 11.6vw, 54px); }
  .home .hero-lede { margin-bottom: 26px; font-size: 17px; }
  .home .hero-actions .btn { flex: 1 1 auto; }
  .hero-cred { margin-bottom: 20px; font-size: 14px; }
  .hero-cred b { flex-basis: 100%; }
  .hero-cred span + span::before { margin-right: 10px; }
  .hero-cred { column-gap: 10px; }
  .hero-strip-inner { flex-direction: column; align-items: stretch; gap: 8px; height: auto; padding-block: 14px 16px; }
  .hero-strip .marquee-k { max-width: none; text-align: center; }
  .hero-strip .mq-item { padding: 0 22px; }
}
@media (max-width: 1120px) {
  /* The five smaller products become a swipeable row. */
  .more { display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .more::-webkit-scrollbar { display: none; }
  .mp { flex: 0 0 258px; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team:nth-child(4n) { border-right: 1px solid var(--edge); }
  .team:nth-child(2n) { border-right: 0; }
  .team:nth-last-child(-n+4) { border-bottom: 1px solid var(--edge); }
  .team:nth-last-child(-n+2) { border-bottom: 0; }
  .home .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .core, .benches { grid-template-columns: minmax(0, 1fr); }
  .core-art { order: -1; min-height: 300px; }
  .core-art::after { background: linear-gradient(0deg, var(--card) 0%, rgba(13, 13, 13, 0) 30%); }
  .core-copy { padding: 30px 26px 30px; }
}
@media (max-width: 640px) {
  .home .prod { padding-top: 0; }
  .prod-banner { height: 190px; margin: 0 -22px 22px; }
  .core-art { min-height: 250px; }
  .core-copy { padding: 26px 22px; }
  .core-models li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .core-score { right: 14px; bottom: 14px; padding: 10px 14px; }
  .core-score b { font-size: 30px; }
  .benches .bench { padding: 22px 18px 18px; }
  .benches .bars li { grid-template-columns: minmax(0, 1fr) 46px; gap: 6px 12px; }
  /* Long grids become swipe rows on a phone, so the page stays short. */
  .teams, .inds { display: flex; gap: 12px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .teams::-webkit-scrollbar, .inds::-webkit-scrollbar { display: none; }
  .teams { border: 0; border-radius: 0; background: none; }
  .team, .team:nth-child(2n), .team:nth-child(4n), .team:nth-last-child(-n+2) { flex: 0 0 272px; border: 1px solid var(--edge); border-radius: 16px; background: var(--card); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .ind { flex: 0 0 290px; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .team-p { min-height: 0; }
  .home .mini { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero-media img, .hero-title .hl > *, .hero-strip, .al-dot.run { animation: none !important; }
  .paint .stage { transition: none; }
  .paint .lay, .paint .stage.kb { animation: none; }
  .prod:hover, .mp:hover, .ind:hover, .post-c:hover { transform: none; }
}

/* ══ QA pass ══════════════════════════════════════════════════════════════
   One grid for the whole page, then the fixes from the visual review. */
.home { --shell: 1280px; }
.home .wrap { max-width: 1280px; }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 320px; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(242, 242, 240, 0.6); }

@media (max-width: 1120px) and (min-width: 641px) {
  /* Five tabs share the rows evenly instead of leaving an empty slot. */
  .uc-tabs { display: flex; flex-wrap: wrap; }
  .uc-tab { flex: 1 1 30%; }
}
@media (max-width: 900px) {
  .pipe { max-width: none; }
  .footer-tag { line-height: 1.1; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .pn { flex-wrap: nowrap; }
  .pn small { flex-basis: auto; margin: 0 0 0 auto; padding-left: 0; }
}
@media (max-width: 820px) {
  .ready { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-art::after { background: linear-gradient(180deg, rgba(8, 8, 10, 0.9), rgba(8, 8, 10, 0.72)); }
}
@media (max-width: 640px) {
  .home .hero-inner { padding-top: 92px; }
  .hero-title .hl + .hl { padding-top: 0.1em; }
  .ready { grid-template-columns: minmax(0, 1fr); }
  .ready li { gap: 14px; padding: 16px 18px; font-size: 15px; }
  .kt li { align-items: start; }
  .kt code { white-space: normal; overflow-wrap: anywhere; }
  .flow-par { max-width: 300px; }
  .together { align-items: flex-start; }
  .together .dot-ab { margin-top: 7px; }
}

/* Links from the homepage to the full product pages. */
.core-go { margin-top: 24px; color: var(--b); }
.core-go em { font-style: normal; transition: transform 0.3s var(--spring); }
.core-go:hover em { transform: translateX(4px); }

/* Offense section, narrower screens. */
@media (max-width: 980px) {
  .off-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .off-art { min-height: 380px; }
  .creds { margin-top: 0; }
}
@media (max-width: 640px) {
  .offense .sec-sub { margin-bottom: 32px; }
  .creds li { padding: 22px 16px 24px 0; }
  .creds li:nth-child(even) { padding-left: 18px; }
  .creds b { font-size: 40px; }
  .off-art { min-height: 320px; }
}

/* ── What we see from the inside: the three gaps ────────────────────────── */
.gaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gap { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 30px 28px 26px; border: 1px solid var(--edge); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 107, 90, 0.06), var(--card) 48%); }
.gap::before { content: ""; position: absolute; left: 28px; top: 0; width: 44px; height: 2px; background: var(--bad); }
.gap-v { margin: 0 0 24px; font-family: var(--display); font-size: clamp(44px, 4.6vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.gap h3 { margin: 0 0 10px; font-family: var(--display); font-size: 23px; font-weight: 500; line-height: 1.16; letter-spacing: -0.025em; }
.gap > p:not(.gap-v) { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.gap small { margin-top: auto; font-size: 12px; color: var(--text-faint); }
.gaps-turn { max-width: 780px; margin: 40px 0 0; font-family: var(--display); font-size: clamp(24px, 2.7vw, 36px); font-weight: 500; line-height: 1.16; letter-spacing: -0.032em; }
.gaps-turn span { background: linear-gradient(94deg, #c9f7de, var(--a)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── A scene stamp on each product painting ─────────────────────────────── */
.scene { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(7, 7, 9, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); }
.scene i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); }
.prod.is-b .scene i { background: var(--b); box-shadow: 0 0 10px var(--b); }
.prod-banner .scene { left: 34px; top: 18px; }

/* ── Control: three promises ────────────────────────────────────────────── */
.vows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.vows li { padding: 26px 26px 28px; border: 1px solid var(--edge); border-radius: 18px; background: var(--card); }
.vows .r-ico { margin-bottom: 22px; }
.vows h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.022em; }
.vows p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.band-light .vows li { box-shadow: 0 1px 2px rgba(12, 12, 13, 0.04), 0 18px 40px -28px rgba(12, 12, 13, 0.25); }

/* ── Footer: everything we defend, under one sky ────────────────────────── */
.world { position: relative; margin-top: 18px; }
.footer-art { aspect-ratio: 2400 / 620; background: #0a0a0a; }
.footer-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 26%, rgba(10, 10, 10, 0) 70%, #0a0a0a 100%), linear-gradient(90deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 7%, rgba(10, 10, 10, 0) 93%, #0a0a0a 100%); }
.world-nav a { position: absolute; left: var(--x); top: 87%; padding-top: 14px; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: rgba(242, 242, 240, 0.6); transition: color 0.2s ease; }
.world-nav a::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 9px; background: currentColor; opacity: 0.55; }
.world-nav a:hover { color: #fff; }
.world + .shell .footer-tag { padding-top: 34px; }

@media (max-width: 1000px) {
  .gaps, .vows { grid-template-columns: minmax(0, 1fr); }
  .gap-v { margin-bottom: 16px; }
  .world-nav { display: none; }
}
@media (max-width: 700px) {
  .footer-art { aspect-ratio: 16 / 10; }
  .prod-banner .scene { left: 22px; }
}
