/* =====================================================================
   SentiGate - site styles
   Layout: left-aligned editorial grid on a 1240px container, mono
   "instrument" labels, one instrument panel per page as the focal object.
   Light theme is the default; dark theme only when the visitor picks it.
   Brand motif: the interlocking gate leaves and the S-shaped gap.
   ===================================================================== */

:root {
  /* Color: porcelain day watch (default) */
  --bg: #F3F5F9;
  --bg-2: #E9EDF4;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --ink: #0C1122;
  --ink-2: #353C55;
  --muted: #5F6780;
  --line: #D9DEE8;
  --line-2: #C3CADA;
  --lamp: #FFC53D;
  --lamp-strong: #F5B21A;
  --lamp-ink: #7A4E00;
  --lamp-soft: #FFF1C7;
  --threat: #E5484D;
  --threat-ink: #B4232A;
  --threat-soft: #FDE7E8;
  --clean: #0E9384;
  --clean-ink: #0B6E63;
  --clean-soft: #DDF5F1;
  --info: #3E63DD;
  --info-ink: #2F4DB8;
  --info-soft: #E3EAFD;
  --on-lamp: #0C1122;
  /* instrument panels and infographics follow the theme */
  --panel: #FFFFFF;
  --panel-2: #F4F6FA;
  --panel-line: #DDE2EB;
  --panel-ink: #0C1122;
  --panel-ink-2: #353C55;
  --panel-muted: #5F6780;
  /* deep accent blocks (calls to action, featured plan): graphite, same family as the dark theme */
  --deep: #1C1C1C;
  --deep-2: #262626;
  --deep-line: #3A3A3A;
  --deep-ink: #EDEDED;
  --deep-ink-2: #C4C4C4;
  --deep-muted: #A0A0A0;
  --accent-tile: #FFF6DA;
  --accent-tile-line: #F1DD9F;
  --inv-bg: #1C1C1C;
  --inv-ink: #EDEDED;
  --inv-muted: #A8A8A8;
  --inv-line: #3A3A3A;
  --band-btn-bg: #FFC53D;
  --band-btn-ink: #0C1122;
  --logo-a: #0C1122;
  --logo-b: #FFC53D;
  /* canvas palettes (rgb triplets where alpha varies) */
  --sim-bad: 229, 72, 77;
  --sim-good: #0C1122;
  --sim-lane: rgba(12, 17, 34, .12);
  --sim-gate: 236, 160, 0;
  --sim-spark: 230, 140, 0;
  --map-land: rgba(12, 17, 34, .16);
  --map-gate: 230, 150, 0;
  --map-gate-core: #E09600;
  --map-ring: #FFFFFF;
  --map-label: rgba(12, 17, 34, .72);
  --map-label-hot: #6B4400;
  --map-attack: 229, 72, 77;
  --dot: rgba(12, 17, 34, .11);
  --glow: rgba(255, 197, 61, .38);
  --header-bg: rgba(243, 245, 249, .8);
  --shadow-sm: 0 1px 2px rgba(12, 17, 34, .06);
  --shadow: 0 1px 2px rgba(12, 17, 34, .05), 0 12px 32px -12px rgba(12, 17, 34, .16);
  --shadow-lg: 0 2px 4px rgba(12, 17, 34, .05), 0 30px 60px -24px rgba(12, 17, 34, .24);

  /* Type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-h1: clamp(2.55rem, 1.2rem + 5.1vw, 5.6rem);
  --fs-h2: clamp(1.95rem, 1.25rem + 2.5vw, 3.45rem);
  --fs-h3: clamp(1.2rem, 1.06rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.06rem, .99rem + .34vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: .92rem;
  --fs-mono: .7rem;

  /* Shape and motion */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --container: 1240px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 66px;
  --section-y: clamp(52px, 5.4vw + 22px, 124px);

  color-scheme: light;
}

/* Night watch: only when the visitor switches it on */
:root[data-theme="dark"] {
  /* graphite night watch: neutral grays, no blue cast */
  --bg: #1A1A1A;
  --bg-2: #1F1F1F;
  --surface: #222222;
  --surface-2: #292929;
  --ink: #EDEDED;
  --ink-2: #C4C4C4;
  --muted: #9D9D9D;
  --line: #303030;
  --line-2: #414141;
  --lamp-ink: #FFC53D;
  --lamp-soft: rgba(255, 197, 61, .12);
  --threat: #FF6B6B;
  --threat-ink: #FF8A8A;
  --threat-soft: rgba(255, 107, 107, .13);
  --clean: #34D3BD;
  --clean-ink: #5FE0CC;
  --clean-soft: rgba(52, 211, 189, .12);
  --info: #7C9CFF;
  --info-ink: #9DB4FF;
  --info-soft: rgba(124, 156, 255, .14);
  --panel: #202020;
  --panel-2: #292929;
  --panel-line: #383838;
  --panel-ink: #ECECEC;
  --panel-ink-2: #C4C4C4;
  --panel-muted: #A0A0A0;
  --deep: #262626;
  --deep-2: #2E2E2E;
  --deep-line: #424242;
  --deep-ink: #EDEDED;
  --deep-ink-2: #C4C4C4;
  --deep-muted: #A0A0A0;
  --accent-tile: #2A2619;
  --accent-tile-line: #4D4324;
  --inv-bg: #FFC53D;
  --inv-ink: #1A1A1A;
  --inv-muted: #4A3A12;
  --inv-line: rgba(26, 26, 26, .2);
  --band-btn-bg: #1A1A1A;
  --band-btn-ink: #FFC53D;
  --logo-a: #EDEDED;
  --logo-b: #FFC53D;
  --sim-bad: 255, 107, 107;
  --sim-good: #ECECEC;
  --sim-lane: rgba(236, 236, 236, .075);
  --sim-gate: 255, 197, 61;
  --sim-spark: 255, 197, 61;
  --map-land: rgba(236, 236, 236, .17);
  --map-gate: 255, 197, 61;
  --map-gate-core: #FFC53D;
  --map-ring: #202020;
  --map-label: rgba(236, 236, 236, .75);
  --map-label-hot: #FFE3A0;
  --map-attack: 255, 107, 107;
  --dot: rgba(237, 237, 237, .08);
  --glow: rgba(255, 197, 61, .3);
  --header-bg: rgba(26, 26, 26, .78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 36px -14px rgba(0, 0, 0, .55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 34px 70px -26px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
::selection { background: var(--lamp); color: var(--on-lamp); }
:focus-visible { outline: 2px solid var(--lamp-strong); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lamp); color: var(--on-lamp); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter-l) + var(--gutter-r));
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Type ---------- */
.h1 { font-size: var(--fs-h1); line-height: .97; letter-spacing: -.03em; font-weight: 700; }
.h2 { font-size: var(--fs-h2); line-height: 1.03; letter-spacing: -.026em; font-weight: 670; }
.h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -.018em; font-weight: 640; }
.h4 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 640; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.hl { color: var(--lamp-ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 14px; height: 6px; border-radius: var(--r-pill);
  background: var(--lamp); box-shadow: 0 0 0 3px var(--lamp-soft);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.stack > * + * { margin-top: var(--stack, 18px); }
.mark-hl { background: linear-gradient(transparent 62%, var(--lamp-soft) 62%); padding: 0 .08em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-family: var(--font-body); font-size: .98rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --btn-bg: var(--lamp); --btn-ink: var(--on-lamp); --btn-line: var(--lamp); box-shadow: 0 0 0 0 var(--glow); }
.btn--primary:hover { --btn-bg: var(--lamp-strong); --btn-line: var(--lamp-strong); box-shadow: 0 8px 28px -8px var(--glow); }
.btn--ghost:hover { --btn-line: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-ink: var(--bg); --btn-line: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; gap: 8px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; }
.btn .arr { position: relative; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn .arr svg { position: absolute; inset: 0; transition: transform .4s var(--ease); }
.btn .arr svg + svg { transform: translateX(-120%); }
.btn:hover .arr svg:first-child { transform: translateX(120%); }
.btn:hover .arr svg + svg { transform: translateX(0); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 12px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: var(--bg-2); color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--allow { background: var(--clean-soft); color: var(--clean-ink); }
.chip--block { background: var(--threat-soft); color: var(--threat-ink); }
.chip--challenge { background: var(--lamp-soft); color: var(--lamp-ink); }
.chip--limit { background: var(--info-soft); color: var(--info-ink); }
.chip--plain::before { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 34px; height: 34px; overflow: visible; }
.brand-word { height: 21px; width: auto; fill: currentColor; }
.bm-a { fill: var(--logo-a); transition: fill .3s, transform .55s var(--ease); }
.bm-b { fill: var(--logo-b); transition: fill .3s, transform .55s var(--ease); }
.brand:hover .bm-a, .brand:focus-visible .bm-a { transform: translate(-1.8px, -1.8px); }
.brand:hover .bm-b, .brand:focus-visible .bm-b { transform: translate(1.8px, 1.8px); }
.anim .site-header .brand-mark .bm-a { animation: lockA 1s .15s var(--ease) backwards; }
.anim .site-header .brand-mark .bm-b { animation: lockB 1s .15s var(--ease) backwards; }
@keyframes lockA { from { transform: translate(-8px, -8px); } }
@keyframes lockB { from { transform: translate(8px, 8px); } }

.nav { flex: 1; min-width: 0; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--ink); background: var(--bg-2); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lamp); margin-left: 2px; }
.nav-link .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav-item { position: relative; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; width: min(620px, 80vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: 20% 0;
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
.mega-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: background-color .2s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item .mi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lamp-soft); color: var(--lamp-ink); }
.mega-item .mi-icon svg { width: 22px; height: 22px; }
.mega-item strong { display: block; font-weight: 600; font-size: .98rem; letter-spacing: -.01em; color: var(--ink); }
.mega-item > span:last-child { margin-top: 0; }
.mega-item span { display: block; font-size: .86rem; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 14px 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.mega-foot a { font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.mega-foot a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .25s var(--ease), background-color .2s;
}
.icon-btn:hover { border-color: var(--line-2); transform: rotate(-12deg); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.attack-btn { gap: 9px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--threat); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--threat); opacity: 0; animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 22px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 18.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 18.5px; transform: rotate(-45deg); }
.menu-toggle:hover { transform: none; }

.mobile-nav {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 49;
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  animation: menuIn .45s var(--ease);
}
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mobile-nav .mn-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.mobile-nav .mn-label { margin-bottom: 8px; }
.mobile-nav a.mn-big svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.mobile-nav a.mn-big { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-family: var(--font-display); font-size: 1.55rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.mobile-nav a.mn-product { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px 0; text-decoration: none; color: var(--ink); }
.mobile-nav a.mn-product .mi-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lamp-soft); color: var(--lamp-ink); }
.mobile-nav a.mn-product .mi-icon svg { width: 20px; height: 20px; }
.mobile-nav a.mn-product strong { display: block; font-weight: 600; color: var(--ink); }
.mobile-nav a.mn-product span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.mobile-nav .mn-actions { display: grid; gap: 10px; padding-top: 18px; }
.mobile-nav .mn-actions .btn { width: 100%; }
.mn-theme { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; }
.switch { position: relative; width: 52px; height: 30px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease), background-color .3s; }
:root[data-theme="dark"] .switch::after { transform: translateX(22px); background: var(--lamp); }
body.menu-open { overflow: hidden; }

@media (max-width: 1140px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header-inner { gap: 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { height: 18px; }
  .header-actions .btn--primary { display: none; }
  .attack-btn .attack-label { display: none; }
  .attack-btn { width: 40px; padding: 0; min-height: 40px; }
  .header-actions { gap: 6px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(30px, 3.4vw, 56px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lead { justify-self: start; }
.section-head--stack { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* dotted backdrop */
.dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-top: clamp(26px, 4vw, 64px); padding-bottom: clamp(36px, 4vw, 72px); overflow: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.announce:hover { border-color: var(--line-2); }
.announce svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.announce .tag { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; background: var(--ink); color: var(--bg); padding: 4px 8px; border-radius: var(--r-pill); }
.hero-title { max-width: 11ch; }
.gate-word { position: relative; display: inline-block; white-space: nowrap; }
.gate-word .gw-text { display: inline-block; }
.gate-word .gw-bar { position: absolute; top: .1em; bottom: .06em; left: 0; width: .09em; border-radius: 2px; background: var(--lamp); box-shadow: 0 0 18px 2px var(--glow); opacity: 0; pointer-events: none; }
.anim .gate-word .gw-text { animation: gwReveal 1.25s .35s var(--ease-in-out) both; }
.anim .gate-word .gw-bar { animation: gwBar 1.25s .35s var(--ease-in-out) both; }
@keyframes gwReveal { from { clip-path: inset(-10% 100% -20% 0); } to { clip-path: inset(-10% 0 -20% 0); } }
@keyframes gwBar { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hero-lead { max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 64px); border-top: 1px solid var(--line); }
.stat { padding: 18px 18px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .5em; letter-spacing: -.01em; margin-left: 3px; color: var(--muted); font-weight: 600; }
.stat-label { font-size: .88rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { max-width: 13ch; }
}
@media (max-width: 640px) {
  .hero-copy { gap: 16px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .stat { padding: 14px 12px 12px 0; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- Instrument panel (shared) ---------- */
.panel {
  position: relative; border-radius: var(--r-lg); background: var(--panel); color: var(--panel-ink);
  border: 1px solid var(--panel-line); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate;
}
.panel .mono, .panel .muted { color: var(--panel-muted); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--panel-line); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); }
.panel-bar .lights { display: flex; gap: 6px; }
.panel-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-line); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--panel-ink); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--threat); box-shadow: 0 0 0 0 rgba(255, 107, 107, .6); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); } }

/* Gate simulation */
.gate-panel { aspect-ratio: 1.12 / 1; min-height: 340px; display: flex; flex-direction: column; }
.gate-stage { position: relative; flex: 1; min-height: 0; cursor: crosshair; touch-action: pan-y; }
.gate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-cols { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--panel-muted); }
.gate-cols span { position: absolute; top: 12px; white-space: nowrap; }
.gate-cols span:nth-child(1) { left: 16px; }
.gate-cols span:nth-child(2) { left: calc(var(--gate-x, 56%) + 22px); color: var(--lamp-ink); }
.gate-cols span:nth-child(3) { right: 16px; }
.gate-hint { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); pointer-events: none; transition: opacity .4s; }
.gate-origin { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.gate-origin .srv { width: 34px; height: 44px; border-radius: 7px; border: 1.5px solid color-mix(in srgb, var(--panel-muted) 70%, transparent); display: grid; align-content: center; gap: 5px; padding: 0 6px; background: var(--panel); }
.gate-origin .srv i { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--panel-muted) 50%, transparent); }
.gate-origin .srv i:first-child { background: var(--clean); width: 60%; }
.gate-origin b { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; font-weight: 500; color: var(--panel-muted); text-transform: uppercase; }
.gate-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--panel-line); background: var(--panel-2); }
.hud-metric { min-width: 0; }
.hud-metric .mono { display: block; font-size: .56rem; }
.hud-metric b { display: block; font-family: var(--font-display); font-size: 1.22rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.25; }
.hud-metric.in b { color: var(--threat-ink); }
.hud-metric.out b { color: var(--clean-ink); }
.flood-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--lamp-strong); background: var(--lamp-soft); color: var(--lamp-ink);
  font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .2s var(--ease);
}
.flood-btn:hover { background: var(--lamp); color: var(--on-lamp); transform: translateY(-1px); }
.flood-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.flood-btn svg { width: 15px; height: 15px; }
@media (max-width: 980px) { .gate-panel { aspect-ratio: auto; height: 420px; } }
@media (max-width: 520px) { .gate-cols span:nth-child(3) { display: none; } }
@media (max-width: 640px) {
  .gate-panel { height: 360px; min-height: 0; border-radius: var(--r-md); }
  .gate-hud { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 12px; gap: 8px; }
  .gate-hud .flood-btn { grid-column: 1 / -1; justify-content: center; }
  .hud-metric b { font-size: 1.02rem; }
  .gate-origin { right: 8px; }
  .gate-origin .srv { width: 26px; height: 34px; }
}

/* ---------- Vector gate marquee ---------- */
.vector-gate { position: relative; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; height: 76px; }
.vg-layer { position: absolute; inset: 0; display: flex; align-items: center; }
.vg-layer--live { clip-path: inset(0 50% 0 0); }
.vg-layer--dropped { clip-path: inset(0 0 0 50%); }
.vg-track { display: flex; flex: none; gap: 0; animation: vgMove 46s linear infinite; will-change: transform; }
.vg-item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .9vw, 1.75rem); font-weight: 620; letter-spacing: -.02em; white-space: nowrap; }
.vg-item::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: currentColor; opacity: .35; }
.vg-layer--live .vg-item { color: var(--threat-ink); }
.vg-layer--dropped .vg-item { color: var(--muted); opacity: .55; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--ink-2); }
.vg-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--lamp); box-shadow: 0 0 22px 4px var(--glow); z-index: 2; }
.vg-line::before, .vg-line::after { content: ""; position: absolute; left: 50%; width: 15px; height: 6px; margin-left: -7.5px; border-radius: var(--r-pill); background: var(--lamp); }
.vg-line::before { top: 8px; }
.vg-line::after { bottom: 8px; }
.vg-label { position: absolute; top: 50%; left: calc(50% + 12px); transform: translateY(-50%); z-index: 3; }
@keyframes vgMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .vector-gate { height: 60px; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.product-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
[data-glow]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--lamp-soft), transparent 60%);
}
[data-glow]:hover::after { opacity: 1; }
.pc-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-title { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 680; }
.pc-desc { color: var(--ink-2); max-width: 52ch; }
.pc-visual { border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--panel-line); color: var(--panel-ink); padding: 14px; min-height: 196px; overflow: hidden; position: relative; }
.pc-features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.pc-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.pc-features svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--lamp-ink); }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pc-features { grid-template-columns: minmax(0, 1fr); } }

/* mini request log in product card */
.mini-log { display: grid; gap: 7px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .02em; }
.mini-log .row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--panel-line); animation: logIn .6s var(--ease) both; }
.mini-log .row .m { color: var(--panel-muted); }
.mini-log .row .p { color: var(--panel-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-log .chip { height: 20px; font-size: .55rem; padding: 0 8px; }
@keyframes logIn { from { transform: translateY(8px); } to { transform: none; } }

/* mini route diagram */
.mini-route { width: 100%; height: 196px; }
.mini-route text { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; fill: var(--panel-muted); text-transform: uppercase; }
.mini-route .flow { stroke-dasharray: 3 7; animation: dash 1.2s linear infinite; }
.mini-route .flow--bad { stroke: var(--threat); }
.mini-route .flow--good { stroke: var(--clean); }
.mini-route .mr-src { fill: var(--panel-muted); }
.mini-route .mr-net { stroke: var(--clean); }
.mini-route .mr-strong { fill: var(--panel-ink); }
.mini-route .mr-clean { fill: var(--clean-ink); }
svg .bm-a { fill: var(--logo-a); }
svg .bm-b { fill: var(--logo-b); }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps-track { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.steps-track::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 14px 3px var(--glow); animation: travel 6s var(--ease-in-out) infinite; }
@keyframes travel { 0% { left: 0; } 45%, 55% { left: calc(50% - 5px); } 100% { left: calc(100% - 10px); } }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-right: 12px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--ink); position: relative; z-index: 1; }
.step-num svg { width: 22px; height: 22px; }
.step p { color: var(--ink-2); }
.step .small { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps-track { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .steps-track::after { left: -4px; animation-name: travelV; }
  @keyframes travelV { 0% { top: 0; } 45%, 55% { top: calc(50% - 5px); } 100% { top: calc(100% - 10px); } }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; }
  .step > :not(.step-num) { grid-column: 2; }
  .step-num { grid-row: span 3; }
}

.hq-tag { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; background: var(--lamp); color: var(--on-lamp); margin-left: 8px; vertical-align: 2px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; min-height: 220px; }
.tile--wide { grid-column: span 4; }
.tile--half { grid-column: span 3; }
.tile p { color: var(--ink-2); font-size: .98rem; }
.tile .tile-art { margin-top: auto; }
.tile--ink { background: var(--accent-tile); border-color: var(--accent-tile-line); color: var(--ink); }
.tile--ink h3 { color: var(--ink); }
.tile--ink p { color: var(--ink-2); }
.oncall { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.oncall .clock { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.oncall .clock-meta { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
@media (max-width: 980px) { .tile, .tile--half { grid-column: span 3; } .tile--wide { grid-column: span 6; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; } .tile, .tile--wide, .tile--half { grid-column: auto; min-height: 0; padding: 20px; } }

/* ---------- Alert band ---------- */
.band-alert { background: var(--inv-bg); color: var(--inv-ink); position: relative; overflow: hidden; isolation: isolate; }
.band-alert h2 { color: var(--inv-ink); }
.band-alert .lead { color: var(--inv-muted); }
.band-alert .eyebrow { color: var(--inv-muted); }
.band-alert .eyebrow::before { background: var(--threat); box-shadow: 0 0 0 3px rgba(229, 72, 77, .25); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; }
.band-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.copy-field { display: inline-flex; align-items: center; gap: 4px; padding: 5px 5px 5px 16px; border-radius: var(--r-pill); border: 1px solid var(--inv-line); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em; max-width: 100%; }
.copy-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.copy-field button { flex: none; border: 0; background: var(--inv-ink); color: var(--inv-bg); border-radius: var(--r-pill); height: 34px; padding: 0 14px; font-family: var(--font-body); font-weight: 600; font-size: .84rem; cursor: pointer; }
.band-alert .btn--primary { --btn-bg: var(--band-btn-bg); --btn-ink: var(--band-btn-ink); --btn-line: var(--band-btn-bg); }
.band-alert .btn--primary:hover { --btn-bg: var(--band-btn-bg); --btn-line: var(--band-btn-bg); box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.band-alert .btn--invert { --btn-bg: transparent; --btn-ink: var(--inv-ink); --btn-line: var(--inv-line); }
.band-alert .btn--invert:hover { --btn-line: var(--inv-ink); }
.band-mark { position: absolute; right: -50px; bottom: -70px; width: 420px; height: 420px; z-index: -1; pointer-events: none; }
.band-mark path { fill: none !important; stroke: var(--inv-line); stroke-width: .22; }
@media (max-width: 860px) { .band-grid { grid-template-columns: minmax(0, 1fr); } .band-mark { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(44px, 5vw, 80px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.footer-clock { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.footer-clock svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.footer-clock b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.footer-col h4 { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 26px 0 8px; margin-top: 44px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-bottom .theme-row { display: inline-flex; align-items: center; gap: 10px; }
.footer-word { position: relative; margin-top: 26px; margin-bottom: -1.6vw; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-word svg { width: 100%; height: auto; }
.footer-word svg path { fill: var(--bg-2); transition: fill .6s var(--ease); }
.footer-word:hover svg path { fill: var(--lamp-soft); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { gap: 26px 16px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-top: clamp(28px, 4.4vw, 76px); padding-bottom: clamp(32px, 4vw, 64px); overflow: clip; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.page-hero-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.page-hero .h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.7rem); max-width: 14ch; }
.page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { width: 10px; height: 4px; border-radius: 4px; background: var(--lamp); }
.layer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.layer-tag { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink-2); text-transform: uppercase; }
.layer-tag.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 980px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 28px 28px 30px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lamp-soft); color: var(--lamp-ink); margin-bottom: 6px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-2); font-size: .98rem; }
.feature ul { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.feature li { position: relative; padding-left: 16px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 3px; border-radius: 3px; background: var(--lamp-strong); }
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 24px 22px 26px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:not(:nth-child(3n+1)), .feature:nth-child(2n) { padding: 22px 0; border-left: 0; }
}

/* ---------- Split block (text + visual) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); line-height: 1.5; }
.check-list svg { width: 20px; height: 20px; color: var(--clean); margin-top: 2px; }
.check-list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } .split--flip > :first-child { order: 0; } }

/* ---------- Log / code ---------- */
.log { font-family: var(--font-mono); font-size: .7rem; line-height: 1.9; letter-spacing: .01em; padding: 16px 18px; overflow-x: auto; white-space: pre; color: var(--panel-ink); }
.log .t { color: var(--panel-muted); }
.log .ok { color: var(--clean-ink); }
.log .bad { color: var(--threat-ink); }
.log .warn { color: var(--lamp-ink); }
.log .info { color: var(--info-ink); }
.log .line { display: block; animation: logIn .5s var(--ease) both; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--lamp-strong); animation: blinkSoft 1s steps(2) infinite; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; font-family: var(--font-display); font-size: 1.14rem; font-weight: 620; letter-spacing: -.012em; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform .35s var(--ease), background-color .2s; }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.faq-item summary .pm::after { transform: rotate(90deg); }
.faq-item[open] summary .pm { background: var(--lamp); border-color: var(--lamp); transform: rotate(180deg); }
.faq-item[open] summary .pm::before, .faq-item[open] summary .pm::after { background: var(--on-lamp); }
.faq-item[open] summary .pm::after { transform: rotate(0); }
.faq-a { padding: 0 44px 22px 0; color: var(--ink-2); display: grid; gap: 12px; }
.faq-item[open] .faq-a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq-a { padding-right: 0; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-2); }
@media (max-width: 640px) { .table { min-width: 540px; font-size: .88rem; } .table th, .table td { padding: 10px 12px; } }
.table .group td { background: var(--surface-2); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-block: 10px; }
.yes { color: var(--clean); display: inline-flex; }
.yes svg, .no svg { width: 18px; height: 18px; }
.no { color: var(--line-2); display: inline-flex; }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: min(480px, 100%); max-width: 100%;
  border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: drawerIn .45s var(--ease); }
.drawer::backdrop { background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-inner { display: flex; flex-direction: column; gap: 22px; padding: calc(22px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 24px; min-height: 100%; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.3rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.drawer-steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
.drawer-steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; color: var(--ink-2); line-height: 1.5; }
.drawer-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; color: var(--ink); }
.drawer-steps strong { color: var(--ink); }
.drawer .tip { padding: 14px 16px; border-radius: 14px; background: var(--lamp-soft); color: var(--ink); font-size: .92rem; line-height: 1.5; }
.drawer .copy-field { border-color: var(--line-2); }
.drawer .copy-field button { background: var(--ink); color: var(--bg); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .93rem; line-height: 1.45; animation: toastIn .45s var(--ease); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast .ico { width: 22px; height: 22px; border-radius: 50%; background: var(--lamp); color: var(--on-lamp); display: grid; place-items: center; flex: none; margin-top: -1px; }
.toast .ico svg { width: 13px; height: 13px; }
@keyframes toastIn { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(12px); opacity: 0; } }

/* ---------- Reveal (content stays visible; motion only) ---------- */
.anim [data-reveal] { transform: translateY(22px); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.anim [data-reveal="scale"] { transform: scale(.965); }
.anim [data-reveal].is-in { transform: none; }

/* ---------- Generic cards ---------- */
.card { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* big CTA at page end */
.cta-end { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: end; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: var(--deep); color: var(--deep-ink); border: 1px solid var(--deep-line); position: relative; overflow: hidden; isolation: isolate; }
.cta-end h2 { color: var(--deep-ink); }
.cta-end p { color: var(--deep-ink-2); max-width: 52ch; margin-top: 14px; }
.cta-end .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-end .btn--ghost { --btn-ink: var(--deep-ink); --btn-line: var(--deep-line); }
.cta-end .btn--ghost:hover { --btn-line: var(--deep-ink); }
.cta-end::before { content: ""; position: absolute; right: -60px; top: -80px; width: 360px; height: 360px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cg fill=%22none%22 stroke=%22rgba(255,197,61,0.3)%22 stroke-width=%220.22%22%3E%3Cpath d=%22M6 14Q6 6 14 6L37 6Q42 6 42 11L42 14Q42 16 40 16L23 16Q21.5 16 21.5 17.5L21.5 25Q21.5 27 19.5 27L8 27Q6 27 6 25Z%22/%3E%3Cpath d=%22M26.5 23Q26.5 21 28.5 21L40 21Q42 21 42 23L42 34Q42 42 34 42L11 42Q6 42 6 37L6 34Q6 32 8 32L25 32Q26.5 32 26.5 30.5Z%22/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; z-index: -1; pointer-events: none; }

@media (max-width: 860px) { .cta-end { grid-template-columns: minmax(0, 1fr); } .cta-end::before { display: none; } }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 72ch; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 2.2em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .4em; color: var(--ink); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; display: grid; gap: .4em; }
.prose a { color: var(--ink); }

/* ---------- Theme switch transition ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .vg-track { animation: none !important; }
}

/* =====================================================================
   Page components
   ===================================================================== */

/* ---------- WAAP request inspector ---------- */
.inspector { display: flex; flex-direction: column; height: 540px; }
.insp-filters { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--panel-line); overflow-x: auto; scrollbar-width: none; }
.insp-filters::-webkit-scrollbar { display: none; }
.insp-filter { flex: none; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--panel-line); background: transparent; color: var(--panel-muted); font-family: var(--font-mono); font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.insp-filter:hover { color: var(--panel-ink); border-color: var(--panel-muted); }
.insp-filter[aria-pressed="true"] { background: var(--panel-ink); color: var(--panel); border-color: var(--panel-ink); }
.insp-list { list-style: none; flex: 1; min-height: 0; overflow: hidden; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.insp-row { display: grid; grid-template-columns: 58px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--panel-line); color: var(--panel-ink); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .01em; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.insp-row.is-new { animation: rowIn .55s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.insp-row:hover, .insp-row.is-active { border-color: var(--lamp-strong); background: var(--lamp-soft); }
.insp-row .t { color: var(--panel-muted); font-variant-numeric: tabular-nums; }
.insp-row .m { color: var(--info-ink); font-weight: 600; }
.insp-row .p { min-width: 0; }
.insp-row .p b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-row .p small { display: block; color: var(--panel-muted); font-size: .56rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-row .chip { height: 22px; font-size: .54rem; }
.insp-detail { border-top: 1px solid var(--panel-line); padding: 14px 16px 16px; min-height: 150px; font-size: .88rem; line-height: 1.5; color: var(--panel-ink-2); }
.insp-detail h4 { font-family: var(--font-display); font-size: 1rem; color: var(--panel-ink); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.insp-detail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .02em; }
.insp-detail dt { color: var(--panel-muted); text-transform: uppercase; letter-spacing: .08em; }
.insp-detail dd { margin: 0; color: var(--panel-ink); overflow-wrap: anywhere; }
.insp-detail .empty svg { width: 18px; height: 18px; flex: none; }
.insp-detail .empty { display: flex; align-items: center; gap: 10px; color: var(--panel-muted); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; height: 100%; }
.insp-pause { margin-left: auto; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 640px) {
  .inspector { height: 500px; border-radius: var(--r-md); }
  .insp-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .insp-row .t { display: none; }
}

/* ---------- DNS diff ---------- */
.diff { font-family: var(--font-mono); font-size: .7rem; line-height: 2; padding: 14px 0; overflow-x: auto; }
.diff div { padding: 0 18px; white-space: pre; }
.diff .c { color: var(--panel-muted); }
.diff .del { background: var(--threat-soft); color: var(--threat-ink); }
.diff .add { background: var(--clean-soft); color: var(--clean-ink); }

/* ---------- Onboarding list ---------- */
.ol-steps { list-style: none; counter-reset: st; display: grid; gap: 18px; }
.ol-steps li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.ol-steps li::before { content: counter(st, decimal-leading-zero); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--font-mono); font-size: .7rem; font-weight: 600; color: var(--ink); }
.ol-steps h3 { font-size: 1.08rem; margin-bottom: 4px; letter-spacing: -.01em; }
.ol-steps p { color: var(--ink-2); font-size: .98rem; }

/* ---------- BGP story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.story-visual { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); }
.story-panel { padding: 0; }
.route-svg { width: 100%; height: auto; display: block; }
.route-svg text { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--panel-muted); }
.route-svg .lbl-strong { fill: var(--panel-ink); }
.rs-box { fill: var(--panel-2); stroke: var(--panel-line); }
.rs-sg { fill: var(--panel-2); stroke: var(--lamp-strong); }
.rs-user { fill: var(--panel-ink); }
.rs-bot { fill: var(--threat); }
.rs-good { stroke: var(--panel-ink); }
.rs-bad { stroke: var(--threat); }
.rs-clean { stroke: var(--clean); }
.rs-lampline { stroke: var(--lamp-strong); }
.rs-lampfill { fill: var(--lamp-strong); }
.rs-ret { stroke: var(--panel-muted); }
.route-svg .t-ok { fill: var(--clean-ink); }
.route-svg .t-bad { fill: var(--threat-ink); }
.route-svg .t-lamp { fill: var(--lamp-ink); }
.route-svg [data-on] { opacity: 0; transition: opacity .6s var(--ease); }
.story-caption { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--panel-line); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-muted); min-height: 46px; }
.story-caption b { color: var(--lamp-ink); font-weight: 600; }
.story-steps { list-style: none; display: grid; }
.story-step { position: relative; padding: 26px 0 26px 26px; min-height: 42vh; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-left: 2px solid var(--line); transition: border-color .4s; }
.story-step .mono { color: var(--muted); }
.story-step h3 { color: var(--muted); transition: color .4s; }
.story-step p { color: var(--muted); transition: color .4s; max-width: 46ch; }
.story-step.is-active { border-left-color: var(--lamp); }
.story-step.is-active h3 { color: var(--ink); }
.story-step.is-active p { color: var(--ink-2); }
.story-step.is-active .mono { color: var(--lamp-ink); }
@media (max-width: 920px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-visual { position: relative; top: 0; }
  .story-step { min-height: 0; padding: 16px 0 16px 20px; }
  .story-step h3, .story-step p { color: var(--ink-2); }
  .story-step h3 { color: var(--ink); }
}

/* mode cards */
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.mode .mode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mode .best { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: .92rem; color: var(--ink-2); }
.mode .best b { color: var(--ink); }
.timeline-mini { width: 100%; height: auto; color: var(--ink); }
@media (max-width: 760px) { .mode-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- OSI stack ---------- */
.osi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.osi-stack { list-style: none; display: grid; gap: 10px; padding: 12px 0 12px 8px; }
.osi-layer {
  --shift: calc((7 - var(--n)) * 14px);
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: calc(100% - 84px); height: 54px; padding: 0 14px 0 0; margin-left: var(--shift);
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left;
  box-shadow: 0 6px 0 -1px var(--bg-2), 0 6px 0 0 var(--line-2);
  transition: transform .45s var(--ease), box-shadow .3s, border-color .3s, background-color .3s;
}
.osi-layer:hover, .osi-layer.is-active { transform: translateX(18px); }
.osi-layer .osi-n { height: 100%; display: grid; place-items: center; border-right: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; }
.osi-layer .osi-name { font-family: var(--font-display); font-weight: 620; font-size: 1.04rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osi-layer .osi-tag { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.osi-layer.on { border-color: color-mix(in srgb, var(--lamp-strong) 60%, var(--line-2)); }
.osi-layer.on .osi-n { background: var(--lamp); color: var(--on-lamp); border-right-color: var(--lamp-strong); border-radius: 11px 0 0 11px; }
.osi-layer.on .osi-tag { background: var(--lamp-soft); color: var(--lamp-ink); }
.osi-layer.app.on .osi-n { background: var(--info); color: #fff; border-right-color: var(--info); }
.osi-layer.app.on .osi-tag { background: var(--info-soft); color: var(--info-ink); }
.osi-layer.off { color: var(--muted); border-style: dashed; box-shadow: none; }
.osi-layer.off .osi-tag { background: var(--bg-2); color: var(--muted); }
.osi-layer.is-active { border-color: var(--ink); box-shadow: 0 6px 0 -1px var(--bg-2), 0 6px 0 0 var(--ink), var(--shadow); }
.osi-info { position: relative; min-height: 320px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); box-shadow: var(--shadow-lg); }
.osi-info .mono { color: var(--panel-muted); }
.osi-info h3 { color: var(--panel-ink); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.025em; margin: 8px 0 10px; }
.osi-info p { color: var(--panel-ink-2); }
.osi-info .vectors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.osi-info .vectors span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .04em; padding: 6px 10px; border-radius: var(--r-pill); background: var(--threat-soft); color: var(--threat-ink); }
.osi-info .who { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--panel-line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.osi-info .who a { color: var(--lamp-ink); font-weight: 600; text-decoration: none; }
.osi-info.swap { animation: osiSwap .45s var(--ease); }
@keyframes osiSwap { from { transform: translateY(8px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (max-width: 920px) { .osi { grid-template-columns: minmax(0, 1fr); } .osi-layer { width: calc(100% - 70px); --shift: calc((7 - var(--n)) * 10px); } .osi-info { min-height: 0; } }
@media (max-width: 560px) {
  .osi-stack { gap: 8px; padding-left: 0; }
  .osi-layer { width: calc(100% - 46px); --shift: calc((7 - var(--n)) * 6px); height: 48px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; padding-right: 10px; }
  .osi-layer:hover, .osi-layer.is-active { transform: translateX(10px); }
  .osi-layer .osi-name { font-size: .95rem; }
  .osi-layer .osi-tag { font-size: .5rem; padding: 3px 6px; letter-spacing: .04em; }
}

/* ---------- Packet pipeline ---------- */
.pipeline-wrap { position: relative; }
.pipeline { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 2px 14px; scrollbar-width: thin; }
.pipe-stage { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pipe-stage::before { content: ""; position: absolute; top: -22px; left: 20px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.pipe-stage::after { content: ""; position: absolute; top: -27px; left: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.pipe-stage:last-child::before { display: none; }
.pipe-stage.final::after { background: var(--clean); border-color: var(--clean); }
.pipe-stage .mono { color: var(--muted); }
.pipe-stage p { color: var(--ink-2); font-size: .95rem; }
.pipe-stage .drops { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.pipe-stage .drops span { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .04em; padding: 5px 8px; border-radius: var(--r-pill); background: var(--threat-soft); color: var(--threat-ink); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--threat-ink) 55%, transparent); }
.pipe-stage.final .drops span { background: var(--clean-soft); color: var(--clean-ink); text-decoration: none; }
.pipe-hint { display: none; margin-top: 4px; }
@media (max-width: 760px) { .pipeline { grid-auto-columns: 82%; } .pipe-hint { display: block; } }

/* ---------- Coverage table ---------- */
.layer-badge { display: inline-block; width: fit-content; font-family: var(--font-mono); font-size: .6rem; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2); }
.layer-badge.l7 { background: var(--info-soft); color: var(--info-ink); }
.layer-badge.l3, .layer-badge.l4, .layer-badge.l5 { background: var(--lamp-soft); color: var(--lamp-ink); }

/* ---------- Map ---------- */
.map-panel { display: flex; flex-direction: column; }
.map-stage { position: relative; aspect-ratio: 1.89 / 1; cursor: crosshair; touch-action: manipulation; }
.map-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .84rem; line-height: 1.35; white-space: nowrap; }
.map-tip b { display: block; font-family: var(--font-display); font-size: .98rem; }
.map-tip span { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em; color: color-mix(in srgb, var(--bg) 72%, transparent); text-transform: uppercase; }
.map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; border-top: 1px solid var(--panel-line); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.map-legend i.dash { width: 16px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--lamp-strong); vertical-align: 3px; }
.map-readout { font-size: .9rem; color: var(--panel-ink-2); min-height: 1.4em; }
.map-readout b { color: var(--lamp-ink); font-weight: 600; }
.map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--panel-line); color: var(--panel-ink); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; white-space: nowrap; transition: opacity .4s; }
@media (max-width: 640px) { .map-panel { border-radius: var(--r-md); } .map-hint { bottom: 8px; font-size: .5rem; padding: 5px 10px; } .map-foot { padding: 10px 12px; } .map-readout { font-size: .84rem; } }

.gate-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gate-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease); }
.gate-card:hover { border-color: var(--line-2); }
.gate-card .code { font-family: var(--font-display); font-size: 2.6rem; line-height: .9; font-weight: 750; letter-spacing: -.03em; font-variation-settings: "wdth" 80; }
.gate-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gate-card .meta { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.7; }
.gate-card h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.gate-card p { color: var(--ink-2); font-size: .94rem; }
.gate-card .light { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; color: var(--muted); margin-top: auto; padding-top: 6px; }
.gate-card .light i { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 3px var(--lamp-soft); }
.gate-card.hq { background: var(--panel); border-color: var(--panel-line); color: var(--panel-ink); }
.gate-card.hq h3 { color: var(--panel-ink); }
.gate-card.hq p { color: var(--panel-ink-2); }
.gate-card.hq .meta, .gate-card.hq .light { color: var(--panel-muted); }
@media (max-width: 980px) { .gate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .gate-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r); scrollbar-width: none; }
  .gate-cards::-webkit-scrollbar { display: none; }
  .gate-card { padding: 16px; scroll-snap-align: start; }
  .gate-card .code { font-size: 2.1rem; }
}

/* anycast explainer */
.anycast { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ac-ip { display: flex; flex-direction: column; align-items: center; gap: 4px; width: fit-content; margin: 0 auto; padding: 10px 18px; border-radius: 14px; background: var(--deep); color: var(--deep-ink); box-shadow: var(--shadow); }
.ac-ip .mono { color: var(--deep-muted); font-size: .54rem; }
.ac-ip b { font-family: var(--font-mono); font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.ac-lines { width: 100%; height: 64px; display: block; color: var(--line-2); }
.ac-lines path { stroke-dashoffset: 0; animation: dash 1.4s linear infinite; }
.ac-gates { list-style: none; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.ac-gates li { display: grid; justify-items: center; align-content: start; gap: 8px; color: var(--ink-2); }
.ac-gates li span { writing-mode: vertical-rl; white-space: nowrap; font-size: .7rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.ac-gates svg { width: 100%; max-width: 30px; height: auto; }
.ac-gates svg .bm-b { animation: acBlink 3.3s infinite; }
.ac-gates li:nth-child(2) svg .bm-b { animation-delay: .3s; } .ac-gates li:nth-child(3) svg .bm-b { animation-delay: .6s; } .ac-gates li:nth-child(4) svg .bm-b { animation-delay: .9s; }
.ac-gates li:nth-child(5) svg .bm-b { animation-delay: 1.2s; } .ac-gates li:nth-child(6) svg .bm-b { animation-delay: 1.5s; } .ac-gates li:nth-child(7) svg .bm-b { animation-delay: 1.8s; }
.ac-gates li:nth-child(8) svg .bm-b { animation-delay: 2.1s; } .ac-gates li:nth-child(9) svg .bm-b { animation-delay: 2.4s; } .ac-gates li:nth-child(10) svg .bm-b { animation-delay: 2.7s; } .ac-gates li:nth-child(11) svg .bm-b { animation-delay: 3s; }
@keyframes acBlink { 0%, 100% { fill: var(--logo-b); } 8% { fill: var(--threat); } 20% { fill: var(--logo-b); } }
@media (max-width: 640px) { .ac-gates { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 14px; } .ac-lines { display: none; } .ac-ip { margin-bottom: 18px; } }

/* ---------- Solutions ---------- */
.sol-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.sol-nav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); display: grid; gap: 4px; }
.sol-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s; }
.sol-nav a svg { width: 18px; height: 18px; color: var(--muted); }
.sol-nav a:hover, .sol-nav a.is-active { background: var(--surface); color: var(--ink); }
.sol-nav a.is-active svg { color: var(--lamp-ink); }
.sol-list { display: grid; gap: clamp(20px, 3vw, 36px); }
.sol { scroll-margin-top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 40px; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sol-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.sol-head .feature-icon { margin: 0; }
.sol .quote { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 640; color: var(--ink); text-wrap: balance; }
.sol .body { margin-top: 12px; }
.sol-side { display: grid; gap: 16px; align-content: start; }
.sol-side h4 { font-family: var(--font-mono); font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .03em; padding: 6px 10px; border-radius: var(--r-pill); background: var(--threat-soft); color: var(--threat-ink); }
.prod-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.prod-pills a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--ink); transition: border-color .2s, background-color .2s; }
.prod-pills a:hover { border-color: var(--ink); }
.prod-pills svg { width: 16px; height: 16px; color: var(--lamp-ink); }
@media (max-width: 980px) { .sol-layout { grid-template-columns: minmax(0, 1fr); } .sol-nav { position: relative; top: 0; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; } .sol-nav a { flex: none; background: var(--surface); border: 1px solid var(--line); } }
@media (max-width: 760px) { .sol { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* ---------- Pricing ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); gap: 4px; max-width: 100%; overflow-x: auto; }
.seg button { flex: none; height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg .sm { display: none; }
@media (max-width: 560px) { .seg { display: flex; width: 100%; } .seg button { flex: 1 1 0; padding: 0 10px; } .seg .lg { display: none; } .seg .sm { display: inline; } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.plan--featured { background: var(--deep); border-color: var(--deep-line); color: var(--deep-ink); box-shadow: var(--shadow-lg); }
.plan--featured h3 { color: var(--deep-ink); }
.plan--featured p, .plan--featured li { color: var(--deep-ink-2); }
.plan--featured .plan-price { color: var(--deep-ink); }
.plan--featured .plan-price small { color: var(--deep-muted); }
.plan--featured .plan-features svg { color: #FFC53D; }
.plan--featured .btn--ghost { --btn-ink: var(--deep-ink); --btn-line: var(--deep-line); }
.plan .badge { position: absolute; top: 20px; right: 20px; }
.plan h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.plan-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.plan-price small { display: block; font-family: var(--font-body); font-size: .86rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.plan-features { list-style: none; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan--featured .plan-features { border-top-color: var(--deep-line); }
.plan-features li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: .94rem; color: var(--ink-2); line-height: 1.45; }
.plan-features svg { width: 18px; height: 18px; color: var(--clean); margin-top: 1px; }
.plan-features .head { display: block; font-weight: 600; color: var(--ink); grid-template-columns: none; }
.plan--featured .plan-features li { color: var(--deep-ink-2); }
.plan--featured .plan-features .head { color: var(--deep-ink); }
.plan .btn { margin-top: auto; width: 100%; }
.price-factors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-factors > div { padding: 22px 18px 22px 0; display: grid; gap: 8px; align-content: start; }
.price-factors > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.price-factors svg { width: 22px; height: 22px; color: var(--lamp-ink); }
.price-factors b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 640; }
.price-factors span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .price-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .price-factors > div, .price-factors > div + div { padding: 18px 14px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); } .price-factors > div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); } }
@media (max-width: 520px) { .price-factors { grid-template-columns: minmax(0, 1fr); } .price-factors > div:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- Company ---------- */
.lock-scene { width: 100%; height: auto; display: block; }
.lock-scene .water { fill: #2B6CB0; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 26px 22px 28px 0; display: grid; gap: 10px; align-content: start; }
.value + .value { padding-left: 22px; border-left: 1px solid var(--line); }
.value .vn { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted); }
.value h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.value p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value, .value + .value { padding: 22px 18px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); } .value:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } .value:nth-child(2n) { padding-left: 0; border-left: 0; } }
.logo-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.logo-stage { display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.logo-stage .brand { width: 52%; justify-content: center; }
.logo-stage .brand-mark { width: 100%; height: auto; }
.logo-stage .ring { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 40s linear infinite; }
.logo-stage .ring.r2 { inset: 4%; animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-anatomy { list-style: none; display: grid; gap: 14px; }
.logo-anatomy li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.logo-anatomy .sw { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); }
.logo-anatomy b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.logo-anatomy span { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .logo-story { grid-template-columns: minmax(0, 1fr); } .logo-stage { max-width: 320px; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.fact b { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; }
.fact > span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.legal-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: .95rem; }
.legal-card dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.legal-card dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .legal-card { grid-template-columns: minmax(0, 1fr); } .legal-card dl { grid-template-columns: minmax(0, 1fr); gap: 4px; } .legal-card dd { margin-bottom: 10px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-card .feature-icon { margin: 0; }
.contact-card h3 { font-size: 1.04rem; letter-spacing: -.01em; }
.contact-card p { color: var(--ink-2); font-size: .93rem; margin-top: 4px; }
.contact-card .addr { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .01em; margin-top: 8px; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.urgent { scroll-margin-top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--deep); color: var(--deep-ink); border: 1px solid var(--deep-line); position: relative; overflow: hidden; isolation: isolate; }
.urgent h2 { color: var(--deep-ink); }
.urgent p, .urgent li { color: var(--deep-ink-2); }
.urgent .eyebrow { color: #FF9C9C; }
.urgent .eyebrow::before { background: #FF6B6B; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
.urgent .drawer-steps li::before { background: transparent; border-color: var(--deep-line); color: var(--deep-ink); }
.urgent .drawer-steps strong { color: var(--deep-ink); }
.urgent .copy-field { border-color: var(--deep-line); color: var(--deep-ink); }
.urgent .copy-field button { background: var(--lamp); color: var(--on-lamp); }
@media (max-width: 920px) { .contact-grid, .urgent { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .urgent { padding: 20px 16px; border-radius: var(--r-md); } .noc-card, .mail-start { padding: 18px 16px; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 60px; }
.nf .brand-mark { width: 100%; height: auto; }
.nf .code { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.nf h1 { margin: 14px auto 14px; max-width: 14ch; }
.nf p { margin: 0 auto; max-width: 46ch; color: var(--ink-2); }
.nf .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Attack report card ---------- */
.report { display: flex; flex-direction: column; }
.attack-chart { width: 100%; height: auto; display: block; padding: 10px 12px 4px; }
.attack-chart text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; fill: var(--panel-muted); }
.attack-chart .grid { stroke: var(--panel-line); }
.attack-chart .area { fill: var(--threat); fill-opacity: .14; }
.attack-chart .in { stroke: var(--threat); }
.attack-chart .out { stroke: var(--clean); }
.attack-chart .dot-in { fill: var(--threat); stroke: var(--panel); }
.attack-chart .dot-out { fill: var(--clean); stroke: var(--panel); }
.attack-chart .sw-in { fill: var(--threat); }
.attack-chart .sw-out { fill: var(--clean); }
.attack-chart .pk { fill: var(--threat-ink); font-weight: 600; }
.attack-chart .lg text { fill: var(--panel-ink-2); }
.report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--panel-line); }
.report-stats > div { padding: 12px 14px; display: grid; gap: 2px; }
.report-stats > div + div { border-left: 1px solid var(--panel-line); }
.report-stats .mono { font-size: .54rem; color: var(--panel-muted); }
.report-stats b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 640; color: var(--panel-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-stats > div:nth-child(3) { border-left: 0; } .report-stats > div:nth-child(n+3) { border-top: 1px solid var(--panel-line); } }
.route-svg .flowa { stroke-dasharray: 4 8; animation: dash 1s linear infinite; }
.route-svg .flowa.fast { stroke-dasharray: 3 6; animation-duration: .5s; }
.route-svg .on { opacity: 1 !important; }
.route-svg .spark { animation: sparkle 1.1s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sparkle { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Canal lock animation ---------- */
.lk-ship { animation: lkShip 12s cubic-bezier(.45, 0, .4, 1) infinite; }
.lk-water { animation: lkWater 12s cubic-bezier(.45, 0, .4, 1) infinite; }
.lk-gate1 { animation: lkGate1 12s cubic-bezier(.45, 0, .4, 1) infinite; }
.lk-gate2 { animation: lkGate2 12s cubic-bezier(.45, 0, .4, 1) infinite; }
@keyframes lkShip {
  0% { transform: translate(-80px, 210px); }
  18%, 26% { transform: translate(334px, 210px); }
  46%, 56% { transform: translate(334px, 160px); }
  76% { transform: translate(560px, 160px); }
  86%, 100% { transform: translate(760px, 160px); }
}
@keyframes lkWater { 0%, 26% { transform: translateY(50px); } 46%, 88% { transform: translateY(0); } 96%, 100% { transform: translateY(50px); } }
@keyframes lkGate1 { 0%, 18% { transform: translateY(125px); } 24%, 96% { transform: translateY(0); } 100% { transform: translateY(125px); } }
@keyframes lkGate2 { 0%, 48% { transform: translateY(0); } 54%, 80% { transform: translateY(152px); } 86%, 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .lk-ship, .lk-water, .lk-gate1, .lk-gate2 { animation: none !important; }
  .lk-ship { transform: translate(334px, 185px); }
  .lk-water { transform: translateY(25px); }
}

/* ---------- Gate map (home + network) ---------- */
.map-root { display: grid; gap: 14px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.gate-info { padding: clamp(18px, 2.2vw, 28px); display: grid; }
.gi-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gi-panel[data-off] { visibility: hidden; }
.gi-panel:not([data-off]) { animation: gpIn .45s var(--ease); }
.gp-main, .gp-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gp-side { margin-top: 6px; }
@keyframes gpIn { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }
.gp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-muted); }
.gp-city { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-display); font-size: clamp(1.9rem, 1.35rem + 1.15vw, 2.55rem); font-weight: 720; line-height: 1; letter-spacing: -.03em; font-variation-settings: "wdth" 85; color: var(--panel-ink); margin-top: 2px; }
.gp-city .hq-tag { font-size: .62rem; letter-spacing: .1em; }
.gi-panel p { color: var(--panel-ink-2); }
.gp-covers { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--panel-line); }
.gp-covers .mono { color: var(--panel-muted); font-size: .56rem; }
.gp-covers b { font-weight: 600; color: var(--panel-ink); font-size: .95rem; line-height: 1.4; }
.gp-next { display: grid; gap: 8px; }
.gp-next > .mono { color: var(--panel-muted); font-size: .56rem; }
.gp-nbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-nb { display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.gp-nb b { font-weight: 600; font-size: .92rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-nb em { font-style: normal; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .02em; color: var(--panel-muted); white-space: nowrap; }
.gp-nb:hover { border-color: var(--panel-ink); background: var(--panel-2); transform: translateY(-1px); }
.gp-light { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; color: var(--panel-muted); }
.gp-light i { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 3px var(--lamp-soft); animation: blinkSoft 2.4s infinite; }
@keyframes blinkSoft { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.gate-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .88rem; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.gate-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.gate-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gate-chip[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 3px rgba(255, 197, 61, .3); }
.map-note { color: var(--muted); font-size: .95rem; }
.map-note a { color: var(--ink); }
@media (max-width: 1160px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .gi-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 12px clamp(20px, 3vw, 36px); }
  .gp-main { grid-column: 1; grid-row: 1; }
  .gp-side { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .gp-light { grid-column: 1; grid-row: 2; }
}
@media (max-width: 640px) {
  .gi-panel { display: flex; }
  .gp-side { margin-top: 4px; }
}
@media (max-width: 640px) {
  .gate-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r); padding-bottom: 2px; }
  .gate-chips::-webkit-scrollbar { display: none; }
  .gate-chip { flex: none; height: 34px; }
  .gate-info { padding: 18px; }
}

/* ---------- Contact without forms ---------- */
.mail-start { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ms-body { padding: 14px 18px 18px; font-size: .72rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--panel-ink-2); }
.ms-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mail-start .small a { color: var(--ink-2); }
.contact-card a.addr { display: inline-block; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .25em; }
.contact-card a.addr:hover { text-decoration-color: currentColor; }
.noc-card { display: grid; gap: 20px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-md); background: var(--deep-2); border: 1px solid var(--deep-line); color: var(--deep-ink); }
.noc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-muted); }
.noc-top b { color: var(--deep-ink); font-weight: 600; }
.noc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--deep-ink); }
.noc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clean); box-shadow: 0 0 0 0 rgba(52, 211, 189, .5); animation: nocPulse 2s infinite; }
@keyframes nocPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 189, .5); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 189, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 189, 0); } }
.noc-addr { font-family: var(--font-display); font-size: clamp(1.45rem, 1rem + 2vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; color: var(--deep-ink); text-decoration: none; overflow-wrap: anywhere; }
.noc-addr:hover { color: var(--lamp); }
.noc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.urgent .btn--ghost { --btn-ink: var(--deep-ink); --btn-line: var(--deep-line); }
.urgent .btn--ghost:hover { --btn-line: var(--deep-ink); }
.noc-list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--deep-line); }
.noc-list .mono { color: var(--deep-muted); font-size: .58rem; }
.noc-list ul { list-style: none; display: grid; gap: 8px; }
.noc-list li { position: relative; padding-left: 18px; font-size: .95rem; line-height: 1.5; color: var(--deep-ink-2); }
.noc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--lamp); }
@media (prefers-reduced-motion: reduce) { .noc-live::before { animation: none; } }

/* ---------- Abuse reports (contact) ---------- */
.abuse { align-items: start; }
.abuse .check-list li { font-size: .98rem; }
.abuse-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.abuse .copy-field { border-color: var(--line-2); color: var(--ink); }
.abuse .copy-field button { background: var(--ink); color: var(--bg); }
.abuse .small a { color: var(--ink-2); }
.mail-card { font-family: var(--font-mono); }
.abuse-mail { position: sticky; top: calc(var(--header-h) + 20px); }
.mail-card dl { margin: 0; display: grid; }
.mail-card dl > div { display: grid; grid-template-columns: 9ch minmax(0, 1fr); gap: 14px; padding: 7px 18px; font-size: .72rem; line-height: 1.6; }
.mail-card dt { color: var(--panel-muted); }
.mail-card dd { margin: 0; color: var(--panel-ink); overflow-wrap: anywhere; }
.mail-card mark { background: var(--lamp-soft); color: var(--lamp-ink); border-radius: 4px; padding: 1px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.am-head { padding: 8px 0; border-bottom: 1px solid var(--panel-line); }
.am-head dd { font-weight: 600; }
.am-body { padding: 10px 0 14px; }
.am-body dd { color: var(--panel-ink-2); }
.am-body > div:nth-child(1) dd { color: var(--threat-ink); }
.am-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 18px 16px; border-top: 1px solid var(--panel-line); background: var(--panel-2); }
.am-step { display: grid; gap: 8px; align-content: start; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-muted); }
.am-step i { position: relative; height: 3px; border-radius: 2px; background: var(--panel-line); overflow: hidden; }
.am-step i::after { content: ""; position: absolute; inset: 0; background: var(--clean); transform-origin: left; transform: scaleX(1); }
.anim .am-step i::after { transform: scaleX(0); animation: amFill 7.5s var(--ease) infinite; }
.anim .am-step:nth-child(2) i::after { animation-name: amFill2; }
.anim .am-step:nth-child(3) i::after { animation-name: amFill3; }
@keyframes amFill { 0% { transform: scaleX(0); } 12%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes amFill2 { 0%, 18% { transform: scaleX(0); } 32%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes amFill3 { 0%, 38% { transform: scaleX(0); } 52%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@media (max-width: 980px) { .abuse-mail { position: static; } }
@media (max-width: 640px) { .mail-card dl > div { grid-template-columns: 8ch minmax(0, 1fr); gap: 10px; padding: 6px 14px; font-size: .68rem; } .am-flow { padding: 12px 14px 14px; gap: 8px; } .am-step { font-size: .5rem; } }
@media (prefers-reduced-motion: reduce) { .anim .am-step i::after { animation: none; transform: scaleX(1); } }

/* ---------- Logo story (company) ---------- */
.logo-big { width: 58%; height: auto; overflow: visible; }
.logo-big .bm-a { fill: var(--logo-a); }
.logo-big .bm-b { fill: var(--logo-b); }
.logo-big .lb-path { fill: none; stroke: var(--clean); stroke-width: .6; stroke-dasharray: 1 1.6; opacity: .7; }
.logo-big .lb-dot { fill: var(--clean); }
.logo-big .lb-bad { fill: var(--threat); }
.logo-stage:hover .logo-big .bm-a { transform: translate(-1.5px, -1.5px); }
.logo-stage:hover .logo-big .bm-b { transform: translate(1.5px, 1.5px); }
.logo-big .bm-a, .logo-big .bm-b { transition: transform .6s var(--ease); }
.lock-scene .lk-sky { stroke: var(--panel-line); }
.lock-scene text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; }
.lock-scene .lk-t { fill: var(--panel-muted); }
.lock-scene .lk-label { fill: var(--lamp-ink); }
.lock-scene .lk-w { fill: var(--info); fill-opacity: .3; }
.lock-scene .lk-hull { fill: var(--panel-ink); }
.lock-scene .lk-win { fill: var(--panel); }
.lock-scene .lk-c1 { fill: var(--clean); }
.lock-scene .lk-c2 { fill: var(--lamp); }
.lock-scene .lk-c3 { fill: var(--info); }
.lock-scene .lk-g { fill: var(--lamp-strong); }
.lock-scene .lk-ground { fill: var(--line-2); }
@media (prefers-reduced-motion: reduce) { .logo-big .lb-dot, .logo-big .lb-bad { display: none; } }
