/* foundry-mcp.com — static site. Tokens: the "Foundry MCP" design system (one dark theme, borders not shadows). */
:root{
  --bg:#1a1a2e;--surface:#16213e;--surface-active:#1e2d4a;--surface-deep:#0f1a2e;
  --line:#0f3460;--line-strong:#1a3a6e;--divider:#2a2a4a;
  --accent:#e94560;--accent-hover:#d63050;--on-accent:#ffffff;
  --text:#e0e0e0;--text-secondary:#cccccc;--text-muted:#999999;
  --info:#82aaff;--code-string:#c3e88d;--success:#2d8a4e;
  --sans:system-ui,-apple-system,"Segoe UI",sans-serif;--mono:"SF Mono",Consolas,"Liberation Mono",monospace;
  --radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-pill:20px;
}
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--accent)}a:hover{color:#f06a80}
:focus-visible{outline:2px solid var(--info);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:var(--surface);color:var(--text);padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius-md)}
.skip:focus{left:8px;z-index:10}
.wrap{max-width:1152px;margin:0 auto;padding:0 24px}
h1,h2,h3{margin:0;line-height:1.15;letter-spacing:-0.01em;color:var(--text)}
h1{font-size:clamp(34px,5vw,56px);line-height:1.05;letter-spacing:-0.02em}
h2{font-size:clamp(28px,3.2vw,36px)}
p{margin:0}
.eyebrow{font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--text-muted);font-weight:600}
.lead{font-size:clamp(16px,1.6vw,19px);line-height:1.55;color:var(--text-secondary)}
.muted{color:var(--text-muted);font-size:14px}
.mono{font-family:var(--mono)}

/* header */
.site-header{border-bottom:2px solid var(--divider)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-height:72px;padding-top:10px;padding-bottom:10px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-size:18px;font-weight:700;letter-spacing:-0.01em}
.brand svg{color:var(--accent)}
.nav{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.nav a{color:var(--text-secondary);text-decoration:none;font-size:14px;font-weight:600}
.nav a:hover,.nav a[aria-current="page"]{color:var(--text)}
.nav .btn{margin-left:4px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:700;font-size:16px;padding:14px 28px;border-radius:var(--radius-lg);min-height:48px;border:1px solid transparent;cursor:pointer;font-family:inherit;transition:background .2s,border-color .2s,color .2s}
.btn-primary{background:var(--accent-hover);color:var(--on-accent)}
.btn-primary:hover{background:#c02a48;color:var(--on-accent)}
.btn-secondary{background:var(--surface);border-color:var(--line);color:var(--text)}
.btn-secondary:hover{border-color:var(--accent);color:var(--text)}
.btn-sm{font-size:14px;padding:10px 18px;min-height:40px}
.btn-copy{background:var(--line);color:var(--text);border:1px solid var(--line-strong);padding:8px 14px;border-radius:var(--radius-md);font-size:12px;font-weight:600;min-height:36px;font-family:var(--sans);white-space:nowrap}
.btn-copy:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn-copy.copied{background:var(--success);border-color:var(--success);color:var(--on-accent)}

/* sections */
.section{padding:72px 0;border-top:1px solid var(--divider)}
.section-head{display:flex;flex-direction:column;gap:10px;margin-bottom:32px}
.hero{padding-block:88px 64px;display:grid;grid-template-columns:minmax(0,580px) minmax(0,520px);gap:64px;align-items:center;justify-content:space-between}
.hero-copy{display:flex;flex-direction:column;gap:22px}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}
.hero.single{grid-template-columns:minmax(0,760px)}

/* cards & grids */
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);padding:24px;display:flex;flex-direction:column;gap:12px}
.card h3{font-size:18px}
.card p{font-size:14px;line-height:1.55;color:var(--text-secondary)}
.card .step-n{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#1a1a2e;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
.card svg{color:var(--accent)}
.card .body{font-size:15px;line-height:1.55;color:var(--text-secondary)}
.card strong{color:var(--text)}

/* chips */
.chips{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.chip{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-pill);padding:8px 16px;font-size:14px;color:var(--text)}
.works{padding-block:0 72px;display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center}

/* code + copy */
.code{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px 20px;font-family:var(--mono);font-size:13px;line-height:1.6;color:var(--text);white-space:pre-wrap;word-break:break-word;margin:0;overflow-x:auto}
.code .k{color:var(--info)}.code .s{color:var(--code-string)}.code .c{color:var(--text-muted)}.code .ok{color:var(--success)}.code .err{color:var(--accent)}
.copy{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:10px 10px 10px 16px;font-family:var(--mono);font-size:14px;color:var(--text)}
.copy code{flex-grow:1;overflow-wrap:anywhere;font-family:inherit}

/* chat card (hero) */
.chat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);padding:20px;display:flex;flex-direction:column;gap:14px;width:100%}
.chat .label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px}
.chat .user{align-self:flex-end;max-width:380px;background:var(--surface-active);border:1px solid var(--line);border-radius:12px 12px 2px 12px;padding:12px 14px;font-size:15px;line-height:1.5}
.chat .answer{background:var(--surface-deep);border:1px solid var(--line);border-radius:12px 12px 12px 2px;padding:14px;display:flex;flex-direction:column;gap:10px;font-size:14px}
.chat table{border-collapse:collapse;width:100%;font-size:14px}
.chat th{text-align:left;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);padding:0 0 4px}
.chat td{padding:3px 12px 3px 0}
.chat td.hp{color:var(--code-string)}
.chat .meta{font-size:12px;color:var(--text-muted);font-family:var(--mono)}

/* lists */
.checks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--text-secondary)}
.checks li{display:flex;gap:10px;align-items:flex-start}
.checks svg{color:var(--success);flex-shrink:0;margin-top:3px}

/* code-mode teaser */
.teaser{display:grid;grid-template-columns:minmax(0,480px) minmax(0,560px);gap:56px;align-items:center;justify-content:space-between}
.teaser .copy-col{display:flex;flex-direction:column;gap:18px}

/* pricing */
.price{padding:28px}
.price.hi{border-color:var(--accent)}
.price .tier{font-size:14px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--info)}
.price .amount{font-size:32px;font-weight:700;color:var(--text);line-height:1.1}
.price .amount small{font-size:16px;font-weight:400;color:var(--text-muted)}
.price .sub{font-size:13px;color:var(--text-muted)}
.price .checks{font-size:14px;flex-grow:1}
.price .btn{margin-top:4px}

/* trust */
.trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.trust-item{display:flex;gap:14px;align-items:flex-start}
.trust-item svg{color:var(--accent);flex-shrink:0}
.trust-item h3{font-size:16px;margin-bottom:6px}
.trust-item p{font-size:14px;line-height:1.55;color:var(--text-secondary)}

/* code page */
.tool-name{font-family:var(--mono);font-size:18px;font-weight:700}
.badge{font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding:3px 8px;border-radius:4px;background:var(--line);color:var(--info);margin-left:10px;vertical-align:middle}
.two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:32px;align-items:start}
.guards{display:grid;grid-template-columns:minmax(0,520px) minmax(0,620px);gap:48px;align-items:start;justify-content:space-between}
.guards .list{display:flex;flex-direction:column;gap:24px}
.guards h3{font-size:16px;margin-bottom:6px}
.guards p{font-size:14px;line-height:1.55;color:var(--text-secondary)}
.quota{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:64px}
.quota table{border-collapse:collapse;width:100%;font-size:15px}
.quota th,.quota td{text-align:left;padding:14px 0;border-top:1px solid var(--divider)}
.quota th{font-weight:600;color:var(--text);width:200px}
.quota td{color:var(--text-secondary)}
.connect h3{font-size:15px;margin-bottom:10px}
.connect p{font-size:14px;line-height:1.55;color:var(--text-secondary);margin-bottom:10px}

/* footer */
.site-footer{border-top:1px solid var(--divider);padding:28px 0}
.site-footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--text-muted)}
.site-footer .brand-line{display:flex;align-items:center;gap:10px}
.site-footer nav{display:flex;gap:24px;flex-wrap:wrap}
.site-footer a{color:var(--text-muted);text-decoration:none}
.site-footer a:hover{color:var(--text)}

@media (max-width:1000px){
  .hero{grid-template-columns:1fr;gap:40px}
  .grid-3{grid-template-columns:1fr}
  .teaser{grid-template-columns:1fr;gap:32px}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .two-col,.guards,.quota{grid-template-columns:1fr;gap:24px}
  .trust{grid-template-columns:1fr;gap:24px}
}
@media (max-width:800px){
  .section{padding:48px 0}
  .hero{padding-block:48px 40px}
}
@media (max-width:600px){
  .grid-2,.grid-4{grid-template-columns:1fr}
  .site-header .wrap{padding-top:12px;padding-bottom:12px}
  .nav{gap:16px}
  .hero .actions .btn{width:100%}
  .chat .user{max-width:100%}
  .site-footer .wrap{flex-direction:column;align-items:flex-start}
}
