/* nodeko — landing page */

/* Fonts: self-hosted latin + latin-ext subsets (SIL Open Font License), see fonts/LICENSES.md */
/* Bricolage Grotesque — latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque — latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Geist — latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist — latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  color-scheme: dark;
  --bg: #080b11;
  --bg-2: #0b1019;
  --panel: #0e131c;
  --card: #111723;
  --card-hi: #161d2b;
  --line: rgba(160, 190, 255, 0.08);
  --line-2: rgba(160, 190, 255, 0.15);
  --ink: #eef1f6;
  --ink-2: #aeb6c4;
  --mute: #7a8598;
  --accent: #3f8cf0;
  --accent-hi: #6fb0ff;
  --accent-soft: rgba(63, 140, 240, 0.14);
  --ok: #22c02e;
  --warn: #fab219;
  --down: #e8484a;
  --idle: #6e6d68;
  --unk: #8a8f99;
  --pend: #5b9cf5;
  --dot: rgba(160, 190, 255, 0.07);

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 14px;
  --wrap: 1180px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--f-mono); }
code {
  font-size: 0.86em;
  padding: 0.1em 0.38em;
  border-radius: 5px;
  background: rgba(160, 190, 255, 0.07);
  border: 1px solid var(--line);
  color: #d5deee;
  white-space: nowrap;
}
kbd {
  font-size: 0.78em;
  padding: 0.08em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--ink-2);
}
em { font-style: normal; color: var(--ink); }
b { font-weight: 600; }
.mute { color: var(--mute); }
.small { font-size: 13.5px; color: var(--mute); margin: 10px 0 0; }

::selection { background: rgba(63, 140, 240, 0.4); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 6px; }

/* ---------- status dots ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--mute); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(34, 192, 46, 0.6); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px rgba(250, 178, 25, 0.55); }
.dot.down { background: var(--down); box-shadow: 0 0 10px rgba(232, 72, 74, 0.65); }
.dot.idle { background: var(--idle); }
.dot.unk { background: transparent; border: 1.5px solid var(--unk); }
.dot.pend { background: var(--pend); box-shadow: 0 0 10px rgba(91, 156, 245, 0.55); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font: 500 15px/1 var(--f-body); text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--primary { background: #2f74cf; color: #fff; box-shadow: 0 8px 30px -8px rgba(63, 140, 240, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn--primary:hover { background: #2868bd; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(14, 19, 28, 0.6); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(160, 190, 255, 0.3); background: var(--card-hi); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.nav.is-scrolled { background: rgba(8, 11, 17, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--f-mono); letter-spacing: -0.03em; }
.brand b { color: var(--accent); font-weight: 600; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 40px;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  isolation: isolate;
  overflow-x: clip;
}
.hero::after { /* fade the dot grid out at the bottom */
  content: ""; position: absolute; inset: auto 0 0 0; height: 260px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 700px; right: -180px; top: -160px;
  background: radial-gradient(closest-side, rgba(63, 140, 240, 0.22), rgba(63, 140, 240, 0.06) 55%, transparent);
  filter: blur(10px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: end; }
.hero__copy { padding: 36px 0 28px; position: relative; z-index: 2; margin-right: -170px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(14, 19, 28, 0.7);
  color: var(--ink-2); font-size: 13.5px; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: rgba(63, 140, 240, 0.5); color: var(--ink); }
.pill__tag { background: var(--accent-soft); color: var(--accent-hi); border-radius: 99px; padding: 3px 9px; font: 600 11px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }

.hero__title {
  margin: 26px 0 22px;
  font: 800 clamp(44px, 7.2vw, 92px)/0.94 var(--f-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.hero__kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 500 13px/1.3 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi);
}
.hero__kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.hl {
  background: linear-gradient(100deg, #9fd0ff 0%, var(--accent) 45%, #7aa9ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(63, 140, 240, 0.35));
}
.hero__lead { max-width: 600px; margin: 0 0 30px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); }
.hero__meta { margin: 14px 2px 0; font: 400 12.5px/1.5 var(--f-mono); color: var(--mute); letter-spacing: 0.01em; }

.hero__mascot { margin: 0; position: relative; align-self: end; }
.hero__mascot img {
  width: 330px; max-width: none;
  margin-bottom: -210px; /* feet go behind the dashboard */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: float 7s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- install box ---------- */
.install { max-width: 640px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(11, 15, 23, 0.85); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8); }
.install__tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); }
.install__tabs button, .shots__tabs button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 500 13.5px/1 var(--f-body); color: var(--mute);
  padding: 10px 12px 12px; position: relative; transition: color 0.2s;
}
.install__tabs button:hover, .shots__tabs button:hover { color: var(--ink-2); }
.install__tabs button[aria-selected="true"], .shots__tabs button[aria-selected="true"] { color: var(--ink); }
.install__tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.cmd { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; }
.cmd[hidden] { display: none; }
.cmd code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  background: none; border: 0; padding: 4px 0; font-size: 13.5px; color: var(--ink);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  padding-right: 24px;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd .p { color: var(--accent); user-select: none; margin-right: 6px; }

.copy {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy:hover { color: var(--ink); border-color: var(--line-2); background: var(--card-hi); }
.copy.is-done { color: var(--ok); border-color: rgba(34, 192, 46, 0.4); }

/* ---------- live tree demo ---------- */
.stagebox {
  position: relative; z-index: 2;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  background-color: #0a0e15;
  background-image: radial-gradient(rgba(160, 190, 255, 0.06) 1px, transparent 1.2px);
  background-size: 18px 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(63, 140, 240, 0.45);
}
.appbar {
  display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: rgba(13, 17, 25, 0.9);
  font-size: 13px; color: var(--ink-2);
}
.appbar__brand { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--f-mono); letter-spacing: -0.03em; color: var(--ink); margin-right: 8px; }
.appbar__brand b { color: var(--accent); font-weight: 600; }
.appbar__tab { padding: 6px 10px; border-radius: 7px; }
.appbar__tab.is-on { background: var(--accent-soft); color: #cfe2ff; }
.appbar__spacer { flex: 1; }
.appbar__pill {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line); font: 500 12px/1 var(--f-mono); white-space: nowrap;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.appbar__pill.is-warn { background: rgba(250, 178, 25, 0.1); border-color: rgba(250, 178, 25, 0.3); color: #ffd47a; }
.appbar__pill.is-down { background: rgba(232, 72, 74, 0.12); border-color: rgba(232, 72, 74, 0.35); color: #ff9a9b; }

.stage { position: relative; width: 100%; overflow: hidden; }
.stage__inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stage svg.wires { position: absolute; inset: 0; overflow: visible; }
.wire { fill: none; stroke: rgba(160, 190, 255, 0.22); stroke-width: 1.5; transition: stroke 0.5s; }
.wire.warn { stroke: var(--warn); }
.wire.down { stroke: var(--down); filter: drop-shadow(0 0 4px rgba(232, 72, 74, 0.7)); }

.n {
  position: absolute; border-radius: 10px;
  background: rgba(19, 25, 37, 0.96); border: 1px solid rgba(160, 190, 255, 0.13);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
  font-size: 12px; line-height: 1.3;
}
.n.warn { border-color: rgba(250, 178, 25, 0.55); box-shadow: 0 0 0 3px rgba(250, 178, 25, 0.08); }
.n.down { border-color: rgba(232, 72, 74, 0.75); box-shadow: 0 0 0 3px rgba(232, 72, 74, 0.12), 0 0 30px -6px rgba(232, 72, 74, 0.55); animation: alarm 1.2s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 0 0 5px rgba(232, 72, 74, 0.05), 0 0 34px -4px rgba(232, 72, 74, 0.7); } }

.n__row { display: flex; align-items: center; gap: 8px; }
.n__name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n__meta { font: 400 10.5px/1.3 var(--f-mono); color: var(--mute); white-space: nowrap; margin-top: 4px; transition: color 0.4s; }
.n__ic { color: var(--mute); flex: none; }
.n .dot { margin-left: auto; width: 9px; height: 9px; transition: background 0.4s, box-shadow 0.4s; }

.n--srv { padding: 12px 14px 12px; }
.n--srv .n__ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(34, 192, 46, 0.12); color: var(--ok); }
.n--srv .n__name { font-size: 14px; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 11px; }
.bar { font: 400 9.5px/1 var(--f-mono); color: var(--mute); }
.bar__top { display: flex; justify-content: space-between; margin-bottom: 5px; }
.bar__top b { color: var(--ink-2); font-weight: 500; }
.bar__track { height: 3px; border-radius: 3px; background: rgba(160, 190, 255, 0.1); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 1.1s cubic-bezier(.4, 0, .2, 1); }
.n--srv .n__meta { margin-top: 10px; }

.n--grp { padding: 8px 11px; }
.n--grp .n__name { font-size: 12.5px; }
.n--grp .n__count { font: 400 10px/1 var(--f-mono); color: var(--mute); }
.n--svc { padding: 9px 11px; border-left-width: 3px; border-left-color: rgba(34, 192, 46, 0.65); }
.n--svc.warn { border-left-color: var(--warn); }
.n--svc.down { border-left-color: var(--down); }
.n--svc.down .n__meta { color: #ff8f90; }
.n--svc.warn .n__meta { color: #ffd47a; }

.toast {
  position: absolute; right: 16px; bottom: 16px; z-index: 5; width: 300px; max-width: calc(100% - 32px);
  border-radius: 14px; padding: 11px 13px 12px;
  background: rgba(23, 33, 48, 0.94); border: 1px solid rgba(160, 190, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.4s, transform 0.4s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }
.toast__head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.toast__bot { color: var(--accent-hi); font-weight: 600; }
.toast__time { color: var(--mute); font-family: var(--f-mono); font-size: 11px; }
.toast__body { font-size: 13px; line-height: 1.45; color: var(--ink); }
.toast__body .dot { margin-right: 7px; vertical-align: 1px; }
.toast__body small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }

.stagecap { margin: 14px 4px 0; font-size: 13px; color: var(--mute); text-align: center; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 72px; }
.num { padding: 6px 28px; border-left: 1px solid var(--line-2); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font: 800 clamp(40px, 5vw, 58px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--ink); }
.num b small { font-size: 0.45em; color: var(--accent); margin-left: 3px; letter-spacing: 0; }
.num span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; max-width: 220px; }

/* ---------- why ---------- */
.why { margin-top: 110px; }
.why__text { margin: 0; max-width: 980px; font: 500 clamp(22px, 2.9vw, 34px)/1.32 var(--f-display); letter-spacing: -0.02em; text-wrap: pretty; }
.why__text em { color: var(--accent-hi); }

/* ---------- sections ---------- */
.sec { padding: 120px 0 0; }
.sec--tight { padding-top: 40px; }
.sec__head { max-width: 820px; margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; font: 500 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }
h2 { margin: 0; font: 800 clamp(32px, 4.4vw, 54px)/1.04 var(--f-display); letter-spacing: -0.026em; text-wrap: balance; }
h3 { margin: 0 0 8px; font: 700 19px/1.25 var(--f-display); letter-spacing: -0.015em; }
.lead { margin: 18px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 640px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 2; position: relative; overflow: hidden;
  padding: 24px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 29, 43, 0.7), rgba(14, 19, 28, 0.7));
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.card:hover { border-color: var(--line-2); }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.card .card__note { color: var(--mute); }
.card--tree { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; padding: 0; }
.card--tree .card__txt { padding: 26px 26px 0; }
.card--tree h3 { font-size: 24px; }
.card__shot { flex: 1; min-height: 240px; margin-top: 22px; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.card__shot img { position: absolute; left: 0; top: 0; width: 145%; max-width: none; transform: translate(-16%, -6%); opacity: 0.92; }
.card__shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 19, 28, 0.95)); pointer-events: none; }

.chips, .statuses, .tools, .stack { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li, .tools li, .stack span {
  font: 500 12px/1 var(--f-mono); padding: 7px 10px; border-radius: 7px;
  background: rgba(160, 190, 255, 0.06); border: 1px solid var(--line); color: var(--ink-2);
}
.statuses li { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--f-mono); padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-2); }

.beats { display: flex; gap: 3px; height: 30px; margin-top: 18px; }
.beats i { flex: 1; border-radius: 3px; background: var(--ok); opacity: 0.85; }
.beats i.w { background: var(--warn); }
.beats i.d { background: var(--down); }
.beats__meta { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11.5px/1 var(--f-mono); color: var(--mute); }

.spark { width: 100%; height: 70px; margin: 16px 0 4px; display: block; overflow: visible; }
.spark .a { fill: url(#sparkfill); }
.spark .l { fill: none; stroke: var(--accent); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.spark .l2 { fill: none; stroke: #d97a46; stroke-width: 1.4; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0.8; }

.hist { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-top: 16px; }
.hist i { flex: 1; background: rgba(232, 72, 74, 0.55); border-radius: 2px 2px 0 0; min-height: 2px; }
.hist i.z { background: rgba(160, 190, 255, 0.1); }
.logline { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: rgba(232, 72, 74, 0.07); border: 1px solid rgba(232, 72, 74, 0.2); font-size: 11.5px; overflow-x: auto; white-space: pre; }
.logline .t { color: var(--mute); }
.logline .e { color: #ff9a9b; }

.tg { display: grid; gap: 7px; margin-top: 16px; }
.tg__msg { font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: rgba(42, 60, 88, 0.45); border: 1px solid rgba(160, 190, 255, 0.1); color: var(--ink-2); }
.tg__msg b { color: var(--ink); }
.tg__msg .dot { margin-right: 8px; vertical-align: 1px; }

/* ---------- screenshots ---------- */
.shots__tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.shots__tabs button { border-radius: 9px; padding: 9px 16px; border: 1px solid transparent; }
.shots__tabs button[aria-selected="true"] { background: var(--card-hi); border-color: var(--line-2); }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 140px -70px rgba(63, 140, 240, 0.5); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0d121a; }
.browser__bar i, .term__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(160, 190, 255, 0.14); }
.browser__bar span { margin: 0 auto; padding: 4px 16px; border-radius: 7px; background: rgba(160, 190, 255, 0.06); font: 400 12px/1.2 var(--f-mono); color: var(--mute); transform: translateX(-20px); }
.browser__view { aspect-ratio: 16 / 10; background: #0b0c0e; }
.browser__view img { width: 100%; height: 100%; object-fit: cover; animation: fadein 0.35s ease; }
.browser__view img[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.shots__cap { text-align: center; color: var(--mute); font-size: 14px; margin: 16px 0 0; }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.split--rev .split__txt { order: 2; }
.tools li { font-size: 11.5px; padding: 6px 9px; }
.tools li::before { content: "nodeko_"; color: var(--mute); }
.tools { margin-top: 26px; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236fb0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks b { color: var(--ink); }

.term, .note {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2);
  background: #0a0e15; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  min-width: 0;
}
.term__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0d121a; }
.term__bar span { margin-left: 10px; font: 400 12px/1 var(--f-mono); color: var(--mute); }
.term__body, .note__body {
  margin: 0; padding: 20px 22px 22px; overflow-x: auto;
  font-size: 13px; line-height: 1.7; color: #d7deea; white-space: pre;
}
.term__body b { color: #fff; font-weight: 600; }
.c-mute { color: var(--mute); }
.c-ok { color: var(--ok); }
.c-acc { color: var(--accent-hi); }
.c-warn { color: #ffcf6b; }
.c-down { color: #ff7f80; }
.c-str { color: #9fe08f; }
.c-h { color: #fff; font-weight: 600; }
.c-code { color: #ffcf6b; }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 3px; vertical-align: -2px; background: var(--accent-hi); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.note__head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0d121a; font: 400 12.5px/1 var(--f-mono); color: var(--ink-2); }
.note__head svg { color: var(--accent-hi); }
.refuse { margin: 0 14px 14px; border-radius: 10px; border: 1px solid rgba(232, 72, 74, 0.3); background: rgba(232, 72, 74, 0.07); font: 400 12.5px/1.55 var(--f-mono); }
.refuse__row { padding: 9px 13px; display: flex; gap: 2px; flex-wrap: wrap; }
.refuse__row + .refuse__row { border-top: 1px solid rgba(232, 72, 74, 0.18); }
.refuse__err { color: #ffb0b1; display: block; }
.refuse .x { color: var(--down); font-weight: 700; margin-right: 6px; }

/* ---------- flow ---------- */
.flow {
  display: grid; grid-template-columns: 1fr 150px 1fr 110px 1fr; align-items: center;
  padding: 40px; border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(63, 140, 240, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(22, 29, 43, 0.5), rgba(14, 19, 28, 0.5));
}
.flow__col { display: grid; gap: 12px; }
.fnode {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px;
  background: rgba(19, 25, 37, 0.95); border: 1px solid var(--line-2);
}
.fnode svg { color: var(--ok); flex: none; }
.fnode b { display: block; font-size: 14px; font-family: var(--f-mono); font-weight: 500; }
.fnode span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.fnode--sm { display: block; padding: 11px 15px; }
.fnode--sm b { font-family: var(--f-body); font-weight: 600; }
.fnode--acc { border-color: rgba(63, 140, 240, 0.55); box-shadow: 0 0 30px -10px rgba(63, 140, 240, 0.6); }
.fnode--acc b { color: var(--accent-hi); }

.flow__wire { position: relative; height: 2px; margin: 0 10px; background: linear-gradient(90deg, rgba(63, 140, 240, 0.15), rgba(63, 140, 240, 0.6), rgba(63, 140, 240, 0.15)); }
.flow__wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 12px var(--accent); animation: packet 2.4s linear infinite; }
.flow__wire i:nth-of-type(2) { animation-delay: 0.8s; }
.flow__wire i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes packet { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.flow__label { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font: 500 11px/1 var(--f-mono); color: var(--accent-hi); }
.hubcard {
  text-align: center; padding: 26px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #172133, #111826); border: 1px solid rgba(63, 140, 240, 0.45);
  box-shadow: 0 0 60px -14px rgba(63, 140, 240, 0.55);
}
.hubcard svg { margin: 0 auto 12px; display: block; }
.hubcard b { display: block; font: 700 20px/1.1 var(--f-display); }
.hubcard > span { display: block; color: var(--mute); font: 400 12.5px/1 var(--f-mono); margin-top: 8px; }
.hubcard ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.hubcard li { font: 500 11px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; background: rgba(63, 140, 240, 0.12); color: #bcd6ff; }

/* ---------- security ---------- */
.handshake { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: hs; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.handshake li { counter-increment: hs; position: relative; padding: 20px 22px 22px; background: rgba(14, 19, 28, 0.7); }
.handshake li + li { border-left: 1px solid var(--line); }
.handshake li::before { content: "0" counter(hs); display: block; font: 500 11px/1 var(--f-mono); color: var(--mute); margin-bottom: 14px; }
.handshake b { display: block; font: 700 21px/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--accent-hi); }
.handshake span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.secgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sc { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(14, 19, 28, 0.55); }
.sc svg { color: var(--accent-hi); margin-bottom: 14px; }
.sc h3 { font-size: 17px; }
.sc p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qa { padding: 24px 26px; border-radius: 16px; border: 1px solid var(--line); background: rgba(14, 19, 28, 0.55); }
.qa h3 { font-size: 18px; margin-bottom: 10px; }
.qa p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(14, 19, 28, 0.55); }
.step__n { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 800 22px/1 var(--f-display); color: var(--accent-hi); background: var(--accent-soft); border: 1px solid rgba(63, 140, 240, 0.3); }
.step h3 { font-size: 21px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 760px; }
.step p a { color: var(--accent-hi); text-decoration: none; }
.code { position: relative; margin-top: 16px; border-radius: 12px; border: 1px solid var(--line); background: #090c12; }
.code pre { margin: 0; padding: 16px 56px 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: #d7deea; }
.code .copy { position: absolute; right: 9px; top: 9px; box-shadow: -14px 0 14px 2px #090c12; }
.more { margin: 30px 0 0; text-align: center; }
.more a { display: inline; color: var(--accent-hi); text-decoration: none; font-weight: 500; }
.more a svg { vertical-align: -2px; margin-left: 4px; }
.more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- outro ---------- */
.outro { position: relative; margin-top: 140px; min-height: 560px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.outro__img { position: absolute; inset: 0; z-index: -1; }
.outro__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.outro__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, rgba(8, 11, 17, 0.75) 42%, rgba(8, 11, 17, 0.05) 75%), linear-gradient(180deg, var(--bg), transparent 30%, transparent 75%, var(--bg)); }
.outro__in { padding-top: 80px; padding-bottom: 80px; }
.outro__kicker { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-hi); margin: 0 0 18px; }
.outro h2 { font-size: clamp(44px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.032em; }
.outro__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot__in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.foot nav a, .foot p { color: var(--mute); font-size: 14px; text-decoration: none; margin: 0; }
.foot nav a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero__copy > * { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.14s; }
.hero__copy > :nth-child(4) { animation-delay: 0.22s; }
.hero__copy > :nth-child(5) { animation-delay: 0.3s; }
.stagebox { animation: rise 1s 0.35s cubic-bezier(.2, .7, .2, 1) both; }
.hero__mascot { animation: rise 1s 0.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .hero__copy { margin-right: 0; }
  .hero__mascot img { width: 260px; margin-bottom: -150px; }
  .flow { grid-template-columns: 1fr 110px 1fr 70px 1fr; padding: 28px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in .btn { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__mascot { display: none; }
  .hero__copy { padding-bottom: 36px; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card--tree { grid-column: span 1; grid-row: auto; }
  .card--tree { grid-column: span 2; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--rev .split__txt { order: 0; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: stretch; }
  .flow__wire { width: 2px; height: 56px; margin: 0 auto; background: linear-gradient(180deg, rgba(63, 140, 240, 0.15), rgba(63, 140, 240, 0.6), rgba(63, 140, 240, 0.15)); }
  .flow__wire i { left: -3px; top: 0; animation-name: packet-v; }
  @keyframes packet-v { from { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
  .flow__label { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .flow__col--out { grid-template-columns: 1fr 1fr; }
  .handshake { grid-template-columns: repeat(2, 1fr); }
  .handshake li:nth-child(3) { border-left: 0; }
  .handshake li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .secgrid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .outro__img::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 11, 17, 0.55) 30%, rgba(8, 11, 17, 0.85) 100%); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 20px; }
  .hero__kicker { font-size: 11.5px; letter-spacing: 0.1em; margin-bottom: 16px; }
  .hero__copy { padding-top: 22px; }
  .appbar__tab:not(.is-on), .appbar__pill--online { display: none; }
  .bento, .secgrid, .handshake { grid-template-columns: minmax(0, 1fr); }
  .card, .card--tree { grid-column: auto; }
  .handshake li + li { border-left: 0; border-top: 1px solid var(--line); }
  .num { padding: 0 0 0 16px; }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .sec { padding-top: 88px; }
  .why { margin-top: 80px; }
  .term__body, .note__body { font-size: 12px; padding: 16px; }
  .flow { padding: 18px; }
  .flow__col--out { grid-template-columns: 1fr; }
  .toast { right: 10px; bottom: 10px; width: auto; left: 10px; max-width: none; }
  .foot nav { margin-left: 0; width: 100%; order: 3; }
  .outro { display: block; min-height: 0; margin-top: 100px; }
  .outro__img { position: relative; inset: auto; height: 300px; margin-bottom: -70px; }
  .outro__img img { object-position: 78% 40%; }
  .outro__img::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 55%, var(--bg) 100%); }
  .outro__in { padding-top: 0; padding-bottom: 64px; position: relative; }
}
