/* WEB_SITE — goknel.com skeleton — v0.1
   Author & Copyright: Nick Goknel
   Single dark page, one accent, system fonts only (zero external requests).
*/

:root {
  --bg:      #08090b;
  --bg-2:    #0d0f13;
  --panel:   #10131a;
  --line:    #1c2230;
  --ink:     #e8edf4;
  --muted:   #7d8899;
  --accent:  #34e0d0;      /* one accent — token-flow cyan */
  --accent-d:#1a8f86;
  --font: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* readability veil over the animation */
.hero .veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 500px at 72% -8%, rgba(52,224,208,0.12), transparent 62%),
    linear-gradient(90deg, rgba(8,9,11,0.82) 0%, rgba(8,9,11,0.35) 55%, rgba(8,9,11,0.65) 100%);
}

.hero .wrap { position: relative; z-index: 1; }

/* framed synapse-network graphic below the headline */
.synapse-frame {
  position: relative;
  margin-top: 52px;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13,15,19,0.55);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(52,224,208,0.04),
    0 24px 70px -24px rgba(52,224,208,0.22);
}

/* faint internal glow, kept from the original */
.synapse-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 50% 55%, rgba(52,224,208,0.09), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* animated gradient border sweeping around the frame */
.synapse-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(115deg,
    transparent 32%, rgba(52,224,208,0.55) 50%, transparent 68%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: border-sweep 6s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes border-sweep {
  0%   { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

.synapse-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(52,224,208,0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,224,208,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(52,224,208,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,224,208,0); }
}

h1 {
  font-size: clamp(46px, 9.5vw, 94px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}

/* accent word: soft glow, static colour */
h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 26px rgba(52,224,208,0.30);
}

.tagline {
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.kicker {
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 12px;
}

.lead { color: var(--muted); max-width: 60ch; margin: 0 0 34px; }

/* ---------- Spec table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec td:first-child {
  color: var(--muted);
  width: 42%;
  letter-spacing: 0.02em;
}

.spec td:last-child { color: var(--ink); }

.spec .big { color: var(--accent); font-weight: 700; }

/* ---------- Diagram panels ---------- */
.diagram {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin: 0 0 20px;
}

.diagram figcaption {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 18px;
}

.diagram svg { display: block; width: 100%; height: auto; }

/* token-speed bars */
.barrow { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.barrow .lbl { width: 170px; color: var(--muted); font-size: 14px; flex: none; }
.track { flex: 1; height: 30px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  border-radius: 6px;
}
.fill.solo { width: 26%; }
.fill.multi { width: 100%; }
.barrow .val { width: 92px; text-align: right; font-size: 15px; flex: none; }
.barrow .val b { color: var(--accent); }

/* ---------- "what it's for" ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.card h3 { font-size: 16px; margin: 0 0 8px; }
.card p  { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
footer {
  padding: 44px 0 60px;
  color: var(--muted);
  font-size: 13.5px;
}
footer .accent { color: var(--accent); }

/* ---------- Remote access ---------- */
/* abstracted mockups of the real browser interface */
.remote-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0 0 6px; }
.mock {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px -34px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
}
.mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.mock-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; letter-spacing: 0.08em; }
.brand-atom { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.4; flex: none; }
.mock-right { display: inline-flex; align-items: center; gap: 8px; }
.pill {
  color: var(--accent); border: 1px solid var(--accent-d);
  border-radius: 6px; padding: 3px 10px; font-size: 12px;
  background: rgba(52,224,208,0.07); white-space: nowrap;
}
.pill-soft {
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 10px; font-size: 12px;
  background: rgba(16,19,26,0.5); white-space: nowrap;
}
.mock-body { padding: 14px; min-height: 216px; display: flex; flex-direction: column; gap: 9px; }
.mock-new {
  width: 100%; padding: 9px 0;
  background: rgba(52,224,208,0.14); color: var(--accent);
  border: 1px solid var(--accent-d); border-radius: 8px;
  font-family: inherit; font-size: 13.5px; cursor: default;
}
.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(16,19,26,0.55);
}
.mock-row.active { border-color: var(--accent-d); background: rgba(52,224,208,0.06); }
.mock-name { color: var(--ink); font-size: 13.5px; }
.mock-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* chat mockup */
.mock-chat { justify-content: flex-start; }
.bub { max-width: 80%; padding: 8px 11px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.bub.user { align-self: flex-end; background: rgba(52,224,208,0.10); border: 1px solid var(--accent-d); color: var(--ink); }
.bub.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.bub.typing { display: inline-flex; gap: 4px; align-items: center; padding: 11px 12px; }
.bub.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: type-blink 1.2s infinite; }
.bub.typing span:nth-child(2) { animation-delay: 0.2s; }
.bub.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes type-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.mock-input {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 14px 14px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.mi-icon { color: var(--muted); font-size: 15px; }
.mi-ph { color: var(--muted); font-size: 13px; }
.mock figcaption {
  color: var(--muted); font-size: 12px; letter-spacing: 0.02em;
  padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel);
}

/* two-path duel diagram (real HTML text — scales with the page) */
.remote-sub { color: var(--muted); font-size: 14.5px; max-width: 62ch; margin: 28px 0 18px; }
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lane { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 14px; }
.lane-yours { border-color: var(--accent-d); }
.lane-head { margin: 0 0 16px; }
.lh-t { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.lh-t.usual { color: #e0556a; }
.lh-t.good { color: var(--accent); }
.lh-s { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.node { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: center; }
.node .n-t { display: block; font-size: 15.5px; color: var(--ink); }
.node .n-s { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.node.bad { border-color: #59272f; background: #130d10; }
.node.bad .n-t { color: #f0a3ad; }
.node.hi { border-color: var(--accent-d); background: #0e1715; animation: hi-breathe 3.2s ease-in-out infinite; }
.node.hi .n-t { color: var(--accent); }
.n-flag { display: block; font-size: 12.5px; line-height: 1.5; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #59272f; color: #e0556a; }
.n-flag b { color: #ff8fa0; font-weight: 700; }
.n-flag.good { border-top-color: var(--accent-d); color: var(--accent); }
.hop { display: flex; flex-direction: column; align-items: center; padding: 5px 0 7px; }
.hop-l { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 5px; }
.hop-l.good-l { color: var(--accent-d); }
.hop-line { width: 2px; height: 24px; background: var(--line); position: relative; }
.lane-yours .hop-line { background: var(--accent-d); }
.hop-line::after {
  content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--line);
}
.lane-yours .hop-line::after { border-top-color: var(--accent-d); }
@keyframes hi-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.68; } }

@media (prefers-reduced-motion: reduce) {
  .node.hi { animation: none; }
  .bub.typing span { animation: none; opacity: 0.6; }
}
.remote-note { color: var(--muted); font-size: 13.5px; margin: 22px 0 0; max-width: 60ch; }
.remote-note b { color: var(--ink); font-weight: 600; }

/* ---------- Field Notes (long-form page) ---------- */
.page-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.page-nav .brand { color: var(--ink); font-size: 14px; letter-spacing: 0.04em; }
.page-nav .brand .accent { color: var(--accent); }
.page-nav a.back {
  color: var(--muted); text-decoration: none; font-size: 13px;
  letter-spacing: 0.02em; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; transition: color .2s, border-color .2s;
}
.page-nav a.back:hover { color: var(--accent); border-color: var(--accent-d); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.toc a {
  color: var(--muted); text-decoration: none; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--accent); border-color: var(--accent-d); }

.prose { max-width: 66ch; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose p b, .prose p strong { color: var(--ink); font-weight: 600; }
.prose p .accent { color: var(--accent); }
.prose .sub { color: var(--ink); font-size: 17px; font-weight: 600; margin: 30px 0 10px; }

.callout {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 18px 20px; margin: 0 0 22px; max-width: 66ch;
}
.callout .co-t { color: var(--accent); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; margin: 0 0 8px; }
.callout p { color: var(--muted); font-size: 14px; margin: 0; }
.callout p b { color: var(--ink); }

/* harness comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
.cmp-col { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.cmp-col.win { border-color: var(--accent-d); }
.cmp-col h3 { margin: 0 0 4px; font-size: 18px; }
.cmp-col .cmp-tag { color: var(--muted); font-size: 12.5px; margin: 0 0 6px; }
.cmp-col ul { list-style: none; margin: 0; padding: 0; }
.cmp-col li { font-size: 14px; color: var(--muted); padding: 9px 0 9px 22px; position: relative; border-top: 1px solid var(--line); }
.cmp-col li:first-child { border-top: none; }
.cmp-col li::before { position: absolute; left: 0; font-size: 14px; font-weight: 700; }
.cmp-col li.pro::before { content: "+"; color: var(--accent); }
.cmp-col li.con::before { content: "\2013"; color: var(--muted); }
.cmp-col li b { color: var(--ink); }

/* lazy vs reasoned duel */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
.duel-col { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--panel); }
.duel-col .duel-t { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.duel-col.lazy .duel-t { color: var(--muted); }
.duel-col.reason .duel-t { color: var(--accent); }
.duel-col.reason { border-color: var(--accent-d); }
.duel-col .q { color: var(--muted); font-size: 13.5px; font-style: italic; margin: 0 0 12px; }
.duel-col .a { color: var(--ink); font-size: 14px; margin: 0; line-height: 1.55; }
.duel-cap { color: var(--muted); font-size: 13.5px; margin: 16px 0 0; max-width: 66ch; }
.duel-cap b { color: var(--ink); }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.stat .n { color: var(--accent); font-size: 30px; font-weight: 700; line-height: 1; }
.stat .n small { font-size: 15px; color: var(--muted); font-weight: 400; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* capability chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.chip.on { color: var(--accent); border-color: var(--accent-d); }

/* finale */
.finale { text-align: center; }
.finale .kicker { margin-bottom: 18px; }
.finale h2 { font-size: clamp(28px, 5vw, 46px); }
.finale .lines { max-width: 42ch; margin: 28px auto 0; }
.finale .lines p { color: var(--ink); font-size: clamp(16px, 2.4vw, 21px); margin: 0 0 18px; line-height: 1.5; }
.finale .lines p .accent { color: var(--accent); }
.finale .outro { color: var(--muted); font-size: 14.5px; max-width: 58ch; margin: 32px auto 0; text-align: center; }

.notes-footer { padding: 50px 0 60px; border-top: 1px solid var(--line); }
.notes-footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
.notes-footer a:hover { color: var(--accent); }

/* hero "long version" link */
.hero .longver { margin-top: 30px; }
.hero .longver a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.hero .longver a:hover { color: var(--accent); border-color: var(--accent-d); }

/* ---------- Sticky part nav (quick navigation) ---------- */
.partnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,9,11,0.86);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.partnav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 11px 24px;
}
.pn-left { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.pn-brand { color: var(--ink); font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
.pn-brand .accent { color: var(--accent); }
.pn-back {
  color: var(--muted); text-decoration: none; font-size: 12px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  transition: color .2s, border-color .2s;
}
.pn-back:hover { color: var(--accent); border-color: var(--accent-d); }
.pn-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pn-links::-webkit-scrollbar { display: none; }
.pn-links a {
  color: var(--muted); text-decoration: none; font-size: 12.5px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; flex: none;
  transition: color .2s, border-color .2s, background .2s;
}
.pn-links a:hover { color: var(--ink); border-color: var(--accent-d); }
.pn-links a.active {
  color: var(--accent); border-color: var(--accent-d);
  background: rgba(52,224,208,0.08);
}

/* ---------- Part dividers (chapters) ---------- */
.part-divider { padding: 46px 0 6px; border-bottom: none; }
.pd-no { color: var(--accent); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 10px; }
.part-divider h2 { font-size: clamp(26px, 5vw, 40px); margin: 0 0 10px; letter-spacing: -0.01em; }
.part-divider p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 15.5px; }

/* "Next" linear-read link */
.next-link { margin-top: 36px; }
.next-link a {
  color: var(--accent); text-decoration: none; font-size: 14px; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--accent-d); padding-bottom: 2px;
}
.next-link a:hover { opacity: 0.78; }

/* ---------- Per-setting sub-headers (tuning part) ---------- */
.setting { margin: 0 0 26px; max-width: 66ch; }
.setting h3 {
  color: var(--ink);
  font-size: 18px; font-weight: 600;
  margin: 0 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.setting h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.setting .setting-sub {
  color: var(--muted); font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em; margin-left: 6px;
}
.setting p {
  color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0;
}
.setting p b { color: var(--ink); font-weight: 600; }
.setting:first-of-type h3 { border-top: none; padding-top: 0; }
.setting:first-of-type h3::before { display: none; }

/* grouped index in the masthead */
.toc2 { max-width: 66ch; margin-top: 10px; }
.toc2-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.toc2-label { width: 100%; color: var(--accent); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 12px; }
.toc2-row a {
  color: var(--muted); text-decoration: none; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  transition: color .2s, border-color .2s;
}
.toc2-row a:hover { color: var(--accent); border-color: var(--accent-d); }

/* anchors clear the sticky bar */
.part-divider, section[id] { scroll-margin-top: 68px; }

@media (max-width: 720px) {
  .partnav .wrap { flex-direction: column; align-items: stretch; gap: 9px; padding: 10px 16px; }
  .pn-left { justify-content: space-between; }
  .pn-links { justify-content: flex-start; }
  .duel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .barrow { flex-wrap: wrap; }
  .barrow .lbl { width: 100%; }
  .synapse-frame { height: 170px; margin-top: 32px; }
  .compare, .duel { grid-template-columns: 1fr; }
}
