/* © 2026 Qder.ai. All rights reserved. Kinbase's home page (kinbase.cc), redesigned 2026-11-09: light only, a warm
   paper canvas, plain type at a calm weight, black for the one thing to press, and Kinbase itself (kin/live, the app's
   own code) in every window, drawn by the browser at full sharpness. Each window stands on a scene painted in CSS
   (.stage), so the page carries no pictures at all. */

@font-face { font-family: "Geist"; src: url("/kin/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/kin/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/kin/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/kin/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --bg-sunk: #efeee8;
  --card: #ffffff;
  --ink: #26251e;
  --ink-2: #5d5c55;
  --ink-3: #8c8b84;
  --line: #e4e3dc;
  --line-strong: #d3d2ca;
  --accent: #3d68e6;
  --wrap: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 12px; }
.skip:focus { left: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ nav */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-wrap.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-inline: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--ink-2); }
.nav-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-links + .nav-right { margin-left: 0; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-soft { background: #e8e7e1; color: var(--ink); }
.btn-soft:hover { background: #dfded7; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { background: var(--card); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 88px 0 0; }
.hero h1 { margin: 0; max-width: 17ch; font-weight: 400; font-size: clamp(34px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -0.026em; }
.hero-sub { max-width: 34em; margin: 18px 0 0; color: var(--ink-2); font-size: 17px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ------------------------------------------------------------------ the painted scenes: sky, a low sun, three hills */
.stage {
  --sky-top: #d4dde6; --sky-mid: #ebe5d8; --sky-low: #dccdb0;
  --sun: rgba(255, 241, 214, 0.95); --mist: rgba(214, 225, 236, 0.85);
  --hill-1: #b9b49b; --hill-2: #9a9a7f; --hill-3: #7d8069;
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 56px; padding: 72px 56px 0; border-radius: 12px;
  background:
    radial-gradient(70% 55% at 74% 16%, var(--sun), transparent 70%),
    radial-gradient(55% 45% at 16% 26%, var(--mist), transparent 72%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-low) 100%);
}
.scenery { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scenery i { position: absolute; left: -4%; right: -4%; bottom: 0; display: block; filter: blur(0.6px); }
.scenery i:nth-child(1) {
  height: 52%; opacity: 0.55;
  background: linear-gradient(180deg, var(--hill-1), color-mix(in srgb, var(--hill-1) 70%, #ffffff));
  clip-path: polygon(0 58%, 9% 44%, 18% 50%, 30% 30%, 41% 41%, 52% 26%, 63% 38%, 74% 22%, 86% 36%, 100% 28%, 100% 100%, 0 100%);
}
.scenery i:nth-child(2) {
  height: 38%; opacity: 0.6;
  background: linear-gradient(180deg, var(--hill-2), color-mix(in srgb, var(--hill-2) 75%, #ffffff));
  clip-path: polygon(0 40%, 12% 52%, 24% 34%, 38% 50%, 50% 36%, 64% 54%, 78% 32%, 90% 46%, 100% 38%, 100% 100%, 0 100%);
}
.scenery i:nth-child(3) {
  height: 22%; opacity: 0.7;
  background: linear-gradient(180deg, var(--hill-3), color-mix(in srgb, var(--hill-3) 80%, #ffffff));
  clip-path: polygon(0 46%, 16% 30%, 30% 52%, 46% 28%, 60% 48%, 76% 26%, 90% 44%, 100% 34%, 100% 100%, 0 100%);
}
/* each feature's own light */
.tint-noon   { --sky-top: #cfdbe8; --sky-mid: #e6eaee; --sky-low: #d6dcd0; --sun: rgba(255, 252, 238, 0.9); --hill-1: #a9b5a4; --hill-2: #8b9a88; --hill-3: #6f806f; }
.tint-dusk   { --sky-top: #d9d2e3; --sky-mid: #eedfd6; --sky-low: #dcc3ae; --sun: rgba(255, 226, 196, 0.95); --hill-1: #b8a59a; --hill-2: #9d8a84; --hill-3: #7f6f6e; }
.tint-sea    { --sky-top: #c8dbe2; --sky-mid: #e3ebea; --sky-low: #c9d6d0; --sun: rgba(250, 250, 238, 0.85); --hill-1: #9fb7b5; --hill-2: #7f9c9b; --hill-3: #627f80; }
.tint-sand   { --sky-top: #e1dccd; --sky-mid: #efe7d6; --sky-low: #e0cfaf; --sun: rgba(255, 244, 220, 0.95); --hill-1: #c7b48f; --hill-2: #ab9873; --hill-3: #8b7a5b; }
.tint-slate  { --sky-top: #cfd5de; --sky-mid: #e5e7ea; --sky-low: #cfd2d2; --sun: rgba(246, 248, 252, 0.9); --hill-1: #a7adb5; --hill-2: #8a919b; --hill-3: #6c737e; }

/* ------------------------------------------------------------------ windows: Kinbase itself, live */
.win {
  position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden;
  background: var(--card); border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px rgba(38, 30, 10, 0.08), 0 30px 70px -24px rgba(60, 45, 20, 0.38);
}
.live { position: relative; width: 100%; overflow: hidden; background: #fbfbfa; }
.live iframe { display: block; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity 0.45s ease 0.2s; }
/* shown once the scene has loaded: Kinbase paints its default (dark) theme for a moment before it reads theme=light */
.live.live-ready iframe { opacity: 1; }
.live::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* the sync card over the hero's window */
.seal-card {
  position: absolute; right: 36px; bottom: 32px; z-index: 2; width: 300px;
  padding: 14px 16px 16px; border-radius: 10px; background: var(--card); font-size: 13px;
  box-shadow: 0 0 0 1px rgba(38, 30, 10, 0.08), 0 22px 48px -18px rgba(60, 45, 20, 0.45);
}
.seal-card .row { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.seal-card .row svg { width: 16px; height: 16px; color: var(--accent); }
.seal-card p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.45; }
.seal-card code { display: block; margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--bg); color: var(--ink-3); font-size: 11.5px; line-height: 1.5; word-break: break-all; }

/* ------------------------------------------------------------------ agents */
.agents { padding: 72px 0 0; }
.agents h2 { margin: 0 0 22px; text-align: center; color: var(--ink-3); font: 500 14px/1.4 var(--font); }
.agent-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin: 0; padding: 0; list-style: none; }
.agent-row li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; }
.agent-row .tile { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--tile, #111); }
.agent-row .tile img { width: 64%; height: auto; }
.agents-note { margin: 18px auto 0; max-width: 46em; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ sections */
.section { padding: 128px 0 0; }
.section h2, .close h2 { margin: 0; font-weight: 400; font-size: clamp(28px, 3.1vw, 36px); line-height: 1.18; letter-spacing: -0.02em; }
.lead { max-width: 36em; margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.section > .wrap > .stage { margin-top: 40px; }

.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; padding: 112px 0 0; }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature.flip .feature-text { order: 2; }
.feature h3 { margin: 0; font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; }
.feature p { margin: 12px 0 0; color: var(--ink-2); }
.feature .stage { margin: 0; padding: 40px 36px 0; }

/* the security section: the facts, and where a session can be read */
.secure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: 8px; }
.facts { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 10px; color: var(--ink-2); }
.facts svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.e2e { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 0; }
.node { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 18px 40px -26px rgba(60, 45, 20, 0.35); }
.node h4 { margin: 0; color: var(--ink-3); font: 500 12px/1.3 var(--font); letter-spacing: 0.01em; }
.node .state { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ink-2); font-size: 12px; }
.node .state i { width: 7px; height: 7px; border-radius: 50%; background: #3b9c64; }
.node.server .state i { background: var(--ink-3); }
.bubble { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: var(--bg); font-size: 13.5px; line-height: 1.45; }
.bubble b { display: block; margin-bottom: 2px; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.cipher { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #f1f0eb; color: var(--ink-3); font: 11.5px/1.55 var(--mono); word-break: break-all; }
.hop { display: grid; place-items: center; color: var(--ink-3); }
.hop svg { width: 18px; height: 18px; }
.e2e-note { margin: 16px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }

/* why it matters: the stealers that copy agents' chats (sourced) */
.threat { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; margin-top: 40px; padding: 22px 24px; border: 1px solid #ecdcbf; border-radius: 12px; background: #fbf5e9; }
.threat-icon { width: 20px; height: 20px; margin-top: 2px; color: #a5650f; }
.threat h3 { margin: 0; font: 500 17px/1.3 var(--font); }
.threat p { max-width: 62em; margin: 8px 0 0; color: var(--ink-2); }
.threat .sources { color: var(--ink-3); font-size: 13px; }
.threat .sources a { color: var(--ink-2); }

/* ------------------------------------------------------------------ more */
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.mini { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mini h3 { margin: 0; font: 500 15px/1.3 var(--font); }
.mini p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.mini code { padding: 1px 5px; border-radius: 5px; background: var(--bg); }

/* ------------------------------------------------------------------ plans */
.term-switch { display: inline-flex; gap: 2px; margin-top: 28px; padding: 3px; border-radius: 999px; background: #e8e7e1; }
.term-switch button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font); cursor: pointer; }
.term-switch button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.term-switch .tag { margin-left: 6px; color: var(--accent); font-size: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.plan { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.plan-lead { border-color: var(--ink); }
.plan h3 { margin: 0; font: 500 16px/1.3 var(--font); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; }
.price b { font-weight: 400; font-size: 38px; letter-spacing: -0.02em; }
.price span { color: var(--ink-3); font-size: 14px; }
.plan-for { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.plan ul { display: grid; gap: 9px; margin: 22px 0 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* ------------------------------------------------------------------ close + footer */
.close { padding: 136px 0 120px; }
.close h2 { max-width: 18ch; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.14; }
.close p { margin: 14px 0 0; color: var(--ink-2); }
.close-note { color: var(--ink-3); font-size: 13px; }
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand img { height: 22px; width: auto; }
.foot-brand p { margin: 10px 0 0; color: var(--ink-3); }
.foot h3 { margin: 0 0 12px; color: var(--ink-3); font: 500 13px/1.3 var(--font); }
.foot a { display: block; margin: 0 0 8px; color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------------------------ motion */
html:not(.no-js) .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
html:not(.no-js) .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links + .nav-right { margin-left: auto; }
  .feature, .feature.flip, .secure { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .stage { padding: 40px 20px 0; }
  .seal-card { position: relative; right: auto; bottom: auto; width: auto; margin: 16px 0 20px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .hero h1 br { display: none; }
  .hide-phone { display: none; }
  .e2e { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hop { transform: rotate(90deg); height: 24px; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 96px; }
  .feature { padding-top: 80px; }
}
