@charset "utf-8";

:root {
  --bg: #0B0F0C;
  --surface: #0F1511;
  --border: #233026;
  --border-strong: #2E4033;
  --row: #1B251E;
  --text: #D6E2D8;
  --text-2: #B9CABD;
  --text-3: #A7B9AB;
  --muted: #8FA394;
  --heading: #F2F7F3;
  --accent: #7CF29A;
  --accent-hover: #B6FFC7;
  --accent-ink: #06210F;
  --accent-soft: rgba(124, 242, 154, .06);
  --accent-soft-2: rgba(124, 242, 154, .12);
  --danger: #FF9B8A;
  --warn: #FFC857;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(124, 242, 154, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 242, 154, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; color: var(--heading); font-weight: 600; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(11, 15, 12, .88); backdrop-filter: blur(10px); }
.site-header__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.brand:hover { color: var(--heading); }
.brand__logo { display: inline-flex; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-family: var(--mono); font-size: 13px; }
.site-nav a { color: var(--muted); padding: 10px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--heading); }
.site-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .site-nav__ext { margin-left: 8px; padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: transparent; color: var(--heading); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--row); font-size: 15px; }
  .site-nav a.is-active { border-bottom-color: var(--row); }
  .site-nav .site-nav__ext { margin: 12px 0 0; text-align: center; }
}

/* ---------- typography blocks ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .12em; }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.label--accent { color: var(--accent); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.08; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.25rem); letter-spacing: -.01em; line-height: 1.15; }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 640px; }
.text { font-size: 15px; line-height: 1.6; color: var(--text-3); }
.breadcrumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--heading); }

/* ---------- layout ---------- */
.section { padding-top: 88px; }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.section__head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.page-head { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.span-all { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.with-aside { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.with-aside__main { flex: 999 1 560px; min-width: 0; }
.with-aside__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: transparent; color: var(--heading); font-family: var(--font); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--heading); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-family: var(--mono); font-size: 12px; }
.btn--ghost { color: var(--text); }
.btn.is-copied { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft-2); color: var(--accent); }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-2px); }
.card--accent { border-color: var(--accent); background: var(--accent-soft); }
a.card--accent:hover { border-color: var(--accent-hover); }
.card--dashed { border-style: dashed; border-color: var(--border-strong); background: transparent; }
.card__title { font-size: 21px; font-weight: 600; color: var(--heading); }
.card__title--lg { font-size: 22px; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--text-3); flex: 1; }
.card__link { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.card__link--muted { color: var(--muted); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card--feature { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 32px; }
.card--feature > .stack { flex: 1 1 420px; min-width: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 12px; }
.tag { padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-2); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; font-weight: 500; vertical-align: middle; }

.inline-code { font-family: var(--mono); font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; overflow-x: auto; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { padding-top: 96px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
.hero__lead { font-size: 19px; line-height: 1.65; max-width: 560px; color: var(--text-2); }
.hero .btn-row { margin-top: 8px; }
.hero__terminal { flex: 1 1 420px; min-width: 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.hero__meta > span { display: inline-flex; align-items: center; gap: 8px; }

.split { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.split > * { flex: 1 1 380px; min-width: 0; }
.split .terminal { box-shadow: none; background: var(--bg); }
a.cta:hover { border-color: var(--border-strong); }

.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.terminal__path { margin-left: 8px; flex: 1; }
.terminal pre, .code-block { margin: 0; padding: 22px 22px 26px; font-size: 14px; line-height: 1.75; color: var(--text); overflow-x: auto; }
.code-block { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.code-comment { color: var(--muted); }

/* ---------- about features ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(15, 21, 17, .7); }
.band .container { padding-top: 80px; padding-bottom: 80px; }
.band .section__head { margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 18px; font-weight: 500; }
.feature svg { color: var(--accent); }

/* ---------- steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step__title { font-size: 18px; font-weight: 500; color: var(--heading); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.table--mono { font-family: var(--mono); font-size: 14px; }
.table th { text-align: left; padding: 14px 22px; color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.table td { padding: 18px 22px; border-bottom: 1px solid var(--row); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .cell-strong { color: var(--heading); font-weight: 500; }
.table .cell-addr { font-family: var(--mono); font-size: 13px; color: var(--accent); word-break: break-all; }
.table .cell-text { color: var(--text-3); }
.table .cell-action { text-align: right; }
.table--mono .cell-addr { font-size: 14px; }
.table-empty { padding: 28px 22px; color: var(--muted); text-align: center; }

.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status--online { color: var(--accent); }
.status--online::before { background: var(--accent); animation: blink 2.4s ease-in-out infinite; }
.status--offline { color: var(--danger); }
.status--offline::before { background: var(--danger); border-radius: 2px; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- community list ---------- */
.list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.list__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.list__item:last-child { border-bottom: 0; }
.list__item--accent { background: var(--accent-soft); }
.list__title { font-size: 18px; font-weight: 500; color: var(--heading); }
.list__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.nomad-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.nomad-box code { flex: 1 1 320px; min-width: 0; font-size: 14px; color: var(--accent); word-break: break-all; }

/* ---------- devices ---------- */
.device__img { height: 120px; border-radius: 10px; background: var(--bg); border: 1px solid var(--row); display: flex; align-items: center; justify-content: center; color: var(--border-strong); overflow: hidden; }
.device__img img { width: 100%; height: 100%; object-fit: contain; }
.device .card__title { font-size: 19px; }
.spec { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 6px 10px; font-family: var(--mono); font-size: 13px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--text); }
.spec dd.accent { color: var(--accent); }
.device .btn { margin-top: auto; min-height: 44px; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
[hidden] { display: none !important; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 14px; margin-bottom: 32px; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-3); }
.tabs a:hover { color: var(--heading); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.catalog-intro { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: flex-start; justify-content: space-between; }
.catalog-intro .lead { flex: 999 1 520px; max-width: 760px; }
.catalog-intro > .stack { flex: 1 1 240px; }
.table .cell-child { padding-left: 46px; position: relative; font-weight: 400; }
.table .cell-child::before { content: "└"; position: absolute; left: 24px; color: var(--muted); font-family: var(--mono); }
.table tr.is-own td { background: var(--accent-soft); }

.notice { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid #5A4A1E; border-radius: var(--radius); background: rgba(255, 200, 87, .06); color: #E6DCC2; font-size: 15px; line-height: 1.6; }
.notice .label { color: var(--warn); }
.notice code { color: var(--warn); }
.notice--ok { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.notice--ok .label { color: var(--accent); }
.notice--error { border-color: #6B2E26; background: rgba(255, 155, 138, .06); color: #F2D4CE; }
.notice--error .label { color: var(--danger); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--heading); font-family: var(--font); font-size: 15px; letter-spacing: normal; text-transform: none; }
.field textarea { padding: 12px; resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field--mono input { font-family: var(--mono); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--heading); font-size: 18px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 48px 22px 0; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.faq code { color: var(--text); }
.spec--wide { grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.spec--wide dd { color: var(--heading); }
.spec--wide dd.is-empty { color: var(--muted); }

/* ---------- guide ---------- */
.guide { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.guide__toc { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.guide__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; }
.guide__toc li { counter-increment: toc; }
.guide__toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 15px; }
.guide__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.guide__toc a:hover { color: var(--accent); }
.guide__body { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.guide__section { display: flex; flex-direction: column; gap: 20px; }
.guide__p { font-size: 16px; line-height: 1.75; color: var(--text-2); max-width: 760px; }
.guide__p code, .guide__list code, .text code, .card__text code { color: var(--heading); }
.guide__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.65; color: var(--text-3); }
@media (min-width: 1000px) {
  .guide__toc { position: sticky; top: 88px; }
}
@media (max-width: 999px) {
  .guide__toc { max-width: none; }
}

/* ---------- cta ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cta > .stack { flex: 1 1 380px; gap: 8px; }
.cta__title { font-size: 20px; font-weight: 500; color: var(--heading); }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border); }
.site-footer .container { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.site-footer__nomad { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer__nomad code { flex: 1 1 300px; min-width: 0; font-size: 14px; word-break: break-all; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--row); font-family: var(--mono); font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .page-head { padding-top: 48px; padding-bottom: 32px; }
  .section { padding-top: 64px; }
  .band .container { padding-top: 56px; padding-bottom: 56px; }
  .card, .card--feature, .form { padding: 22px; }
  .btn-row .btn { flex: 1 1 auto; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
