/* cline.bot homepage rebuild — trial v3, pack CF37 only. Zero JS, zero external URLs. */
/* Round 4: all type is local woff2 (assets/fonts/), zero external font URLs. */
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/spacegrotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/spacegrotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/spacegrotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --page-bg: rgb(248, 250, 251);
  --brand-primary: rgb(109, 61, 209);
  --brand-accent: rgb(159, 88, 250);
  --ink: rgb(21, 21, 22);
  --ink-soft: rgba(21, 21, 22, 0.72);
  --ink-faint: rgba(21, 21, 22, 0.55);
  --surface: rgb(255, 255, 255);
  --line: rgba(21, 21, 22, 0.1);
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Paint <body> the observed page canvas FIRST per layout.json */
body {
  background: rgb(248, 250, 251);
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: inline-block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
a { color: var(--brand-accent); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Announcement */
.announce { background: #0c0c0d; color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px 24px; font-size: 14px; }
.announce-pill { border: 1px solid rgba(255,255,255,.35); border-radius: 9999px; padding: 2px 12px; font-size: 12px; letter-spacing: .08em; }
.announce-text { margin: 0; flex: 1; font-weight: 600; }
.announce-cta { color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 9999px; padding: 4px 16px; text-decoration: none; font-size: 13px; white-space: nowrap; }
.announce-close { background: transparent; border: 0; color: #fff; font-size: 18px; line-height: 1; cursor: default; padding: 0 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 32px; padding: 14px 40px; }
.brand img { display: block; }
.site-nav { display: flex; gap: 22px; flex: 1; font-family: var(--font-body); font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); text-decoration: none; padding: 8px 20px; font-size: 15px; }
.btn-dark { background: #0c0c0d; color: #fff; text-decoration: none; padding: 8px 18px; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.btn-dark img { filter: none; }

/* Sections */
.section { padding: 80px 40px; }
main .section:nth-child(2) { padding-top: 0; }

/* S1 hero — transparent over page bg, 2 cols per layout.json */
.hero { background: rgba(0, 0, 0, 0); padding: 120px 40px 80px; }
.hero-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 729px) minmax(0, 531px); gap: 60px; align-items: start; }
.hero h1 { color: #9663f1; font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -1.44px; }
.hero-rotator { font-size: 40px; line-height: 1.15; font-family: var(--font-display); margin: 0 0 20px; }
.lede { color: var(--ink-soft); max-width: 540px; }
.runtime-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin: 28px 0 0; }
.runtime-tab { padding: 14px; border: 1px solid var(--line); border-top: 0; border-bottom: 0; border-left: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; background: #fff; }
.runtime-tab:first-child { border-left: 0; }
.runtime-tab:last-child { border-right: 0; }
.runtime-tab.is-active { box-shadow: inset 0 -3px 0 var(--brand-primary); }
.runtime-tab div { display: flex; flex-direction: column; font-size: 13px; }
.tag-new { background: var(--brand-primary); color: #fff; font-size: 10px; border-radius: 4px; padding: 0 6px; width: fit-content; }
.hero-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; padding: 20px; color: var(--ink-soft); font-size: 16px; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btn-dl { border: 1px solid var(--line); background: var(--page-bg); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px; }
.hero-visual { position: relative; max-width: 530px; width: 100%; justify-self: end; }
.ascii-frame { position: relative; margin: 0; background: transparent; }
/* Round 5: hero visual is a halftone ASCII bot head reproduced from the live
   canvas (pack section home-1). Density ramp (.:-=+*#%@) fitted so scan-line
   dot density reads as shading; two dark eye discs. Zero JS, local only. */
.ascii-bot { display: block; margin: 0 auto; width: fit-content; background: transparent; color: rgb(21, 21, 22); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 5.3px; line-height: 5.6px; -webkit-text-stroke: 0.22px; letter-spacing: 0; text-align: left; white-space: pre; overflow: visible; user-select: none; }
.hero-shot { width: 100%; border-radius: 12px; background: #fff; border: 1px solid var(--line); }

/* Cookie consent strip — fixed to viewport bottom; clicking dismisses (checkbox hack) */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); padding: 16px 40px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
#cookie-dismiss:checked ~ .cookie-bar { display: none; }
#cookie-dismiss:focus-visible ~ .cookie-bar { outline: 2px solid var(--brand-accent); outline-offset: -2px; }
.cookie-text { margin: 0; max-width: 760px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.cookie-accept { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.mono-chip { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; background: #F5EFFE; color: var(--brand-primary); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.mono-chip svg { width: 20px; height: 20px; display: block; }
.chip { position: absolute; font-size: 12px; background: rgba(21,21,22,.06); border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; color: var(--ink); }
.chip-a { left: -26px; top: 64%; }
.chip-b { right: -30px; top: 64%; }
.chip-c { left: 45%; bottom: -8px; }

/* S2 stats — white band, two light-gray pills side by side (~2:1 widths) */
.stats { background: rgb(255, 255, 255); padding: 0 20px 40px; }
.stats-row { max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; justify-content: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px; font-size: 15px; color: var(--ink-soft); }
.stat-pill { display: inline-flex; align-items: center; gap: 10px; background: #eef0f2; border: 1px solid var(--line); border-radius: 9999px; padding: 10px 22px; }
.stat-pill p { margin: 0; }
.stat-pill-a { flex: 2 1 0; justify-content: center; }
.stat-pill-b { flex: 1 1 0; justify-content: center; font-weight: 600; color: var(--ink); white-space: nowrap; }
.stat-pill-b svg { width: 18px; height: 18px; flex: 0 0 18px; }
/* White-filled chrome marks (discord #FAFAFA) vanish on light pills — drag to dark ink. Colored logos untouched. */
.stat-pill-a img[src*="38-discord"] { filter: grayscale(1) brightness(0.35); }

/* S3 logos */
.logos { background: rgb(255, 255, 255); }
.logos h2 { font-size: 24px; font-weight: 300; font-family: var(--font-body); margin-bottom: 40px; }
.logo-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-cell { background: #fafbfc; border: 1px solid rgba(21,21,22,.05); border-radius: 8px; min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.logo-cell img { filter: grayscale(1) contrast(1.05); max-height: 40px; width: auto; }

/* S4 demo */
.demo { background: rgb(255, 255, 255); }
.demo h2 { font-size: 48px; font-weight: 700; }
.demo .sub { color: var(--ink-soft); margin-top: 0; }
.demo-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: 32px 0; max-width: 1320px; }
.demo-tab { padding: 12px 4px; color: var(--ink-faint); font-weight: 600; }
.demo-tab.is-active { color: var(--brand-primary); box-shadow: inset 0 -2px 0 var(--brand-primary); }
.demo-grid { max-width: 1320px; display: grid; grid-template-columns: minmax(0, 975px) minmax(0, 300px); gap: 48px; align-items: start; }
.demo-frame { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.demo-frame img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.video-label { font-size: 13px; color: var(--ink-faint); padding: 10px 16px; background: #fafbfc; }
.demo-block h3 { font-size: 20px; margin-bottom: 8px; }
.demo-block p { color: var(--ink-soft); font-size: 16px; margin-top: 0; }
.demo-foot { max-width: 1320px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; text-align: center; color: var(--ink-faint); font-size: 14px; }

/* S5 features */
.features { background: rgb(255, 255, 255); padding: 100px 40px; }
.eyebrow { text-align: center; color: var(--brand-accent); font-size: 12px; letter-spacing: .14em; font-weight: 600; }
.features h2 { font-size: 48px; max-width: 800px; margin: 0 auto 16px; }
.features .sub { color: var(--ink-soft); }
.feature-grid { max-width: 1200px; margin: 80px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 64px; text-align: left; }
.feature h3 { font-size: 20px; margin-bottom: 8px; padding-left: 24px; position: relative; }
.feature h3::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 2.5px; background: var(--brand-accent); }
.feature p { color: var(--ink-soft); font-size: 16px; margin: 0; padding-left: 24px; }
.docs-link { font-weight: 600; text-decoration: none; }

/* S6 providers — page-bg band per layout.json */
.providers { background: rgb(248, 250, 251); padding: 120px 40px; }
.providers h2 { font-size: 40px; }
.providers .sub { color: var(--ink-soft); max-width: 760px; margin: 0 auto; }
.supported { text-align: center; font-size: 13px; letter-spacing: .1em; font-weight: 700; color: var(--ink); margin: 72px 0 52px; }
.provider-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px 24px; align-items: center; }
.provider-cell { display: flex; align-items: center; justify-content: center; min-height: 96px; min-width: 0; color: rgb(21, 21, 22); }
/* Force every provider logo visible as dark-gray on light:
   - font-size fixes 1em-sized SVGs (bedrock/ollama/cerebras scale with em)
   * brightness(0.35) drags white-filled paths (anthropic) down to dark ink
   * grayscale + opacity match the original's muted gray treatment */
.provider-cell img { width: auto; max-width: 150px; height: 40px; max-height: 40px; min-height: 24px; font-size: 40px; object-fit: contain; display: block; color: rgb(21, 21, 22); filter: grayscale(1) brightness(0.35) contrast(1.05); opacity: 0.85; }
.provider-more { color: var(--ink-faint); font-weight: 600; }
.small { color: var(--ink-soft); font-size: 14px; margin-top: 40px; }

/* S7 CTA — white, built from REBUILD copy + layout.json (no clip in pack) */
.cta { background: rgb(255, 255, 255); padding: 120px 40px; }
.cta h2 { font-size: 44px; max-width: 640px; margin: 0 auto 32px; }
.btn-cta { display: inline-block; background: #0c0c0d; color: #fff; text-decoration: none; font-weight: 600; padding: 14px 44px; font-size: 17px; }

/* Footer */
.site-footer { background: rgb(21, 21, 22); color: rgba(255,255,255,.75); padding: 104px 40px 56px; font-size: 14px; }
.foot-top { max-width: 1320px; margin: 0 auto 56px; text-align: center; }
.foot-tag { max-width: 560px; margin: 16px auto 0; font-size: 13px; }
.foot-cols { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 32px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 56px; }
.foot-col h4, .foot-news h4 { color: #fff; font-size: 13px; margin-bottom: 12px; }
.foot-col a { display: block; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 8px; font-size: 13px; }
.news-form { display: flex; gap: 8px; }
.news-form input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 8px 12px; font-size: 13px; }
.news-form button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.15); padding: 8px 16px; font-size: 13px; cursor: pointer; }
.foot-bottom { max-width: 1320px; margin: 64px auto 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.socials { display: flex; gap: 14px; }
.socials img { filter: invert(1); opacity: .8; }

@media (max-width: 1000px) {
  .hero-grid, .demo-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 20px; }
  .cookie-bar { padding: 14px 20px; }
}


