/* Kilby home, light design (2026-11-16). One accent: Neuramorphic's lime, used for fills and marks, never as text colour. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/static/inter-latin.woff2") format("woff2"); }

:root {
  --bg: #fafaf7; --surface: #ffffff; --ink: #101214; --ink-2: #2a2e33; --muted: #5d636b; --faint: #8a9098;
  --line: #e5e6e0; --line-2: #efefea; --lime: #b1e225; --lime-soft: #f2f9dd; --lime-deep: #4a6b00;
  --ok: #2e7d32; --busy: #9a6700; --busy-bg: #fff4d6; --term: #111315; --term-2: #1b1e21;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,18,20,.04), 0 8px 24px -12px rgba(16,18,20,.12);
  --shadow-lg: 0 2px 4px rgba(16,18,20,.04), 0 24px 60px -24px rgba(16,18,20,.28);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* Grid items may shrink below their content (a long line of code scrolls inside its own box instead of widening the page). */
.hero-row > *, .agents-row > *, .stackband-row > *, .ai-grid > *, .tpl-grid > *, .feat-grid > * { min-width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; letter-spacing: -.005em; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn.ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(16,18,20,.6); }
.btn.ink:hover { background: #000; transform: translateY(-1px); }
.btn.ink .arrow { color: var(--lime); transition: transform .15s; }
.btn.ink:hover .arrow { transform: translateX(3px); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); color: var(--ink); }
.btn.line { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn.line:hover { border-color: #cfd1c9; transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .tpl:focus-visible, .filters button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- announcement ---------- */
.announce { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; background: var(--ink); color: #e9ece6; font-size: 13.5px; text-align: center; }
.announce b { color: #fff; font-weight: 600; }
.announce .new { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--lime); color: var(--ink); }
.announce a { color: var(--lime); font-weight: 600; white-space: nowrap; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(250,250,247,.92); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand-by { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.brand-by img { height: 16px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); transition: transform .2s; }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); padding: 10px 24px 18px; }
.mobile-nav a { display: block; padding: 11px 2px; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.mobile-actions { display: flex; gap: 8px; margin-top: 14px; }
.mobile-actions .btn { flex: 1; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -320px; background: radial-gradient(closest-side, rgba(177,226,37,.33), rgba(177,226,37,0)); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero-row { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 6px 13px 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(177,226,37,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(177,226,37,0); } }
h1 { margin: 0; font-size: clamp(42px, 6.2vw, 78px); line-height: 1.01; letter-spacing: -.045em; font-weight: 650; }
.hl { background: linear-gradient(transparent 64%, var(--lime) 64%, var(--lime) 90%, transparent 90%); padding: 0 .06em; }
.lead { margin: 24px 0 0; max-width: 560px; font-size: 18.5px; line-height: 1.6; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta.center { justify-content: center; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--faint); }
.hero-note a { color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.hero-note a:hover { border-color: var(--ink); }

/* windows (illustrations made of real product words) */
.hero-visual { position: relative; padding-bottom: 236px; }
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line-2); background: #fbfbf8; }
.win-bar.dark { background: var(--term-2); border-bottom-color: #26292d; }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd5; }
.win-bar.dark .dots i { background: #3a3e43; }
.url { font: 12px var(--mono); color: var(--faint); }
.win-bar.dark .url { color: #8b9097; }
.app-body { padding: 16px 16px 10px; }
.app-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; font-size: 15px; }
.muted { color: var(--faint); font-size: 12.5px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--line-2); }
.ic, .card-ic, .tpl-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--lime-soft); color: var(--lime-deep); flex: none; }
.svc-name { display: grid; line-height: 1.25; margin-right: auto; }
.svc-name b { font-size: 14px; font-weight: 600; } .svc-name small { font-size: 12.5px; color: var(--faint); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.live { color: var(--ok); background: #eaf6e9; } .st.ok { color: var(--ok); background: #eaf6e9; }
.st.busy { color: var(--busy); background: var(--busy-bg); }
.st.busy::before { background: transparent; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.term { background: var(--term); border-color: #222528; }
.hero-visual .term { position: absolute; left: -44px; right: 0; bottom: 0; }
.term-body { margin: 0; padding: 16px 18px 18px; color: #d7dadf; font-size: 12.8px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.c-mute { color: #737980; } .c-acc { color: var(--lime); } .c-ok { color: #8fd18a; } .c-key { color: #c3a8ff; } .c-str { color: #f2c27b; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime-deep); }
h2 { margin: 0; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 650; max-width: 760px; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; font-weight: 650; }
.sub { margin: 16px 0 0; max-width: 680px; font-size: 17px; color: var(--muted); }
.fine { margin: 22px 0 0; font-size: 13.5px; color: var(--faint); }
.more { display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14.5px; border-bottom: 1px solid transparent; }
.more:hover { border-bottom-color: var(--ink); }


/* logo band ("whatever your stack") */
.stackband { position: relative; padding: 88px 0; background: linear-gradient(115deg, #f4fbe2 0%, #fafaf7 46%, #eef8d2 100%); border-top: 1px solid var(--line); overflow: hidden; }
.stackband::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; bottom: -260px; background: radial-gradient(closest-side, rgba(177,226,37,.32), transparent); pointer-events: none; }
.stackband-row { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.4fr; gap: 56px; align-items: center; }
.stackband-copy .btn { margin-top: 28px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo { display: grid; justify-items: center; align-content: center; gap: 8px; aspect-ratio: 1 / 1; min-width: 0; padding: 10px 6px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,18,20,.04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.logo img { width: 34px; height: 34px; object-fit: contain; }
.logo span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.logo:hover { transform: translateY(-3px); border-color: #cfe39a; box-shadow: var(--shadow); }
.logo.nt { border-color: #cfe39a; background: #fff; }
.logo.nt span { color: var(--ink); font-weight: 650; }

/* templates band */
.band { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 12% 0%, rgba(177,226,37,.14), transparent 70%); pointer-events: none; }
.band .wrap { position: relative; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.band-head .btn { flex: none; }
.stacks { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.stack { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.stack b { font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 40px 0 18px; }
.filters button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 13.5px "Inter", system-ui, sans-serif; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.filters button span { font: 12px var(--mono); color: var(--faint); }
.filters button:hover { border-color: #cfd1c9; }
.filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button[aria-selected="true"] span { color: var(--lime); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.tpl { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s, border-color .18s, box-shadow .18s; }
.tpl:hover { transform: translateY(-3px); border-color: #c9dc8a; box-shadow: var(--shadow); }
.tpl[hidden] { display: none; }
.tpl.off { background: var(--bg); border-style: dashed; }
.tpl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tpl-cat { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tpl-title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.tpl-sum { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tpl-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.tpl-creates { font-size: 12.5px; color: var(--faint); }
.tpl-price { font-weight: 650; font-size: 14.5px; white-space: nowrap; } .tpl-price small { font-weight: 400; font-size: 12px; color: var(--faint); margin-left: 3px; }
.tag { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.tag.gpu { background: var(--line-2); color: var(--muted); }
.tag.warn { background: var(--busy-bg); color: var(--busy); }

/* AI */
.ai-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; margin-top: 44px; align-items: stretch; }
.card { display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.card.feature { border-color: #d3e7a0; background: linear-gradient(180deg, var(--lime-soft), var(--surface) 46%); }
.card.feature h3 { margin-top: 14px; font-size: 22px; }
.badge-nt { align-self: flex-start; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: var(--lime); }
.code { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--term); color: #d7dadf; font-size: 12.8px; line-height: 1.75; overflow-x: auto; }

/* agents */
.agents-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.agents-row code { font-size: .92em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 12.5px; color: var(--ink-2); }
.chip.more { font-family: inherit; color: var(--faint); margin: 0; border-style: dashed; }
.term.big .term-body { font-size: 13.5px; padding: 22px; }

/* platform */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feat { position: relative; padding: 26px 24px 28px; background: var(--surface); }
.feat::before { content: ""; display: block; width: 22px; height: 4px; border-radius: 4px; background: var(--lime); margin-bottom: 18px; }
.feat p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }

/* close */
.close { padding: 0 0 104px; }
.close-box { display: grid; justify-items: center; text-align: center; padding: 72px 24px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(520px 260px at 50% 0%, rgba(177,226,37,.22), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.close-box img { border-radius: 12px; margin-bottom: 22px; }
.close-box h2 { max-width: none; }
.close-box p { margin: 14px 0 0; max-width: 560px; color: var(--muted); font-size: 17px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 28px; }
.foot-row { display: flex; justify-content: space-between; gap: 48px; }
.foot-brand p { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.foot-brand p img { height: 14px; width: auto; }
.foot-links { display: flex; gap: 64px; }
.foot-links div { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.foot-links b { font-size: 12px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
.foot-links a { color: var(--ink-2); } .foot-links a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--faint); }

/* reveal on scroll (only with the script; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .pill-dot, .st.busy::before { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .top-actions .btn.ghost { display: none; }
  .hero-row, .agents-row, .stackband-row { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { padding-bottom: 0; }
  .hero-visual .term { position: static; margin-top: 14px; }
  .ai-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .band-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .announce { font-size: 12.5px; gap: 8px; }
  .announce .why { display: none; }
  .wrap { padding: 0 16px; }
  .top-row { gap: 12px; height: 60px; }
  .brand-by span { display: none; }
  .brand-by { padding-left: 9px; margin-left: 0; }
  .brand-by img { height: 13px; }
  .top-actions .btn.ink { height: 36px; padding: 0 13px; font-size: 13.5px; }
  .hero { padding: 40px 0 64px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .section, .band { padding: 72px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .logo { padding: 8px 4px; gap: 6px; }
  .logo img { width: 28px; height: 28px; }
  .logo span { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; font-size: 10.5px; line-height: 1.2; }
  .stackband { padding: 64px 0; }
  .foot-row, .foot-links { flex-direction: column; gap: 28px; }
  .foot-base { flex-direction: column; }
  .close-box { padding: 52px 18px; }
}
