:root {
  --paper: #f3f7fb;
  --paper-2: #eaf2f8;
  --white: #ffffff;
  --ink: #10243a;
  --ink-2: #3d5570;
  --mute: #6b8299;
  --line: #c5d6e6;
  --line-2: #dbe7f2;
  --accent: #0e6fb8;
  --accent-2: #0a8aa3;
  --accent-soft: #d7ecf8;
  --glow: rgba(14, 111, 184, 0.14);
  --shadow: 0 18px 50px rgba(16, 36, 58, 0.08);
  --radius: 18px;
  --sans: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --serif: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --title: #0b1c2e;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 108% -10%, rgba(14, 111, 184, 0.22), transparent 58%),
    radial-gradient(700px 480px at -18% 8%, rgba(56, 168, 186, 0.16), transparent 52%),
    radial-gradient(640px 420px at 70% 88%, rgba(14, 111, 184, 0.10), transparent 55%),
    linear-gradient(165deg, #e7f1f8 0%, #f5f8fc 42%, #e8f3f1 100%);
  letter-spacing: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
}
.bg-orb-a {
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  top: -120px;
  right: -80px;
  background: rgba(14, 111, 184, 0.22);
}
.bg-orb-b {
  width: min(42vw, 400px);
  height: min(42vw, 400px);
  bottom: 8%;
  left: -140px;
  background: rgba(10, 138, 163, 0.16);
}
.bg-orb-c {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  top: 46%;
  right: 12%;
  background: rgba(120, 170, 210, 0.18);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
img { max-width: 100%; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-width: 0;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--accent); }
.btn-ghost, .btn-solid, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
}
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px var(--glow);
}
.btn-line {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-solid:hover { filter: brightness(1.06); }
.btn-line:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 8px 20px var(--glow);
  display: grid;
  place-items: center;
  flex: none;
}
.mark svg { width: 20px; height: 20px; display: block; }
.nav-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--mute);
  font-size: 12px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1aa36a;
  box-shadow: 0 0 0 4px rgba(26, 163, 106, 0.15);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { transform: scale(0.85); opacity: 0.7; }
}

/* Hero */
.hero {
  padding: 28px 0 8px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  min-width: 0;
}
.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--title);
  margin: 0 0 16px;
}
.lede {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0;
}
.lede b { color: var(--ink); font-weight: 600; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.trust-row span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 10px;
}
.hero-flow {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.hero-flow p {
  margin: 16px 4px 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.mini-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.mf-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.mf-node {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 0;
  text-align: center;
}
.mf-node.on {
  background: var(--accent-soft);
  border-color: #9dc3e3;
  color: var(--accent);
}
.mf-core {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  min-width: 0;
  flex: 1.1;
  box-shadow: 0 12px 28px var(--glow);
  animation: corePulse 2.8s ease-in-out infinite;
}
.mf-core b { display: block; font-size: 13px; }
.mf-core small { opacity: 0.85; font-size: 11px; }
@keyframes corePulse {
  50% { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(14,111,184,.28); }
}
.mf-wire {
  position: relative;
  width: 36px;
  height: 2px;
  background: var(--line);
  flex: none;
  overflow: visible;
}
.mf-pkt {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: slidePkt 1.8s linear infinite;
}
.mf-pkt.delay { animation-delay: 0.7s; background: var(--accent-2); }
@keyframes slidePkt {
  0% { left: -4px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 30px; opacity: 0; }
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px;
  background: var(--paper);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.stat span { color: var(--mute); font-size: 12px; }

.section-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 16px;
}
.section-h h2 {
  font-family: var(--sans);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--title);
  margin: 0;
  letter-spacing: -0.02em;
}
.section-h span { color: var(--mute); font-size: 13px; flex: none; }

/* Cards — compact industry list */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px 8px 8px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 8px 20px rgba(16, 36, 58, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: #9dc3e3;
  box-shadow: 0 12px 28px rgba(14, 111, 184, 0.10);
}
.card-cover {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--accent-soft);
  flex: none;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-ico, .ava-ico, .mini-ico {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 10px rgba(16, 36, 58, 0.10);
}
.card-ico {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.card-ico svg, .ava-ico svg, .mini-ico svg, .ind-thumb svg {
  width: 12px;
  height: 12px;
  display: block;
}
.card-body { padding: 0; min-width: 0; }
.card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .brand-n {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card p {
  margin: 2px 0 0;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 0;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: none;
  position: static;
}
.card:hover .go {
  background: var(--accent);
  color: #fff;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--mute);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Demo workspace */
body.workspace { background-attachment: scroll; }
.ws {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.ws-top {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.ws-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  width: min(1120px, calc(100% - 28px));
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.ident {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.ident .ava {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: visible;
  flex: none;
}
.ident .ava img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--line-2);
}
.ava-ico {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.ava-ico svg { width: 12px; height: 12px; }
.ident h1 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--title);
}
.ident small { color: var(--mute); font-size: 12px; }

.stage {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 16px;
  padding: 18px 0 24px;
  min-height: 0;
  height: calc(100vh - 72px);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel h2 {
  margin: 0;
  padding: 16px 16px 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.ind-list { overflow: auto; padding: 0 8px 12px; }
.ind-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.ind-item.active, .ind-item:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.ind-item b { display: block; font-size: 13px; }
.ind-item > div span { font-size: 11px; color: var(--mute); }
.ind-item .mini-ico { color: var(--accent); }
.ind-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}
.ind-thumb img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.mini-ico {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
}
.mini-ico svg { width: 11px; height: 11px; }

.brief { padding: 0 16px 16px; overflow: auto; }
.brief-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  background: var(--accent-soft);
}
.brief-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brief-cover .card-ico { left: 10px; bottom: 10px; }
.brief p { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; margin: 0 0 12px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.note {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--mute);
  font-size: 12px;
  line-height: 1.55;
}

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.thread {
  flex: 1;
  overflow: auto;
  padding: 22px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.dayline {
  align-self: center;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  animation: rise 0.38s cubic-bezier(.2,.8,.2,1);
  white-space: pre-wrap;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.bubble.bot {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-top-left-radius: 6px;
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(165deg, var(--accent) 0%, #0b5f9d 100%);
  color: #fff;
  border-top-right-radius: 6px;
}
.meta-t {
  font-size: 10px;
  color: var(--mute);
  margin-top: 4px;
}
.bubble.me + .meta-t, .me-wrap .meta-t { text-align: right; }
.me-wrap, .bot-wrap {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.me-wrap { align-self: flex-end; align-items: flex-end; }
.bot-wrap { align-self: flex-start; }
.bot-wrap .bubble, .me-wrap .bubble { max-width: 100%; }
.bot-wrap .meta-t { padding-left: 36px; }
.bot-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.bot-ava {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.bot-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bot-row .bubble { max-width: calc(100% - 36px); }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 16px 16px 16px 6px;
  align-self: flex-start;
  color: var(--mute);
  font-size: 12px;
}
.dots { display: flex; gap: 4px; }
.dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.1s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.15s; }
.dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.composer input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
}
.composer input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
  background: #fff;
}
.send {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.send svg { display: block; }
.send:hover { filter: brightness(1.06); }
.send:disabled { opacity: 0.5; cursor: default; }

.btn-solid, .btn-line, .btn-ghost { cursor: pointer; border-style: solid; }
button.btn-solid, button.btn-line { font-family: inherit; }

.view-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
  padding: 5px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.view-tab {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.view-tab.on {
  background: var(--accent);
  color: #fff;
}
.view-panel { padding-bottom: 36px; scroll-margin-top: 72px; }
.panel-lead { margin: 0 0 16px; }
.panel-lead h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--title);
  letter-spacing: -0.02em;
}
.panel-lead p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 72ch;
}
.is-hidden { display: none !important; }

.block { padding: 28px 0 8px; scroll-margin-top: 72px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pillar {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px 14px;
  min-width: 0;
}
.p-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.p-ico svg { width: 18px; height: 18px; }
.pillar h3 { margin: 0 0 8px; font-size: 15px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; }

.arch-shell {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
}
.arch-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-2);
}
.arch-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.arch-tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: #f7fbfe;
}
.arch-board {
  position: relative;
  min-height: 0;
  background:
    radial-gradient(500px 180px at 50% 45%, rgba(14,111,184,.06), transparent 70%);
}
.arch-board.is-hidden { display: none; }
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.3fr) 22px minmax(0, 1fr);
  gap: 0;
  padding: 22px 16px 24px;
  align-items: stretch;
  min-width: 0;
}
.ag-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  position: relative;
  padding: 0 8px;
  min-width: 0;
}
.ag-col + .ag-col {
  border-left: 0;
}
.ag-arrow {
  align-self: center;
  height: 2px;
  background: var(--line);
  position: relative;
}
.ag-arrow i {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: slidePkt 1.8s linear infinite;
}
.ag-arrow.delay i { animation-delay: 0.5s; background: var(--accent-2); }
.ag-core { justify-content: center; }
.ag-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-bottom: 4px;
}
.ag-row { display: flex; gap: 8px; }
.ag-row .anode { flex: 1; }
.ag-flow {
  display: block;
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.ag-flow::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: drop 1.6s linear infinite;
}
@keyframes drop {
  0% { top: -8px; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 18px; opacity: 0; }
}
.ag-col::before, .ag-col::after { content: none; }
.anode {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16,36,58,.05);
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.anode small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 2px;
}
.anode b { display: block; font-size: 13px; }
.anode em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: rgba(255,255,255,.82);
  margin-top: 4px;
}
.anode-sm {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  text-align: center;
}
.anode-core {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 0;
  min-width: 0;
  padding: 16px 18px;
  box-shadow: 0 14px 32px var(--glow);
  animation: corePulse 2.8s ease-in-out infinite;
}
.anode-core small { color: rgba(255,255,255,.75); }
.anode.on, .anode:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14,111,184,.14);
}
.anode-core.on, .anode-core:hover { filter: brightness(1.05); }
.arch-detail {
  border-top: 1px solid var(--line-2);
  padding: 12px 16px;
  background: #f7fbfe;
}
.arch-detail b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--title); }
.arch-detail p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.arch-detail.idle b, .arch-detail.idle p { color: var(--mute); font-weight: 500; }

.tech-diagram {
  padding: 4px 4px 0;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tech-chart {
  width: 100%;
  min-width: 820px;
  height: auto;
  display: block;
  font-family: var(--sans);
}
.tech-chart .lane {
  fill: rgba(14, 111, 184, 0.045);
  stroke: none;
}
.lane-t {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: #6b8299;
  text-anchor: end;
}
.tn-k, .tn-t, .tn-d { text-anchor: middle; }
.tn-k {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: #6b8299;
  font-weight: 600;
}
.tn-t { font-size: 12.5px; font-weight: 700; fill: #0b1c2e; }
.tn-d { font-size: 10px; fill: #3d5570; }
.reveal {
  margin: 10px 0 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.more-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  font-family: inherit;
  flex: none;
}
.more-btn:hover { border-color: var(--accent); }
.arch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line-2);
  background: #f7fbfe;
}
.arch-actions .arch-detail {
  border: 0;
  padding: 0;
  background: transparent;
  flex: 1;
  min-height: 0;
}
.cmp-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.cmp-teaser article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}
.cmp-teaser .hi { background: rgba(14,111,184,.08); border-color: #9dc3e3; }
.cmp-teaser small {
  display: block;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cmp-teaser b { display: block; font-size: 15px; color: var(--title); margin-bottom: 6px; }
.cmp-teaser p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.tnode { cursor: pointer; }
.tnode rect, .tnode polygon {
  fill: #fff;
  stroke: #c5d6e6;
  stroke-width: 1.5;
}
.tnode.on rect, .tnode.on polygon {
  fill: #d7ecf8;
  stroke: #0e6fb8;
  stroke-width: 2;
}
.tech-wire {
  fill: none;
  stroke: #8fb4d0;
  stroke-width: 1.7;
}
.tech-wire.dash {
  stroke-dasharray: 5 4;
  stroke: #b7c9d8;
}
.yn {
  font-size: 10px;
  font-weight: 600;
  fill: #0e6fb8;
}
.yn.mute { fill: #8aa0b4; font-weight: 500; }
.tech-pkt { fill: #0e6fb8; }
.tech-pkt.p-b { fill: #0a8aa3; }
.tech-pkt.p-c { fill: #0e6fb8; opacity: 0.85; }
.tech-spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.tech-spec article {
  padding: 14px 16px 16px;
  border-right: 1px solid var(--line-2);
  min-width: 0;
}
.tech-spec article:last-child { border-right: 0; }
.tech-spec b { display: block; font-size: 13px; margin-bottom: 6px; color: var(--title); }
.tech-spec p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }

.compare-lede {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 78ch;
  margin: 0 0 18px;
}
.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}
.cmp th, .cmp td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.45;
}
.cmp th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  background: #f7fbfe;
  font-weight: 600;
}
.cmp tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  min-width: 180px;
}
.cmp .hi {
  background: rgba(14, 111, 184, 0.07);
  color: var(--ink);
  font-weight: 600;
}
.cmp th.hi { color: var(--accent); }
.cmp td[data-v="yes"] { color: #0b7a4b; }
.cmp td[data-v="no"] { color: #9aa8b5; }
.cmp td[data-v="mid"] { color: #8a6a12; }
.cmp td.hi[data-v="yes"] { color: #0b5f9d; }

#demo .grid { padding-bottom: 20px; }

.section-h { gap: 8px; min-width: 0; }
.brand { white-space: nowrap; min-width: 0; }
.nav-meta { flex: none; }
.kicker { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-spec article:nth-child(2) { border-right: 0; }
  .tech-spec article:nth-child(1),
  .tech-spec article:nth-child(2) { border-bottom: 1px solid var(--line-2); }
}

@media (max-width: 860px) {
  .hero, .stage { grid-template-columns: 1fr; height: auto; }
  .grid, .pillars { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .side-hide { display: none; }
  .stage {
    height: auto;
    min-height: calc(100dvh - 64px);
    padding-top: 10px;
    grid-template-columns: 1fr;
  }
  .tech-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .arch-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 16px; }
  .ag-arrow { display: none; }
  .ag-col + .ag-col, .ag-col { padding: 0; }
  .ag-col { border-top: 1px dashed var(--line); padding-top: 14px; }
  .ag-col:first-child { border-top: 0; padding-top: 0; }
  .mini-flow { flex-wrap: wrap; justify-content: center; }
  .mf-wire { width: 20px; }
  .section-h { flex-direction: column; align-items: flex-start; }
  .cmp-teaser { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn-solid, .hero-cta .btn-line { width: 100%; }
  footer.site { flex-direction: column; }
  .top-inner { padding: 10px 0; }
  .live { display: none; }
  .ident small { display: none; }
  .ws-top .wrap { width: min(1120px, calc(100% - 20px)); gap: 8px; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 20px); }
  .tech-spec { grid-template-columns: minmax(0, 1fr); }
  .tech-spec article { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .tech-spec article:last-child { border-bottom: 0; }
  .cmp { min-width: 720px; }
  .mini-flow { flex-direction: column; }
  .mf-wire { display: none; }
  .mf-col, .mf-core { width: 100%; }
  .hero { padding-top: 16px; gap: 16px; }
  .arch-tab { font-size: 12px; padding: 12px 8px; }
  .cmp { min-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  .pkt, .mf-pkt, .wire, .mf-core, .anode-core, .ag-flow::after, .ag-arrow i { animation: none; }
  .tech-pkt { display: none; }
}
