@charset "UTF-8";

:root {
  --bg: #1A1D21;
  --bg-deep: #141619;
  --card: #22262B;
  --card-2: #2A2F36;
  --line: #333840;
  --line-soft: #2A2F36;
  --text: #C8CDD4;
  --text-2: #B4BAC3;
  --strong: #E4E7EB;
  --muted: #8A929E;
  --faint: #6F7885;
  --accent: #C0392B;
  --accent-rgb: 192, 57, 43;
  --accent-soft: #E2766B;
  --accent-hover: #A93226;
  --danger: #C0392B;
  --danger-soft: #E2766B;
  --danger-text: #E7B3AD;
  --danger-bg: #3A2221;
  --danger-line: #6B2A25;
  --danger-solid: #6B2A25;
  --orange: #E67E22;
  --orange-bg: #33291A;
  --green: #27AE60;
  --green-dark: #1E8449;
  --green-text: #A9D8B8;
  --green-bg: #1B2B22;
  --lvl-0: #C0392B; --lvl-1: #C0392B; --lvl-2: #E67E22; --lvl-3: #3B82F6; --lvl-4: #27AE60;
  --nav-bg: rgba(26, 29, 33, .9);
  --grid-line: rgba(255, 255, 255, .018);
  --grid-glow: .5;
  --tester-bg: linear-gradient(180deg, rgba(34, 38, 43, .97), rgba(28, 31, 36, .97));
  --fade-end: rgba(15, 10, 10, .5);
  --foot-link: #565E6B;
  --foot-head: #7A8390;
  --radius: 12px;

  --font: 'Inter', sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
  --mono-local: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --max: 1200px;
  --gutter: 48px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ECE6D9;
  --bg-deep: #E2DACA;
  --card: #F2EDE2;
  --card-2: #E8E1D2;
  --line: #D3C9B5;
  --line-soft: #DDD4C2;
  --text: #1D2A3B;
  --text-2: #334155;
  --strong: #16202E;
  --muted: #4F5D72;
  --faint: #515C6F;
  --accent: #2F5F98;
  --accent-rgb: 47, 95, 152;
  --accent-soft: #2F5F98;
  --accent-hover: #264E7E;
  --danger: #AB3226;
  --danger-soft: #A03024;
  --danger-text: #7C2A21;
  --danger-bg: #F7E3DE;
  --danger-line: #E0A99F;
  --danger-solid: #AB3226;
  --orange: #8F4A07;
  --orange-bg: #F8EAD4;
  --green: #1D6E40;
  --green-dark: #1D6E40;
  --green-text: #1D5E3A;
  --green-bg: #E1F0E5;
  --lvl-0: #AB3226; --lvl-1: #AB3226; --lvl-2: #8F4A07; --lvl-3: #285FA5; --lvl-4: #1D6E40;
  --nav-bg: rgba(236, 230, 217, .9);
  --grid-line: rgba(29, 42, 59, .05);
  --grid-glow: .42;
  --tester-bg: linear-gradient(180deg, rgba(242, 237, 226, .98), rgba(238, 232, 220, .98));
  --fade-end: rgba(211, 201, 181, .6);
  --foot-link: #525D70;
  --foot-head: #4A586D;
  color-scheme: light;
}

[data-theme="light"] .brand { position: relative; }
[data-theme="light"] .brand::before { content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 8px; background: #1F2C3F; }
[data-theme="light"] .brand-logo { position: relative; filter: hue-rotate(212deg) saturate(.85) brightness(1.25); }

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

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: inherit; }
.is-ghost { visibility: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 20px; height: 20px; flex: none; }
.icon use { pointer-events: none; }

.bg-grid, .bg-grid-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-size: 44px 44px;
}
.bg-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}
.bg-grid-glow {
  opacity: 0; transition: opacity .35s ease;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), var(--grid-glow)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), var(--grid-glow)) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle 200px at var(--gx, 50%) var(--gy, 50%), #000 0%, rgba(0, 0, 0, .4) 45%, transparent 72%);
  mask-image: radial-gradient(circle 200px at var(--gx, 50%) var(--gy, 50%), #000 0%, rgba(0, 0, 0, .4) 45%, transparent 72%);
}
.bg-grid-glow.is-on { opacity: 1; }
.bg-glow {
  position: fixed; top: -200px; left: 50%; width: min(700px, 100vw); height: 500px; z-index: -1;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent);
  animation: glow 9s ease-in-out infinite;
}
@keyframes glow { 50% { transform: translateX(-46%) scale(1.08); opacity: .7; } }

.scroll-progress { position: fixed; top: 0; left: 0; z-index: 30; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent-hover), var(--accent)); box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); transition: width .1s linear; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 36px; height: 36px; display: block; object-fit: contain; flex: none; }
.brand-name { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); }
.brand-name b { color: var(--accent); }

.site-nav { display: flex; gap: 32px; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width .25s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-current { color: var(--strong); outline: none; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-current::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; pointer-events: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }
.btn-home { text-decoration: none; padding: 10px 18px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-home .icon { transition: transform .2s; }
.btn-home:hover .icon { transform: translateX(-3px); }
.home-short { display: none; }
.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
[id] { scroll-margin-top: 92px; }
.section:first-of-type { border-top: 0; }

.section--solid { background: var(--card); }
.section--solid .attack { background: var(--bg); }
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0 0 16px; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.5px; }
h3 { font-size: 18px; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
.lead { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 560px; margin: 0 0 36px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "intro tester" "trust tester"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 8px; }
  .hero-intro { grid-area: intro; }
  .tester { grid-area: tester; }
  .trust-list { grid-area: trust; }
}
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.trust-list strong { display: block; font-size: 15px; color: var(--strong); }
.trust-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(var(--accent-rgb), .12); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.trust-ico .icon { width: 18px; height: 18px; }

.tester {
  position: relative;
  background: var(--tester-bg);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(var(--accent-rgb), .25);
}
.tester::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, rgba(var(--accent-rgb), .7), transparent 35%, transparent 70%, rgba(var(--accent-rgb), .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tester-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.tester-head label { font-size: 14px; font-weight: 700; color: var(--strong); }

.pw-box {
  position: relative; display: flex; align-items: stretch;
  height: 58px; background: var(--bg-deep);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.pw-box.is-focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.pw-box.is-revealed { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(230, 126, 34, .12); }
.pw-lock { position: relative; z-index: 1; width: 46px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: color .3s, transform .4s; }
.pw-box.is-revealed .pw-lock { color: var(--orange); transform: rotate(-12deg); }
.pw-lock svg { overflow: visible; }
.pw-lock .lock-shackle { transition: transform .35s; transform-origin: 18px 10px; }
.pw-box.is-revealed .pw-lock .lock-shackle { transform: translateY(-2px) rotate(25deg); }

.pw-field { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.pw-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; outline: 0; padding: 0;
  font-family: var(--mono-local); font-size: 18px; letter-spacing: 0;
  color: transparent; caret-color: var(--accent);
}
.pw-input::placeholder { color: var(--faint); }
.pw-input::-ms-reveal, .pw-input::-ms-clear { display: none; }
.pw-input::-webkit-credentials-auto-fill-button, .pw-input::-webkit-strong-password-auto-fill-button { visibility: hidden; display: none !important; pointer-events: none; }
.pw-input::selection { background: rgba(var(--accent-rgb), .35); color: transparent; }
.pw-overlay {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; align-items: center; white-space: pre; pointer-events: none;
  font-family: var(--mono-local); font-size: 18px;
}
.pw-overlay span { display: inline-block; width: 1ch; text-align: center; color: var(--strong); }
.pw-overlay .c-new { animation: c-in .28s ease-out; }
.pw-overlay .c-mask { color: var(--accent); animation: c-pop .25s ease-out; }
.pw-overlay .c-scramble { color: var(--orange); }
.pw-overlay .c-flip { animation: c-flip .34s ease-in-out; }
@keyframes c-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes c-pop { 0% { transform: scale(.2); } 70% { transform: scale(1.35); } }
@keyframes c-flip { 50% { transform: rotateX(90deg); } }

.pw-eye {
  width: 58px; flex: none; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-left: 1px solid var(--line);
  color: var(--text-2); cursor: pointer; transition: background .2s, color .2s;
}
.pw-eye:hover, .pw-eye:focus-visible { background: var(--card-2); color: var(--strong); outline: none; }
.pw-eye svg { width: 26px; height: 26px; }
.pw-eye .eye-pupil { transition: transform .35s; transform-origin: 12px 12px; transform: scale(.6); }
.pw-eye .eye-slash { stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset .35s; }
.pw-box.is-revealed .pw-eye .eye-pupil { transform: scale(1); }
.pw-box.is-revealed .pw-eye .eye-slash { stroke-dashoffset: 24; }
.pw-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); }

.pw-hint { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--faint); margin: 8px 2px 16px; min-height: 18px; }
.pw-hint.is-on span:last-child { color: var(--orange); font-weight: 700; }

.tester-options { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.btn-check {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; min-width: 104px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
  padding: 0 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, opacity .2s;
}
.btn-check .icon { width: 16px; height: 16px; }
.btn-check:hover, .btn-check:focus-visible { background: var(--accent-hover); }
.btn-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-check:disabled { opacity: .45; cursor: default; background: var(--accent); }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 32px; height: 18px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .track { background: rgba(var(--accent-rgb), .3); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.result { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin: 0 0 16px; }
.gauge { position: relative; width: 120px; height: 120px; }
.gauge svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge .g-track { stroke: var(--card-2); }
.gauge .g-bar { stroke: var(--lvl-0); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1), stroke .4s; }
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-num b { font-size: 30px; line-height: 1; color: var(--strong); }
.gauge-num small { font-size: 11px; color: var(--faint); }
.verdict-label { white-space: nowrap; font-size: 22px; font-weight: 700; color: var(--muted); transition: color .3s; margin: 0 0 6px; }
.meter { display: flex; gap: 4px; margin: 0 0 10px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--card-2); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform .35s, background .35s; }
.verdict-time { font-size: 13px; color: var(--muted); margin: 0; }
.verdict-time b { color: var(--strong); display: block; white-space: nowrap; }

.leak {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 0 0 12px; font-size: 14px; transition: border-color .3s, background .3s;
}
.leak .leak-ico { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--card-2); color: var(--muted); flex: none; }
.leak strong { display: block; color: var(--strong); font-size: 14px; }
.leak span { color: var(--muted); font-size: 12px; }
.leak.is-bad { border-color: var(--danger-line); background: var(--danger-bg); }
.leak.is-bad .leak-ico { background: var(--danger-solid); color: #fff; }
.leak.is-good { border-color: var(--green-dark); }
.leak.is-good .leak-ico { background: var(--green-dark); color: #fff; }
.leak.is-wait .leak-ico svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.crit {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: var(--muted); transition: all .3s;
}
.crit .ck { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; transition: all .3s; }
.crit .ck svg { width: 12px; height: 12px; opacity: 0; }
.crit.ok { color: var(--text); border-color: var(--green-dark); }
.crit.ok .ck { background: var(--green-dark); border-color: var(--green-dark); color: #fff; animation: c-pop .3s; }
.crit.ok .ck svg { opacity: 1; }
.crit.ko { color: var(--danger-soft); border-color: var(--danger-line); }
.crit.ko .ck { background: var(--danger-line); border-color: var(--danger-line); }

.leak { height: 86px; overflow: hidden; }
.pw-hint { height: 18px; overflow: hidden; white-space: nowrap; }
.result { min-height: 120px; }
.advice { position: relative; height: 136px; overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 14px; }
.advice-title { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.advice-empty { margin: 0; font-size: 13px; color: var(--faint); }
.advice-empty[hidden] { display: none; }
.feedback { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feedback li { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text-2); animation: c-in .3s; }
.feedback li::before { content: "›"; color: var(--accent); font-weight: 700; }

.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 0; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--green); }

.tips { padding: 14px 0; background: var(--bg-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: grid; gap: 4px; }
.tips-row {
  padding: 4px 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tips-row::-webkit-scrollbar { display: none; }
.tips-track { display: flex; width: max-content; padding-left: 12px; }
.tips.is-moving .tips-row { overflow: hidden; }
.tips.is-swipe .tips-row { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.tips.is-moving .tips-track { animation: tips-slide 70s linear infinite; }
.tips.is-moving .is-reverse .tips-track { animation-direction: reverse; animation-duration: 80s; }
.tips:hover .tips-track, .tips:focus-within .tips-track, .tips.is-paused .tips-track { animation-play-state: paused; }
@keyframes tips-slide { to { transform: translateX(-50%); } }
.tip {
  display: flex; align-items: center; gap: 12px; margin-right: 12px; flex: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px 10px 10px; color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .25s, transform .25s, background .25s;
}
.tip:hover, .tip:focus-visible { border-color: var(--accent); background: var(--card-2); transform: translateY(-2px); outline: none; }
.tip-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(var(--accent-rgb), .12); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; transition: background .25s, color .25s; }
.tip:hover .tip-ico, .tip:focus-visible .tip-ico { background: var(--accent); color: #fff; }
.tip-txt { font-size: 12px; color: var(--muted); line-height: 1.4; white-space: nowrap; }
.tip-txt b { display: block; font-size: 14px; color: var(--strong); }

.how-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.flow { display: flex; align-items: center; gap: 0; margin: 0 0 16px; }
.flow-node {
  flex: 0 0 34%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 6px; text-align: center; font-size: 12px; color: var(--text-2); line-height: 1.35;
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
.flow-node .icon { display: block; margin: 0 auto 6px; width: 24px; height: 24px; color: var(--faint); transition: color .4s; }
.flow-node small { display: block; font-size: 10.5px; line-height: 15px; color: var(--faint); min-height: 30px; transition: color .4s; }
.flow-node.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12), 0 0 28px -6px rgba(var(--accent-rgb), .6); transform: translateY(-2px); }
.flow-node.is-active .icon { color: var(--accent); animation: node-beat 1.1s ease-in-out infinite; }
.flow-node.is-active small { color: var(--accent-soft); }
@keyframes node-beat { 50% { transform: scale(1.14); } }
.flow-wire { position: relative; flex: 1; height: 30px; min-width: 0; contain: layout; }
.flow-wire::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.flow-wire.to-right::before, .flow-wire.to-left::before {
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 12px 2px; animation: wire-run .35s linear infinite;
}
.flow-wire.to-left::before { animation-direction: reverse; }
@keyframes wire-run { to { background-position: 12px 0; } }
.packet {
  position: absolute; top: 5px; left: 0; opacity: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; line-height: 1; background: var(--accent); color: #fff;
  border-radius: 5px; padding: 5px 6px; box-shadow: 0 0 14px rgba(var(--accent-rgb), .7);
}
.packet.is-back { background: var(--card-2); color: var(--text); border: 1px solid var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .35); }

.console {
  contain: layout;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; min-height: 300px;
}
.console-row { opacity: .25; transition: opacity .4s, transform .4s; margin: 0 0 12px; transform: translateY(4px); }
.console-row.on { opacity: 1; transform: none; }
.console-row:last-child { margin: 0; }
.console-step { display: flex; align-items: center; gap: 8px; color: var(--faint); font-family: var(--font); font-size: 12px; margin: 0 0 2px; }
.console-step b { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.console-row.on .console-step b { border-color: var(--accent); color: #fff; background: var(--accent); }
.hash { word-break: break-all; color: var(--muted); }
.hash .p5 { color: #fff; background: var(--accent); border-radius: 3px; padding: 0 2px; }
.hash .rest { opacity: .4; }
.sfx { margin-top: 4px; }
.sfx div { display: flex; gap: 0; color: var(--faint); padding: 1px 6px; border-radius: 4px; border-left: 2px solid transparent; opacity: 0; transform: translateX(-8px); transition: background .25s, color .25s, opacity .3s, transform .3s, border-color .25s; }
.sfx div.show { opacity: 1; transform: none; }
.sfx .pre { color: var(--accent-soft); }
.sfx div.scan { background: var(--card-2); color: var(--text-2); border-left-color: var(--muted); }
.sfx div.hit { background: var(--danger-bg); color: var(--strong); border-left-color: var(--danger); animation: hit-flash .5s ease-out; }
.sfx div.hit .pre { color: #fff; background: var(--danger); border-radius: 3px; }
@keyframes hit-flash { 0% { transform: scale(1.04); } }
#d-count { display: block; margin: 0 0 2px; }
.c-white { color: var(--strong); }
.c-bad { color: var(--danger-soft); }
.c-note { color: var(--faint); font-family: var(--font); font-size: 11px; }
.console-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 10px 0 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 8px 14px; color: var(--text-2);
  border: 1px solid var(--line); background: transparent; border-radius: 8px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); color: var(--strong); outline: none; }
.btn-ghost .icon { width: 16px; height: 16px; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.tag-no { background: var(--green-bg); color: var(--green); }
.tag-yes { background: var(--orange-bg); color: var(--orange); }

.exit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 14px; }
.exit-head { display: flex; justify-content: space-between; padding: 8px 14px; background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.exit-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.exit-row:last-child { border-bottom: 0; }
.exit-row p { margin: 0; font-size: 14px; color: var(--text); }
.exit-row .tag { justify-self: end; }
.exit-lane { grid-column: 1 / -1; position: relative; height: 26px; border-radius: 6px; background: var(--bg-deep); overflow: hidden; contain: layout paint; }
.exit-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-soft) 0 5px, transparent 5px 10px); }
.exit-wall { position: absolute; left: 58%; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--green); box-shadow: 0 0 10px rgba(39, 174, 96, .6); }
.is-pass .exit-wall { background: none; box-shadow: none; border-left: 2px dashed var(--orange); opacity: .6; }
.exit-chip {
  position: absolute; top: 4px; left: 0; opacity: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; line-height: 1; padding: 4px 6px; border-radius: 4px;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
}
.is-pass .exit-chip { background: var(--orange-bg); color: var(--orange); border-color: var(--orange); }
.reveal.in .is-blocked .exit-chip { animation: exit-block 4.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.reveal.in .is-pass .exit-chip { animation: exit-pass 4.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.reveal.in .is-blocked .exit-wall { animation: wall-hit 4.2s linear infinite; }
.exit-row:nth-child(3) .exit-chip, .exit-row:nth-child(3) .exit-wall { animation-delay: .5s !important; }
.exit-row:nth-child(4) .exit-chip, .exit-row:nth-child(4) .exit-wall { animation-delay: 1s !important; }
.exit-row:nth-child(5) .exit-chip, .exit-row:nth-child(5) .exit-wall { animation-delay: 1.5s !important; }
.exit-row:nth-child(6) .exit-chip, .exit-row:nth-child(6) .exit-wall { animation-delay: 2s !important; }
@keyframes exit-block {
  0% { left: 2%; transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  38% { left: 58%; transform: translateX(-100%); }
  42% { left: 58%; transform: translateX(calc(-100% - 7px)); }
  46% { left: 58%; transform: translateX(-100%); }
  50% { left: 58%; transform: translateX(calc(-100% - 4px)); border-color: var(--danger); color: var(--danger-soft); }
  70% { left: 58%; transform: translateX(calc(-100% - 4px)); opacity: 1; border-color: var(--danger); color: var(--danger-soft); }
  85%, 100% { left: 58%; transform: translateX(calc(-100% - 4px)); opacity: 0; }
}
@keyframes exit-pass {
  0% { left: 2%; transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  70% { left: 98%; transform: translateX(-100%); opacity: 1; }
  85%, 100% { left: 98%; transform: translateX(-100%); opacity: 0; }
}
@keyframes wall-hit { 0%, 36% { transform: scaleY(1); } 40% { transform: scaleY(1.25) scaleX(2); } 48%, 100% { transform: scaleY(1); } }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; transition: opacity .7s, transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s, background .35s; }
.steps .step::after { counter-increment: s; content: "0" counter(s); position: absolute; right: 12px; top: 6px; font-size: 40px; font-weight: 700; color: rgba(var(--accent-rgb), .12); transition: color .35s, transform .35s; }
.steps .step .icon { width: 26px; height: 26px; color: var(--accent); margin: 0 0 10px; transition: transform .35s; }
.steps .step h3 { font-size: 15px; margin: 0 0 6px; }
.steps .step p { font-size: 13px; color: var(--muted); margin: 0; transition: color .35s; }
.steps .step.is-live { transform: translateY(-6px); border-color: var(--accent); background: var(--card-2); }
.steps .step.is-live::after { color: rgba(var(--accent-rgb), .55); transform: scale(1.12) translateY(2px); }
.steps .step.is-live .icon { animation: card-icon .9s ease-in-out 2; }
.steps .step.is-live p { color: var(--text-2); }
@keyframes card-icon { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(1.12) rotate(6deg); } }
@media (hover: hover) {
  .steps .step:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--card-2); }
  .steps .step:hover::after { color: rgba(var(--accent-rgb), .55); transform: scale(1.12) translateY(2px); }
  .steps .step:hover .icon { animation: card-icon .9s ease-in-out 2; }
  .steps .step:hover p { color: var(--text-2); }
}

.attack-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .attack-grid { grid-template-columns: repeat(2, 1fr); } }
.hero-grid > *, .how-grid > *, .prev-grid > *, .attack-grid > *, .biz-grid > * { min-width: 0; }
.attack {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  transition: border-color .3s, transform .3s;
}
.attack:hover { border-color: var(--accent); transform: translateY(-2px); }
.attack-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.attack-top .icon { width: 26px; height: 26px; color: var(--accent); }
.attack h3 { font-size: 16px; margin: 0 0 6px; }
.attack p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.attack code { font-family: var(--mono); font-size: 12px; color: var(--danger-soft); background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 6px; padding: 6px 8px; display: block; overflow-wrap: anywhere; }
.sev-crit { background: var(--danger-bg); color: var(--danger-soft); }
.sev-high { background: var(--orange-bg); color: var(--orange); }

.prev-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .prev-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 8px; overflow: hidden; transition: border-color .3s; }
.acc.is-open { border-color: var(--accent); }
@media (hover: hover) { .acc:hover { border-color: var(--accent); } }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: transparent; border: 0; padding: 14px; color: var(--text);
  font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
}
.acc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.acc-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--card-2); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.acc-chev { margin-left: auto; color: var(--muted); transition: transform .3s; width: 18px; height: 18px; }
.acc.is-open .acc-chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc-body p { margin: 0; padding: 0 14px 14px 62px; font-size: 14px; color: var(--muted); }

.gen { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.gen-out { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 2px; min-height: 40px; font-family: var(--mono); font-size: 17px; color: var(--strong); }
.gen-out .gw {
  font: inherit; color: var(--strong); background: var(--card); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 8px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.gen-out .gw:hover, .gen-out .gw:focus-visible { border-color: var(--accent); background: var(--card-2); outline: none; transform: translateY(-2px); }
.gen-out .gw.is-roll { color: var(--orange); border-color: var(--orange); }
.gen-out .gs { color: var(--accent); font-weight: 700; padding: 0 2px; min-width: 8px; text-align: center; white-space: pre; }
.gen-out .gx { color: var(--orange); padding: 5px 4px; }
.gen-hint { text-align: center; font-size: 12px; color: var(--faint); margin: 8px 0 14px; }
.gen-bar { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lvl-0); transition: width .6s cubic-bezier(.2, .8, .2, 1), background .4s; }
.gen-meta { font-size: 13px; color: var(--muted); margin: 8px 0 16px; min-height: 20px; text-align: center; }
.gen-meta b { color: var(--strong); }
.gen-opts { display: grid; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 0 0 16px; }
.gen-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { min-width: 36px; height: 32px; padding: 0 10px; background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; font-family: var(--mono); cursor: pointer; transition: background .2s, color .2s; }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--strong); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gen-toggles { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.gen-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.gen-roll .icon { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.gen-roll { border-color: var(--accent); color: var(--strong); }

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.vs { border-radius: var(--radius); padding: 14px; font-size: 13px; line-height: 1.7; }
.vs strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px; }
.vs-bad { background: var(--danger-bg); color: var(--danger-text); }
.vs-bad strong { color: var(--danger-soft); }
.vs-good { background: var(--green-bg); color: var(--green-text); }
.vs-good strong { color: var(--green); }

.biz-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 8px; }
@media (min-width: 720px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
.biz-grid .biz { position: relative; overflow: hidden; display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: opacity .7s, transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s, background .35s; }
.biz-grid .biz .icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: rgba(var(--accent-rgb), .12); color: var(--accent); margin-top: 0; transition: background .35s, color .35s, transform .35s; }
.biz-grid .biz p { transition: color .35s; }
.biz-grid .biz.is-live { transform: translateX(6px); border-color: var(--accent); background: var(--card-2); }
.biz-grid .biz.is-live .icon { background: var(--accent); color: #fff; animation: card-icon .9s ease-in-out 2; }
.biz-grid .biz.is-live p { color: var(--text-2); }
@media (hover: hover) {
  .biz-grid .biz:hover { transform: translateX(6px); border-color: var(--accent); background: var(--card-2); }
  .biz-grid .biz:hover .icon { background: var(--accent); color: #fff; animation: card-icon .9s ease-in-out 2; }
  .biz-grid .biz:hover p { color: var(--text-2); }
}
.biz-grid .biz h3 { font-size: 15px; margin: 0 0 4px; }
.biz-grid .biz p { font-size: 13px; color: var(--muted); margin: 0; }

.cta { max-width: 760px; margin: 0 auto; text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta .lead { margin: 0 auto 30px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7);
  animation: breathe 2.6s ease-in-out infinite; transition: background .2s;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-hover); outline: none; }
.btn-primary .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn-primary:hover .icon { transform: translateX(4px); }
@keyframes breathe { 50% { transform: scale(1.03); } }
.cta-tags { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; margin: 22px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.cta-tags li { padding: 0 14px; border-left: 1px solid var(--line); }
.cta-tags li:first-child { border-left: 0; }

.site-footer { position: relative; background: linear-gradient(180deg, var(--card) 0%, var(--fade-end) 100%); border-top: 1px solid var(--line); padding: 60px 48px 30px; }
.foot-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.foot-brand b { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); display: block; margin-bottom: 14px; }
.foot-brand b i { font-style: normal; color: var(--accent); }
.foot-brand p { color: var(--foot-link); font-size: 13.5px; line-height: 1.65; max-width: 320px; margin: 0 0 18px; }
.foot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-tags span { font-family: var(--mono); font-size: 11px; color: var(--foot-head); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; }
.site-footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--foot-head); margin: 0 0 16px; font-weight: 700; }
.foot-grid a { display: block; color: var(--foot-link); text-decoration: none; font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.foot-grid a:hover, .foot-grid a:focus-visible { color: var(--accent); outline: none; }
.foot-legal { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-legal span { color: var(--foot-link); font-size: 12.5px; font-family: var(--mono); }

[data-theme="light"] .console {
  --bg-deep: #141619; --card: #22262B; --card-2: #2A2F36; --line: #333840; --line-soft: #2A2F36;
  --text: #C8CDD4; --text-2: #B4BAC3; --strong: #E4E7EB; --muted: #8A929E; --faint: #7C8592;
  --accent: #3D74B8; --accent-rgb: 61, 116, 184; --accent-soft: #8DB8EA;
  --danger: #C0392B; --danger-soft: #E2766B; --danger-bg: #3A2221; --danger-line: #6B2A25;
  color: var(--text);
}
[data-theme="light"] .tester { box-shadow: 0 30px 70px -34px rgba(var(--accent-rgb), .45); }
[data-theme="light"] .bg-glow { background: radial-gradient(closest-side, rgba(var(--accent-rgb), .14), transparent); }
[data-theme="light"] .tips, [data-theme="light"] .exit-head { background: var(--card-2); }
[data-theme="light"] .is-pass .exit-chip { background: var(--orange-bg); }
[data-theme="light"] .switch .track::after { background: var(--faint); }
[data-theme="light"] .switch input:checked + .track { background: rgba(var(--accent-rgb), .22); }
[data-theme="light"] .switch input:checked + .track::after { background: var(--accent); }

html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .site-nav { gap: 22px; }
}
@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .site-header { padding: 16px var(--gutter); }
  .site-nav { display: none; }
  .site-footer { padding: 44px 22px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "marque marque" "service ressources" "legal ressources"; gap: 28px; align-items: start; }
  .foot-grid > :nth-child(1) { grid-area: marque; } .foot-grid > :nth-child(2) { grid-area: service; }
  .foot-grid > :nth-child(3) { grid-area: ressources; } .foot-grid > :nth-child(4) { grid-area: legal; }
  .foot-legal { flex-direction: column; gap: 8px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-header { padding: 14px var(--gutter); }
  .section { padding: 48px 0; }
  .brand-name { font-size: 16px; }
  .btn-home { padding: 9px 12px; font-size: 13px; }
  .home-long { display: none; } .home-short { display: inline; }
  .cta-tags { flex-direction: column; align-items: center; gap: 8px; }
  .cta-tags li, .cta-tags li:first-child { border-left: 0; padding: 0; }
  .header-actions { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
}
@media (max-width: 480px) {
  .tester { padding: 16px; }
  .advice { height: 216px; }
  .leak { height: 104px; }
  .result { min-height: 96px; }
  .gen { padding: 16px; }
  .gen-out { font-size: 15px; }
  .result { grid-template-columns: 96px 1fr; gap: 14px; }
  .gauge, .gauge svg { width: 96px; height: 96px; }
  .gauge-num b { font-size: 24px; }
}
@media (max-width: 370px) {
  .btn-check.is-ghost { display: none; }
  .seg button { min-width: 28px; padding: 0 6px; }
}
@media (max-width: 360px) {
  .leak { height: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
