/* LLMBridge: off-white / near-black / muted leaf green */

:root {
  --bg: #FAFAF9;
  --bg-alt: #EBF1EC;      /* pale sage, replaces the old beige */
  --card: #FFFFFF;
  --ink: #0B0D10;
  --ink-soft: #2A2E33;
  --muted: #5C6360;
  --line: #E1E6E1;
  --line-strong: #C9D2CA;
  --accent: #3E7A56;
  --accent-strong: #2F6344;
  --accent-tint: #E9F0E9;
  --code-bg: #EDF1EC;
  --radius: 12px;
  --max: 1500px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }

.header-actions { display: flex; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { text-decoration: none; }

.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: #23272C; }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { padding: 14px 24px; font-size: 16px; }

/* ---------- hero (full viewport) ---------- */

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 640;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(52px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  font-weight: 700;
}
.hero h1 .line { display: block; overflow: hidden; }

/* rotating middle line: claude -> chatgpt -> gemini -> any MCP client */
.hero h1 .rotator {
  position: relative;
  height: 1.02em;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  overflow: hidden;
  cursor: default;
}
.hero h1 .rot-item {
  position: absolute;
  left: 0;
  bottom: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero h1 .rot-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* brand colors for the rotating names */
.hero h1 .rot-claude { color: #C8643F; }   /* Claude terracotta, deepened for AA on off-white */
.hero h1 .rot-chatgpt { color: #0E8F6E; }  /* OpenAI/ChatGPT green */
.hero h1 .rot-gemini {
  color: #6C4FA1; /* fallback for engines without background-clip:text */
  background: linear-gradient(92deg, #4285F4 8%, #9B72CB 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .rot-mcp { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .rot-item { transition: none; }
}

.lede {
  font-size: 19.5px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 34px;
}
.lede strong { color: var(--ink); font-weight: 620; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- connection diagram ---------- */

.hero-diagram {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  aspect-ratio: 5 / 6;
  min-height: 0;
}

.diagram-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.link {
  stroke: var(--line-strong);
  stroke-width: 1.6;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
  opacity: 0.9;
}

.link-flow {
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 26 900;
  filter: drop-shadow(0 0 6px rgba(62, 122, 86, 0.45));
  animation: link-flow 3.4s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes link-flow {
  from { stroke-dashoffset: 926; }
  to { stroke-dashoffset: 0; }
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  animation: node-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.node img { display: block; width: 40px; height: 40px; object-fit: contain; }
.node-label {
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.node-plus .plus-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.6px dashed var(--line-strong);
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

@keyframes node-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: hub-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s backwards;
}
.hub img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 20px;
  filter: drop-shadow(0 18px 44px rgba(11, 13, 16, 0.22));
  animation: hub-breathe 4.5s ease-in-out 1.1s infinite;
}

@keyframes hub-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes hub-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

/* hero entrance: lines rise into view */
.hero-copy .eyebrow { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero h1 .line { animation: line-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero h1 .line:nth-child(1) { animation-delay: 0.08s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.18s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.28s; }
.hero .lede { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards; }
.hero .cta-row { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s backwards; }
.hero .hero-facts { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s backwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .link-flow { animation: none; stroke-dasharray: 26 900; }
  .node, .hub, .hub img, .hero-copy .eyebrow, .hero h1 .line, .hero .lede, .hero .cta-row, .hero .hero-facts {
    animation: none;
  }
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 84ch; margin-bottom: 40px; }

.section h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.024em;
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 660;
}

.section-lede {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 72ch;
  margin: 0;
}

.docs-link { margin-top: 32px; font-size: 15.5px; color: var(--muted); }

/* steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps li { background: var(--bg); padding: 34px 34px 32px; }
.steps li:nth-child(odd) { border-right: 1px solid var(--line); }
.steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 16px;
}
.steps h3 { margin: 0 0 10px; font-size: 19.5px; font-weight: 640; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* tools grid */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 24px;
  transition: border-color 120ms ease;
}
.tool-card:hover { border-color: var(--line-strong); }
.tool-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 640; }
.tool-count {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 640;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.tool-card p:last-child { margin: 0; font-size: 15px; color: var(--muted); }

/* compare table */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 1080px;
}
table.compare th, table.compare td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.compare thead th {
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 660;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-strong);
}
table.compare thead .col-us { color: var(--accent-strong); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody th { font-weight: 600; width: 21%; color: var(--ink); }
table.compare td { color: var(--muted); }
table.compare .col-us { background: var(--accent-tint); color: var(--ink); font-weight: 540; }
table.compare tbody tr:hover .col-us { background: #E0EAE1; }

.table-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 84ch; }

/* two-col panels */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 34px 32px;
}
.panel h3 { margin: 0 0 12px; font-size: 20px; font-weight: 640; }
.panel p { margin: 0; color: var(--muted); font-size: 16px; }

/* limits */

.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.limit {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--card);
}
.limit h3 { margin: 0 0 10px; font-size: 17px; font-weight: 640; }
.limit p { margin: 0; font-size: 15px; color: var(--muted); }

/* security */

.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.security-item {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.security-item h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 640; }
.security-item p { margin: 0; font-size: 15px; color: var(--muted); }

/* connect */

.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.connect-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px 26px;
}
.connect-card h3 { margin: 0 0 16px; font-size: 19px; font-weight: 640; }
.connect-card ol { margin: 0; padding-left: 22px; font-size: 15px; color: var(--muted); }
.connect-card ol li { margin-bottom: 9px; }
.connect-card .callout {
  color: var(--ink);
  background: var(--accent-tint);
  border-radius: 7px;
  padding: 10px 12px;
  margin-top: 14px;
  margin-left: -22px;
  list-style: none;
  font-size: 14.5px;
}

/* faq */

.faq-list { max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-list summary::before {
  content: "";
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 150ms ease;
  flex: none;
}
.faq-list details[open] summary::before { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; padding-left: 23px; color: var(--muted); font-size: 16px; max-width: 82ch; }

/* contribute */

.contribute {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.contribute-main { max-width: 60ch; }
.contribute h2 { margin: 0 0 16px; }
.contribute p { color: var(--muted); font-size: 16.5px; margin: 0; }
.contribute .cta-row { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-strong);
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-wordmark { margin: 2px 0 4px; font-weight: 660; font-size: 17px; }
.footer-tagline { margin: 0; font-size: 15px; color: var(--muted); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col-title {
  margin: 0 0 4px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 660;
}
.footer-col a { font-size: 15px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-strong); text-decoration: none; }

.footer-bottom { padding-top: 28px; }
.footer-bottom p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 92ch; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: 0; }
  .hero-diagram { max-width: 520px; margin: 0 auto; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .limits-grid, .security-grid, .connect-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li + li { border-left: none; }
  .steps li:nth-child(odd) { border-right: 1px solid var(--line); }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps li:nth-child(n+3) { border-bottom: none; }
  .two-col, .contribute { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .hero { padding: 56px 0 60px; }
  .section { padding: 64px 0; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-ghost { display: none; }
}