/* Nakana marketing site. Static, no build step. */

:root {
  --ink: #0a0f1c;
  --ink-2: #111830;
  --ink-3: #1a2340;
  --line: #26304f;
  --text: #e7ebf5;
  --muted: #9aa5c0;
  --dim: #6c7896;
  --accent: #7c9cff;
  --ok: #3ccf91;
  --warn: #f4b740;
  --bad: #ff6b6b;
  --paper: #f6f7fb;
  --paper-ink: #131a2c;
  --paper-muted: #55607a;
  --paper-line: #dde2ee;
  --radius: 12px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 28, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #08102a; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 0; }
  .nav-links li a.btn { display: flex; justify-content: center; padding: 12px 16px; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #08102a; }
.btn-primary:hover { background: #98b1ff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.light { background: var(--paper); color: var(--paper-ink); }
.light .lede, .light p.muted { color: var(--paper-muted); }
.light .eyebrow { color: #3d5bd9; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 88px; background:
  radial-gradient(900px 420px at 85% 0%, rgba(124, 156, 255, .16), transparent 60%),
  radial-gradient(700px 360px at 0% 100%, rgba(60, 207, 145, .08), transparent 60%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note { font-size: .9rem; color: var(--dim); }

/* Change feed card */
.feed { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--dim); }
.feed-head .dots { display: flex; gap: 6px; }
.feed-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.change { padding: 16px; border-bottom: 1px solid var(--line); }
.change:last-child { border-bottom: 0; }
.change-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.change-what { font-family: var(--mono); font-size: .84rem; color: var(--text); word-break: break-word; }
.change-where { font-size: .78rem; color: var(--dim); font-family: var(--mono); }
.change-why { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.change-why b { color: var(--text); font-weight: 600; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-family: var(--mono); font-size: .72rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.verdict { font-family: var(--mono); font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.v-ok { background: rgba(60, 207, 145, .14); color: var(--ok); }
.v-warn { background: rgba(244, 183, 64, .14); color: var(--warn); }
.v-bad { background: rgba(255, 107, 107, .14); color: var(--bad); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--ink-3); }
.light .card { background: #fff; border-color: var(--paper-line); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.light .card p { color: var(--paper-muted); }
.card .num { font-family: var(--mono); color: var(--accent); font-size: .85rem; margin-bottom: 10px; display: block; }
.light .card .num { color: #3d5bd9; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.light .card ul { color: var(--paper-muted); }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; }

/* Coverage list */
.surface { display: flex; gap: 14px; align-items: flex-start; }
.surface svg { flex: none; width: 28px; height: 28px; color: var(--accent); }

/* Split blocks */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }

/* Q&A */
.qa { border-top: 1px solid var(--line); padding: 18px 0; }
.qa h3 { font-size: 1.05rem; }
.qa p { color: var(--muted); margin: 0; }
.light .qa { border-color: var(--paper-line); }
.light .qa p { color: var(--paper-muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.light .table-wrap { border-color: var(--paper-line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 760px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.light th, .light td { border-color: var(--paper-line); }
th { font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--ink-2); position: sticky; top: 0; }
.light th { background: #eef1f8; color: var(--paper-muted); }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { min-width: 210px; }
td.yes, td.no, td.part { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
td.yes { color: var(--ok); }
td.part { color: var(--warn); }
td.no { color: var(--dim); }
.light td.yes { color: #138a5a; }
.light td.part { color: #a76a00; }
.light td.no { color: #8a93a8; }
tr.us td { background: rgba(124, 156, 255, .08); }
.light tr.us td { background: #eef2ff; }
.legend { font-size: .85rem; color: var(--dim); margin-top: 12px; }

/* Integrations catalog */
.catalog-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.catalog-tools input { flex: 1 1 260px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; }
.catalog-tools input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filter { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 7px 12px; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #08102a; }
.cat { margin-bottom: 40px; }
.cat h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 12px; }
.cat h2 small { font-family: var(--mono); font-size: .78rem; color: var(--dim); font-weight: 400; }
.cat > p { color: var(--muted); max-width: 70ch; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); outline: none; }
.tile b { display: block; font-weight: 600; font-size: .95rem; }
.tile-text { min-width: 0; }
.tile-modes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tile[hidden], .cat[hidden] { display: none; }
.filter-label { color: var(--dim); font-size: .85rem; margin-right: 2px; }

/* Logo chips */
.chip-logo { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 6px; }
.chip-logo img { width: 100%; height: 100%; object-fit: contain; }
.chip-logo.wide { width: 84px; padding: 6px 8px; }
.chip-logo.mono { background: var(--ink-3); border: 1px solid var(--line); color: var(--mono); font-family: var(--mono); font-weight: 600; font-size: .95rem; }
.chip-logo.big { width: 56px; height: 56px; }
.chip-logo.big.wide { width: 112px; }

/* Connection mode badges */
.mode { display: inline-block; font-style: normal; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.mode-pull { color: #7c9cff; }
.mode-push { color: #3ccf91; }
.mode-platform { color: #4dd0e1; }
.mode-relay { color: #f4b740; }
.mode-collector { color: #c792ea; }
.mode-feed { color: #9aa5c0; }
.mode-vuln { color: #ff8a65; }
.card .mode { font-size: .78rem; padding: 3px 10px; }

/* Integration detail dialog */
dialog#int-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog#int-dialog::backdrop { background: rgba(5, 8, 16, .7); }
.dialog-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.dialog-close:hover { color: var(--text); }
.d-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-right: 28px; }
.d-head h3 { font-size: 1.35rem; margin: 0 0 4px; }
.d-head p { margin: 0; color: var(--dim); font-size: .88rem; }
.detail dl { margin: 0; }
.detail dt { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-top: 16px; }
.detail dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.d-modes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.d-modes li { font-size: .9rem; }
.d-sample { margin-top: 20px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.d-sample span { display: block; font-size: .78rem; color: var(--dim); margin-bottom: 6px; }
.d-sample code { color: var(--text); font-size: .82rem; word-break: break-word; }
.d-note { margin: 16px 0 0; font-size: .85rem; color: var(--dim); }
.empty { color: var(--muted); }

/* CTA */
.cta { text-align: center; padding: 96px 0; background: radial-gradient(700px 300px at 50% 0%, rgba(124, 156, 255, .18), transparent 70%); border-top: 1px solid var(--line); }
.cta .hero-actions { justify-content: center; }

/* Callout */
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--muted); }
.light .callout { color: var(--paper-muted); border-color: #3d5bd9; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }

.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 80% 0%, rgba(124, 156, 255, .12), transparent 60%); }
