:root {
  --bg: #f4f6f5;
  --bg-2: #eaefec;
  --panel: #ffffff;
  --ink: #0f1714;
  --ink-2: #33403a;
  --muted: #5d6a64;
  --line: #d9e1dd;
  --accent: #0b8457;
  --accent-ink: #ffffff;
  --trace: #12b886;
  --warn: #a15c00;
  --fail: #c0262d;
  --code-bg: #0f1714;
  --code-ink: #d7f5e8;
  --shadow: 0 1px 2px rgba(15, 23, 20, .06), 0 12px 32px -12px rgba(15, 23, 20, .18);
  --radius: 14px;
  --max: 1120px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100e;
    --bg-2: #101815;
    --panel: #131c18;
    --ink: #e7eeea;
    --ink-2: #c3cfc9;
    --muted: #8f9e97;
    --line: #22302a;
    --accent: #34d399;
    --accent-ink: #052e1f;
    --trace: #34d399;
    --warn: #f0a43a;
    --fail: #ff6b6b;
    --code-bg: #060a08;
    --code-ink: #c9f2df;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, pre, kbd { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; color: var(--ink); }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.lang { font-size: 13px; font-weight: 650; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted); }
.lang:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 860px) { .nav nav { display: none; } .lang { margin-left: auto; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--sans); padding: 14px 20px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn.ghost { border-color: var(--line); background: var(--panel); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero .trace { display: block; width: 100%; height: 90px; margin: 28px 0 -20px; color: var(--trace); opacity: .55; pointer-events: none; }
.hero .trace path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s ease-out .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .trace path { animation: none; stroke-dashoffset: 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--trace); box-shadow: 0 0 0 4px color-mix(in srgb, var(--trace) 22%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--trace) 6%, transparent); } }
h1 { position: relative; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 18px; max-width: 15ch; font-weight: 780; }
.lead { position: relative; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }
.ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { position: relative; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.shot { position: relative; margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.shot .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot .bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.caption { color: var(--muted); font-size: 14px; margin: 12px 2px 0; }

/* ---------- sections */
section.block { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 760; }
.sub { color: var(--ink-2); max-width: 64ch; margin: 0 0 40px; }
.sub.tight { margin-bottom: 20px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }

.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: layer; }
.layer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.layer::before { counter-increment: layer; content: "0" counter(layer); display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 14px; }
.layer p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .layers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .layers { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

/* panic decoder */
.decoder { border-radius: var(--radius); background: var(--code-bg); color: var(--code-ink); overflow: hidden; box-shadow: var(--shadow); }
.decoder .head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font: 12px var(--mono); color: #7fa595; border-bottom: 1px solid #1d2a24; }
.decoder table { width: 100%; border-collapse: collapse; font-size: 15px; }
.decoder td { padding: 14px 18px; border-bottom: 1px solid #1a2620; vertical-align: top; }
.decoder tr:last-child td { border-bottom: none; }
.decoder td:first-child { font-family: var(--mono); font-size: 13.5px; color: #ffb4a8; width: 50%; word-break: break-word; }
.decoder td:last-child { color: #e6f5ee; }
.decoder td:last-child::before { content: "→ "; color: #34d399; font-family: var(--mono); }
.note { color: var(--muted); font-size: 14px; margin: 14px 2px 0; }
@media (max-width: 640px) {
  .decoder tr { display: block; border-bottom: 1px solid #1a2620; }
  .decoder td { display: block; width: auto !important; border: none; padding: 10px 16px 0; }
  .decoder td:last-child { padding: 6px 16px 12px; }
}

/* checks */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checklist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.checklist h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checklist h3 small { font: 500 13px var(--mono); color: var(--muted); }
.checklist ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.checklist li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--trace); }
@media (max-width: 860px) { .checks { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .checklist ul { grid-template-columns: 1fr; } }

/* online test */
.kit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.kit ul { padding-left: 0; list-style: none; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.kit li { font-size: 14px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); }
.privacy { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15px; margin: 0 0 24px; }
.privacy svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.kit-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.qr { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; max-width: 220px; }
.qr svg { flex: none; width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.phone { justify-self: center; width: min(320px, 100%); border-radius: 44px; padding: 10px; background: #0b0f0d; box-shadow: var(--shadow), inset 0 0 0 1px #2b3631; }
.phone img { border-radius: 34px; }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; gap: 40px; } }
@media (hover: none) { .qr { display: none; } }

/* install */
.install { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.reqs { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.reqs li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.reqs b { color: var(--ink); }
pre.term { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; line-height: 1.75; overflow-x: auto; box-shadow: var(--shadow); }
pre.term .c { color: #6f8f81; }
pre.term .p { color: #34d399; user-select: none; }
.install .after { color: var(--muted); font-size: 15px; margin: 14px 2px 0; }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; } }

/* privacy & limits */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two .col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.two ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  section.block { padding: 64px 0; }
  .btn { width: 100%; }
}
