/* NFWare Engineering Hub — стили боевой сборки.
   Основа — src/base.css и EXTRA_CSS прототипа (content-hub/prototype), без служебных блоков макета. */
/* Roboto / Roboto Mono — свои файлы (variable, latin) */
@font-face { font-family: "Roboto"; src: url("fonts/roboto.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  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; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/roboto-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap;
  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; }

/* Layout: dark product-style hero → 1200px container, 760px reading column + sticky
   "On this page" rail → dark facts band → light surface for guides grid → blue CTA plaque → FAQ → black footer.
   Single visual world: mirrors nfware.com (light content, dark hero), no dark-mode variant by design. */
:root {
  color-scheme: light;
  --brand: #047FE4;
  --brand-bright: #0E92FF;
  --brand-tint: #ECF3FB;
  --accent-lb: #8C56FF;
  --ink: #000000;
  --navy-900: #02001B;
  --navy-700: #252D54;
  --text-body: #485067;
  --text-muted: #6A7798;
  --line: #C7CCDB;
  --line-soft: #E3E7F1;
  --surface: #F2F4FF;
  --white: #FFFFFF;
  --on-dark-muted: rgba(255,255,255,.66);

  --font: "Roboto", Arial, Helvetica, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-btn: 30px;
  --radius-card: 10px;
  --radius-card-lg: 20px;
  --container: 1200px;
  --text-col: 760px;
  --header-h: 91px;
  --proto-h: 0px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--proto-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 18px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- header (site chrome) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(2, 0, 27, .55);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nav a, .nav span { color: var(--white); white-space: nowrap; }
.nav .sep { width: 1px; height: 30px; background: rgba(255,255,255,.3); }
.header-cta { margin-left: auto; height: 39px; padding: 0 26px; border-radius: var(--radius-btn); background: var(--brand);
  color: var(--white); font-size: 16px; display: inline-flex; align-items: center; }

/* ---------- hero ---------- */
.hero {
  color: var(--white); padding: calc(var(--header-h) + var(--proto-h) + 28px) 0 64px;
  background:
    linear-gradient(180deg, rgba(2,0,27,.35) 0%, rgba(2,0,27,.15) 40%, rgba(2,0,27,.85) 100%),
    radial-gradient(120% 90% at 78% 20%, rgba(14,146,255,.35) 0%, rgba(14,146,255,0) 60%),
    radial-gradient(70% 60% at 15% 85%, rgba(4,127,228,.22) 0%, rgba(4,127,228,0) 70%),
    linear-gradient(160deg, #0A1446 0%, #050A2C 55%, #02001B 100%),
    var(--navy-900);
}
.crumbs { font-size: 14px; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--white); }
.crumbs .sl { opacity: .5; }
.kicker { margin-top: 40px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); font-weight: 500; }
.hero h1 { margin-top: 14px; max-width: 900px; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.1; letter-spacing: -.5px; }
.meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--on-dark-muted); }
.meta b { color: var(--white); font-weight: 500; }

/* ---------- facts band ---------- */
.facts { background: var(--navy-900); color: var(--white); padding-block: 0 56px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.fact { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); border-radius: var(--radius-card); padding: 22px 22px 20px; }
.fact .num { font: 400 40px/1.1 var(--font); color: var(--brand-bright); font-variant-numeric: tabular-nums; }
.fact .lbl { margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.86); }
.fact .src { margin-top: 10px; font-size: 12px; color: var(--on-dark-muted); }
@media (max-width: 900px) { .facts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: 1fr; } .fact .num { font-size: 34px; } }

/* ---------- body layout ---------- */
.body { padding-block: 72px 24px; }
.layout { display: grid; grid-template-columns: minmax(0, var(--text-col)) 300px; gap: 72px; justify-content: space-between; }
.content { min-width: 0; }
.lead { font-size: 22px; line-height: 1.6; color: var(--ink); }
.lead + p { margin-top: 20px; }
.content p { color: var(--text-body); margin: 0; }
.content h2 { font-size: 36px; line-height: 1.2; margin-top: 72px; }
.content h2 .h2-kicker { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 500; margin-bottom: 10px; }
.content h3 { font-size: 22px; line-height: 1.35; font-weight: 500; margin-top: 36px; }
.content h3 + p { margin-top: 10px; }
.read { display: inline-flex; gap: 6px; margin-top: 12px; font-size: 16px; font-weight: 500; }
.read::after { content: "→"; transition: transform .15s; }
.read:hover::after { transform: translateX(3px); }
.soon { display: inline-block; margin-top: 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 3px 12px; }
.section-intro { margin-top: 16px; }

/* port-block diagram */
.pba { margin-top: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius-card-lg); padding: 24px; background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%); }
.pba-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--text-muted); }
.pba-head b { color: var(--ink); font-weight: 500; }
.pba-bar { margin-top: 14px; display: grid; grid-template-columns: 2fr repeat(8, 1fr) 2fr; height: 46px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--line-soft); }
.pba-bar span { display: block; }
.pba-bar .res { background: repeating-linear-gradient(135deg, #D9DEEA 0 6px, #E8ECF5 6px 12px); }
.pba-bar .b1 { background: var(--brand); }
.pba-bar .b2 { background: #3A9BEB; }
.pba-bar .b3 { background: #73B6F0; }
.pba-bar .b4 { background: var(--accent-lb); }
.pba-bar .free { background: repeating-linear-gradient(90deg, var(--white) 0 10px, var(--line-soft) 10px 12px); }
.pba-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pba-axis span:first-child { transform: none; }
.pba-axis span:last-child { transform: translateX(-100%); }
.pba-axis { position: relative; height: 18px; margin-top: 6px; font: 400 12px/1.4 var(--mono); color: var(--text-muted); }
.pba-table-wrap { margin-top: 18px; overflow-x: auto; }
.pba-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.pba-table th { text-align: left; font-weight: 500; color: var(--ink); padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.pba-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-body); }
.pba-table td.mono { color: var(--ink); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.pba-note { margin-top: 14px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* comparison table */
.tbl-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.tbl th { text-align: left; font-weight: 500; padding: 14px 16px; background: var(--surface); color: var(--ink); }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--line-soft); color: var(--text-body); vertical-align: top; }
.tbl td:first-child { color: var(--ink); font-weight: 500; }

/* aside rail */
.rail { position: sticky; top: calc(var(--header-h) + var(--proto-h) + 24px); align-self: start; display: grid; gap: 20px; }
.toc { border-left: 2px solid var(--line-soft); padding-left: 18px; }
.toc .cap, .terms .cap { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.toc a { color: var(--text-body); }
.toc a.is-active { color: var(--brand); font-weight: 500; }
.rail-cta { background: var(--navy-900); color: var(--white); border-radius: var(--radius-card); padding: 20px; font-size: 15px; line-height: 1.5; }
.rail-cta strong { display: block; font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.rail-cta .btn { margin-top: 14px; }
.toc-mobile { display: none; }
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
  .toc-mobile { display: block; margin-bottom: 32px; border: 1px solid var(--line-soft); border-radius: var(--radius-card); background: var(--surface); }
  .toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
  .toc-mobile summary::after { content: "▾"; color: var(--text-muted); }
  .toc-mobile[open] summary::after { content: "▴"; }
  .toc-mobile ol { margin: 0; padding: 0 18px 16px 36px; display: grid; gap: 8px; font-size: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lead { font-size: 19px; }
  .content h2 { font-size: 28px; margin-top: 56px; }
  .content h3 { font-size: 20px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: var(--radius-btn); font-size: 18px; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: #0570C9; }
.btn-white { background: var(--white); color: var(--brand); }
.btn-outline-white { border: 1px solid var(--white); color: var(--white); }
.btn-sm { height: 42px; font-size: 16px; padding: 0 22px; }

/* ---------- guides grid ---------- */
.guides { background: var(--surface); padding-block: 80px; margin-top: 80px; }
.guides h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.guides .sub { margin-top: 14px; color: var(--text-body); max-width: 720px; }
.filters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: 400 15px/1 var(--font); height: 38px; padding: 0 18px; border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--white); color: var(--text-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.filters .count { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
.grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius-card); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; color: inherit; border: 1px solid transparent; transition: border-color .15s, transform .15s; min-height: 196px; }
a.card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card .type { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--brand); }
.card .type::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.card[data-type="playbook"] .type { color: #0B8A5B; }
.card[data-type="data"] .type { color: var(--accent-lb); }
.card[data-type="calculator"] .type { color: #C2410C; }
.card .t { font-size: 20px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.card .d { font-size: 15px; line-height: 1.5; color: var(--text-body); font-weight: 300; }
.card .go { color: var(--brand); font-weight: 500; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }
.card.is-soon { background: transparent; border: 1px dashed var(--line); }
.card.is-soon .t { color: var(--text-body); }

/* ---------- terms + proof ---------- */
.terms { margin-top: 56px; }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 15px; padding: 7px 16px; border-radius: var(--radius-btn); background: var(--brand-tint); border: 1px solid #CFE3F8; color: var(--brand); }
.chips a:hover { text-decoration: none; border-color: var(--brand); }

.proof { padding-block: 80px 24px; }
.proof h2 { font-size: clamp(28px, 3.6vw, 40px); }
.proof-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
.case { border: 1px solid var(--line-soft); border-radius: var(--radius-card-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; color: inherit; }
a.case:hover { text-decoration: none; border-color: var(--brand); }
.case .who { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.case .t { font-size: 20px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.case .read { margin-top: auto; }

/* ---------- CTA plaque ---------- */
.cta { padding-block: 56px; }
.plaque { background: var(--brand); color: var(--white); border-radius: var(--radius-card-lg); padding: 32px 36px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.plaque .txt { font-size: 24px; line-height: 1.35; max-width: 560px; }
.plaque .txt small { display: block; margin-top: 6px; font-size: 16px; opacity: .85; }
.plaque .btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .plaque { padding: 24px; } .plaque .txt { font-size: 20px; } .plaque .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq { padding-block: 24px 96px; }
.faq h2 { font-size: clamp(28px, 3.6vw, 40px); }
.faq-list { margin-top: 24px; max-width: 900px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 21px; line-height: 1.4; font-weight: 500; }
.faq-item p { margin: 10px 0 0; color: var(--text-body); }

/* ---------- other sections ---------- */
.siblings { background: var(--surface); padding-block: 56px; }
.siblings .cap { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.sib-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 900px) { .sib-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .sib-grid { grid-template-columns: 1fr; } }
.sib { background: var(--white); border-radius: var(--radius-card); padding: 18px 20px; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.sib::after { content: "→"; color: var(--brand); }
.sib:hover { text-decoration: none; outline: 1px solid var(--brand); }
.sib small { display: block; font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---------- footer (site chrome) ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 48px 40px; font-size: 13px; }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.18); }
.f-cols { padding-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
@media (max-width: 760px) { .f-cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.f-cols .cap { color: rgba(255,255,255,.5); margin-bottom: 12px; }
.f-cols a { display: block; color: var(--white); font-weight: 300; margin-bottom: 10px; }
.f-cols a.new { color: var(--brand-bright); }
.f-copy { margin-top: 28px; color: rgba(255,255,255,.45); }



/* ===== hub page components ===== */
:root { --pillar: var(--brand); --pillar-bright: var(--brand-bright); --pillar-tint: var(--brand-tint); }
body[data-pillar="lb"] { --pillar: var(--accent-lb); --pillar-bright: #B79BFF; --pillar-tint: #F1EBFF; }
.kicker { color: var(--pillar-bright); }
.content h2 .h2-kicker { color: var(--pillar); }
.plaque { background: var(--pillar); }
.plaque .btn-white { color: var(--pillar); }
a.card:hover, a.case:hover { border-color: var(--pillar); }
.filters button[aria-pressed="true"] { background: var(--pillar); border-color: var(--pillar); }
.fact .num { color: var(--pillar-bright); }

/* diagrams shared frame */
figure.viz, figure.pba { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.viz { margin-top: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius-card-lg); padding: 24px; background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%); }
.viz-cap { margin-top: 14px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.viz-title { font-size: 14px; color: var(--text-muted); }
.viz-title b { color: var(--ink); font-weight: 500; }

/* LB: what each balancer can see */
.layers { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; gap: 6px 12px; align-items: stretch; }
.layer { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--line-soft); font-size: 14px; }
.layer .ln { font-weight: 500; color: var(--ink); min-width: 74px; }
.layer .f { font: 400 12px/1.4 var(--mono); padding: 2px 8px; border-radius: 4px; background: var(--surface); color: var(--text-body); }
.layer .f.key { background: var(--pillar-tint); color: var(--pillar); }
.layer.enc { background: repeating-linear-gradient(135deg, #F3F0FF 0 6px, #FFFFFF 6px 12px); }
.bracket { border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.35; padding: 8px; color: var(--white); font-weight: 500; }
.bracket.l4 { background: var(--brand); grid-column: 2; grid-row: 2 / span 2; }
.bracket.l7 { background: var(--accent-lb); grid-column: 3; grid-row: 2 / span 4; }
@media (max-width: 640px) {
  .layers { grid-template-columns: minmax(0, 1fr) 64px 64px; }
  .bracket { font-size: 11px; padding: 4px; }
  .layer .ln { min-width: 0; width: 100%; }
}

/* IPv4: exhaustion timeline */
.tl { list-style: none; margin: 16px 0 0; padding: 0; position: relative; display: grid; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 112px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; align-items: baseline; position: relative; }
.tl li::before { content: ""; position: absolute; left: 107px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); }
.tl li.final::before { background: var(--brand); }
.tl .d { font: 500 14px/1.4 var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.tl .e { font-size: 15px; color: var(--text-body); line-height: 1.5; }
.tl .e b { color: var(--ink); font-weight: 500; }
@media (max-width: 480px) {
  .tl::before { left: 6px; } .tl li { grid-template-columns: 1fr; gap: 2px; padding-left: 26px; }
  .tl li::before { left: 1px; } .tl .d { text-align: left; }
}

/* IPv6: prefix hierarchy */
.pfx { margin-top: 16px; display: grid; gap: 8px; }
.pfx-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.pfx-len { font: 500 18px/1 var(--mono); color: var(--ink); }
.pfx-bar { border-radius: 8px; padding: 12px 14px; color: var(--white); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; }
.pfx-bar .who { font-weight: 500; }
.pfx-bar .ex { font: 400 13px/1.4 var(--mono); opacity: .9; }
.pfx-row:nth-child(1) .pfx-bar { background: #034F8E; }
.pfx-row:nth-child(2) .pfx-bar { background: #0569BC; margin-left: 4%; }
.pfx-row:nth-child(3) .pfx-bar { background: var(--brand); margin-left: 8%; }
.pfx-row:nth-child(4) .pfx-bar { background: #3A9BEB; margin-left: 12%; }
.pfx-table-wrap { margin-top: 18px; overflow-x: auto; }
@media (max-width: 480px) { .pfx-row .pfx-bar { margin-left: 0 !important; } .pfx-row { grid-template-columns: 48px minmax(0,1fr); } }

/* NFV: packets per second chart */
.pps { margin-top: 16px; display: grid; gap: 12px; }
.pps-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.pps-lbl { font: 500 14px/1.3 var(--mono); color: var(--ink); text-align: right; }
.pps-track { position: relative; height: 34px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line-soft) calc(25% - 1px) 25%); }
.pps-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--brand); min-width: 3px; }
.pps-val { position: absolute; top: 50%; transform: translateY(-50%); font: 400 13px/1 var(--mono); color: var(--ink); white-space: nowrap; padding-left: 8px; }
.pps-axis { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
.pps-axis .ticks { position: relative; height: 16px; font: 400 12px/1 var(--mono); color: var(--text-muted); }
.pps-axis .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pps-in { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 400 13px/1 var(--mono); color: var(--white); white-space: nowrap; }
@media (max-width: 480px) { .pps-in, .pps-val { font-size: 11px; } .pps .ten { display: none; } }
.pps-axis .ticks span:first-child { transform: none; }
.pps-axis .ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 480px) { .pps-row, .pps-axis { grid-template-columns: 60px minmax(0,1fr); gap: 8px; } .pps-lbl { font-size: 12px; } }

/* ---------- root page ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pillars .pc:first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pc { border: 1px solid var(--line-soft); border-radius: var(--radius-card-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.pc .pk { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.pc .pk .n { color: var(--text-muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.pc.lb .pk { color: var(--accent-lb); }
.pc h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.pc h2 a { color: var(--ink); }
.pc p { margin: 0; color: var(--text-body); font-size: 16px; line-height: 1.55; }
.pc ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.pc li { font-size: 16px; line-height: 1.45; display: flex; gap: 10px; }
.pc li::before { content: "—"; color: var(--line); }
.pc li .soon-txt { color: var(--text-muted); }
.pc li .soon-txt small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.pc .all { margin-top: auto; padding-top: 6px; font-weight: 500; font-size: 16px; }
.pc .all::after { content: " →"; }
.pc.lb .all { color: var(--accent-lb); }
.root-sec { padding-block: 72px 0; }
.root-sec h2.sec { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; }
.root-sec .sub { margin-top: 12px; color: var(--text-body); max-width: 760px; }
.start { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .start { grid-template-columns: 1fr; } }
.gl-cats { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gl-cat:first-child { grid-column: span 2; }
@media (max-width: 860px) { .gl-cats { grid-template-columns: 1fr; } .gl-cat:first-child { grid-column: auto; } }
.gl-cat { background: var(--surface); border-radius: var(--radius-card); padding: 20px; }
.gl-cat .cap { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.gl-cat .chips { margin-top: 12px; }
.chips .chip-soon { font-size: 15px; padding: 7px 16px; border-radius: var(--radius-btn); border: 1px dashed var(--line); color: var(--text-muted); }
.tools { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool { border: 1px dashed var(--line); border-radius: var(--radius-card); padding: 18px; display: grid; gap: 6px; }
.tool .t { font-weight: 500; color: var(--ink); }
.tool .d { font-size: 14px; color: var(--text-body); line-height: 1.5; }
.tool .st { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #C2410C; font-weight: 500; }

/* ---------- header menu (as nfware.com) ---------- */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; width: 102px; height: 33px; }
.logo:hover { text-decoration: none; }
.nav .dd { position: relative; }
.nav .dd > button { font: inherit; color: var(--white); background: none; border: 0; padding: 8px 0; cursor: pointer; white-space: nowrap; }
.nav .dd > button::after { content: " ▾"; font-size: 10px; opacity: .8; }
.nav .dd.current > button { box-shadow: inset 0 -2px 0 var(--brand-bright); }
.nav .menu { position: absolute; top: 100%; left: -18px; min-width: 240px; padding: 10px 0; display: none;
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-card); box-shadow: 0 12px 32px rgba(2,0,27,.4); }
.nav .dd:hover .menu, .nav .dd:focus-within .menu { display: block; }
.nav .menu a { display: block; padding: 8px 18px; font-size: 15px; }
.nav .menu a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav .menu a[aria-current="page"] { color: var(--brand-bright); }
.mnav { display: none; margin-left: auto; }
.mnav > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary span { width: 28px; height: 18px; display: block; background:
  linear-gradient(var(--white) 0 0) top/100% 2px no-repeat, linear-gradient(var(--white) 0 0) center/100% 2px no-repeat,
  linear-gradient(var(--white) 0 0) bottom/100% 2px no-repeat; }
.mnav[open] > summary span { background: linear-gradient(45deg, transparent 46%, var(--white) 46% 54%, transparent 54%),
  linear-gradient(-45deg, transparent 46%, var(--white) 46% 54%, transparent 54%); }
.mnav .panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.18); padding: 12px var(--gutter) 28px; }
.mnav .panel .cap { margin-top: 18px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.mnav .panel a { display: block; color: var(--white); padding: 10px 0; font-size: 17px; }
.mnav .panel a[aria-current="page"] { color: var(--brand-bright); }
.mnav .panel .btn { display: inline-flex; margin-top: 20px; padding: 0 26px; }
@media (max-width: 1080px) { .nav, .header-cta { display: none; } .mnav { display: block; } }

/* ---------- small additions for production ---------- */
.soon-plain { color: var(--text-muted); }
.sib.is-soon { color: var(--text-muted); }
.sib.is-soon::after { content: "Soon"; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sib.is-soon:hover { outline: none; }
.nf-404 { padding-block: 64px 96px; }
.nf-404 .links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
