/* keelos.dev. Built pages come from tools/site/build.py; this file is written by hand. */
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-400.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-700.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a1424; --bg2: #0d1a2e; --panel: #11213a; --line: #1f3553;
  --fg: #e6edf3; --muted: #9db0c6; --accent: #5cc0c3; --accent-ink: #052b2d; --blue: #7aa7f5;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
header { position: sticky; top: 0; z-index: 10; background: rgba(10, 20, 36, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo svg { height: 36px; width: auto; display: block; }
nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--fg); text-decoration: none; }
.lang { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.lang:hover { color: var(--fg); text-decoration: none; border-color: var(--muted); }

/* buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; border: 1px solid var(--line); color: var(--fg); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 14px; font-size: 14px; }

/* hero */
.hero { text-align: center; padding: 84px 0 0; background:
  radial-gradient(ellipse 70% 55% at 50% 0%, rgba(92, 192, 195, .16), transparent 70%),
  radial-gradient(ellipse 50% 40% at 85% 10%, rgba(122, 167, 245, .10), transparent 70%); }
.badge { display: inline-block; font: 13px/1 var(--mono); color: var(--accent); border: 1px solid rgba(92, 192, 195, .4); border-radius: 999px; padding: 7px 14px; margin-bottom: 26px; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 auto 22px; max-width: 16em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 44em; margin: 0 auto 32px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.shot { margin: 64px auto 0; max-width: 1040px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; background: #111418;
  box-shadow: 0 -10px 80px rgba(92, 192, 195, .13), 0 0 0 1px rgba(255, 255, 255, .02); }
.shot .bar { display: flex; gap: 7px; padding: 11px 14px; background: #0c1320; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3d59; }
.shot img { display: block; width: 100%; height: auto; }

/* numbers */
.numbers { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 18px; }
.num b { display: block; font: 700 clamp(1.7rem, 3.2vw, 2.5rem)/1.1 var(--mono); color: var(--accent); margin-bottom: 8px; white-space: nowrap; }
.num span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }
.note { color: var(--muted); font-size: 13.5px; }
.numbers .note { grid-column: 1 / -1; margin: 0; padding-bottom: 14px; opacity: .85; }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font: 13px/1 var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 16px; max-width: 22em; }
.sub { color: var(--muted); max-width: 46em; margin: 0 0 40px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .k { font: 700 14px/1 var(--mono); color: var(--accent); display: block; margin-bottom: 14px; }
.card p + p { margin-top: 10px; }
.card.wide { margin-bottom: 18px; padding: 30px 32px; border-color: rgba(92, 192, 195, .45); background: linear-gradient(100deg, rgba(92, 192, 195, .13), var(--panel) 55%); }
.card.wide h3 { font-size: 1.45rem; letter-spacing: -.01em; }
.card.wide p { font-size: 16.5px; max-width: 52em; }

/* timeline figure */
.figure { margin: 8px 0 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px 10px; overflow-x: auto; }
.figure svg { display: block; min-width: 640px; width: 100%; height: auto; font-family: var(--sans); }

/* guests table */
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
td:first-child { font-weight: 600; white-space: nowrap; }
td:last-child { color: var(--muted); }
.tablebox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.tablebox tr:last-child td { border-bottom: 0; }

/* download */
.dl { text-align: center; }
.dl h2, .dl .sub { margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; margin: 0 0 36px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer p { margin: 0 0 6px; max-width: 46em; }

/* why and articles */
.hero.small { text-align: left; padding: 72px 0 8px; }
.hero.small h1 { margin-left: 0; max-width: 18em; }
.hero.small .lead { margin-left: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card .more { margin-top: 14px; font-size: 14.5px; }
.card.art { color: var(--fg); }
.card.art:hover { text-decoration: none; border-color: var(--accent); }
table.cmp td:first-child { white-space: nowrap; }
table.cmp tr.hl td { color: var(--accent); font-weight: 600; background: rgba(92, 192, 195, .07); }
.narrow { max-width: 820px; }
.prose { padding: 64px 0 88px; }
.prose h1 { text-align: left; margin: 0 0 12px; font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: none; }
.prose .byline { color: var(--muted); font-size: 14.5px; margin: 0 0 36px; }
.prose h2 { font-size: 1.45rem; margin: 48px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 32px 0 10px; }
.prose p, .prose li { color: #cfd9e4; }
.prose li + li { margin-top: 6px; }
.prose code { font: .9em var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose .tablebox { margin: 20px 0; }
.prose td:first-child { white-space: normal; }
.prose td:last-child { color: inherit; }
.prose blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.artfig { margin: 28px 0; }
.artfig img { display: block; width: 100%; height: auto; background: #fff; border-radius: 10px; }
.artfig figcaption { color: var(--muted); font-size: 13.5px; margin-top: 8px; text-align: center; }
.prose .back { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; }

/* quickstart */
.card.need { margin: 8px 0 44px; }
.card.need h3 { margin-top: 0; }
.card.need ul { margin: 6px 0 0; padding-left: 20px; }
.card.need li { color: var(--muted); font-size: 15.5px; }
.steps-v { list-style: none; margin: 0; padding: 0; }
.steps-v .step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 0 0 32px; }
.steps-v .step .k { font: 700 15px/1 var(--mono); color: var(--accent-ink); background: var(--accent); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.steps-v .step h2 { margin: 0 0 10px; font-size: 1.3rem; }
.dl .cta { gap: 14px; }

@media (max-width: 900px) {
  nav { display: none; }
  header .wrap { gap: 12px; }
  .lang { margin-left: auto; }
  .g3, .g4, .steps { grid-template-columns: 1fr 1fr; }
  .numbers .wrap { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  td:first-child, table.cmp td:first-child { white-space: normal; }
  table.cmp th:nth-child(2), table.cmp td:nth-child(2) { display: none; }
  header .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
