/* ── Inter (primary UI font — Linear-style) ────────────────── */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-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;
}

/* ── Hack (monospace — pills, eyebrows, code, terminals) ───── */
@font-face {
  font-family: 'Hack';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hack-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Hack';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hack-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Hack';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hack-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Hack';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hack-bolditalic.woff2') format('woff2');
}

/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/geist-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/geist-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/geist-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  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;
}
/* vietnamese */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/quicksand-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/quicksand-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/quicksand-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;
}

/* ──────────────────────────────────────────────────────────────
   NETPLEX.IO — marketing site design system
   Netplex midnight tokens (from the product styles.css) blended with
   a flat, modern, premium marketing layout. Dark-first. One warm
   orange accent. Geist for UI, Hack for data/eyebrows.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — Midnight */
  --surface-0: #0a0b0e;
  --surface-1: #101116;
  --surface-2: #16181f;
  --surface-3: #1c1f27;
  --surface-4: #262a33;
  --surface-canvas: #08090c;

  /* Borders */
  --border-soft:   #181a20;
  --border:        #262932;
  --border-strong: #343845;
  --border-bright: #464b59;

  /* Text */
  --text-1: #f1f2f5;
  --text-2: #c4c7cf;
  --text-3: #868a93;
  --text-4: #595d66;
  --text-dim: #3a3d45;

  /* Accent — warm orange (locked brand: #ff7a45). Everything derives from --accent
     + --accent-ink, so the accent picker only needs to set those two. */
  --accent: #ff7a45;
  --accent-ink: #1a0b04;
  --accent-line: color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-2: color-mix(in srgb, var(--accent) 82%, #ffffff);
  --accent-press: color-mix(in srgb, var(--accent) 84%, #000000);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-soft-strong: color-mix(in srgb, var(--accent) 22%, transparent);

  /* canvas / hud tokens (recoloured per theme) */
  --canvas-circuit-dot: rgba(255,255,255,0.06);
  --hud-bg: rgba(20,20,24,0.9);
  --traffic-idle: rgba(150,160,175,0.5);

  /* Status */
  --ok:   #41c178;   --ok-soft:   rgba(65,193,120,0.13);
  --warn: #e8b24a;   --warn-soft: rgba(232,178,74,0.13);
  --err:  #ee5a55;   --err-soft:  rgba(238,90,85,0.13);
  --info: #5fb7ff;   --info-soft: rgba(95,183,255,0.13);
  --muted: #6b6b72;

  /* Vendor / role hues (for topology snippets) */
  --v-cisco: #1ba0d7;   --v-juniper: #84b135;  --v-fortinet: #ee2e24;
  --v-arista: #f37029;  --v-linux: #ffd35b;     --v-generic: #94a3b8;
  --role-router:   #5b8cff;
  --role-switchL3: #36b88a;
  --role-switchL2: #84b135;
  --role-firewall: #ee5a55;
  --role-server:   #a78bfa;
  --role-host:     #9a9aa2;
  --role-ap:       #e8b24a;

  --font-ui: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", "Geist", system-ui, sans-serif;
  --font-mono: "Hack", ui-monospace, "SF Mono", monospace;

  --r-1: 4px; --r-2: 6px; --r-3: 9px; --r-4: 13px; --r-5: 18px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.45);
  --shadow-2: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.30);
  --shadow-pop: 0 24px 70px -18px rgba(0,0,0,0.7), 0 0 0 1px var(--border-strong);

  --ease-out:      cubic-bezier(.22,.61,.36,1);
  --ease-out-soft: cubic-bezier(.32,.72,0,1);
  --ease-spring:   cubic-bezier(.34,1.32,.64,1);

  --maxw: 1320px;
}

/* ── BETA RIBBON ───────────────────────────────────────── */
/* Wide enough that all 4 corners fall off-screen —        */
/* viewport edges hide them, only the diagonal shows.      */
.beta-ribbon {
  position: fixed;
  top: 18px;
  right: -148px;
  width: 350px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
  padding: 16px 0 15px;
  transform: rotate(45deg);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.1) inset;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }

/* ── SCROLL REVEAL — elements fade/rise in as they enter view.
   reveal.js adds [data-reveal] to a curated set, then .is-in once seen. ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px); /* default — rise from below */
  transition: opacity .75s var(--ease-out-soft), transform .8s var(--ease-out-soft), filter .8s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ── reveal variants — reveal.js maps each card type to one ── */
[data-reveal="up"]:not(.is-in)     { transform: translateY(24px); }
[data-reveal="down"]:not(.is-in)   { transform: translateY(-20px); }
[data-reveal="left"]:not(.is-in)   { transform: translateX(-28px); }
[data-reveal="right"]:not(.is-in)  { transform: translateX(28px); }
[data-reveal="zoom"]:not(.is-in)   { transform: scale(.9); }
[data-reveal="pop"]:not(.is-in)    { transform: scale(1.06); }
[data-reveal="flip"]:not(.is-in)   { transform: perspective(1200px) rotateX(30deg); transform-origin: top center; }
[data-reveal="blur"]:not(.is-in)   { transform: translateY(12px); filter: blur(10px); }
[data-reveal="skew"]:not(.is-in)   { transform: rotate(-3deg) translateY(20px) scale(.96); }
/* springy easing for the scale-based ones */
[data-reveal="zoom"], [data-reveal="pop"] { transition: opacity .6s var(--ease-out-soft), transform .7s var(--ease-spring); }

/* STAND UP — the card lies flat on the floor (hinged at its bottom
   edge) then rotates upright as it scrolls into view. Safe from
   scrollbars thanks to .content overflow:clip. */
.card-rise[data-reveal] {
  transform-origin: bottom center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: opacity 1.5s var(--ease-out-soft), transform 1.8s var(--ease-out-soft);
}
.card-rise[data-reveal]:not(.is-in) {
  opacity: 0;
  transform: perspective(1300px) rotateX(82deg);
}
.card-rise[data-reveal].is-in {
  opacity: 1;
  transform: perspective(1300px) rotateX(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .card-rise[data-reveal] { transform: none !important; }
}

/* ── 3D TILT CARD — Linear-style. Animates from flat (2D) into a
   perspective tilt as it scrolls into view; straightens + lifts on
   hover. The 3D end-state is the default so it still tilts without JS. ── */
.card3d {
  --card3d: perspective(1600px) rotateX(10deg) rotateY(-16deg) rotateZ(2deg);
  transform: var(--card3d);
  transform-style: preserve-3d;
  transition: transform 1.8s var(--ease-out-soft), box-shadow 1.8s var(--ease-out-soft);
  box-shadow:
    -34px 44px 70px -28px rgba(0,0,0,.65),
    -10px 14px 30px -14px rgba(0,0,0,.5),
    0 0 0 1px var(--border-strong);
  position: relative;
}
/* top sheen — light catching the tilted face */
.card3d::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255,255,255,.08), transparent 42%);
  pointer-events: none;
}
/* before reveal: flat, square-on 2D with a soft shadow */
.card3d[data-reveal]:not(.is-in) {
  opacity: 0;
  transform: perspective(1600px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(16px) scale(.985);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.5), 0 0 0 1px var(--border);
}
/* after reveal: settle into the 3D tilt — start a little later */
.card3d[data-reveal].is-in {
  opacity: 1;
  transform: var(--card3d);
  transition-delay: .5s;
}
.card3d:hover,
.card3d[data-reveal].is-in:hover {
  transition-delay: 0s;
  transform: perspective(1700px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-4px);
  box-shadow:
    0 50px 90px -30px rgba(0,0,0,.7),
    0 0 0 1px var(--border-bright);
}
@media (max-width: 960px) {
  .card3d { transform: none !important; box-shadow: var(--shadow-pop); }
}
@media (prefers-reduced-motion: reduce) {
  .card3d { transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
body {
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  /* Inter feature set tuned to match Linear (single-story a, etc.) */
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss03";
  /* clip (not hidden) — hidden forces overflow-y to auto, which makes
     body a second scroll container and spawns an extra scrollbar. */
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
img { max-width: 100%; display: block; }

/* Grid backdrop with radial mask */
.gridbg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 58% at 50% -4%, #000 32%, transparent 76%);
}
/* overflow:clip contains transform-based reveal/tilt overflow without
   adding scrollbars; unlike hidden it doesn't break the sticky nav. */
.content { position: relative; z-index: 1; overflow: clip; }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface-0) 84%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 5px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--font-display); }
.brand .wm { font-family: var(--font-display); font-weight: 600; color: var(--text-1); letter-spacing: -0.02em; }
.brand .mark { display: inline-grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.brand .mark svg { width: 24px; height: 24px; display: block; }
.brand .ver { font-family: var(--font-mono); font-size: 10px; color: var(--text-4); font-weight: 500;
  border: 1px solid var(--border); padding: 2px 6px; border-radius: 999px; margin-left: 6px; letter-spacing: 0; }
.brand .dotmark {
  display: inline-block; width: 0.16em; height: 0.16em; border-radius: 50%;
  background: var(--accent); margin-left: 0.05em; vertical-align: baseline;
  overflow: hidden; color: transparent; text-indent: -999px;
}
.navlinks { display: flex; gap: 20px; }
.navlinks a { font-size: 14px; color: var(--text-3); transition: color .15s; white-space: nowrap; }
.navlinks a:hover, .navlinks a.active { color: var(--text-1); }
.navactions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 34px; height: 34px; border-radius: var(--r-2); align-items: center; justify-content: center; color: var(--text-2); border: 1px solid var(--border); background: var(--surface-2); transition: all .15s; }
.menu-toggle:hover { color: var(--text-1); border-color: var(--border-bright); }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent; border-radius: var(--r-2); padding: 10px 16px;
  transition: color .16s var(--ease-out), border-color .16s, transform .12s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background-color: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); background-color: var(--surface-2); }
.btn-outline { background-color: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--border-bright); color: var(--text-1); transform: translateY(-1px); }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: var(--r-3); }

/* ── PRIMITIVES ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex-shrink: 0; }
.pill.accent { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.pill.accent .dot { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.pill.solid { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.pill.solid .dot { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.pill.ok { color: #fff; background: var(--ok); border-color: var(--ok); font-weight: 600; }
.pill.ok .dot { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.chip {
  font-size: 12.5px; color: var(--text-2); background: var(--surface-3); white-space: nowrap;
  border: 1px solid var(--border-bright); border-radius: 999px; padding: 6px 13px;
  font-weight: 500;
}
.kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
  background: var(--surface-3); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 2px 6px;
}

/* ── SECTIONS ──────────────────────────────────────────── */
section { padding: 92px 0; position: relative; }
.sec-eyebrow { display: block; margin-bottom: 16px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
h2.sec { font-size: 40px; line-height: 1.08; margin-bottom: 14px; text-wrap: balance; }
h2.sec .accent { color: var(--accent); }
.sec-sub { font-size: 17.5px; color: var(--text-3); max-width: 620px; margin-bottom: 8px; line-height: 1.55; }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-4); padding: 26px;
}
.card-ic {
  width: 44px; height: 44px; border-radius: var(--r-3); display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px;
}
.card-ic svg { width: 22px; height: 22px; color: var(--accent); }

/* ── WINDOW CHROME (product frames) ────────────────────── */
.win {
  background: var(--surface-1); border: 1px solid var(--border-strong);
  border-radius: var(--r-4); overflow: hidden; box-shadow: var(--shadow-pop);
}
.win-bar {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: var(--surface-1); border-bottom: 1px solid var(--border-soft);
}
.win-bar .lights { display: flex; gap: 7px; }
.win-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-bar .lights i:nth-child(1) { background: #FF5F57; }
.win-bar .lights i:nth-child(2) { background: #FEBC2E; }
.win-bar .lights i:nth-child(3) { background: #28C840; }
.win-bar .title { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-4); margin-left: 6px; }
.win-bar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ── FOOTER ────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-soft); padding: 60px 0 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr; gap: 20px; margin-bottom: 44px; }
.foot-brand p { font-size: 14px; color: var(--text-3); max-width: 260px; margin-top: 14px; line-height: 1.55; }
.foot-social { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.foot-social a { color: var(--text-3); display: inline-flex; transition: color .15s, transform .15s; }
.foot-social a:hover { color: var(--accent); transform: translateY(-2px); }
.foot-social svg { width: 19px; height: 19px; fill: currentColor; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-bottom: 15px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-3); margin-bottom: 11px; transition: color .15s; }
.foot-col a:hover { color: var(--text-1); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-4); flex-wrap: wrap;
}

/* ── TOPOLOGY SNIPPET (shared) — matches the product node card ── */
.node {
  position: absolute; width: 108px; display: flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-2); padding: 5px 7px; box-shadow: var(--shadow-1); z-index: 2;
}
.node.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-2); }
.node .badge { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.node .badge svg { width: 16px; height: 16px; }
.node .meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.node .nm { font-size: 10.5px; font-weight: 600; color: var(--text-1); line-height: 1.1; white-space: nowrap; }
.node .ip { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-4); line-height: 1; }
.node .st { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px var(--surface-2); }
.iface { position: absolute; font-family: var(--font-mono); font-size: 8px; color: var(--text-4);
  white-space: nowrap; z-index: 1; letter-spacing: 0.02em; }

@keyframes dash-fwd { to { stroke-dashoffset: -24; } }
.flow { stroke-dasharray: 5 7; animation: dash-fwd 1.1s linear infinite; }

@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
  .navlinks { display: none; }
  .menu-toggle { display: inline-flex; }
  h2.sec { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .beta-ribbon { width: 220px; font-size: 11px; padding: 10px 0 9px; top: 10px; right: -96px; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 20px; }
  h2.sec { font-size: 27px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { padding-top: 0; }
}
@media (max-width: 480px) {
  .navactions .btn-ghost { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   THEMES — full token sets ported from the product. :root = Midnight.
   Switched via [data-theme="…"] on <html>. Accent is independent
   (set on <html> by the Appearance picker) so it survives theme swaps.
   ────────────────────────────────────────────────────────────── */
[data-theme="graphite"] {
  /* matched 1:1 to the tool (netplex/frontend/src/studio/studio.css) */
  --surface-0: #121214;  --surface-1: #17171a;  --surface-2: #1c1c20;
  --surface-3: #222227;  --surface-4: #2a2a30;  --surface-canvas: #101012;
  --border-soft: rgba(255,255,255,0.05); --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.13); --border-bright: rgba(255,255,255,0.22);
  --text-1: #ebebef; --text-2: #b4b8c2; --text-3: #787e8c; --text-4: #4c525e; --text-dim: #34343b;
  --canvas-circuit-dot: rgba(255,255,255,0.05); --hud-bg: rgba(18,18,20,0.88);
}
[data-theme="obsidian"] {
  --surface-0: #050507;  --surface-1: #0c0c0f;  --surface-2: #131316;
  --surface-3: #1a1a1f;  --surface-4: #232329;  --surface-canvas: #030304;
  --border-soft: #161619; --border: #222227; --border-strong: #313138; --border-bright: #44444d;
  --text-1: #f6f6f8; --text-2: #c9c9d0; --text-3: #888890; --text-4: #5a5a63;
  --canvas-circuit-dot: rgba(255,255,255,0.05); --hud-bg: rgba(12,12,15,0.92);
}
[data-theme="cloud"] {
  --surface-0: #f5f7fa;  --surface-1: #ffffff;  --surface-2: #eef1f6;
  --surface-3: #e5e9f0;  --surface-4: #d8dde8;  --surface-canvas: #eef1f6;
  --border-soft: #eaedf3; --border: #dde2ea; --border-strong: #c8cfdb; --border-bright: #abb4c4;
  --text-1: #141821; --text-2: #3a414e; --text-3: #69707e; --text-4: #969cab; --text-dim: #bcc2cd;
  --muted: #a3a9b6;
  --ok: #2fa45f; --ok-soft: rgba(47,164,95,0.13);
  --warn: #c4861f; --warn-soft: rgba(196,134,31,0.14);
  --err: #d6433a; --err-soft: rgba(214,67,58,0.12);
  --info: #2b7fd4; --info-soft: rgba(43,127,212,0.12);
  --shadow-1: 0 1px 2px rgba(20,28,45,0.07);
  --shadow-2: 0 1px 2px rgba(20,28,45,0.05), 0 8px 24px rgba(20,28,45,0.08);
  --shadow-pop: 0 18px 44px -16px rgba(20,28,45,0.26), 0 0 0 1px var(--border-strong);
  --canvas-circuit-dot: rgba(30,42,66,0.08); --hud-bg: rgba(255,255,255,0.92);
  --traffic-idle: rgba(90,96,110,0.4);
}
[data-theme="paper"] {
  --surface-0: #f6f5f1;  --surface-1: #ffffff;  --surface-2: #efeee8;
  --surface-3: #e7e6df;  --surface-4: #dbdbd2;  --surface-canvas: #efeee8;
  --border-soft: #ebeae3; --border: #e0ded6; --border-strong: #ccccc2; --border-bright: #afafa4;
  --text-1: #1b1b1e; --text-2: #41424a; --text-3: #70717a; --text-4: #9a9aa0; --text-dim: #c2c2c8;
  --muted: #a1a1a8;
  --ok: #2fa45f; --ok-soft: rgba(47,164,95,0.13);
  --warn: #c4861f; --warn-soft: rgba(196,134,31,0.14);
  --err: #d6433a; --err-soft: rgba(214,67,58,0.12);
  --info: #2b7fd4; --info-soft: rgba(43,127,212,0.12);
  --shadow-1: 0 1px 2px rgba(24,24,32,0.07);
  --shadow-2: 0 1px 2px rgba(24,24,32,0.05), 0 8px 24px rgba(24,24,32,0.08);
  --shadow-pop: 0 18px 44px -16px rgba(24,24,32,0.26), 0 0 0 1px var(--border-strong);
  --canvas-circuit-dot: rgba(30,30,38,0.08); --hud-bg: rgba(255,255,255,0.92);
  --traffic-idle: rgba(96,96,106,0.4);
}
[data-theme="sand"] {
  --surface-0: #eae8e0;  --surface-1: #f5f3ec;  --surface-2: #e1dfd4;
  --surface-3: #d7d4c7;  --surface-4: #cac7b8;  --surface-canvas: #e1dfd4;
  --border-soft: #dddbd0; --border: #d0cdbf; --border-strong: #bbb8a8; --border-bright: #9c998a;
  --text-1: #1f1f1e; --text-2: #44454a; --text-3: #73746e; --text-4: #9b9b91; --text-dim: #c0bfb4;
  --muted: #a3a399;
  --ok: #2f9a59; --ok-soft: rgba(47,154,89,0.15);
  --warn: #bc841c; --warn-soft: rgba(188,132,28,0.15);
  --err: #cf4337; --err-soft: rgba(207,67,55,0.13);
  --info: #2877c6; --info-soft: rgba(40,119,198,0.12);
  --shadow-1: 0 1px 2px rgba(40,38,30,0.09);
  --shadow-2: 0 1px 2px rgba(40,38,30,0.07), 0 8px 24px rgba(40,38,30,0.1);
  --shadow-pop: 0 18px 44px -16px rgba(40,38,30,0.3), 0 0 0 1px var(--border-strong);
  --canvas-circuit-dot: rgba(48,46,38,0.09); --hud-bg: rgba(245,243,236,0.92);
  --traffic-idle: rgba(110,108,96,0.42);
}
/* light-theme grid backdrop wants dark hairlines */
[data-theme="cloud"] .gridbg, [data-theme="paper"] .gridbg, [data-theme="sand"] .gridbg {
  background-image:
    linear-gradient(rgba(30,34,46,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,34,46,0.05) 1px, transparent 1px);
}
[data-theme="cloud"] .topo::before, [data-theme="paper"] .topo::before, [data-theme="sand"] .topo::before {
  background-image:
    linear-gradient(rgba(30,34,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,34,46,0.04) 1px, transparent 1px);
}
/* light-theme info role for nodes/links stays readable */
[data-theme="cloud"], [data-theme="paper"], [data-theme="sand"] { --info: #2b7fd4; }

html { transition: background-color .3s var(--ease-out); }

/* ── ACCENTS — picker sets [data-accent] on <html>; derived tokens follow ── */
[data-accent="orange"]  { --accent: #ff7a45; --accent-ink: #1a0b04; }
[data-accent="blue"]    { --accent: #3d8bff; --accent-ink: #ffffff; }
[data-accent="green"]   { --accent: #2fb574; --accent-ink: #04140d; }
[data-accent="magenta"] { --accent: #e0529c; --accent-ink: #ffffff; }
[data-accent="amber"]   { --accent: #e8b24a; --accent-ink: #231803; }
[data-accent="teal"]    { --accent: #1fb8b0; --accent-ink: #04211f; }
[data-accent="indigo"]  { --accent: #6c6cf2; --accent-ink: #ffffff; }
[data-accent="rose"]    { --accent: #ff7a9c; --accent-ink: #2a0810; }

/* ──────────────────────────────────────────────────────────────
   APPEARANCE PANEL — compact Theme + Accent picker (mirrors the app)
   ────────────────────────────────────────────────────────────── */
.ap-trigger { width: 34px; height: 34px; border-radius: var(--r-2); display: grid; place-items: center;
  color: var(--text-3); border: 1px solid var(--border); background: var(--surface-2); transition: all .15s; }
.ap-trigger:hover { color: var(--accent); background: var(--surface-3); border-color: var(--border-bright); }
.ap-trigger svg { width: 18px; height: 18px; }

.ap-scrim { position: fixed; inset: 0; z-index: 200; background: transparent; display: none; }
.ap-scrim.open { display: block; }
.ap-panel {
  position: fixed; top: 64px; right: 18px; z-index: 201; width: 236px;
  background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--r-4);
  box-shadow: var(--shadow-pop); padding: 14px; display: none;
  transform-origin: top right;
}
.ap-panel.open { display: block; animation: ap-in .18s var(--ease-out); }
@keyframes ap-in { from { opacity: 0; transform: scale(0.96) translateY(-6px); } to { opacity: 1; transform: none; } }
.ap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ap-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin: 4px 0 8px; }
.ap-divider { height: 1px; background: var(--border-soft); margin: 14px 0 11px; }
.ap-head h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ap-head .x { color: var(--text-4); width: 26px; height: 26px; border-radius: var(--r-1); display: grid; place-items: center; }
.ap-head .x:hover { color: var(--text-1); background: var(--surface-2); }
.ap-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin: 4px 0 10px; }
.ap-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap-theme { cursor: pointer; }
.ap-sw { aspect-ratio: 16/7; border-radius: var(--r-1); border: 1px solid var(--border); position: relative; overflow: hidden; display: grid; place-items: center; transition: box-shadow .15s; }
.ap-theme.on .ap-sw { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.ap-sw .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ap-tname { display: block; text-align: center; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.ap-theme.on .ap-tname { color: var(--text-1); font-weight: 500; }
.ap-divider { height: 1px; background: var(--border-soft); margin: 18px 0 14px; }
.ap-accents { display: flex; gap: 9px; flex-wrap: wrap; }
.ap-acc { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; position: relative; border: 2px solid transparent; transition: transform .12s; }
.ap-acc:hover { transform: scale(1.1); }
.ap-acc.on { box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 4px currentColor; }
.ap-acc.on::after { content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.ap-note { font-size: 11px; color: var(--text-4); margin-top: 11px; }
.ap-reset { margin-top: 16px; width: 100%; justify-content: center; }
@media (max-width: 480px) { .ap-panel { right: 10px; left: 10px; width: auto; } }

/* ── Donate strip ── */
.donate-strip { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border-soft); margin-top: 28px; flex-wrap: wrap; }
.donate-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: opacity .15s, transform .15s; flex-shrink: 0; }
.donate-btn:hover { opacity: .88; transform: translateY(-1px); }
.donate-sub { font-size: 12.5px; color: var(--text-4); line-height: 1.5; }
@media (max-width: 480px) { .ap-panel { right: 10px; left: 10px; width: auto; } }