@import url('./tokens.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-display);
  font-feature-settings: var(--feature-settings);
  color: var(--ink);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
code, pre { font-family: var(--font-mono); }

/* ----- Layout ----- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 760px) { .container { padding: 0 20px; } }

/* ----- Header ----- */
.header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease-out-expo), box-shadow 250ms;
}
.header.scrolled { border-bottom-color: var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 0; }
.wordmark img { height: 22px; width: auto; display: block; }
.wordmark .sub { margin-left: 12px; padding-left: 12px; font: 600 15px/1 var(--font-display); color: var(--hoist-coral-dark); letter-spacing: -0.015em; border-left: 1px solid var(--border-default); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-secondary); transition: color 200ms; border-radius: 8px; }
.nav-link::after { content:""; position:absolute; left:14px; right:14px; bottom:4px; height: 2px; border-radius: 1px; background: var(--hoist-coral); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out-expo); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: var(--radius-full); color: var(--ink); border: 1px solid var(--border-default); background: #fff; transition: background 200ms, border-color 200ms; }
.header-cta:hover { background: var(--surface-secondary); border-color: var(--ink); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: var(--radius-full); transition: transform 200ms var(--ease-out-expo), background-color 200ms; font-family: var(--font-display); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--hoist-coral-dark); color: #fff; padding: 14px 22px; font-size: 14px; box-shadow: var(--shadow-glow-coral); }
.btn-primary:hover { background: var(--hoist-coral); transform: scale(1.03); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { width: 16px; height: 16px; transition: transform 250ms var(--ease-out-expo); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-ghost { padding: 14px 22px; font-size: 14px; color: var(--ink); border: 1px solid var(--border-default); background: #fff; }
.btn-ghost:hover { background: var(--surface-secondary); border-color: var(--ink); }

/* ----- Eyebrow ----- */
.eyebrow { font: var(--type-eyebrow); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--hoist-coral); display: inline-block; }
.eyebrow-ink { color: var(--ink-muted); }

/* ----- Hero ----- */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
@media (max-width: 880px) { .hero { padding: 56px 0 64px; } }
.hero-ambient { pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 35% at 20% -5%, rgba(232,68,90,0.04), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: var(--radius-full); background: var(--surface-secondary); border: 1px solid var(--border-subtle); font-size: 12px; font-weight: 500; color: var(--ink-secondary); }
.hero-chip .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--match-strong); position: relative; }
.hero-chip .pulse::after { content:""; position:absolute; inset:-3px; border-radius:50%; background: var(--match-strong); opacity: 0.3; animation: pulseRing 2s var(--ease-out-expo) infinite; }
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-chip .sep { color: var(--border-medium); }
.hero-chip .pending { color: var(--ink-tertiary); }

.hero-eyebrow { margin-top: 20px; }
.hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw + 0.25rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 620px;
  text-wrap: balance;
}
.hero h1 .cry { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .cry svg { position: absolute; bottom: -8px; left: -2%; width: 104%; height: 14px; z-index: 0; }
.hero h1 .cry svg path { fill: var(--hoist-coral); opacity: 0.85; }
.hero h1 .cry > span { position: relative; z-index: 1; }

.hero p.sub { margin-top: 22px; max-width: 540px; font-size: 17px; line-height: 1.55; letter-spacing: -0.005em; color: var(--ink-secondary); }
.hero p.sub strong { color: var(--ink); font-weight: 600; }
.hero p.sub + p.sub { margin-top: 14px; }

.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-cta .text-link { font-size: 14px; font-weight: 500; color: var(--ink-secondary); display: inline-flex; align-items: center; gap: 4px; position: relative; padding: 4px 0; }
.hero-cta .text-link::after { content:""; position:absolute; left:0; right:18px; bottom:0; height:1px; background: var(--ink-secondary); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out-expo); }
.hero-cta .text-link:hover { color: var(--ink); }
.hero-cta .text-link:hover::after { transform: scaleX(1); }

/* ----- MultiAgentTabs ----- */
.code-card { position: relative; background: #0d1117; border-radius: var(--radius-xl); box-shadow: var(--shadow-elevated-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.code-card::before { content:""; position: absolute; inset: -40px 20% auto 20%; height: 80px; background: rgba(232,68,90,0.18); filter: blur(80px); border-radius: 50%; pointer-events: none; }
.code-tabs { display: flex; align-items: center; padding: 8px 8px 0; gap: 2px; border-bottom: 1px solid rgba(255,255,255,0.06); overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab { padding: 8px 12px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55); border-radius: 6px 6px 0 0; transition: color 200ms, background 200ms; white-space: nowrap; font-family: var(--font-display); }
.code-tab:hover { color: rgba(255,255,255,0.85); }
.code-tab.active { color: #fff; background: #161b22; box-shadow: inset 0 2px 0 var(--hoist-coral); }
.code-body { position: relative; padding: 0; background: #161b22; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11px; color: rgba(255,255,255,0.45); font-family: var(--font-mono); border-bottom: 1px solid rgba(255,255,255,0.04); }
.code-head .path { display: inline-flex; align-items: center; gap: 6px; }
.code-copy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: rgba(255,255,255,0.55); font-size: 11px; font-family: var(--font-display); font-weight: 500; transition: background 200ms, color 200ms; }
.code-copy:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.95); }
.code-copy.done { color: #4ade80; }
.code-copy svg { width: 12px; height: 12px; }
.code-pre { padding: 16px 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.92); overflow-x: auto; min-height: 260px; }
.code-pre .k { color: #ff7b72; }    /* keyword/key */
.code-pre .s { color: #a5d6ff; }    /* string */
.code-pre .c { color: #7d8590; font-style: italic; } /* comment */
.code-pre .p { color: #f0883e; }    /* punctuation/value */
.code-pre .n { color: #d2a8ff; }    /* number/literal */

/* ----- Section base ----- */
section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: var(--surface-secondary); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section-head { max-width: 700px; }
.section-head h2 { margin-top: 12px; font: 800 clamp(1.75rem, 3vw, 2.5rem)/1.12 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-secondary); max-width: 620px; }

/* ----- Trust strip ----- */
.trust { padding: 32px 0 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-tile { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: #fff; transition: border-color 200ms, transform 200ms var(--ease-out-expo); }
.trust-tile:hover { border-color: var(--border-default); transform: translateY(-1px); }
.trust-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--hoist-coral-subtle); color: var(--hoist-coral-dark); display: grid; place-items: center; }
.trust-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.trust-claim { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }

/* ----- Capabilities ----- */
.caps-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .caps-grid { grid-template-columns: 1fr; } }
.cap-card { position: relative; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); transition: box-shadow 250ms var(--ease-out-expo), transform 250ms; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.cap-card:hover { box-shadow: var(--shadow-card-hover); }
.cap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cap-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--hoist-coral-subtle); color: var(--hoist-coral-dark); display: grid; place-items: center; }
.cap-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.cap-status { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em; }
.cap-status.live { background: var(--hoist-coral-dark); color: #fff; }
.cap-status.soon { background: transparent; color: var(--ink-tertiary); border: 1px solid var(--border-default); }
.cap-title { font: 700 17px/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--ink); }
.cap-tools { font: 500 12px/1.45 var(--font-mono); color: var(--ink-secondary); word-break: break-word; }
.cap-q { font-size: 13.5px; line-height: 1.5; color: var(--ink-tertiary); font-style: italic; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.caps-foot { margin-top: 28px; font-size: 14px; color: var(--ink-tertiary); padding: 16px 20px; background: var(--surface-secondary); border-radius: var(--radius-md); border-left: 3px solid var(--hoist-coral); }
.caps-foot strong { color: var(--ink); font-weight: 600; }

/* ----- NoIndividuals ----- */
.no-ind { background: var(--surface-secondary); padding: 96px 0; }
.no-ind-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; padding-left: 24px; border-left: 4px solid var(--hoist-coral); }
@media (max-width: 880px) { .no-ind-inner { grid-template-columns: 1fr; gap: 24px; } }
.no-ind h2 { font: 800 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; margin-top: 12px; }
.no-ind p { font-size: 16px; line-height: 1.65; color: var(--ink-secondary); }
.no-ind p + p { margin-top: 16px; }
.no-ind code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-subtle); }
.no-ind a { color: var(--ink); border-bottom: 1px solid var(--hoist-coral); transition: background 200ms; padding-bottom: 1px; }
.no-ind a:hover { background: var(--hoist-coral-subtle); }

/* ----- How it works ----- */
.how-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .how-steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border-subtle); }
.step-num { font: 700 13px/1 var(--font-mono); color: var(--hoist-coral-dark); }
.step h3 { font: 700 20px/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--ink-secondary); }

.flow-diagram { margin-top: 48px; padding: 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-secondary); overflow-x: auto; }
.flow-diagram svg { width: 100%; min-width: 720px; height: auto; display: block; }

/* ----- Pricing (grid) ----- */
.pricing-grid { margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; } }
.p-card { position: relative; padding: 28px 28px 32px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 16px; transition: box-shadow 250ms var(--ease-out-expo), transform 250ms; }
.p-card:hover { box-shadow: var(--shadow-card-hover); }
.p-card.popular { border-color: var(--hoist-coral); border-width: 2px; padding: 27px 27px 31px; box-shadow: var(--shadow-elevated-lg); transform: translateY(-4px); }
@media (max-width: 900px) { .p-card.popular { transform: none; } }
.p-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--hoist-coral-dark); color: #fff; padding: 5px 12px; border-radius: var(--radius-full); font: 700 10px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.p-tier { font: 700 13px/1 var(--font-mono); color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }
.p-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-tertiary); min-height: 42px; }
.p-amount { display: flex; align-items: baseline; gap: 4px; }
.p-amount .ccy { font: 700 18px/1 var(--font-display); color: var(--ink-tertiary); }
.p-amount .v { font: 800 56px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.p-amount .u { font: 600 15px/1 var(--font-display); color: var(--ink-tertiary); }
.p-gst { font-size: 12px; color: var(--ink-tertiary); margin-top: -8px; }
.p-cta { width: 100%; padding: 10px 14px; font-size: 13px; }
.p-card:not(.popular) .p-cta { background: var(--ink); color: #fff; box-shadow: none; }
.p-card:not(.popular) .p-cta:hover { background: #000; }
.p-feats { display: flex; flex-direction: column; gap: 9px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.p-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-secondary); }
.p-feats li svg { flex-shrink: 0; color: var(--hoist-coral); margin-top: 3px; width: 13px; height: 13px; stroke-width: 2.5; }

.pricing-extras { margin: 40px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pricing-extras { grid-template-columns: 1fr; max-width: 520px; } }
.pricing-extra { padding: 16px 18px; background: var(--surface-secondary); border-radius: var(--radius-md); border-left: 3px solid var(--hoist-coral); font-size: 13.5px; line-height: 1.55; color: var(--ink-secondary); }
.pricing-extra strong { color: var(--ink); font-weight: 600; }
.pricing-extra a { color: var(--ink); border-bottom: 1px solid var(--hoist-coral); padding-bottom: 1px; }

.pricing-entity-line { margin-top: 32px; text-align: center; font-size: 13px; color: var(--ink-tertiary); }

/* ----- Footer (logo) ----- */
.footer-logo { display: inline-flex; align-items: baseline; gap: 8px; }
.footer-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-sub { font: 700 16px/1 var(--font-display); color: rgba(255,255,255,0.85); letter-spacing: -0.02em; position: relative; padding-left: 14px; }
.footer-logo-sub::before { content:""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ----- FAQ ----- */
.faq-list { margin-top: 40px; max-width: 760px; }
.faq-item { border-top: 1px solid var(--border-default); }
.faq-item:last-child { border-bottom: 1px solid var(--border-default); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 4px; text-align: left; font: 600 17px/1.4 var(--font-display); letter-spacing: -0.015em; color: var(--ink); transition: color 200ms; }
.faq-q .n { font: 700 12px/1 var(--font-mono); color: var(--hoist-coral-dark); flex-shrink: 0; align-self: flex-start; padding-top: 4px; width: 28px; }
.faq-q .label { flex: 1; }
.faq-q:hover { color: var(--hoist-coral-dark); }
.faq-q .chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--ink-tertiary); transition: transform 250ms var(--ease-out-expo); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease-out-expo); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-text { padding: 0 32px 24px 28px; font-size: 15px; line-height: 1.65; color: var(--ink-secondary); max-width: 640px; }
.faq-more { margin-top: 24px; font-size: 14px; color: var(--ink-secondary); }
.faq-more a { color: var(--ink); border-bottom: 1px solid var(--hoist-coral); padding-bottom: 1px; }

/* ----- Footer ----- */
.footer { background: var(--hoist-coral-dark); color: rgba(255,255,255,0.85); padding: 72px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
.footer .wordmark { color: #fff; }
.footer .wordmark .sub { color: rgba(255,255,255,0.85); }
.footer .wordmark .dot { background: #fff; }
.footer-brand-meta { margin-top: 14px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 360px; }
.footer-col-label { font: 700 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color 200ms; }
.footer-col a:hover { color: #fff; }
.footer-entity { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.footer-bottom { margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.55); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Mobile overflow guard for docs code blocks (ha-535) ──────────
   Long URLs/JSON in <pre> overflow the 375px viewport on docs pages
   (/docs/api/, /docs/mcp/install/claude-desktop/). Force horizontal
   scroll on the <pre> while preserving code formatting. */
pre {
  overflow-x: auto;
  max-width: 100%;
  /* ensure scrollbar appears below content, not under text */
  -webkit-overflow-scrolling: touch;
}

/* Inline code that contains long unbroken strings (URLs, hashes)
   should be allowed to break to avoid pushing parent flex containers. */
:not(pre) > code {
  word-break: break-word;
  overflow-wrap: anywhere;
}
