@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --bg-alt: #eceff3;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #14171c;
  --ink-2: #363a42;
  --muted: #5b6270;
  --line: #dde2e8;
  --line-strong: #c5cbd4;
  --brand: #0460a2;
  --brand-strong: #034b80;
  --brand-ink: #ffffff;
  --brand-soft: rgba(4, 96, 162, 0.08);
  --brand-rgb: 4, 96, 162;
  --glow-rgb: 30, 136, 214;
  --trace-rgb: 20, 23, 28;
  --pad: #c9a64a;
  --ok: #1b8048;
  --warn: #a35f00;
  --fail: #c0362c;
  --grid: rgba(20, 23, 28, 0.045);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -18px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 30px 60px -24px rgba(16, 24, 40, 0.25);
  --terminal: #0b0e12;
  --terminal-ink: #cdd5df;
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f12;
    --bg-alt: #111418;
    --surface: #161a1f;
    --surface-2: #1b2026;
    --ink: #e8ebf0;
    --ink-2: #c4cad3;
    --muted: #8f98a6;
    --line: #242a32;
    --line-strong: #343c47;
    --brand: #52a6ea;
    --brand-strong: #86c2f2;
    --brand-ink: #04121e;
    --brand-soft: rgba(82, 166, 234, 0.12);
    --brand-rgb: 82, 166, 234;
    --glow-rgb: 96, 180, 245;
    --trace-rgb: 232, 235, 240;
    --pad: #b8964a;
    --ok: #3cc97c;
    --warn: #f0b23a;
    --fail: #ff6d61;
    --grid: rgba(255, 255, 255, 0.035);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    --terminal: #07090c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-alt: #111418;
  --surface: #161a1f;
  --surface-2: #1b2026;
  --ink: #e8ebf0;
  --ink-2: #c4cad3;
  --muted: #8f98a6;
  --line: #242a32;
  --line-strong: #343c47;
  --brand: #52a6ea;
  --brand-strong: #86c2f2;
  --brand-ink: #04121e;
  --brand-soft: rgba(82, 166, 234, 0.12);
  --brand-rgb: 82, 166, 234;
  --glow-rgb: 96, 180, 245;
  --trace-rgb: 232, 235, 240;
  --pad: #b8964a;
  --ok: #3cc97c;
  --warn: #f0b23a;
  --fail: #ff6d61;
  --grid: rgba(255, 255, 255, 0.035);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  --terminal: #07090c;
  color-scheme: dark;
}

.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: revert !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: revert !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); font-feature-settings: "calt" 0; }
.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: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px rgba(var(--brand-rgb), .6); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 48px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a[data-nav-link] {
  display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.main-nav a[data-nav-link]:hover { color: var(--ink); background: var(--brand-soft); }
.main-nav a[data-nav-link].is-active { color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--ink-2);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-switch[open] summary svg { transform: rotate(180deg); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; list-style: none; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60;
}
.lang-switch a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang-switch a .mono { color: var(--muted); font-size: 12px; width: 22px; }
.lang-switch a:hover { background: var(--brand-soft); }
.lang-switch a[aria-current="true"] { color: var(--brand); font-weight: 600; }

@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .main-nav a[data-nav-link] { padding: 8px 8px; }
}
@media (max-width: 960px) {
  .burger { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a[data-nav-link] { font-size: 18px; padding: 12px 8px; display: block; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .brand-mark { width: 40px; }
  .header-inner { gap: 12px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 7px; flex: none;
  background:
    radial-gradient(circle at calc(100% - 3.5px) 50%, var(--brand) 2.5px, transparent 3px),
    linear-gradient(var(--brand), var(--brand)) left center / calc(100% - 5px) 1.5px no-repeat;
}

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title {
  margin-top: 22px; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -0.035em; font-weight: 700;
}
.hero-title span { display: block; }
.hero-title em {
  display: inline; font-style: normal; color: var(--brand);
  background: linear-gradient(transparent 88%, rgba(var(--brand-rgb), .22) 88%);
}
.hero-sub { margin-top: 24px; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 36em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.board {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "core chips" "readout readout";
  column-gap: clamp(48px, 5vw, 72px); row-gap: 22px;
  padding: 40px 32px 44px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background-color: var(--surface);
  background-image: radial-gradient(rgba(var(--trace-rgb), .07) 1px, transparent 1.2px);
  background-size: 12px 12px;
  box-shadow: var(--shadow-lg);
}
.board-silk { position: absolute; right: 22px; bottom: 14px; font-size: 10px; letter-spacing: .12em; color: var(--muted); opacity: .8; }
.board-hint { position: absolute; left: 32px; top: 14px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.board-hole { position: absolute; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.board-hole.h1 { left: 10px; top: 10px; } .board-hole.h2 { right: 10px; top: 10px; }
.board-hole.h3 { left: 10px; bottom: 10px; } .board-hole.h4 { right: 10px; bottom: 10px; }
.board-traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board-traces .tr { fill: none; stroke: rgba(var(--trace-rgb), .2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, stroke-width .3s; }
.board-traces .tr-glow { fill: none; stroke: rgba(var(--glow-rgb), 0); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.board-traces .is-on .tr { stroke: var(--brand); stroke-width: 2; }
.board-traces .is-on .tr-glow { stroke: rgba(var(--glow-rgb), .16); }
.board-traces .via { fill: var(--surface); stroke: rgba(var(--trace-rgb), .3); stroke-width: 1.4; }
.board-traces .is-on .via { stroke: var(--brand); }
.board-traces .pulse { fill: var(--brand); }
.board-core { grid-area: core; display: flex; align-items: center; gap: 18px; align-self: center; }
.board-mark { flex: 1 1 auto; min-width: 0; max-width: 250px; position: relative; }
.board-mark img { width: 100%; }
.board-pins { display: flex; flex-direction: column; gap: 9px; flex: none; }
.board-pins i { display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--pad); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--pad) 60%, #000 0%), inset 0 0 0 3.5px rgba(0, 0, 0, .12); }
.board-chips { grid-area: chips; list-style: none; display: flex; flex-direction: column; gap: 10px; justify-content: center; position: relative; z-index: 1; }
.chip {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-width: 184px;
  padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.chip::before, .chip::after {
  content: ""; position: absolute; top: 50%; width: 4px; height: 70%; transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 2px, transparent 2px 5px);
}
.chip::before { left: -5px; } .chip::after { right: -5px; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); transform: translateX(-2px); }
.chip-led { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; transition: background-color .2s, box-shadow .2s; }
.chip-label { flex: 1; }
.chip-id { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .1); }
.chip[aria-pressed="true"] .chip-led { background: var(--brand); box-shadow: 0 0 10px rgba(var(--glow-rgb), .9); }
.board-readout {
  grid-area: readout; align-self: end; min-height: 4.4em; padding: 14px 16px; border-radius: 10px; position: relative; z-index: 1;
  background: var(--terminal); color: var(--terminal-ink); font-size: 12.5px; line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.readout-prompt { color: #6fb8f2; margin-right: 6px; }
.caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: #6fb8f2; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; grid-template-areas: "core" "chips" "readout"; padding: 40px 20px 40px; }
  .board-core { justify-content: center; }
  .board-pins, .board-traces { display: none; }
  .board-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chip { min-width: 0; }
  .chip::before, .chip::after { display: none; }
  .chip:hover { transform: none; }
  .board-mark { max-width: 220px; }
}
@media (max-width: 420px) {
  .chip { font-size: 11px; padding: 10px; gap: 8px; letter-spacing: .03em; }
  .chip-id { display: none; }
}

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title { margin-top: 16px; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.section-intro { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); max-width: 40em; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.55; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.service:hover, .service.is-lit { border-color: rgba(var(--brand-rgb), .55); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.service-id { font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.service-led { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background-color .25s, box-shadow .25s; }
.service:hover .service-led, .service.is-lit .service-led { background: var(--brand); box-shadow: 0 0 10px rgba(var(--glow-rgb), .8); }
.service h3 { font-size: 1.35rem; }
.service p { margin-top: 10px; color: var(--ink-2); }
.service ul { margin-top: 18px; list-style: none; display: grid; gap: 8px; }
.service li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.service li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--brand); border-radius: 2px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.scanner { max-width: 980px; }
.scan-form { display: flex; gap: 10px; }
.scan-input {
  flex: 1; display: flex; align-items: center; min-width: 0; height: 58px; padding: 0 6px 0 18px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.scan-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.scan-scheme { color: var(--muted); font-size: 15px; margin-right: 2px; }
.scan-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-family: var(--font-mono); font-size: 16px; }
.scan-form .btn { height: 58px; padding: 0 28px; border-radius: 12px; }
.scanner > .fine { margin-top: 14px; max-width: 60em; }
@media (max-width: 560px) {
  .scan-form { flex-direction: column; }
  .scan-form .btn { width: 100%; }
}
.scan-console {
  margin-top: 28px; padding: 20px 22px; border-radius: 14px; background: var(--terminal); color: var(--terminal-ink);
  font-size: 13px; line-height: 1.9; min-height: 120px; box-shadow: var(--shadow);
}
.scan-console .ln { display: flex; gap: 12px; opacity: 0; animation: ln-in .25s forwards; }
.scan-console .ln b { font-weight: 600; min-width: 5.5ch; }
.scan-console .ln .run { color: #f0c05a; }
.scan-console .ln .ok { color: #45d18a; }
@keyframes ln-in { to { opacity: 1; } }
.scan-error { margin-top: 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--fail) 40%, transparent); background: color-mix(in srgb, var(--fail) 8%, var(--surface)); color: var(--fail); font-weight: 500; }

.scan-result { margin-top: 32px; }
.result-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.result-head h3 { font-size: 1.3rem; word-break: break-all; }
.result-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; word-break: break-all; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gauge { position: relative; width: 104px; height: 104px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .g-track { fill: none; stroke: var(--line); stroke-width: 8; }
.gauge .g-val { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.gauge .g-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; }
.gauge.sm { width: 56px; height: 56px; }
.gauge.sm .g-track, .gauge.sm .g-val { stroke-width: 6; }
.gauge.sm .g-num { font-size: 1rem; }
.tone-ok { color: var(--ok); stroke: var(--ok); }
.tone-warn { color: var(--warn); stroke: var(--warn); }
.tone-fail { color: var(--fail); stroke: var(--fail); }
.result-cats { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cat { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-head h4 { font-size: 1.1rem; }
.checks { list-style: none; display: grid; gap: 2px; }
.check-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: 0; }
.check-item strong { display: block; font-size: 14.5px; font-weight: 600; }
.check-item span.msg { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.ci { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font-mono); }
.ci.pass { background: var(--ok); }
.ci.warn { background: var(--warn); }
.ci.fail { background: var(--fail); }
.ci.info { background: var(--line-strong); color: var(--ink); }
@media (max-width: 820px) {
  .result-head { grid-template-columns: auto 1fr; }
  .result-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .result-cats { grid-template-columns: 1fr; }
}

.qriga-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 28px 0 32px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3);
}
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qr-demo { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.qr-demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.qr-demo-brand { color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: none; font-size: 14px; }
.qr-stage { position: relative; margin: 18px auto; width: min(100%, 300px); aspect-ratio: 1; padding: 18px; background: #fff; border-radius: 16px; border: 1px solid #e3e7ec; overflow: hidden; }
.qr-stage canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-scanline { position: absolute; left: 8%; right: 8%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, rgba(4, 96, 162, .8), transparent); box-shadow: 0 0 12px rgba(4, 96, 162, .6); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.qr-demo-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qr-meta { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .qriga-grid { grid-template-columns: 1fr; } }

.field-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 15.5px; line-height: 1.5; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
textarea.input { resize: vertical; min-height: 96px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.work:hover { border-color: rgba(var(--brand-rgb), .45); box-shadow: var(--shadow); }
.work h3 { font-size: 1.45rem; margin-top: 8px; }
.work > p:not(.work-type) { margin-top: 10px; color: var(--ink-2); }
.work-type { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.work-link { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.work-visual { position: relative; height: 128px; margin: -8px -8px 22px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.work-visual-1 {
  display: flex; align-items: center; gap: 18px; padding: 12px 18px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
}
.work-visual-1 canvas { height: 100%; width: auto; aspect-ratio: 1; background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 0 0 1px #e3e7ec; image-rendering: pixelated; }
.work-visual-1 span { font-size: 13px; color: var(--brand); letter-spacing: .04em; }
.work-visual-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.work-visual-2 span { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.work-visual-2 span::before { content: ""; position: absolute; left: 10px; right: 30%; top: 12px; height: 6px; border-radius: 3px; background: var(--line-strong); box-shadow: 0 14px 0 var(--line), 0 28px 0 var(--line); }
.work-visual-2 span::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.work-visual-2 span:nth-child(2)::after { background: var(--ok); }
.work-visual-2 span:nth-child(3)::after { background: var(--warn); }
.work-visual-3 {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
}
.work-visual-3 span { position: absolute; height: 2px; background: rgba(var(--brand-rgb), .8); border-radius: 2px; }
.work-visual-3 span::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(var(--brand-rgb), .9); background: var(--surface-2); }
.work-visual-3 span:nth-child(1) { left: 0; top: 30px; width: 58%; }
.work-visual-3 span:nth-child(2) { left: 0; top: 62px; width: 74%; }
.work-visual-3 span:nth-child(3) { left: 0; top: 94px; width: 44%; }
.work-yours { justify-content: center; align-items: flex-start; gap: 4px; background: transparent; border-style: dashed; border-color: var(--line-strong); }
.work-yours .btn { margin-top: 20px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12px; right: 12px; top: 13px; height: 1.5px; background: linear-gradient(90deg, var(--brand), var(--line-strong)); }
.step { position: relative; padding-top: 44px; }
.step-n {
  position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--brand); color: var(--brand); font-size: 11px; font-weight: 700;
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.promise { margin-top: 56px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.promise h3 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 600; white-space: nowrap; }
.promise ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.promise li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.promise li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.brief-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.q { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.q legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14.5px; color: var(--ink-2); transition: border-color .2s, background-color .2s, color .2s;
}
.opt span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.opt:hover span { border-color: var(--ink-2); color: var(--ink); }
.opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.opt input:checked + span::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 8px rgba(var(--glow-rgb), .7); }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.brief-doc { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.brief-doc-head { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.brief-text { margin: 16px 0; min-height: 190px; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: var(--ink); }
.brief-text.is-empty { color: var(--muted); }
.brief-tip { font-size: 13.5px; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); margin-bottom: 14px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .brief-grid { grid-template-columns: 1fr; }
  .brief-doc { position: static; }
}

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.form-status { min-height: 1.5em; font-weight: 500; font-size: 14.5px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--fail); }
.contact-card { margin-top: 8px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card dl { margin: 18px 0 22px; display: grid; gap: 4px; }
.contact-card dt { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.contact-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dd a { text-decoration: none; }
.contact-where { margin-top: 22px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 180px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 30em; }
.footer-title { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer-list { list-style: none; display: grid; gap: 8px; }
.footer-list a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--brand); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 13px; color: var(--muted); }
.footer-clean { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); flex: none; }
.footer-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a[aria-current="true"] { color: var(--brand); font-weight: 600; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.lang-hint {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: min(380px, calc(100vw - 32px));
  padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: rise .35s ease-out;
}
.lang-hint p { font-weight: 500; }
.lang-hint-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.doc-hero { padding-block: clamp(48px, 7vw, 88px) 24px; }
.doc-hero h1 { margin-top: 16px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.doc-hero p.lead { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 42em; }
.doc-meta { margin-top: 18px; font-size: 13px; color: var(--muted); }
.doc { padding-bottom: clamp(64px, 9vw, 112px); }
.doc-body { max-width: 780px; }
.doc-body h2 { font-size: 1.45rem; margin: 44px 0 12px; padding-top: 8px; }
.doc-body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { margin: 12px 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-back { margin-top: 48px; }
.doc-note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); font-size: 14.5px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc-body th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0; }
.doc-body dt { font-weight: 600; color: var(--ink); }
.doc-body dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 560px) { .doc-body dl { grid-template-columns: 1fr; gap: 2px; } .doc-body dd { margin-bottom: 10px; } }

.card-page {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.vcard { width: 100%; max-width: 420px; padding: 32px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; }
.vcard-top img { width: 78%; margin-inline: auto; }
.vcard-role { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.vcard-save { width: 100%; margin-top: 22px; }
.vcard-list { list-style: none; margin-top: 22px; text-align: left; border-top: 1px solid var(--line); }
.vcard-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.vcard-list span { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.vcard-list a { font-weight: 600; text-decoration: none; text-align: right; overflow-wrap: anywhere; }
.vcard-follow { margin-top: 22px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vcard-social { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vcard-social a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; }
.vcard-social a:hover { border-color: var(--brand); color: var(--brand); }
.vcard-qr { margin: 26px auto 0; }
.vcard-qr canvas { width: 160px; height: 160px; margin-inline: auto; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid #e3e7ec; }
.vcard-qr figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.vcard-legal { margin-top: 24px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .qr-scanline { display: none; }
  .caret { animation: none; }
}

@media print {
  .site-header, .hero-canvas, .lang-hint, .scan-form, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}
