/* c3code site — colours follow the app */
:root {
  --bg: #161616;
  --bg-2: #1a1a1a;
  --surface: #1e1e1e;
  --surface-2: #242424;
  --line: #2c2c2c;
  --line-2: #3a3a3a;
  --text: #ececec;
  --text-2: #b5b5b5;
  --text-3: #9a9a9a;
  --accent: #e07a5a;
  --accent-hi: #eb8c6d;
  --accent-ink: #1a120e;
  --accent-soft: #2a1d18;
  --accent-line: #5a3a2e;
  --accent-text: #f0a387;
  --ok: #4caf50;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Cascadia Mono", monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #ffc0a8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: #fff; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(22,22,22,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 28px; height: 28px; }
.brand span { font: 600 20px/1 var(--mono); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-2); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
@media (max-width: 640px) { .nav { gap: 16px; } .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 9px; font: 600 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-soon { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); cursor: default; }
.btn-ghost { border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* hero */
.hero { padding: 96px 0 56px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76,175,80,.15); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; max-width: 20ch; }
.hero .lede { max-width: 640px; font-size: 19px; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--text-3); list-style: none; padding: 0; margin: 0; }

.window { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(224,122,90,.07); }
.hero-shot { padding-bottom: 96px; }

/* sections */
.section { padding: 104px 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.section-head p { font-size: 18px; color: var(--text-2); }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; }

/* agents */
.agents { padding: 56px 0; }
.agents h2 { text-align: center; font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-bottom: 26px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.agent-grid li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.agent-grid strong { color: #fff; font-size: 17px; font-weight: 600; }
.agent-grid code { font-size: 13px; color: var(--text-3); }
.agents .note { text-align: center; margin-top: 24px; font-size: 15px; color: var(--text-3); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.feature svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.feature p { font-size: 15.5px; color: var(--text-2); }
.extras { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; list-style: none; padding: 0; }
.extras li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 2px solid var(--accent-line); }
.extras strong { color: #fff; font-weight: 600; font-size: 16px; }
.extras span { color: var(--text-3); font-size: 15px; }

/* gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 500 15px/1 var(--sans); cursor: pointer; }
.tab:hover { color: #fff; border-color: var(--line-2); }
.tab[aria-selected="true"] { background: var(--accent-soft); border-color: #7a4a3a; color: var(--accent-text); }
.panel figcaption { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.panel figcaption strong { color: #fff; font-size: 18px; font-weight: 600; }
.panel figcaption span { color: var(--text-2); }
.panel figure { margin: 0; }

/* shortcuts */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 320px; }
.split > :last-child { flex: 2 1 520px; }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; color: #d6d6d6; }
kbd { font-size: 13px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2); color: var(--accent-text); white-space: nowrap; }

/* craft */
.craft { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.craft > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.craft p { font-size: 18px; color: var(--text-2); }
.spec { flex: 1 1 400px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.spec-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 13px var(--mono); color: var(--text-3); }
.spec-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.spec dl { margin: 0; padding: 8px 24px 12px; font-family: var(--mono); font-size: 14.5px; }
.spec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; color: #fff; text-align: right; }
.spec dd.hot { color: var(--accent); }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.road li { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.road .when { font-size: 13px; font-weight: 600; color: var(--text-3); }
.road .when.next { color: var(--accent); }
.road strong { color: #fff; font-size: 16.5px; font-weight: 600; }
.road span:last-child { color: var(--text-3); font-size: 15px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.head-row .section-head { margin-bottom: 0; }

/* cta */
.cta { padding: 64px 32px; border: 1px solid #3a2a24; border-radius: 18px; background: #1f1916; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta img { width: 52px; height: 52px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.cta p { max-width: 560px; color: #b8b0ac; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 30px; padding-bottom: 30px; font-size: 14px; color: var(--text-3); }
.site-footer .brand img { width: 20px; height: 20px; }
.site-footer .brand span { font-size: 15px; font-weight: 500; color: #d6d6d6; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-2); }
.site-footer nav a:hover { color: #fff; }
.legal { width: 100%; font-size: 13px; color: #8a8a8a; }

/* devlog */
.log-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.log-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.log-hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.log-hero p { max-width: 640px; font-size: 19px; color: var(--text-2); }
.log { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 104px; }
.log main { flex: 999 1 600px; min-width: 0; }
.log aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
@media (max-width: 960px) { .log aside { position: static; } }
.entry { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; }
.entry-meta { flex: 0 0 130px; display: flex; flex-direction: column; gap: 8px; padding-top: 5px; }
.entry-meta .n { font: 13px var(--mono); color: var(--text-3); }
.tag { align-self: flex-start; font: 12px var(--mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: #bdbdbd; }
.tag.latest { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.entry-body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; max-width: 68ch; }
.entry-body h2 { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.entry-body p { font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.box { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.box strong { color: #fff; font-size: 17px; font-weight: 600; }
.box p { font-size: 15px; color: var(--text-3); }
.box.warm { border-color: #3a2a24; background: #1f1916; }
.box.warm p { color: #b8b0ac; }
.plat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plat li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #d6d6d6; }
.plat span { font: 13px var(--mono); color: var(--text-3); }
.plat span.on { color: #7fc783; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 64px; }
  .section { padding: 72px 0; }
  .entry-meta { flex-direction: row; align-items: center; flex-basis: 100%; }
}
