/* IP Beacon 4.0, design language of intelligent-pixel.com:
   black, one red, Bebas Neue for display, Space Grotesk for everything else.
   Fonts are local files (SIL Open Font License 1.1), no font provider. */

@font-face { font-family: 'Space Grotesk'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/SpaceGrotesk-Light.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/SpaceGrotesk-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/SpaceGrotesk-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/BebasNeue-Regular.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #000; --white: #fff; --red: #e5332a; --red-rgb: 229, 51, 42;
    --green: #3ddc84;
    --gray-dark: #0a0a0a; --gray-mid: #1a1a1a; --gray-light: #333;
    --line: rgba(255,255,255,0.12);
    --text-dim: rgba(255,255,255,0.56); --text-mid: rgba(255,255,255,0.68); --text-strong: rgba(255,255,255,0.86);
    --text-faint: rgba(255,255,255,0.58);
    --header-h: 72px;
    --content-max: 1280px;
    --pad-x: clamp(1rem, 3.2vw, 3rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 3px;
    color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
html, body { background: var(--black); color: var(--white); font-family: 'Space Grotesk', system-ui, sans-serif; overflow-x: clip; }
body { min-height: 100vh; line-height: 1.6; font-size: 1rem; }
body::before {
    content: ''; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-color: rgba(var(--red-rgb), 0.7); text-underline-offset: 3px; }
a:hover { color: var(--white); text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
svg.i { width: 1.15em; height: 1.15em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--red); color: var(--white); padding: 0.6rem 1rem; }
.skip-link:focus { top: 1rem; }
.is-hidden { display: none !important; }

/* ---------- header, identical behaviour to intelligent-pixel.com ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); border-bottom: 1px solid var(--gray-light); }
/* The blur lives on its own layer: a backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and clip it. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--pad-x); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo-mark { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.logo-pixel { display: grid; grid-template-columns: repeat(4, 7px); gap: 2px; }
.logo-pixel span { width: 7px; height: 7px; background: var(--white); }
.logo-pixel span.off { background: transparent; }
.logo-pixel span.red { background: var(--red); animation: beacon-blink 2.4s ease-in-out infinite; }
@keyframes beacon-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(var(--red-rgb), 0.9); } 50% { opacity: 0.35; box-shadow: none; } }
.logo-text { display: grid; justify-items: start; font-size: 0.82rem; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.15; }
.logo-text strong { font-weight: 700; color: var(--red); }
.logo-text small { font-size: 0.56rem; letter-spacing: 0.22em; color: var(--text-faint); }
.main-nav { display: flex; gap: 1.6rem; align-items: center; }
.nav-link { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; transition: color 0.2s; padding-bottom: 2px; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--red); transition: width 0.25s; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.lang-switch { position: relative; display: inline-flex; align-items: center; width: 4.4rem; height: 1.6rem; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 0.15rem; flex-shrink: 0; }
.lang-indicator { position: absolute; top: 0.15rem; left: 0.15rem; width: calc(50% - 0.15rem); height: calc(100% - 0.3rem); background: var(--red); border-radius: 999px; transform: translateX(0); transition: transform 0.25s var(--ease); }
.lang-switch[data-active="de"] .lang-indicator { transform: translateX(100%); }
.lang-switch:has(.lang-link:first-child:hover) .lang-indicator, .lang-switch:has(.lang-link:first-child:focus-visible) .lang-indicator { transform: translateX(0); }
.lang-switch:has(.lang-link:last-of-type:hover) .lang-indicator, .lang-switch:has(.lang-link:last-of-type:focus-visible) .lang-indicator { transform: translateX(100%); }
.lang-link { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,0.42); line-height: 1.28rem; transition: color 0.2s; }
.lang-link[aria-current="true"] { color: var(--black); }
.lang-link:not([aria-current="true"]):hover, .lang-link:not([aria-current="true"]):focus-visible { color: var(--white); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
#nav-backdrop { display: none; }

/* Own IP, always visible at the top of every page: the purpose of the site. */
.hdr-ip { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; height: 40px; padding: 0 0.35rem 0 0.95rem; margin: 0 auto 0 1.4rem; border: 1px solid rgba(var(--red-rgb), 0.55); border-radius: 999px; background: rgba(var(--red-rgb), 0.08); box-shadow: 0 0 24px -10px rgba(var(--red-rgb), 0.8); }
.hdr-ip__label { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.hdr-ip__val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 22rem; }
.hdr-ip[data-state="loading"] .hdr-ip__val { color: var(--text-faint); }
.hdr-ip__copy { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--red); color: var(--white); cursor: pointer; transition: background 0.2s, transform 0.2s var(--ease); }
.hdr-ip__copy:hover:not([disabled]) { background: #f03b31; transform: scale(1.06); }
.hdr-ip__copy[disabled] { opacity: 0.35; cursor: default; }
.hdr-ip__copy svg.i { width: 16px; height: 16px; }
.hdr-ip__copy .icon-btn__done { display: none; color: var(--white); }
.hdr-ip__copy.is-done .icon-btn__idle { display: none; }
.hdr-ip__copy.is-done .icon-btn__done { display: grid; animation: pop 0.35s var(--ease); }
.hdr-ip[data-state="error"] { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); margin-top: var(--header-h); display: flex; align-items: center; padding: clamp(2.5rem, 6vh, 5rem) var(--pad-x) 4.5rem; overflow: hidden; isolation: isolate; }
#beacon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 20% 50%, rgba(0,0,0,0.82), rgba(0,0,0,0.25) 55%, transparent 75%), linear-gradient(0deg, #000 0, transparent 22%); }
.hero-content { position: relative; max-width: var(--content-max); margin: 0 auto; width: 100%; }
.hero-eyebrow { font-weight: 400; line-height: 1.6; font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--red); margin-bottom: 1.2rem; animation: fade-up 0.9s var(--ease) both 0.1s; }
.hero-ip-wrap { display: flex; align-items: center; gap: clamp(0.6rem, 1.5vw, 1.4rem); flex-wrap: wrap; }
.hero-ip { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(3.6rem, 12.5vw, 11.5rem); line-height: 0.9; letter-spacing: 0.015em; font-variant-numeric: tabular-nums; color: var(--white); text-shadow: 0 0 60px rgba(var(--red-rgb), 0.25); overflow-wrap: anywhere; min-width: 0; }
.hero-ip[data-len="long"] { font-size: clamp(2rem, 6.2vw, 5.6rem); line-height: 1; }
.hero-ip[data-len="mid"] { font-size: clamp(3rem, 9vw, 8.6rem); }
.hero-ip .sep { color: var(--red); text-shadow: 0 0 28px rgba(var(--red-rgb), 0.7); }
.hero-ip .ch { display: inline-block; }
.hero-ip .ch.scr { color: rgba(255,255,255,0.4); }
.hero-ip__ph { color: rgba(255,255,255,0.08); animation: ph-pulse 1.4s ease-in-out infinite; }
@keyframes ph-pulse { 50% { color: rgba(255,255,255,0.16); } }
.hero-ip[data-state="error"] { font-size: clamp(1.6rem, 4vw, 3rem); color: var(--text-mid); text-shadow: none; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: clamp(1.3rem, 3vh, 2rem); min-height: 2.2rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,10,10,0.75); backdrop-filter: blur(6px); font-size: 0.84rem; color: var(--text-strong); animation: chip-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 0.4s); }
.chip svg.i { color: var(--red); }
.chip--skeleton { width: 8.5rem; height: 2.2rem; animation: ph-pulse-bg 1.4s ease-in-out infinite; }
@keyframes ph-pulse-bg { 0%, 100% { background: rgba(255,255,255,0.03); } 50% { background: rgba(255,255,255,0.07); } }
.chip--alert { border-color: rgba(var(--red-rgb), 0.6); color: var(--white); background: rgba(var(--red-rgb), 0.14); }
.chip--ok { border-color: rgba(61,220,132,0.4); }
.chip--ok svg.i { color: var(--green); }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.hero-sub { margin-top: 1.6rem; max-width: 40rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--text-mid); font-weight: 300; animation: fade-up 0.9s var(--ease) both 0.5s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; animation: fade-up 0.9s var(--ease) both 0.65s; }
.local-badge[hidden] { display: none; }
.local-badge { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.8rem; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); animation: fade-up 0.9s var(--ease) both 0.8s; }
.local-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,132,0.6); animation: live-dot 2s ease-out infinite; flex-shrink: 0; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } }
.hero-scroll { position: absolute; bottom: 2rem; right: var(--pad-x); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.hero-scroll::before { content: ''; display: block; width: 1px; height: 44px; background: linear-gradient(var(--red), transparent); animation: scroll-line 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.divider-bar { height: 2px; max-width: var(--content-max); margin: 0 auto; background: linear-gradient(90deg, var(--red) 0%, transparent 60%); }

/* ---------- buttons ---------- */
.btn { --b: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0 1.4rem; border: 1px solid var(--b); border-radius: var(--radius); background: var(--gray-dark); color: var(--white); font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s; -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden; }
.btn:hover { border-color: rgba(255,255,255,0.4); }
.btn:active { transform: scale(0.98); }
.btn--primary { --b: var(--red); background: var(--red); box-shadow: 0 14px 40px -16px rgba(var(--red-rgb), 0.9); }
.btn--primary:hover { background: #f03b31; border-color: #ff6a60; box-shadow: 0 18px 50px -14px rgba(var(--red-rgb), 1); }
.btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(0,0,0,0.5); }
.btn--wide { width: 100%; }
.btn--xl { min-height: 58px; padding: 0 2rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.is-busy svg.i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,0.6); color: var(--white); cursor: pointer; transition: border-color 0.2s, background 0.2s; flex-shrink: 0; }
.icon-btn svg.i { width: 22px; height: 22px; }
.icon-btn:hover:not([disabled]) { border-color: var(--red); }
.icon-btn[disabled] { opacity: 0.3; cursor: default; }
.icon-btn__done { display: none; color: var(--green); }
.icon-btn.is-done .icon-btn__idle { display: none; }
.icon-btn.is-done .icon-btn__done { display: grid; animation: pop 0.35s var(--ease); }
@keyframes pop { 0% { transform: scale(0.5); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- sections ---------- */
.sec { max-width: var(--content-max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--pad-x) 0; }
.sec:last-of-type { padding-bottom: clamp(4rem, 9vw, 7rem); }
.sec-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow { display: block; font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
.sec-head h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: 0.02em; }
.lede { margin-top: 1rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-mid); font-weight: 300; max-width: 44rem; }
.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid + .grid, .card + .grid, .grid + .card { margin-top: clamp(1rem, 1.8vw, 1.5rem); }

/* ---------- cards with cursor-following glow ---------- */
.card { --mx: 50%; --my: 0%; position: relative; padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: var(--radius); background: linear-gradient(#050505, #050505) padding-box, linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 60%) border-box; border: 1px solid transparent; min-width: 0; }
.card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--red-rgb), 0.75), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.35s; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px circle at var(--mx) var(--my), rgba(var(--red-rgb), 0.07), transparent 40%); opacity: 0; transition: opacity 0.35s; }
@media (hover: hover) { .card:hover::before, .card:hover::after { opacity: 1; } }
.card__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.card__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(var(--red-rgb), 0.45); border-radius: var(--radius); color: var(--red); background: rgba(var(--red-rgb), 0.08); flex-shrink: 0; }
.card__icon svg.i { width: 20px; height: 20px; }
.card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.3; }
.card__sub { font-size: 0.84rem; color: var(--text-dim); margin-top: 0.15rem; }
.card__foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-dim); line-height: 1.55; }
.card--plain .card__icon { margin-bottom: 1.2rem; }
.card--plain p { margin-top: 0.6rem; color: var(--text-dim); font-size: 0.95rem; }

/* key/value rows */
.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr); gap: 1rem; padding: 0.62rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); align-items: baseline; animation: row-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.rows dd { font-size: 0.95rem; color: var(--text-strong); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rows dd .muted { color: var(--text-dim); font-size: 0.85em; }
.rows dd .tag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 2px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 0.1em; border: 1px solid var(--line); color: var(--text-dim); }
.rows dd .tag--ok { border-color: rgba(61,220,132,0.45); color: var(--green); }
.rows dd .tag--warn { border-color: rgba(var(--red-rgb), 0.6); color: #ff8a80; }
.rows--mono dd { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.5; color: var(--text-mid); }
.rows--compact > div { padding: 0.45rem 0; grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr); }
.rows--compact dd { font-size: 0.82rem; }
@keyframes row-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.rows__loading { display: flex; gap: 6px; padding: 1.5rem 0; }
.rows__loading span { width: 8px; height: 8px; background: var(--red); animation: dots 1.2s ease-in-out infinite; }
.rows__loading span:nth-child(2) { animation-delay: 0.15s; }
.rows__loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.alert { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid rgba(var(--red-rgb), 0.5); background: rgba(var(--red-rgb), 0.08); font-size: 0.88rem; color: var(--text-strong); }
.alert svg.i { color: var(--red); margin-top: 0.15rem; }
.alert--ok { border-color: rgba(61,220,132,0.4); background: rgba(61,220,132,0.06); }
.alert--ok svg.i { color: var(--green); }
.alert--info { border-color: var(--line); background: rgba(255,255,255,0.03); }
.alert--info svg.i { color: var(--text-mid); }
.alert code { word-break: break-all; color: var(--white); }

/* ---------- device gate ---------- */
.gate { position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem); border: 1px dashed rgba(var(--red-rgb), 0.45); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 0%, rgba(var(--red-rgb), 0.12), transparent 60%), #030303; }
.gate__scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(var(--red-rgb), 0.22), transparent); animation: gate-scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes gate-scan { 0% { top: -120px; } 60%, 100% { top: 100%; } }
.gate__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(var(--red-rgb), 0.5); color: var(--red); margin-bottom: 1.4rem; background: rgba(var(--red-rgb), 0.08); box-shadow: 0 0 0 10px rgba(var(--red-rgb), 0.04), 0 0 0 22px rgba(var(--red-rgb), 0.025); }
.gate__icon svg.i { width: 34px; height: 34px; }
.gate h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: 0.03em; line-height: 1; }
.gate p { max-width: 38rem; margin: 1rem auto 1.8rem; color: var(--text-mid); }
.gate .gate__note { margin: 1.3rem auto 0; font-size: 0.78rem; color: var(--text-dim); }
.gate.is-leaving { animation: gate-out 0.55s var(--ease) forwards; }
@keyframes gate-out { to { opacity: 0; transform: scale(0.98); filter: blur(6px); } }
#device-grid .card { animation: card-in 0.75s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* ---------- privacy score ---------- */
.score { position: relative; width: min(190px, 70%); margin: 0.4rem auto 0.6rem; aspect-ratio: 1; }
.score__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__track { fill: none; stroke: var(--gray-mid); stroke-width: 8; }
.score__fill { fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.6s var(--ease), stroke 0.4s; filter: drop-shadow(0 0 8px rgba(var(--red-rgb), 0.6)); }
.score__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 0.9; }
.score__num small { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--text-faint); }
.score__verdict { text-align: center; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); min-height: 1.2em; margin-bottom: 1rem; }
.checks { list-style: none; display: grid; gap: 0.15rem; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); animation: row-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 0.3s); }
.checks li:last-child { border-bottom: 0; }
.checks .ck { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 0.05rem; }
.checks .ck svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.checks .pass .ck { background: rgba(61,220,132,0.14); color: var(--green); }
.checks .fail .ck { background: rgba(var(--red-rgb), 0.16); color: var(--red); }
.checks .na .ck { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.checks strong { display: block; font-size: 0.9rem; font-weight: 700; }
.checks span.d { display: block; font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin-top: 0.1rem; }
.checks .w { float: right; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 400; }

/* fingerprint */
.fp-hash { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: 0.08em; padding: 1.1rem 1rem; text-align: center; border: 1px solid rgba(var(--red-rgb), 0.35); border-radius: var(--radius); background: #000; margin-bottom: 1rem; overflow-wrap: anywhere; }
.fp-hash small { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.45rem; }
.fp-hash b { color: var(--red); font-weight: 400; }

/* ---------- speed ---------- */
.speed { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.gauge { position: relative; max-width: 560px; width: 100%; margin: 0 auto; }
.gauge__svg { width: 100%; height: auto; overflow: visible; }
.gauge__track { fill: none; stroke: var(--gray-mid); stroke-width: 14; stroke-linecap: round; }
.gauge__fill { fill: none; stroke: url(#gauge-grad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; filter: drop-shadow(0 0 10px rgba(var(--red-rgb), 0.55)); }
.gauge__ticks line { stroke: rgba(255,255,255,0.22); stroke-width: 1.4; }
.gauge__ticks text { fill: var(--text-faint); font-size: 10px; font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.05em; text-anchor: middle; }
.gauge__needle { stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; transform-origin: 150px 160px; transform: rotate(-90deg); filter: drop-shadow(0 0 6px rgba(255,255,255,0.5)); }
.gauge__hub { fill: var(--red); }
.gauge__readout { margin-top: 0.2rem; text-align: center; display: grid; justify-items: center; position: relative; }
.gauge__value { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.2rem, 7vw, 5.4rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.gauge__unit { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.gauge__phase { margin-top: 0.35rem; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); min-height: 1.2em; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.3rem; }
.metric { padding: 1rem 1rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #000; transition: border-color 0.3s; }
.metric.is-active { border-color: rgba(var(--red-rgb), 0.7); box-shadow: 0 0 0 1px rgba(var(--red-rgb), 0.25) inset; }
.metric dt { display: flex; align-items: center; gap: 0.45rem; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.metric dt svg.i { color: var(--red); width: 14px; height: 14px; }
.metric dd { margin-top: 0.4rem; font-family: 'Bebas Neue', sans-serif; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.metric dd small { font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; color: var(--text-faint); margin-left: 0.35rem; letter-spacing: 0.08em; }
.speed__note, .speed__conn { margin-top: 1rem; font-size: 0.8rem; color: var(--text-dim); }

/* ---------- tools ---------- */
.lookup__form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.lookup__input { flex: 1 1 18rem; min-width: 0; min-height: 52px; padding: 0 1.1rem; border: 1px solid var(--gray-light); border-radius: var(--radius); background: #000; color: var(--white); font: inherit; font-size: 1.05rem; letter-spacing: 0.02em; transition: border-color 0.2s, box-shadow 0.2s; }
.lookup__input::placeholder { color: rgba(255,255,255,0.32); }
.lookup__input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.18); }
.lookup__results { display: grid; gap: 0.8rem; margin-top: 1rem; }
.lk-item { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #000; animation: row-in 0.45s var(--ease) both; }
.lk-item__ip { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; letter-spacing: 0.03em; line-height: 1; overflow-wrap: anywhere; }
.lk-item__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.lk-item__chips .chip { animation: none; font-size: 0.78rem; padding: 0.3rem 0.7rem; }
.lk-msg { font-size: 0.9rem; color: var(--text-mid); }
.optin__p { color: var(--text-mid); font-size: 0.95rem; }
.optin__third { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0 1.2rem; padding: 0.8rem 0.9rem; border-left: 2px solid var(--red); background: rgba(255,255,255,0.025); font-size: 0.8rem; color: var(--text-dim); }
.optin__third svg.i { color: var(--red); margin-top: 0.12rem; }
.optin__result:empty { display: none; }

/* ---------- prose ---------- */
.prose p { color: var(--text-mid); font-size: 1.02rem; line-height: 1.8; }
.prose--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3rem); max-width: 64rem; }
.quote { margin: clamp(2rem, 5vw, 3.5rem) 0; padding-left: clamp(1rem, 3vw, 2rem); border-left: 2px solid var(--red); max-width: 56rem; }
.quote p { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: 0.02em; }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.dl__p { color: var(--text-mid); }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 1.5rem 0 1.8rem; }
.tiles li { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.84rem; color: var(--text-strong); background: #000; }
.tiles svg.i { color: var(--red); }
.dl__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.9rem 2rem; margin-top: 1.5rem; }
.dl__meta dt { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); }
.dl__meta dd { font-size: 0.9rem; color: var(--text-strong); margin-top: 0.15rem; }
.dl__sha { grid-column: 1 / -1; }
.dl__sha code { font-size: 0.72rem; color: var(--text-mid); word-break: break-all; }
.dl__steps h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: 0.03em; margin-bottom: 1rem; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.9rem; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; line-height: 1; color: var(--red); }
.steps strong { font-size: 0.95rem; }
.steps span { font-size: 0.86rem; color: var(--text-dim); }
.code { margin-top: 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #000; overflow-x: auto; font-size: 0.85rem; line-height: 1.7; color: var(--text-strong); }
.code code { font-size: inherit; }
.code code::first-line { color: var(--white); }
.dl__check { margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-dim); }

/* ---------- faq ---------- */
.faq { display: grid; max-width: 58rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex-shrink: 0; border-right: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 1.4rem; color: var(--text-mid); max-width: 50rem; }
.faq summary:hover { color: var(--white); }

/* ---------- dock, toast ---------- */
.dock { position: fixed; z-index: 90; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 0.3rem; padding: 0.35rem; border: 1px solid var(--gray-light); border-radius: 999px; background: rgba(0,0,0,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(var(--red-rgb), 0.12); animation: dock-in 0.6s var(--ease) both; }
.dock[hidden] { display: none; }
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dock__btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1.05rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-strong); font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.dock__btn:hover { background: rgba(var(--red-rgb), 0.16); color: var(--white); }
.dock__btn svg.i { color: var(--red); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 5.6rem; transform: translate(-50%, 20px); padding: 0.7rem 1.1rem; border-radius: var(--radius); background: var(--white); color: var(--black); font-size: 0.82rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--gray-light); margin-top: 2rem; }
.footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 2.4rem var(--pad-x) 6rem; display: grid; grid-template-columns: 1fr auto; gap: 0.9rem 2rem; font-size: 0.78rem; color: var(--text-dim); }
.footer-brand { display: grid; gap: 0.4rem; }
.footer-brand .logo-text { display: inline; font-size: 0.78rem; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: flex-end; }
.footer-links a { color: var(--text-mid); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-sep { color: var(--gray-light); }
.footer-copy, .footer-attr { font-size: 0.72rem; }
.footer-attr { text-align: right; }

/* ---------- legal pages ---------- */
.legal { max-width: 1180px; margin: var(--header-h) auto 0; padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x) clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.legal__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.legal__aside h1 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 0.95; letter-spacing: 0.02em; }
.legal__toc { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.35rem; }
.legal__toc a { font-size: 0.78rem; color: var(--text-dim); text-decoration: none; }
.legal__toc a:hover { color: var(--white); }
.legal__body { max-width: 50rem; }
.legal__body section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.legal__body section:last-child { border-bottom: 0; }
.legal__body h2 { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; font-weight: 400; }
.legal__body h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.legal__body p, .legal__body li { color: var(--text-mid); line-height: 1.8; font-size: 0.97rem; }
.legal__body p + p { margin-top: 0.8rem; }
.legal__body ul { padding-left: 1.2rem; margin-top: 0.6rem; }
.legal__body strong { color: var(--white); }

/* ---------- reveal on scroll ---------- */
.ux-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.ux-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- print report ---------- */
.report { display: none; }

/* wide screens: no dead space next to text */
@media (min-width: 1100px) {
    .sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; max-width: none; }
    .sec-head .eyebrow { grid-column: 1; }
    .sec-head h2 { grid-column: 1; }
    .sec-head .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; padding-bottom: 0.35rem; border-left: 1px solid var(--line); padding-left: clamp(1.2rem, 2.5vw, 2rem); }
    .prose--cols { max-width: none; }
    .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); max-width: none; border-top: 0; align-items: start; }
    .faq details { border-top: 1px solid var(--line); border-bottom: 0; }
    .quote { max-width: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #device-grid .card--score { grid-row: span 2; }
    .speed, .dl { grid-template-columns: minmax(0, 1fr); }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
    .main-nav { gap: 1.2rem; }
    .hdr-ip__label { display: none; }
}
@media (max-width: 920px) {
    :root { --header-h: 64px; }
    .hdr-ip { margin: 0 0.6rem 0 auto; }
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(320px, 86vw); flex-direction: column; align-items: flex-start; gap: 0; padding: 1.5rem; background: #000; border-left: 1px solid var(--gray-light); transform: translateX(100%); transition: transform 0.35s var(--ease); visibility: hidden; }
    .main-nav.open { transform: none; visibility: visible; }
    .main-nav .nav-link { width: 100%; padding: 1rem 0; font-size: 0.82rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .main-nav .lang-switch { margin-top: 1.5rem; }
    #nav-backdrop.open { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(0,0,0,0.6); }
    .grid--2, .grid--3, .prose--cols { grid-template-columns: minmax(0, 1fr); }
    #device-grid .card--score { grid-row: auto; }
    .legal { grid-template-columns: minmax(0, 1fr); }
    .legal__aside { position: static; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); }
    .footer-links { justify-content: flex-start; }
    .footer-attr { text-align: left; }
    .hero-scroll { display: none; }
}
@media (max-width: 560px) {
    .logo-text { display: none; }
    .hdr-ip { padding-left: 0.8rem; height: 38px; }
    .hdr-ip__val { font-size: 0.95rem; max-width: 58vw; }
    .hero-actions .btn { width: 100%; }
    .tiles { grid-template-columns: minmax(0, 1fr); }
    .rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl__meta { grid-template-columns: repeat(2, auto); }
    .dock__btn span { display: none; }
    .dock__btn { padding: 0 0.95rem; }
    .lookup__form .btn { width: 100%; }
}
@media (min-width: 1700px) {
    :root { --content-max: 1440px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .ux-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    @page { margin: 16mm 14mm; }
    html, body { background: #fff !important; color: #111 !important; }
    body::before, .site-header, #nav-backdrop, main, .site-footer, .dock, .toast, .skip-link { display: none !important; }
    .report { display: block !important; font-family: 'Space Grotesk', Arial, sans-serif; color: #111; font-size: 10pt; line-height: 1.45; }
    .report h1 { font-family: 'Bebas Neue', Arial, sans-serif; font-size: 34pt; font-weight: 400; letter-spacing: 0.02em; line-height: 1; }
    .report h1 b { color: #e5332a; font-weight: 400; }
    .report .r-meta { margin: 4pt 0 14pt; color: #555; font-size: 9pt; }
    .report .r-ip { font-family: 'Bebas Neue', Arial, sans-serif; font-size: 40pt; line-height: 1; margin-bottom: 6pt; }
    .report h2 { font-size: 8pt; letter-spacing: 0.24em; text-transform: uppercase; color: #e5332a; font-weight: 700; margin: 14pt 0 5pt; padding-bottom: 3pt; border-bottom: 1.5pt solid #e5332a; break-after: avoid; }
    .report table { width: 100%; border-collapse: collapse; break-inside: auto; }
    .report tr { break-inside: avoid; }
    .report th, .report td { text-align: left; vertical-align: top; padding: 3pt 6pt 3pt 0; border-bottom: 0.5pt solid #ddd; }
    .report th { width: 34%; color: #555; font-weight: 400; font-size: 8.5pt; }
    .report td { font-size: 9pt; word-break: break-word; }
    .report .r-foot { margin-top: 18pt; padding-top: 6pt; border-top: 0.5pt solid #ccc; color: #666; font-size: 8pt; }
}
