/* ServerBouncer website. No external fonts, no inline styles (strict CSP). */
:root {
  color-scheme: light dark;
  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --text: #15232b;
  --muted: #4d5f69;
  --border: #d9e2e6;
  --accent: #0e7c86;
  --accent-strong: #0a5f67;
  --accent-soft: #e0f1f2;
  --accent-text: #ffffff;
  --warn: #b4540a;
  --danger: #b42318;
  --ok: #1f7a3f;
  --code-bg: #10212a;
  --code-text: #e3eef1;
  --shadow: 0 1px 2px rgb(16 33 42 / 6%), 0 8px 24px rgb(16 33 42 / 6%);
  --radius: 12px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d171c;
    --surface: #132129;
    --surface-2: #182a33;
    --text: #e4edf0;
    --muted: #9fb1b9;
    --border: #263a44;
    --accent: #3cc0c9;
    --accent-strong: #67d3da;
    --accent-soft: #123c42;
    --accent-text: #062126;
    --warn: #f0a050;
    --danger: #ff8a80;
    --ok: #6fd394;
    --code-bg: #08121a;
    --code-text: #d6e6ea;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}
:root[data-theme="dark"] {color-scheme: dark;
    --bg: #0d171c;
    --surface: #132129;
    --surface-2: #182a33;
    --text: #e4edf0;
    --muted: #9fb1b9;
    --border: #263a44;
    --accent: #3cc0c9;
    --accent-strong: #67d3da;
    --accent-soft: #123c42;
    --accent-text: #062126;
    --warn: #f0a050;
    --danger: #ff8a80;
    --ok: #6fd394;
    --code-bg: #08121a;
    --code-text: #d6e6ea;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
:root[data-theme="light"] {color-scheme: light;
  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --text: #15232b;
  --muted: #4d5f69;
  --border: #d9e2e6;
  --accent: #0e7c86;
  --accent-strong: #0a5f67;
  --accent-soft: #e0f1f2;
  --accent-text: #ffffff;
  --warn: #b4540a;
  --danger: #b42318;
  --ok: #1f7a3f;
  --code-bg: #10212a;
  --code-text: #e3eef1;
  --shadow: 0 1px 2px rgb(16 33 42 / 6%), 0 8px 24px rgb(16 33 42 / 6%);
  --radius: 12px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-text); padding: 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; }
/* SVG wordmark: one per theme (dark is the default) */
.brand img.wordmark { width: auto; height: 30px; }
.brand .wordmark-light { display: none; }
:root[data-theme="light"] .brand .wordmark-light { display: block; }
:root[data-theme="light"] .brand .wordmark-dark { display: none; }
@media (max-width: 420px) { .brand img.wordmark { height: 24px; } }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.lang { font-size: .9rem; border: 1px solid var(--border); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-text); }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent); }
.nav-links .btn-primary { color: var(--accent-text); padding: 8px 16px; }
.nav-links .btn-primary:hover { background: var(--accent-strong); color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: 72px 0; }
@media (max-width: 600px) { section { padding: 48px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--accent-strong); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-art { justify-self: center; max-width: 420px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 280px; order: -1; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.pills li { background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 12px; }
.card .icon svg { width: 20px; height: 20px; }
.card-highlight { border-color: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { position: relative; padding-left: 28px; margin-bottom: .45em; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Screenshots */
.shot { margin: 0; }
.shot img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* Diagram */
.diagram { width: 100%; height: auto; max-width: 1000px; margin: 24px auto 0; display: block; }
.diagram .box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.diagram .box-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.diagram .box-danger { fill: var(--surface); stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 5 4; }
.diagram .t { fill: var(--text); font: 600 15px var(--font); }
.diagram .s { fill: var(--muted); font: 13px var(--font); }
.diagram .a { stroke: var(--muted); stroke-width: 1.8; fill: none; marker-end: url(#arrow); }
.diagram .a-block { stroke: var(--danger); stroke-width: 2; fill: none; }
.diagram .arrowhead { fill: var(--muted); }
.diagram .x { stroke: var(--danger); stroke-width: 3; stroke-linecap: round; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat strong { display: block; font-size: 1.5rem; color: var(--accent-strong); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-weight: 600; }

/* Page header + prose */
.page-head { padding: 56px 0 24px; }
.prose { max-width: 50em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9rem; background: var(--surface); }
.toc a:hover { color: var(--text); border-color: var(--accent); }
.feature { padding: 48px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.feature:first-of-type { border-top: 0; }

.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.callout-warn { border-left-color: var(--warn); background: var(--surface-2); }
.todo { border: 2px dashed var(--warn); border-radius: 10px; padding: 14px 18px; margin: 0 0 1.2em; background: var(--surface); }
.todo strong { color: var(--warn); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.badge-now { background: var(--accent-soft); color: var(--accent-strong); }

.cta { text-align: center; }
.cta .actions { justify-content: center; }

/* Form */
.form { display: grid; gap: 16px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.field-check label { font-weight: 400; }
.error { color: var(--danger); font-size: .9rem; margin-top: 4px; }
.errors { border: 1px solid var(--danger); border-radius: 10px; padding: 12px 16px; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .92rem; background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); }

/* ---------- Components added for the app version ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.site-header.scrolled { box-shadow: var(--shadow); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 16px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); }
.page-head { padding-top: 32px; }
.section-tight { padding-top: 16px; }
.split-top { align-items: start; }
.center-actions { justify-content: center; }
.footer-title { font-weight: 700; color: var(--text); margin-bottom: .4em; }
.footer-col { flex-direction: column; gap: 6px; }
.footer-note { margin-top: 24px; }
.prose-wide { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--accent-strong); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq p { color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.related a { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; }
.card-link { text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.landing-points h2 { font-size: 1.15rem; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .6em; }
.muted-check li::before { border-color: var(--muted); }
.offline-card { border-color: var(--accent); }

/* Theme toggle */
.theme-toggle { position: relative; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; overflow: hidden; }
.theme-toggle .sun, .theme-toggle .moon { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; transition: transform .45s cubic-bezier(.5,1.6,.4,1), opacity .3s; }
.theme-toggle .sun { background: #f0a020; box-shadow: 0 0 0 3px rgb(240 160 32 / 25%); }
.theme-toggle .moon { background: transparent; box-shadow: inset -5px -3px 0 0 #cfe3ea; transform: translateY(30px) rotate(-30deg); opacity: 0; }
.is-dark .theme-toggle .sun { transform: translateY(-30px); opacity: 0; }
.is-dark .theme-toggle .moon { transform: none; opacity: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.attack-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.attack-map.on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 0);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero-shot img { box-shadow: 0 24px 60px rgb(0 0 0 / 18%); border: 0; background: transparent; }
.hero-counter { margin-top: 18px; min-height: 1.5em; }
.hero-counter span { font-variant-numeric: tabular-nums; color: var(--accent-strong); font-weight: 700; }
html:not(.js) .hero-counter { display: none; }
.shot img { border: 0; box-shadow: none; background: transparent; border-radius: 0; }

/* Reveal on scroll (only with JS and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-group .reveal:nth-child(2) { transition-delay: .07s; }
  .js .reveal-group .reveal:nth-child(3) { transition-delay: .14s; }
  .js .reveal-group .reveal:nth-child(4) { transition-delay: .21s; }
  .js .reveal-group .reveal:nth-child(5) { transition-delay: .28s; }
  .js .reveal-group .reveal:nth-child(6) { transition-delay: .35s; }
  .js .reveal-group .reveal:nth-child(n+7) { transition-delay: .42s; }

  /* Pipeline: strokes draw in, stages fade in */
  .js .pipeline .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.2s ease; }
  .js .pipeline .stage { opacity: 0; transition: opacity .5s ease; }
  .js .pipeline.in .draw { stroke-dashoffset: 0; }
  .js .pipeline.in .stage { opacity: 1; }
  .js .pipeline.in .s2 { transition-delay: .35s; } .js .pipeline.in .s3 { transition-delay: .7s; }
  .js .pipeline.in .s4 { transition-delay: 1.05s; } .js .pipeline.in .s5 { transition-delay: 1.6s; }
  .js .pipeline.in path.draw:nth-of-type(2) { transition-delay: .5s; }
  .js .pipeline.in path.draw:nth-of-type(3) { transition-delay: .85s; }
  .js .pipeline.in .a-block { transition-delay: 1.3s; transition-duration: 1.6s; }

  /* Knock animation loop (7 s) */
  .knock .k-pkt { animation: k-pkt 7s ease-in-out infinite; }
  .knock .k-dot-bad { animation: k-bad 3.5s linear infinite; }
  .knock .port { animation: k-port 7s ease-in-out infinite; }
  .knock .k-state-open { animation: k-open 7s ease-in-out infinite; }
  .knock .k-state-closed { animation: k-closed 7s ease-in-out infinite; }
  .shot.tilt { transition: transform .35s ease; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

  .ticker-list li.new { animation: tick-in .5s ease; }
  .live-dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes k-pkt { 0%, 10% { transform: translate(0, 0); opacity: 1; } 35% { transform: translate(280px, 0); } 50% { transform: translate(280px, -65px); opacity: 1; } 55%, 100% { transform: translate(280px, -65px); opacity: 0; } }
@keyframes k-bad { 0% { transform: translate(0, 0); opacity: 1; } 85% { transform: translate(195px, 0); opacity: 1; } 100% { transform: translate(195px, 0); opacity: 0; } }
@keyframes k-port { 0%, 50% { fill: var(--surface-2); stroke: var(--danger); } 55%, 90% { fill: var(--accent-soft); stroke: var(--accent); } 100% { fill: var(--surface-2); stroke: var(--danger); } }
@keyframes k-open { 0%, 50% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes k-closed { 0%, 50% { opacity: 1; } 55%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tick-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.knock .port { fill: var(--surface-2); stroke: var(--danger); stroke-width: 2; transform-box: fill-box; }
.knock .k-pkt { fill: var(--accent); transform-box: view-box; }
.knock .k-dot-bad { fill: var(--danger); }
.knock .k-good { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.knock .k-bad { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.knock .k-state-open { opacity: 0; fill: var(--accent-strong); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .knock .k-state-open { opacity: 1; } .knock .k-state-closed { opacity: 0; } .knock .port { fill: var(--accent-soft); stroke: var(--accent); } }

/* Demo strip */
.terminal { padding: 0; overflow: hidden; background: var(--code-bg); border-color: var(--code-bg); margin: 0; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: color-mix(in srgb, var(--code-bg) 80%, #ffffff 8%); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #5a6b73; }
.term-bar em { margin-left: 8px; font-style: normal; font-size: .8rem; color: #9fb1b9; }
.term-body { margin: 0; border-radius: 0; min-height: 300px; font-size: .86rem; }
.term-line { white-space: pre; }
.term-line .prompt { color: #67d3da; }
.term-line.out { color: #9fb1b9; }
.term-line.ok { color: #6fd394; }
.terminal figcaption { padding: 8px 14px 12px; color: #9fb1b9; }
.js .terminal[data-ready] .term-line { visibility: hidden; }
.js .terminal[data-ready] .term-line.shown { visibility: visible; }
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: text-bottom; background: #67d3da; margin-left: 2px; }
.ticker { margin: 0; }
.ticker-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
.ticker-list { list-style: none; margin: 0 0 10px; padding: 0; height: 300px; overflow: hidden; }
.ticker-list li { display: grid; grid-template-columns: 20px minmax(0, 1.5fr) 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.ticker-list li img { border-radius: 2px; }
.ticker-list code { background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-list .u { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-list b { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ticker-list b.blocked { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.ticker-list b.spray { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
@media (max-width: 480px) { .ticker-list li { grid-template-columns: 20px minmax(0, 1fr) 44px auto; } .ticker-list .u { display: none; } }
.stat strong { font-variant-numeric: tabular-nums; }
.diagram.knock { max-width: 640px; }
.hero-shot img { border-radius: 18px; }
@media (max-width: 900px) { .attack-map.on { opacity: .45; } }

/* Hero: the bouncer (brand image) standing in front of the dashboard */
.hero-visual { position: relative; padding-bottom: 120px; }
.hero-bouncer { position: absolute; z-index: 3; left: -12%; bottom: -40px; width: min(560px, 92%); pointer-events: none; }
.hero-bouncer img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 40px rgb(0 0 0 / 40%)); animation: bouncer-in 800ms cubic-bezier(.2, .8, .2, 1.1) 250ms both; }
@keyframes bouncer-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hero-visual { padding-bottom: 90px; } .hero-bouncer { left: 50%; transform: translateX(-50%); bottom: -30px; width: 86%; } }
@media (prefers-reduced-motion: reduce) { .hero-bouncer img { animation: none; } }