/* ============================================================
   OBSERVANT — /mcp page styles (loads after styles.css)
   The one place we use a dark band tastefully: the terminal.
   ============================================================ */

.mcp-hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.mcp-hero .eyebrow { display: inline-flex; }
.mcp-hero h1 { margin-top: 1.3rem; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 15ch; }
.mcp-hero h1 .ital { font-style: italic; }
.mcp-hero .lead { margin-top: 1.5rem; max-width: 50ch; }
.mcp-hero .hero-actions { margin-top: 2rem; }

/* ---------- terminal / coding-agent mockup ---------- */
.term-wrap { max-width: 760px; margin: 2.8rem auto 0; }
.term {
  --t-fg: oklch(0.91 0.012 75);
  --t-mut: oklch(0.66 0.015 70);
  --t-ac: oklch(0.70 0.115 45);
  --t-green: oklch(0.74 0.10 150);
  background: var(--night);
  border: 1px solid oklch(0.34 0.014 58);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px oklch(0.2 0.02 60 / .3), 0 40px 80px -36px oklch(0.25 0.03 50 / .6), 0 18px 36px -24px oklch(0.25 0.03 50 / .4);
}
.term-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border-bottom: 1px solid oklch(0.32 0.012 58); }
.term-bar .lights { display: flex; gap: 6px; }
.term-bar .lights i { width: 11px; height: 11px; border-radius: 50%; background: oklch(0.42 0.012 58); }
.term-bar .ttitle { font-family: var(--font-mono); font-size: 0.72rem; color: var(--t-mut); letter-spacing: 0.02em; margin-left: 0.4rem; }
.term-bar .tbadge { margin-left: auto; font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t-ac); display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.term-bar .tbadge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--t-green); animation: pulse 2.4s infinite; }

.term-body { padding: 1.4rem 1.4rem 1.6rem; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.65; color: var(--t-fg); min-height: 380px; }
.tline { display: block; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.tline.in { opacity: 1; transform: none; }
.tline + .tline { margin-top: 0.55rem; }
.tline.user { color: var(--t-fg); }
.tline.user .pfx { color: var(--t-ac); margin-right: 0.6em; }
.tline.tool { color: var(--t-mut); }
.tline.tool .mark { color: var(--t-ac); margin-right: 0.55em; }
.tline.tool b { color: var(--t-fg); font-weight: 500; }
.tline.sub { color: var(--t-mut); padding-left: 1.6em; font-size: 0.8rem; }
.tline.sub .arr { color: var(--t-ac); margin-right: 0.4em; }
.tline.spacer { height: 0.4rem; opacity: 1; }

.t-insight { margin: 0.9rem 0; padding: 1rem 1.15rem; border: 1px solid oklch(0.36 0.04 50); border-left: 2px solid var(--t-ac); border-radius: 10px; background: oklch(0.29 0.02 55); opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.t-insight.in { opacity: 1; transform: none; }
.t-insight .ti-tag { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t-ac); }
.t-insight .ti-head { color: var(--t-fg); margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.5; }
.t-insight .ti-head b { color: oklch(0.96 0.01 75); font-weight: 600; }
.t-insight .ti-rec { color: var(--t-green); margin-top: 0.6rem; font-size: 0.84rem; }
.t-insight .ti-meta { color: var(--t-mut); margin-top: 0.55rem; font-size: 0.76rem; }
.term-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--t-ac); vertical-align: text-bottom; margin-left: 2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{ opacity: 1; } 50%{ opacity: 0; } }

.term-caption { margin-top: 1.3rem; text-align: center; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }

/* ---------- the loop (flow) ---------- */
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 2.8rem; flex-wrap: wrap; }
.flow-node { flex: 1; min-width: 150px; background: oklch(0.99 0.004 80); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.1rem; position: relative; }
.flow-node .fn-k { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.flow-node .fn-t { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; margin-top: 0.55rem; line-height: 1.2; }
.flow-node .fn-d { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; line-height: 1.4; }
.flow-arrow { align-self: center; color: var(--border-strong); flex: 0 0 auto; padding: 0 0.55rem; }

/* ---------- integrations ---------- */
.integrations { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.4rem; justify-content: center; }
.intg { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem; color: var(--text-secondary); padding: 0.55em 1.05em; border: 1px solid var(--border-strong); border-radius: 100px; background: oklch(0.99 0.004 80); transition: border-color .2s, color .2s; white-space: nowrap; }
.intg:hover { border-color: var(--accent); color: var(--accent); }
.intg .mono-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.intg.soon { opacity: 0.6; }
.intg.soon::after { content: "soon"; font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* ---------- value trio ---------- */
.mcp-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.mcp-val { padding: 1.6rem; border: 1px solid var(--border); border-radius: 16px; background: oklch(0.99 0.004 80); }
.mcp-val .mv-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.mcp-val h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.mcp-val p { margin-top: 0.55rem; font-size: 0.94rem; color: var(--text-secondary); line-height: 1.5; }

/* ---------- what it exposes (two tool columns) ---------- */
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.4rem; }
.tool-col { padding: 1.7rem; border: 1px solid var(--border); border-radius: 16px; background: oklch(0.99 0.004 80); }
.tool-col .tc-head { display: flex; flex-direction: column; gap: 0.55rem; }
.tool-col .tc-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-soft); border-radius: 100px; padding: 0.3em 0.7em; }
.tool-col .tc-tag.bridge { color: var(--text-muted); background: var(--surface-2); border-color: var(--border-strong); }
.tool-col h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; }
.tool-col .tc-sub { margin-top: 0.5rem; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; }
.tool-list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.tool-list li { display: flex; flex-direction: column; gap: 0.3rem; }
.tool-list code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 0.25em 0.55em; align-self: flex-start; }
.tool-list li span { font-size: 0.86rem; color: var(--text-muted); line-height: 1.45; }

/* ---------- install snippet ---------- */
.install { max-width: 660px; margin: 2.2rem auto 0; text-align: center; }
.install-box { display: flex; align-items: center; gap: 0.9rem; background: var(--night); border-radius: 12px; padding: 0.9rem 1.1rem; font-family: var(--font-mono); font-size: 0.85rem; color: oklch(0.91 0.012 75); text-align: left; }
.install-box + .install-box { margin-top: 0.7rem; }
.install-box.subtle { opacity: 0.86; font-size: 0.8rem; }
.install-box .prompt { color: oklch(0.70 0.115 45); }
.install-box .cmd { flex: 1; overflow-x: auto; white-space: nowrap; }
.install-box .copy { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: oklch(0.66 0.015 70); border: 1px solid oklch(0.34 0.014 58); border-radius: 7px; padding: 0.35em 0.7em; flex-shrink: 0; transition: color .2s, border-color .2s; }
.install-box .copy:hover { color: oklch(0.91 0.012 75); border-color: oklch(0.5 0.02 58); }
.install-aside { margin: 1.4rem 0 0.8rem; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 880px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 0.4rem 0; align-self: center; }
  .mcp-vals { grid-template-columns: 1fr; }
  .tool-cols { grid-template-columns: 1fr; }
}
