:root {
  --ink: #151515;
  --ink-78: rgba(21, 21, 21, 0.78);
  --ink-58: rgba(21, 21, 21, 0.58);
  --ink-36: rgba(21, 21, 21, 0.36);
  --line: rgba(21, 21, 21, 0.075);
  --line-blue: rgba(0, 112, 243, 0.18);
  --blue: #0070f3;
  --blue-2: #7eb6ff;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-soft: rgba(255, 255, 255, 0.5);
  --font-body: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-cn: "Noto Serif SC", serif;
  --font-display: "Instrument Serif", "Noto Serif SC", serif;
  --radius-window: 24px;
  --radius-pill: 999px;
  --shadow-window: 0 34px 90px rgba(0, 0, 0, 0.25), 0 8px 34px rgba(0, 0, 0, 0.16);
  --shadow-soft: 0 18px 52px rgba(46, 70, 116, 0.11), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #f2eee2;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg.lucide {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.desktop {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(238, 242, 247, 0.28)),
    url("./assets/agentpilot-surreal-bg.webp") center / cover no-repeat;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 24%, transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(238, 242, 247, 0.5));
  pointer-events: none;
}

.contact-btn {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-pill);
  color: rgba(17, 17, 17, 0.7);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.debug-panel {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72), 0 12px 36px rgba(31, 46, 79, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.debug-panel span,
.debug-panel button {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
}

.debug-panel span {
  padding: 0 7px;
  color: rgba(21, 21, 21, 0.36);
  text-transform: uppercase;
}

.debug-panel button {
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  color: rgba(21, 21, 21, 0.52);
  background: transparent;
  cursor: pointer;
}

.debug-panel button:hover,
.debug-panel button.is-active {
  color: rgba(21, 21, 21, 0.82);
  background: rgba(255, 255, 255, 0.72);
}

.tb-btn,
.send-btn,
.scope-pill,
.plus-btn,
.detail-close,
.detail-nav,
.chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(41, 55, 90, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.tb-btn:hover,
.send-btn:hover,
.scope-pill:hover,
.plus-btn:hover,
.detail-close:hover,
.detail-nav:hover,
.chip:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 16px 38px rgba(41, 55, 90, 0.12), inset 0 1px 1px #fff;
}

.tb-btn.icon,
.plus-btn,
.detail-close,
.detail-nav {
  width: 34px;
  padding: 0;
}

.tb-btn.pill {
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
}

.tb-btn.ghost {
  color: var(--ink-36);
  background: transparent;
  box-shadow: none;
}

.app-body {
  position: relative;
  min-height: 100vh;
}

.home {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 clamp(18px, 4vw, 56px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.home.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.hero {
  text-align: center;
  perspective: 900px;
}

.hero h1 {
  display: grid;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  opacity: 0;
  transform: translateY(18px) rotateX(8deg);
  animation: hero-line-in 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 span:last-child {
  animation-delay: 110ms;
}

.hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(21, 21, 21, 0.5);
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  animation: hero-copy-in 440ms cubic-bezier(0.16, 1, 0.3, 1) 160ms forwards;
}

.prompt-dock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(610px, calc(100vw - 42px));
  min-height: 54px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 54px rgba(31, 46, 79, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  backdrop-filter: blur(12px) saturate(1.35);
  opacity: 0;
  transform: translateY(12px);
  animation: prompt-in 440ms cubic-bezier(0.16, 1, 0.3, 1) 220ms forwards;
}

#promptInput {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}

.scope-pill {
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink-78);
  font-size: 13px;
  font-weight: 600;
}

.send-btn {
  width: 42px;
  min-height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #111;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.send-btn:hover {
  color: #fff;
  background: #111;
  box-shadow: 0 15px 32px rgba(17, 17, 17, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.24);
}

.run {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.run.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.run-canvas {
  overflow: auto;
  min-height: 0;
  height: 100vh;
  padding: 8vh clamp(16px, 5vw, 76px) 36px;
}

.live-stage,
.artifact-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.live-stage {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 58px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.run.show-artifacts .live-stage {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.98);
}

.run-line {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-bubble {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.user-bubble p {
  max-width: min(720px, 88%);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.65;
}

.assistant-text {
  width: min(780px, 100%);
  margin: 0 auto;
  color: var(--ink);
}

.assistant-text h2 {
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0;
}

.assistant-text p {
  color: var(--ink-58);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.72;
  margin-top: 4px;
}

.agent-log {
  display: grid;
  gap: 8px;
  width: min(780px, 100%);
  margin: 8px auto 0;
}

.thought-card {
  --thought-column-width: min(680px, 100%);

  width: min(980px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: thought-enter 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.thought-head {
  width: var(--thought-column-width);
  max-width: 100%;
  margin-bottom: 16px;
  margin-inline: auto;
  padding: 0 8px;
  text-align: left;
}

.thought-kicker {
  display: block;
}

.thought-label {
  color: rgba(0, 112, 243, 0.68);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 0 6px;
  padding: 3px 10px 3px 4px;
  border: 1px solid rgba(0, 112, 243, 0.22);
  border-radius: 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 24px rgba(0, 112, 243, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.12em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(0, 112, 243, 0.22);
}

.feature-icon svg.lucide {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.thought-head p {
  max-width: 100%;
  margin: 7px 0 -8px;
  padding: 4px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.35vw, 1.34rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0;
  overflow: visible;
  transition: opacity 150ms ease, transform 150ms ease;
}

.thought-head p.is-exiting {
  opacity: 0;
  transform: translateY(-7px);
}

.thought-head p.is-entering {
  opacity: 1;
  transform: translateY(0);
}

.thought-head p .speech-chunk {
  color: inherit;
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}

.speech-chunk {
  opacity: 1;
  white-space: pre-wrap;
}

.thought-head p.is-entering .speech-chunk {
  animation: speech-chunk-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 28ms);
}

.thought-window {
  position: relative;
  overflow: hidden;
  width: var(--thought-column-width);
  height: 154px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.thought-window .agent-log {
  width: 100%;
  margin: 0;
  padding: 18px 0;
}

.agent-log.compact {
  gap: 8px;
}

.log-row {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--ink-36);
  font-family: var(--font-cn);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(5px);
  animation: reveal 420ms ease forwards;
}

.loading-text {
  position: relative;
  overflow: hidden;
  display: inline-block;
  color: var(--ink-36);
  font-weight: 500;
  vertical-align: bottom;
}

.loading-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: rgba(0, 112, 243, 0.76);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 58%, transparent 100%);
  -webkit-mask-size: 240% 100%;
  mask-size: 240% 100%;
  -webkit-mask-position: 92% 0;
  mask-position: 92% 0;
  pointer-events: none;
  animation: text-sweep 1.45s cubic-bezier(0.25, 0.1, 0.12, 1) infinite;
}

.log-status {
  color: rgba(21, 21, 21, 0.52);
  font-weight: 500;
}

.log-detail {
  color: rgba(21, 21, 21, 0.34);
  font-weight: 400;
}

.app-logo {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 3px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  vertical-align: middle;
  transform: translateY(-0.5px);
}

.app-logo img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.app-logo svg {
  display: block;
  width: 15px;
  height: 15px;
}

.app-logo-fallback {
  color: rgba(21, 21, 21, 0.72);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.ledger-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 3px;
  padding: 0 9px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-pill);
  color: var(--ink-78);
  background: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  vertical-align: baseline;
}

.source-disclosure {
  display: inline-grid;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.source-toggle {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-pill);
  color: rgba(21, 21, 21, 0.48);
  background: rgba(255, 255, 255, 0.54);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.source-toggle[aria-expanded="true"] {
  color: rgba(21, 21, 21, 0.62);
  background: rgba(255, 255, 255, 0.76);
}

.source-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(430px, 70vw);
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.source-panel[hidden] {
  display: none;
}

.source-panel a {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 10px;
  color: rgba(21, 21, 21, 0.58);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.56);
}

.source-panel a span,
.source-panel a small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-panel a span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.source-panel a small {
  margin-top: 1px;
  color: rgba(21, 21, 21, 0.34);
  font-family: var(--font-body);
  font-size: 10px;
}

.final-verdict {
  width: min(780px, 100%);
  margin: 2px auto 18px;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.72;
}

.artifact-verdict {
  grid-column: 1 / -1;
  text-align: center;
}

.artifact-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1088px, calc(100vw - 32px));
  margin-top: 0;
  padding: clamp(38px, 7vh, 76px) 0 28px;
}

.artifact-grid.is-visible {
  display: grid;
  animation: cards-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.final-response {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 28px;
  text-align: left;
}

.final-response > span {
  color: rgba(0, 112, 243, 0.68);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.final-response h2 {
  max-width: 100%;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.45vw, 3.15rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.final-response p {
  max-width: 880px;
  margin: 20px 0 0;
  color: rgba(21, 21, 21, 0.62);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.92;
}

.artifact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 286px;
  padding: 16px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    0 22px 58px rgba(34, 52, 84, 0.11),
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(20, 34, 56, 0.05);
  cursor: pointer;
  text-align: left;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 286px 360px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.artifact-card::before,
.artifact-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.artifact-card::before {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 18%);
  opacity: 0.82;
}

.artifact-card::after {
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 1px 0 0 rgba(255, 255, 255, 0.28);
}

.artifact-card > * {
  position: relative;
  z-index: 1;
}

.artifact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.44);
  box-shadow:
    0 26px 70px rgba(34, 52, 84, 0.14),
    inset 0 1px 1px #fff,
    inset 0 -1px 0 rgba(20, 34, 56, 0.06);
}

.artifact-card.is-opening-detail {
  pointer-events: none;
  animation: source-card-out 220ms cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.artifact-card.is-returning-detail {
  pointer-events: none;
  animation: source-card-in 220ms cubic-bezier(0.18, 0.82, 0.22, 1) both;
}

.artifact-top {
  display: flex;
  align-items: center;
  min-height: 18px;
  color: rgba(21, 21, 21, 0.44);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.artifact-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.52 / 1;
  margin: 0 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(236, 229, 210, 0.46);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(42, 55, 78, 0.12);
}

.artifact-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(22, 24, 26, 0.08)),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.34), transparent 38%);
  pointer-events: none;
}

.artifact-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.artifact-card:hover .artifact-cover img {
  transform: scale(1.055);
}

.artifact-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.artifact-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: rgba(21, 21, 21, 0.46);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.artifact-meta b {
  color: rgba(12, 19, 30, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-transform: none;
}

.artifact-visual {
  position: relative;
  height: 104px;
  margin: 14px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(233, 240, 248, 0.34)),
    repeating-linear-gradient(90deg, rgba(21, 21, 21, 0.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(21, 21, 21, 0.035) 0 1px, transparent 1px 26px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(20, 34, 56, 0.06);
  overflow: hidden;
}

.artifact-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.42), transparent 44%);
  pointer-events: none;
}

.artifact-metric {
  color: rgba(12, 19, 30, 0.92);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.artifact-card h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.26;
}

.artifact-card p {
  margin-top: 9px;
  color: var(--ink-58);
  font-family: var(--font-cn);
  font-size: 12.8px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.artifact-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
}

.artifact-facts span {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(54px, 0.32fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72);
}

.artifact-facts small,
.artifact-facts b {
  display: block;
  min-width: 0;
}

.artifact-facts small {
  color: rgba(21, 21, 21, 0.38);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.artifact-facts b {
  color: rgba(21, 21, 21, 0.72);
  font-family: var(--font-cn);
  font-size: 10.7px;
  font-weight: 500;
  line-height: 1.34;
  overflow-wrap: break-word;
}

.artifact-visual svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.artifact-visual svg path {
  fill: none;
  stroke: rgba(0, 112, 243, 0.38);
  stroke-width: 2;
}

.artifact-visual svg circle {
  fill: rgba(9, 14, 22, 0.84);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
}

.artifact-visual b,
.artifact-visual span {
  position: relative;
  z-index: 1;
}

.visual-pain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.visual-pain span,
.visual-local span,
.visual-entry span,
.visual-persona span,
.visual-cases span,
.visual-compare span,
.visual-edge span,
.visual-flywheel span,
.visual-arena span,
.visual-edge b,
.visual-entry b,
.visual-flywheel b,
.visual-arena b,
.visual-business b {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-pill);
  color: rgba(21, 21, 21, 0.64);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.78), 0 10px 24px rgba(35, 52, 80, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.visual-local,
.visual-entry {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 14px;
}

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

.visual-local span {
  min-height: 46px;
  border-radius: 14px;
}

.visual-local b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: rgba(9, 14, 22, 0.9);
  box-shadow: 0 18px 34px rgba(9, 14, 22, 0.22);
  transform: translate(-50%, -50%);
  font-size: 11px;
}

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

.visual-entry b {
  grid-column: 1 / -1;
  color: #fff;
  background: rgba(9, 14, 22, 0.88);
}

.visual-pain b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 14, 22, 0.88);
  box-shadow: 0 16px 32px rgba(9, 14, 22, 0.18);
  transform: translate(-50%, -50%);
  font-size: 12px;
}

.visual-network b,
.visual-donut b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.visual-persona,
.visual-cases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 15px;
}

.visual-persona span {
  min-width: 62px;
  min-height: 54px;
  border-radius: 16px;
}

.visual-cases span {
  min-height: 25px;
  padding-inline: 9px;
}

.visual-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 13px;
}

.visual-compare b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 34px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(9, 14, 22, 0.9);
  box-shadow: 0 16px 34px rgba(9, 14, 22, 0.2);
  transform: translate(-50%, -50%);
  font-size: 11px;
}

.visual-edge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 13px;
}

.visual-edge b {
  grid-column: 1 / -1;
  color: #fff;
  background: rgba(0, 112, 243, 0.72);
}

.visual-flywheel {
  display: block;
  padding: 0;
}

.mini-flywheel-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
}

.mini-flywheel-ring path {
  fill: none;
  stroke: rgba(0, 112, 243, 0.3);
  stroke-width: 3.5;
  stroke-linecap: round;
  marker-end: url(#mini-fly-arrow);
}

.mini-flywheel-ring marker path {
  fill: rgba(0, 112, 243, 0.45);
  stroke: none;
}

.visual-flywheel .mini-fly-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  color: rgba(0, 92, 204, 0.92);
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(28, 63, 119, 0.08);
  font-size: 9px;
  font-weight: 800;
}

.mini-fly-node.n-entry { left: 50%; top: 18px; transform: translateX(-50%); }
.mini-fly-node.n-task { right: 15px; top: 50%; transform: translateY(-50%); }
.mini-fly-node.n-earn { left: 50%; bottom: 18px; transform: translateX(-50%); }
.mini-fly-node.n-supply { left: 15px; top: 50%; transform: translateY(-50%); }

.visual-flywheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.06), transparent 70%);
  transform: translate(-50%, -50%);
}

.visual-flywheel b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 14, 22, 0.9);
  transform: translate(-50%, -50%);
  font-size: 9.5px;
}

.visual-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px 42px;
}

.visual-arena span {
  width: 44px;
  height: calc(34px + var(--rank, 0px));
  border-radius: 12px 12px 7px 7px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 112, 243, 0.56), rgba(9, 14, 22, 0.78));
}

.visual-arena span:nth-child(1) {
  --rank: 22px;
}

.visual-arena span:nth-child(2) {
  --rank: 10px;
}

.visual-arena b {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 11px;
}

.visual-business {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 15px 16px 36px;
}

.visual-business span {
  width: 28%;
  height: var(--h);
  min-height: 24px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(0, 112, 243, 0.55), rgba(9, 14, 22, 0.68));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.62);
}

.visual-business b {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 11px;
  min-height: 22px;
  font-size: 10px;
}

.visual-triad svg path {
  stroke: rgba(0, 112, 243, 0.5);
}

.visual-donut .donut-base,
.visual-donut .donut-blue,
.visual-donut .donut-ink {
  fill: none;
  stroke-width: 14;
  transform: rotate(-90deg);
  transform-origin: 130px 46px;
}

.visual-donut .donut-base {
  stroke: rgba(17, 17, 17, 0.1);
}

.visual-donut .donut-blue {
  stroke: rgba(0, 112, 243, 0.7);
  stroke-dasharray: 44 100;
}

.visual-donut .donut-ink {
  stroke: rgba(17, 17, 17, 0.7);
  stroke-dasharray: 28 100;
  stroke-dashoffset: -47;
}

.detail-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  padding: 28px;
  pointer-events: none;
  contain: paint;
}

.detail-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(226, 231, 236, 0.74);
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backdrop-filter: blur(4px) saturate(0.98);
  backdrop-filter: blur(4px) saturate(0.98);
}

.detail-layer.is-open {
  pointer-events: auto;
}

.detail-layer.is-open::before {
  opacity: 1;
}

.detail-layer.is-closing {
  pointer-events: none;
}

.detail-layer.is-open.is-closing::before {
  opacity: 0;
  transition-duration: 220ms;
}

.detail-card-shell {
  position: absolute;
  left: var(--final-left, calc((100% - var(--detail-w, min(840px, calc(100vw - 40px)))) / 2));
  top: var(--final-top, calc((100% - var(--detail-h, min(620px, calc(100vh - 56px)))) / 2));
  width: var(--detail-w, min(840px, calc(100vw - 40px)));
  height: var(--detail-h, min(620px, calc(100vh - 56px)));
  opacity: 0;
  transform-origin: top left;
  contain: layout style;
  will-change: transform, opacity;
}

.detail-card-shell.is-switch-ghost {
  z-index: 3;
}

.detail-card-shell.is-switching {
  z-index: 4;
}

.detail-card-shell > .detail-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 8;
  width: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.detail-nav-controls {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.detail-layer.is-open .detail-nav-controls {
  opacity: 1;
}

.detail-layer.is-closing .detail-nav-controls {
  opacity: 0;
}

.detail-mobile-hint {
  position: absolute;
  left: 50%;
  top: max(16px, calc(var(--final-top, 56px) - 42px));
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: calc(100vw - 48px);
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(17, 17, 17, 0.045);
  border-radius: var(--radius-pill);
  color: rgba(21, 21, 21, 0.34);
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(12px) saturate(1.02);
  backdrop-filter: blur(12px) saturate(1.02);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transform: translateX(-50%);
}

.detail-mobile-hint svg {
  width: 15px;
  height: 15px;
}

.detail-nav {
  position: absolute;
  top: calc(var(--final-top, 50%) + (var(--detail-h, 620px) / 2));
  width: 44px;
  min-height: 44px;
  color: rgba(21, 21, 21, 0.76);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  pointer-events: auto;
}

.detail-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.detail-nav-prev {
  left: max(18px, calc(var(--final-left, 50%) - 66px));
  transform: translateY(-50%);
}

.detail-nav-next {
  right: max(18px, calc(100% - var(--final-left, 50%) - var(--detail-w, 840px) - 66px));
  transform: translateY(-50%);
}

.detail-card-shell::before,
.detail-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background:
    linear-gradient(145deg, #fff, rgba(250, 252, 255, 0.98) 58%, rgba(246, 249, 252, 0.98)),
    #fff;
  box-shadow:
    0 22px 58px rgba(29, 44, 70, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(20, 34, 56, 0.07);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.detail-card-shell::before {
  content: "";
  display: block;
  inset: 18px 18px -8px;
  z-index: 0;
  overflow: visible;
  border: 0;
  border-radius: 30px;
  background: rgba(18, 20, 24, 0.08);
  box-shadow:
    0 18px 38px rgba(18, 20, 24, 0.14),
    0 5px 14px rgba(18, 20, 24, 0.08);
  filter: blur(5px);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

.detail-card-face {
  z-index: 1;
}

.detail-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.84), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(126, 182, 255, 0.2), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.58), transparent 42%);
  pointer-events: none;
}

.detail-card-front {
  z-index: 2;
  display: grid;
  place-items: stretch;
  padding: 0;
  pointer-events: none;
  animation: card-front-dissolve 240ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
  transform-origin: center;
}

.detail-front-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 30px;
  cursor: default;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.detail-front-card:hover {
  transform: none;
}

.detail-front-card .artifact-visual {
  height: min(210px, 38vh);
  margin-block: clamp(18px, 4vh, 30px);
}

.detail-front-card .artifact-metric {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.detail-front-card h3 {
  max-width: 680px;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
}

.detail-front-card p {
  max-width: 680px;
  font-size: 15px;
}

.detail-card-back {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 32px 30px;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 0;
  background: #fff;
  box-shadow: none;
  opacity: 0;
  transform: translateY(6px) scale(0.996);
  animation: detail-content-in 240ms cubic-bezier(0.18, 0.82, 0.22, 1) 40ms both;
  transform-origin: center;
  will-change: transform, opacity;
}

.detail-card-shell.is-switching .detail-card-back {
  pointer-events: none;
}

.detail-card-shell.is-switch-ghost .detail-card-back {
  animation: none;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: none;
}

.detail-card-back.is-skip-entry-animation {
  animation: none;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.detail-card-back::-webkit-scrollbar {
  display: none;
}

.detail-card-back::before {
  display: none;
}

.detail-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 500px);
  margin: 0 auto;
  padding-right: 58px;
  flex: 0 0 auto;
}

.detail-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-head h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.detail-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.detail-swipe-hint {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: -2px auto 0;
  padding: 7px 11px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: var(--radius-pill);
  color: rgba(21, 21, 21, 0.46);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

.detail-swipe-hint svg {
  width: 15px;
  height: 15px;
}

.detail-reading-body {
  width: min(100%, 500px);
  margin: 0 auto;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(196px, 30vh, 250px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.46) 34%, rgba(255, 255, 255, 0.16) 68%, rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(247, 250, 255, 0.84), rgba(234, 242, 250, 0.34));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    0 12px 34px rgba(46, 70, 116, 0.045);
}

.detail-hero-team {
  height: clamp(340px, 44vh, 390px);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 112, 243, 0.065), transparent 34%),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.46), transparent 56%);
  pointer-events: none;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(242, 238, 226, 0.36) 78%, rgba(242, 238, 226, 0.66));
  pointer-events: none;
}

.detail-fig {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 4;
  color: rgba(21, 21, 21, 0.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero b,
.detail-hero small,
.detail-hero span,
.detail-hero em {
  letter-spacing: 0;
}

.local-hero-shell,
.integration-board,
.runner-hero-board,
.flywheel-hero-board,
.benchmark-hero-board,
.diff-hero-board,
.team-hero-board,
.funding-hero-board {
  position: absolute;
  inset: 30px 44px 24px;
  z-index: 2;
}

.local-hero-shell {
  inset: 22px 42px 22px;
  overflow: hidden;
  border-radius: 22px;
}

.local-hero-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 68%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 112, 243, 0.1), transparent 48%),
    radial-gradient(circle, rgba(255, 255, 255, 0.78), transparent 66%);
  transform: translate(-50%, -50%);
}

.local-hero-shell .local-core {
  z-index: 3;
  width: 86px;
  height: 86px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.78)),
    #fff;
}

.local-core i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  border-radius: 15px;
  color: #fff;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.local-core i svg {
  width: 20px;
  height: 20px;
}

.local-core b {
  color: rgba(21, 21, 21, 0.74);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.local-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 18px;
  color: rgba(21, 21, 21, 0.74);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.88),
    0 13px 34px rgba(46, 70, 116, 0.08);
}

.local-node i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: rgba(0, 92, 204, 0.92);
  background: rgba(0, 112, 243, 0.09);
}

.local-node svg {
  width: 17px;
  height: 17px;
}

.local-node.n-file { left: 22%; top: 24%; }
.local-node.n-agent { left: 50%; top: 0; transform: translateX(-50%); }
.local-node.n-env { right: 22%; top: 24%; }
.local-node.n-account { left: 22%; bottom: 24%; }
.local-node.n-repo { left: 50%; bottom: 0; transform: translateX(-50%); }
.local-node.n-browser { right: 22%; bottom: 24%; }

.local-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.08), transparent 62%);
  opacity: 0.75;
  z-index: -1;
}

.local-core,
.integration-core,
.runner-core,
.fly-core,
.diff-core,
.funding-number {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 96px;
  padding: 18px 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 22px 54px rgba(46, 70, 116, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.local-core small,
.integration-core small,
.runner-core small,
.fly-core small,
.diff-core small,
.funding-number small {
  color: rgba(21, 21, 21, 0.44);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.local-core b,
.integration-core b,
.runner-core b,
.diff-core b {
  color: var(--ink);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
}

.local-core em,
.runner-core em {
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(0, 92, 204, 0.92);
  background: rgba(0, 112, 243, 0.09);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.integration-node,
.runner-policy-list span,
.runner-queue span,
.fly-node,
.diff-source,
.funding-metrics span,
.funding-support-row span,
.benchmark-row,
.benchmark-axis span {
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.88), 0 12px 34px rgba(46, 70, 116, 0.07);
}

.integration-wire,
.fly-track,
.diff-line {
  position: absolute;
  border-color: rgba(0, 112, 243, 0.2);
  border-style: dashed;
  pointer-events: none;
}

.integration-core {
  z-index: 3;
  min-width: 226px;
  min-height: 104px;
  padding: 20px 28px;
  overflow: hidden;
  border-color: rgba(0, 112, 243, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.84) 52%, rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow:
    0 26px 62px rgba(28, 63, 119, 0.16),
    0 2px 14px rgba(0, 112, 243, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.integration-core::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 112, 243, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(rgba(0, 112, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 112, 243, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.92), transparent 110%);
  pointer-events: none;
}

.integration-core::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background:
    linear-gradient(110deg, transparent 0 24%, rgba(255, 255, 255, 0.78) 44%, transparent 62%),
    radial-gradient(circle at 50% 8%, rgba(0, 112, 243, 0.12), transparent 42%);
  opacity: 0.7;
  pointer-events: none;
}

.integration-core small,
.integration-core b {
  position: relative;
  z-index: 1;
}

.integration-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  gap: 8px;
  min-height: 42px;
  width: max-content;
  max-width: 170px;
  padding: 0 14px 0 10px;
  color: rgba(21, 21, 21, 0.7);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.integration-node .app-logo {
  width: 24px;
  height: 24px;
  margin: 0;
  background: #fff;
}

.integration-node .app-logo img {
  width: 16px;
  height: 16px;
}

.integration-node .app-logo svg {
  width: 16px;
  height: 16px;
}

.integration-node b {
  color: rgba(21, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.integration-node.from-left { transform: translate(-100%, -50%); }
.integration-node.from-right { transform: translateY(-50%); }
.integration-node.from-top { transform: translate(-50%, -100%); }
.integration-node.from-bottom { transform: translateX(-50%); }

.integration-node.n-3 .app-logo {
  background: #fff;
}

.integration-node.n-7 .app-logo,
.integration-node.n-8 .app-logo,
.integration-node.n-10 .app-logo {
  background: #fff;
}

.app-logo.codex {
  color: rgba(17, 24, 39, 0.9);
}

.app-logo.claude {
  color: #d97757;
}

.app-logo.manus {
  color: rgba(17, 24, 39, 0.86);
}

.integration-wire {
  z-index: 1;
  border-color: rgba(0, 112, 243, 0.24);
  border-style: dashed;
}

.integration-wires {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.wire-path {
  fill: none;
  stroke: rgba(0, 112, 243, 0.3);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.025 0.045;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(0, 112, 243, 0.16));
}

.wire-path:nth-child(3n + 1) {
  stroke: rgba(0, 112, 243, 0.32);
}

.wire-path:nth-child(3n + 2) {
  stroke: rgba(0, 153, 119, 0.24);
}

.runner-core {
  min-width: 220px;
}

.runner-hero-board {
  inset: 22px 34px 20px;
  overflow: hidden;
  border-radius: 22px;
}

.runner-flow-lines {
  position: absolute;
  inset: 2px 0 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.runner-flow-lines path {
  fill: none;
  stroke: rgba(0, 112, 243, 0.22);
  stroke-width: 0.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}

.runner-flow-lines path:nth-child(2n) {
  stroke: rgba(0, 153, 119, 0.18);
}

.runner-sources {
  position: absolute;
  left: 8%;
  top: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  transform: translateY(-50%);
}

.source-node {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 9px 20px rgba(46, 70, 116, 0.04);
}

.source-node .app-logo {
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 10px;
}

.source-node .app-logo svg,
.source-node .app-logo img {
  width: 18px;
  height: 18px;
}

.source-claude .app-logo {
  color: #6f4632;
  background: linear-gradient(145deg, #fff8ef, #f2ded1);
}

.source-codex .app-logo {
  color: #101820;
  background: linear-gradient(145deg, #f7fbff, #dce8f8);
}

.source-cursor .app-logo {
  color: #fff;
  background: linear-gradient(145deg, #111, #4a4a4a);
}

.source-manus .app-logo {
  color: #111827;
  background: linear-gradient(145deg, #fff, #eef3f8);
}

.runner-hero-board .runner-core {
  z-index: 3;
  min-width: 198px;
  min-height: 86px;
  padding: 15px 20px;
  border-color: rgba(0, 112, 243, 0.11);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(237, 247, 255, 0.78)),
    #fff;
  box-shadow:
    0 14px 34px rgba(46, 70, 116, 0.075),
    inset 0 1px 1px rgba(255, 255, 255, 0.94);
}

.runner-hero-board .runner-core small {
  display: none;
}

.runner-hero-board .runner-core b {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.runner-hero-board .runner-core em {
  margin-top: 8px;
  padding: 4px 10px;
  color: rgba(0, 92, 204, 0.88);
  background: rgba(0, 112, 243, 0.08);
  font-size: 10px;
}

.runner-task-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: min(210px, 100%);
  margin-top: 10px;
}

.runner-task-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(0, 112, 243, 0.13);
  border-radius: 999px;
  color: rgba(21, 21, 21, 0.62);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.runner-task-stack span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.runner-revenue {
  position: absolute;
  right: 9%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 158px;
  min-height: 96px;
  border: 1px solid rgba(17, 17, 17, 0.065);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(46, 70, 116, 0.045);
  transform: translateY(-50%);
}

.runner-revenue::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -32px;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 153, 119, 0.08);
}

.runner-revenue b {
  position: relative;
  z-index: 1;
  color: rgba(21, 21, 21, 0.9);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.runner-payout {
  position: absolute;
  right: 2%;
  top: 50%;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(194px, 28%);
  transform: translateY(-50%);
}

.payout-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.065);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(46, 70, 116, 0.05);
}

.payout-card::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -28px;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 112, 243, 0.08);
}

.payout-card small {
  position: relative;
  z-index: 1;
  color: rgba(21, 21, 21, 0.44);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.payout-card b {
  position: relative;
  z-index: 1;
  color: rgba(21, 21, 21, 0.86);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.payout-cash {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 249, 242, 0.76));
}

.payout-cash::after {
  background: rgba(0, 153, 119, 0.1);
}

.runner-policy-list {
  position: absolute;
  left: 6%;
  top: 50%;
  display: grid;
  gap: 9px;
  width: 180px;
  transform: translateY(-50%);
}

.runner-policy-list span,
.funding-metrics span,
.funding-support-row span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.runner-policy-list small,
.funding-metrics small,
.funding-support-row small {
  color: rgba(21, 21, 21, 0.42);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.runner-policy-list b,
.funding-metrics b,
.funding-support-row b {
  color: rgba(21, 21, 21, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.runner-queue {
  position: absolute;
  right: 5%;
  top: 50%;
  display: grid;
  gap: 10px;
  width: 170px;
  transform: translateY(-50%);
}

.runner-queue span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(21, 21, 21, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.runner-queue span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.fly-track.h {
  left: 24%;
  right: 24%;
  height: 1px;
  border-top: 1px solid;
}

.fly-track.h.top { top: 27%; }
.fly-track.h.bottom { bottom: 27%; }
.fly-track.v {
  top: 27%;
  bottom: 27%;
  width: 1px;
  border-left: 1px solid;
}

.fly-track.v.left { left: 27%; }
.fly-track.v.right { right: 27%; }

.flywheel-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(760px, 94%);
  height: min(320px, 98%);
  overflow: visible;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 24px rgba(36, 74, 120, 0.045));
}

.flywheel-ring path {
  fill: none;
  stroke: rgba(0, 112, 243, 0.32);
  stroke-width: 4.5;
  stroke-linecap: round;
  marker-end: url(#flywheel-arrow);
}

.flywheel-ring marker path {
  fill: rgba(0, 112, 243, 0.5);
  stroke: none;
}

.flywheel-hero-board::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 58%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 112, 243, 0.055), transparent 58%),
    radial-gradient(circle, rgba(255, 255, 255, 0.52), transparent 70%);
  transform: translate(-50%, -50%);
}

.fly-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 126px;
  min-height: 44px;
  padding: 0 13px 0 9px;
  border-radius: 17px;
  color: rgba(21, 21, 21, 0.74);
  font-size: 12px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(15px) saturate(1.06);
  backdrop-filter: blur(15px) saturate(1.06);
}

.fly-node i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  color: rgba(0, 92, 204, 0.82);
  background: rgba(0, 112, 243, 0.075);
}

.fly-node svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.fly-node b {
  color: rgba(17, 24, 39, 0.86);
  font-size: 12.5px;
  line-height: 1;
}

.fly-node small {
  display: none;
}

.fly-node.n-ease { left: 50%; top: 6%; transform: translateX(-50%); }
.fly-node.n-tasks { right: 4%; top: 33%; }
.fly-node.n-earn { right: 18%; bottom: 7%; }
.fly-node.n-supply { left: 18%; bottom: 7%; }
.fly-node.n-route { left: 4%; top: 33%; }

.fly-core {
  z-index: 4;
  min-width: 164px;
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 999px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(26, 36, 56, 0.92)),
    #111827;
}

.fly-core b {
  color: #fff;
  font-size: 17px;
}

.fly-core small {
  color: rgba(255, 255, 255, 0.58);
  max-width: 126px;
  line-height: 1.35;
  text-transform: none;
}

.benchmark-table {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  gap: 7px;
  width: min(620px, 84%);
  transform: translate(-50%, -50%);
}

.benchmark-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 11px;
}

.benchmark-row span,
.benchmark-row b,
.benchmark-axis span {
  color: rgba(21, 21, 21, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.benchmark-row b {
  justify-self: end;
}

.benchmark-row i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.06);
}

.benchmark-row i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 112, 243, 0.92), rgba(126, 182, 255, 0.72));
}

.benchmark-row.is-top {
  background: rgba(255, 255, 255, 0.86);
}

.benchmark-row.is-blurred span,
.benchmark-row.is-blurred b {
  filter: blur(3px);
}

.benchmark-axis {
  position: absolute;
  left: 50%;
  bottom: 11%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.benchmark-axis span {
  min-width: 78px;
  min-height: 30px;
  display: grid;
  place-items: center;
}

.diff-source {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 124px;
  min-height: 64px;
}

.diff-source b {
  color: rgba(21, 21, 21, 0.78);
  font-size: 14px;
}

.diff-source small {
  color: rgba(21, 21, 21, 0.44);
  font-size: 11px;
  font-weight: 700;
}

.diff-source.agent { left: 9%; top: 21%; }
.diff-source.router { left: 50%; top: 11%; transform: translateX(-50%); }
.diff-source.bot { right: 9%; top: 21%; }

.diff-line.l1 { left: 23%; top: 42%; width: 24%; height: 21%; border-bottom: 1px solid; border-right: 1px solid; }
.diff-line.l2 { left: 50%; top: 32%; height: 28%; border-left: 1px solid; }
.diff-line.l3 { right: 23%; top: 42%; width: 24%; height: 21%; border-bottom: 1px solid; border-left: 1px solid; }

.diff-core {
  top: 67%;
  width: min(360px, 70%);
}

.team-hero-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
  inset: 34px 22px 22px;
  padding: 14px 1.5% 10px;
}

.team-member {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-height: 210px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(17, 17, 17, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.84), 0 12px 30px rgba(46, 70, 116, 0.06);
  text-align: center;
}

.team-member-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, #111827, #0070f3);
  box-shadow: 0 18px 34px rgba(0, 112, 243, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.46);
  font-size: 20px;
  font-weight: 800;
}

.team-member-avatar.has-photo {
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(135deg, rgba(0, 112, 243, 0.62), rgba(17, 24, 39, 0.34)) border-box;
}

.team-member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.team-member-name {
  display: grid;
  gap: 3px;
}

.team-member-name b {
  color: rgba(21, 21, 21, 0.82);
  font-size: 17px;
  font-weight: 700;
}

.team-member-name small {
  color: rgba(0, 112, 243, 0.68);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-member p {
  max-width: 260px;
  color: rgba(21, 21, 21, 0.48);
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.58;
  text-align: center;
}

.funding-hero-board {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  inset: 42px 42px 24px;
}

.funding-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: stretch;
}

.funding-number,
.funding-valuation {
  position: relative;
  left: auto;
  top: auto;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 138px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 24px rgba(46, 70, 116, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.92);
  transform: none;
}

.funding-number {
  background: rgba(255, 255, 255, 0.94);
}

.funding-valuation {
  background: rgba(255, 255, 255, 0.94);
}

.funding-number b,
.funding-valuation b {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #111827;
  font-size: clamp(3.2rem, 7.4vw, 5.85rem);
  line-height: 0.92;
}

.funding-valuation b {
  font-size: clamp(2.9rem, 6.2vw, 5rem);
}

.funding-number i,
.funding-number em,
.funding-valuation em,
.funding-valuation i {
  font-style: normal;
  font-size: 0.38em;
  font-weight: 800;
}

.funding-number > span,
.funding-valuation > span {
  color: rgba(21, 21, 21, 0.58);
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 700;
}

.funding-number small,
.funding-valuation small {
  color: rgba(21, 21, 21, 0.44);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.funding-support-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.detail-article {
  display: grid;
  gap: 18px;
}

.detail-showcase {
  width: 100%;
  margin: 0;
}

.team-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.team-showcase .team-member {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: 13px;
  row-gap: 2px;
  gap: 7px;
  min-height: 96px;
  padding: 13px 12px 12px;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.team-showcase .team-member-avatar {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  box-shadow: none;
  font-size: 18px;
}

.team-showcase .team-member-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.team-showcase .team-member-name b {
  font-size: 15px;
}

.team-showcase .team-member p {
  max-width: none;
  font-size: 11.3px;
  line-height: 1.46;
  text-align: left;
}

.funding-showcase {
  display: grid;
  gap: 10px;
}

.funding-showcase .funding-primary-row,
.funding-showcase .funding-support-row {
  grid-template-columns: 1fr;
}

.funding-showcase .funding-primary-row {
  gap: 9px;
}

.funding-showcase .funding-number,
.funding-showcase .funding-valuation {
  min-height: 92px;
  padding: 13px 16px 12px;
  border-radius: 18px;
}

.funding-showcase .funding-number b,
.funding-showcase .funding-valuation b {
  font-size: clamp(2.5rem, 8.4vw, 3.25rem);
}

.funding-showcase .funding-valuation b {
  font-size: clamp(2.25rem, 7.2vw, 3rem);
}

.funding-showcase .funding-number span,
.funding-showcase .funding-valuation > span {
  font-size: 12px;
}

.funding-showcase .funding-number b span,
.funding-showcase .funding-valuation b span {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.funding-showcase .funding-support-row {
  gap: 7px;
}

.funding-showcase .funding-support-row span {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
}

.funding-showcase .funding-support-row b {
  font-size: 12.2px;
  line-height: 1.25;
}

.detail-text-flow {
  display: grid;
  gap: 16px;
}

.detail-body .detail-text-flow p {
  color: rgba(21, 21, 21, 0.82);
  font-family: var(--font-cn);
  font-size: 16.2px;
  font-weight: 400;
  line-height: 1.9;
  text-align: left;
}

.detail-takeaways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail-takeaways span {
  min-width: 0;
  min-height: 88px;
  padding: 14px 15px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82), 0 10px 28px rgba(46, 70, 116, 0.06);
}

.detail-takeaways small {
  color: rgba(0, 112, 243, 0.62);
  font-size: 10px;
  font-weight: 800;
}

.detail-takeaways b {
  display: block;
  margin-top: 8px;
  color: rgba(21, 21, 21, 0.72);
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.detail-body-enhanced {
  gap: 14px;
}

.detail-body p,
.detail-body li {
  color: var(--ink-78);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.82;
}

.detail-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(0, 112, 243, 0.18);
  border-radius: 999px;
  color: rgba(21, 21, 21, 0.64);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.84), 0 10px 24px rgba(46, 70, 116, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.detail-chip.is-active {
  color: #fff;
  border-color: rgba(17, 24, 39, 0.2);
  background: #111827;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.82fr);
  gap: 16px;
  align-items: stretch;
}

.detail-copy-panel,
.detail-visual-panel,
.detail-note,
.detail-proof-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82), 0 14px 34px rgba(46, 70, 116, 0.07);
}

.detail-copy-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-copy-panel p {
  margin: 0;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 2px;
  padding: 0 8px;
  border: 1px solid rgba(0, 112, 243, 0.18);
  border-radius: 8px;
  color: rgba(0, 92, 204, 0.9);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: 700;
  white-space: nowrap;
}

.detail-visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(233, 240, 248, 0.28)),
    repeating-linear-gradient(90deg, rgba(21, 21, 21, 0.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(21, 21, 21, 0.03) 0 1px, transparent 1px 26px);
}

.detail-note {
  padding: 12px 14px;
  color: rgba(21, 21, 21, 0.64);
  font-family: var(--font-cn);
  font-size: 13px;
  line-height: 1.6;
}

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

.detail-proof-card {
  min-height: 108px;
  padding: 12px;
}

.detail-proof-card span {
  color: rgba(0, 112, 243, 0.62);
  font-size: 11px;
  font-weight: 700;
}

.detail-proof-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.local-stack,
.route-chip-board,
.runner-policy-card,
.diff-matrix,
.team-panel,
.funding-panel {
  display: grid;
  gap: 10px;
}

.local-device {
  display: grid;
  place-items: center;
  min-height: 96px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #111827, rgba(0, 112, 243, 0.74));
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

.local-device span,
.local-device b {
  display: block;
}

.local-device span {
  font-size: 11px;
  opacity: 0.7;
}

.local-device b {
  font-size: 20px;
}

.local-lock-grid,
.route-chip-board,
.diff-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.local-lock-grid {
  display: grid;
  gap: 8px;
}

.local-lock-grid span,
.route-chip-board span,
.route-chip-board b,
.runner-policy-card div,
.diff-matrix div,
.team-avatar,
.flow-node,
.arena-row,
.valuation-pill,
.funding-fallback span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.route-chip-board b {
  grid-column: 1 / -1;
  min-height: 46px;
  color: #fff;
  background: #111827;
}

.route-chip-board::before {
  content: "";
  position: absolute;
  inset: 26px 36px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(0, 112, 243, 0.18) 18% 82%, transparent 82%),
    linear-gradient(0deg, transparent 0 14%, rgba(0, 112, 243, 0.16) 14% 86%, transparent 86%),
    linear-gradient(90deg, transparent 0 42%, rgba(17, 24, 39, 0.12) 42% 58%, transparent 58%);
  background-size: 100% 2px, 2px 100%, 100% 100%;
  background-position: center 50%, 50% center, center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.route-chip-board span,
.route-chip-board b {
  position: relative;
  z-index: 1;
}

.runner-policy-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
}

.runner-policy-card div {
  min-height: 72px;
}

.runner-policy-card span {
  color: rgba(21, 21, 21, 0.48);
  font-size: 10px;
  text-transform: uppercase;
}

.runner-policy-card b {
  margin-top: 6px;
}

.runner-policy-card .runner-toggle {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: rgba(0, 112, 243, 0.72);
}

.runner-toggle span {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.flywheel-panel {
  display: block;
  min-height: 248px;
}

.panel-flywheel-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(240px, 86%);
  height: min(240px, 86%);
  transform: translate(-50%, -50%);
}

.panel-flywheel-ring path {
  fill: none;
  stroke: rgba(0, 112, 243, 0.3);
  stroke-width: 4.5;
  stroke-linecap: round;
  marker-end: url(#panel-fly-arrow);
}

.panel-flywheel-ring marker path {
  fill: rgba(0, 112, 243, 0.5);
  stroke: none;
}

.flywheel-panel b {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
}

.flow-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 76px;
  height: 42px;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.flow-node svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.25;
}

.flow-node span {
  font-size: 11px;
  line-height: 1;
}

.flow-node.is-active {
  color: rgba(0, 92, 204, 0.96);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86), 0 16px 30px rgba(0, 112, 243, 0.12);
  transform: translate(-50%, -50%) scale(1.06);
}

.flow-node.n-ease { left: 50%; top: 10%; transform: translate(-50%, -50%); }
.flow-node.n-tasks { left: 88%; top: 36%; transform: translate(-50%, -50%); }
.flow-node.n-earn { left: 74%; top: 84%; transform: translate(-50%, -50%); }
.flow-node.n-supply { left: 26%; top: 84%; transform: translate(-50%, -50%); }
.flow-node.n-route { left: 12%; top: 36%; transform: translate(-50%, -50%); }

.flywheel-panel .flow-node.is-active {
  transform: translate(-50%, -50%) scale(1.06);
}

.arena-board {
  display: grid;
  align-content: center;
  gap: 12px;
}

.arena-row {
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  justify-items: stretch;
  gap: 9px;
  padding: 0 10px;
}

.arena-row meter {
  width: 100%;
  align-self: center;
  accent-color: var(--blue);
}

.arena-board small,
.team-panel small {
  color: rgba(21, 21, 21, 0.46);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.diff-matrix div {
  min-height: 74px;
}

.diff-matrix .is-core {
  grid-column: 1 / -1;
  color: #fff;
  background: #111827;
}

.team-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
}

.team-avatar {
  min-height: 86px;
  cursor: pointer;
}

.team-avatar b {
  margin-top: 6px;
  font-size: 24px;
}

.team-avatar.is-active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
}

.team-panel small {
  grid-column: 1 / -1;
}

.funding-panel {
  grid-template-rows: auto minmax(120px, 1fr) auto;
}

.funding-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
}

.funding-counter span,
.funding-counter small {
  color: rgba(21, 21, 21, 0.48);
  font-size: 11px;
  font-weight: 700;
}

.funding-counter b {
  color: #111827;
  font-size: 44px;
  line-height: 1;
}

.funding-panel canvas {
  width: 100% !important;
  height: 160px !important;
}

.valuation-pill {
  min-height: 34px;
  color: #fff;
  background: rgba(17, 24, 39, 0.9);
}

.funding-fallback {
  display: grid;
  gap: 7px;
}

.funding-fallback span {
  justify-content: start;
  width: var(--w);
  min-width: 80px;
  padding-left: 10px;
  color: #fff;
  background: rgba(0, 112, 243, 0.7);
}

.detail-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.detail-mini-card {
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82), 0 12px 34px rgba(46, 70, 116, 0.08);
}

.detail-mini-card span {
  color: rgba(0, 112, 243, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.detail-mini-card p {
  min-height: 38px;
  margin-top: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.06), rgba(21, 21, 21, 0.02));
}

@keyframes source-card-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.92;
    transform: translateY(-1px) scale(0.996);
  }
}

@keyframes source-card-in {
  0% {
    opacity: 0.92;
    transform: translateY(-1px) scale(0.996);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-front-dissolve {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  32% {
    opacity: 0.72;
    transform: scale(1.006);
  }
  64% {
    opacity: 0.16;
    transform: scale(1.012);
  }
  100% {
    opacity: 0;
    transform: scale(1.014);
  }
}

@keyframes detail-content-in {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.996);
  }
  42% {
    opacity: 0.68;
    transform: translateY(2px) scale(0.999);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes thought-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cards-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes speech-chunk-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes hero-copy-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes prompt-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes split-char-in {
  to {
    opacity: 1;
  }
}

@keyframes split-char-out {
  to {
    opacity: 0;
  }
}

@keyframes text-sweep {
  0% {
    -webkit-mask-position: 92% 0;
    mask-position: 92% 0;
  }
  100% {
    -webkit-mask-position: -92% 0;
    mask-position: -92% 0;
  }
}

@media (max-width: 1160px) {
  .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .desktop {
    min-height: 100vh;
  }

  .home {
    gap: 22px;
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .prompt-dock {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
  }

  .run-canvas {
    width: 100vw;
    overflow-x: hidden;
    padding: 7vh 14px 20px;
  }

  .artifact-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .artifact-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .thought-card {
    padding: 14px;
    border-radius: 22px;
  }

  .thought-window {
    height: 158px;
  }

  .final-response h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 6vw, 1.78rem);
    line-height: 1.24;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .source-panel {
    grid-template-columns: 1fr;
    width: min(330px, 76vw);
  }

  .detail-mini-grid {
    grid-template-columns: 1fr;
  }

  .detail-card-shell > .detail-close {
    top: 14px;
    right: 14px;
    width: 40px;
    min-height: 40px;
  }

  .detail-card-back {
    gap: 22px;
    padding: 22px 16px 28px;
  }

  .detail-head {
    padding-right: 48px;
  }

  .detail-head h2 {
    font-size: clamp(1.25rem, 7vw, 1.78rem);
  }

  .detail-mobile-hint {
    display: inline-flex;
  }

  .detail-nav {
    top: calc(var(--final-top, 56px) + var(--detail-h, calc(100vh - 144px)) + 28px);
    width: 42px;
    min-height: 42px;
  }

  .detail-nav-prev {
    left: calc(50% - 54px);
  }

  .detail-nav-next {
    right: calc(50% - 54px);
  }

  .detail-text-flow {
    gap: 14px;
  }

  .detail-body .detail-text-flow p {
    font-size: 16px;
    line-height: 1.92;
  }

  .detail-hero {
    height: 270px;
    border-radius: 22px;
  }

  .detail-hero-team {
    height: 360px;
  }

  .detail-hero-share {
    height: 360px;
  }

  .local-hero-shell,
  .integration-board,
  .flywheel-hero-board,
  .benchmark-hero-board,
  .diff-hero-board,
  .team-hero-board,
  .funding-hero-board {
    inset: 34px 18px 20px;
  }

  .runner-hero-board {
    inset: 34px 14px 18px;
  }

  .local-hero-shell {
    inset: 14px;
  }

  .local-hero-shell .local-core {
    width: 76px;
    height: 76px;
  }

  .local-node {
    width: 38px;
    height: 38px;
  }

  .local-node i {
    width: 25px;
    height: 25px;
  }

  .local-node.n-file { left: 11%; top: 25%; }
  .local-node.n-agent { top: 0; }
  .local-node.n-env { right: 11%; top: 25%; }
  .local-node.n-account { left: 11%; bottom: 25%; }
  .local-node.n-repo { bottom: 0; }
  .local-node.n-browser { right: 11%; bottom: 25%; }

  .detail-fig {
    left: 16px;
    top: 14px;
  }

  .integration-core,
  .fly-core,
  .diff-core,
  .funding-number,
  .funding-valuation {
    min-width: 160px;
    min-height: 84px;
    padding: 14px 16px;
  }

  .runner-hero-board .runner-core {
    min-width: 122px;
    min-height: 82px;
    padding: 12px;
  }

  .runner-hero-board .runner-core b {
    font-size: 18px;
  }

  .runner-hero-board .runner-core em {
    font-size: 9px;
  }

  .runner-task-stack {
    gap: 4px;
    width: 148px;
    margin-top: 7px;
  }

  .runner-task-stack span {
    min-height: 21px;
    padding: 0 6px;
    font-size: 8.5px;
  }

  .runner-sources {
    left: 4%;
    top: 50%;
    grid-template-columns: 1fr;
    gap: 8px;
    width: auto;
    transform: translateY(-50%);
  }

  .source-node {
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
  }

  .source-node .app-logo {
    width: 26px;
    height: 26px;
  }

  .source-node .app-logo svg,
  .source-node .app-logo img {
    width: 16px;
    height: 16px;
  }

  .runner-revenue {
    right: 1%;
    min-width: 70px;
    min-height: 68px;
    border-radius: 18px;
  }

  .runner-revenue b {
    font-size: 23px;
  }

  .runner-flow-lines {
    display: block;
  }

  .payout-card small {
    font-size: 7.5px;
  }

  .payout-card b {
    font-size: 18px;
  }

  .integration-node,
  .fly-node,
  .diff-source {
    min-width: 96px;
    min-height: 34px;
    gap: 6px;
    padding: 0 8px 0 6px;
    font-size: 10.5px;
  }

  .flywheel-ring {
    width: 108%;
    height: 92%;
  }

  .fly-node i {
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }

  .fly-node svg {
    width: 15px;
    height: 15px;
  }

  .fly-node b {
    font-size: 10px;
  }

  .fly-node small {
    display: none;
  }

  .integration-node {
    gap: 5px;
    right: auto;
    bottom: auto;
    max-width: 130px;
    padding: 0 9px 0 7px;
  }

  .integration-node .app-logo {
    width: 20px;
    height: 20px;
  }

  .integration-node .app-logo img {
    width: 14px;
    height: 14px;
  }

  .runner-policy-list,
  .runner-queue,
  .funding-metrics {
    display: none;
  }

  .fly-node.n-ease { left: 50%; top: 10%; transform: translateX(-50%); }
  .fly-node.n-tasks { right: -1%; top: 35%; }
  .fly-node.n-earn { right: 6%; bottom: 10%; }
  .fly-node.n-supply { left: 6%; bottom: 10%; }
  .fly-node.n-route { left: -1%; top: 35%; }

  .benchmark-table {
    width: 96%;
  }

  .benchmark-row {
    grid-template-columns: 88px minmax(0, 1fr) 52px;
    gap: 8px;
  }

  .benchmark-axis {
    display: none;
  }

  .team-hero-board {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 10%;
  }

  .team-showcase {
    grid-template-columns: 1fr;
  }

  .team-member {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    column-gap: 12px;
    row-gap: 2px;
    min-height: 0;
    padding: 10px;
    text-align: left;
  }

  .team-member-avatar {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .team-member-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .team-member-name b {
    font-size: 14px;
  }

  .team-member p {
    max-width: none;
    font-size: 11.5px;
    line-height: 1.5;
    text-align: left;
  }

  .funding-hero-board {
    grid-template-rows: auto auto;
    gap: 10px;
    inset: 34px 18px 20px;
  }

  .funding-primary-row,
  .funding-support-row {
    grid-template-columns: 1fr;
  }

  .funding-number,
  .funding-valuation {
    min-height: 92px;
  }

  .funding-number b,
  .funding-valuation b {
    font-size: clamp(2.4rem, 13vw, 3.65rem);
  }

  .funding-support-row span {
    min-height: 38px;
    padding: 8px 10px;
  }

  .detail-takeaways {
    grid-template-columns: 1fr;
  }

  .detail-main-grid,
  .detail-proof-grid {
    grid-template-columns: 1fr;
  }

  .detail-visual-panel {
    min-height: 190px;
  }

  .funding-panel canvas {
    height: 140px !important;
  }

}
