/* ============================================================
   Boolean Distribution — Landing
   TOKENS: light is bare :root, dark redefines tokens only
   ============================================================ */
:root {
  --paper:        #F4F5FA;
  --surface:      #FFFFFF;
  --surface-sunk: #EAECF5;
  --ink:          #171A2E;
  --ink-soft:     #4A4F6B;
  --ink-faint:    #7C82A0;
  --rule:         #D8DBE9;
  --rule-strong:  #B6BBD3;

  --accent:       #383E8F;
  --accent-deep:  #282D6E;
  --accent-wash:  #E7E9F6;

  --state-go:     #0F6E4F;
  --state-go-w:   #E2F1EA;
  --state-wait:   #9A6B14;
  --state-wait-w: #F6EEDC;
  --state-stop:   #A32B26;
  --state-stop-w: #F7E5E4;

  --ff-display: Sylfaen, "Noto Serif Georgian", "BPG Nino Mtavruli", Georgia, serif;
  --ff-body: "Noto Sans Georgian", "Segoe UI", "BPG Arial", Sylfaen, system-ui, sans-serif;
  --ff-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", ui-monospace, monospace;

  --shadow: 0 1px 2px rgba(22, 32, 43, .05), 0 8px 24px -12px rgba(22, 32, 43, .18);
  --shadow-lift: 0 2px 4px rgba(22, 32, 43, .06), 0 18px 44px -20px rgba(22, 32, 43, .3);
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #0D0F1C;
    --surface:      #171A2C;
    --surface-sunk: #1F2338;
    --ink:          #E6E8F2;
    --ink-soft:     #A9AECA;
    --ink-faint:    #7A80A0;
    --rule:         #2C3049;
    --rule-strong:  #3F4462;

    --accent:       #8E95E8;
    --accent-deep:  #B3B8F2;
    --accent-wash:  #1E2245;

    --state-go:     #4FB68C;
    --state-go-w:   #12301F;
    --state-wait:   #D6A445;
    --state-wait-w: #33280F;
    --state-stop:   #E0716B;
    --state-stop-w: #351A19;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 44px -20px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --paper:        #0D0F1C;
  --surface:      #171A2C;
  --surface-sunk: #1F2338;
  --ink:          #E6E8F2;
  --ink-soft:     #A9AECA;
  --ink-faint:    #7A80A0;
  --rule:         #2C3049;
  --rule-strong:  #3F4462;

  --accent:       #8E95E8;
  --accent-deep:  #B3B8F2;
  --accent-wash:  #1E2245;

  --state-go:     #4FB68C;
  --state-go-w:   #12301F;
  --state-wait:   #D6A445;
  --state-wait-w: #33280F;
  --state-stop:   #E0716B;
  --state-stop-w: #351A19;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 44px -20px rgba(0, 0, 0, .9);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  padding: .5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; flex: none; }
.wordmark img { height: 30px; width: auto; flex: none; border-radius: 5px; }
:root[data-theme="dark"] .wordmark img { background: #fff; padding: 2px 3px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark img { background: #fff; padding: 2px 3px; }
}
.wordmark__type {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .17em;
  color: var(--ink);
  line-height: 1;
}
.wordmark__sub {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: .07em;
  text-transform: uppercase;
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--rule);
}
@media (max-width: 1420px) { .wordmark__sub { display: none; } }

.masthead nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.masthead nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 1200px) { .masthead nav { display: none; } }

.tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex: none; }
@media (min-width: 1201px) { .tools { margin-inline-start: 14px; } }

.tool-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  padding: 5px 10px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  transition: background .15s, color .15s, border-color .15s;
}
.tool-btn:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.tool-btn svg { display: block; }

/* mobile menu */
.menu { position: relative; }
@media (min-width: 1201px) { .menu { display: none; } }
.menu > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  padding: 5px 10px;
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: min(280px, 88vw);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.menu__panel a {
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14.5px;
}
.menu__panel a:hover { background: var(--accent-wash); color: var(--accent); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.col { max-width: var(--measure); }

section.band {
  padding-block: clamp(52px, 7.5vw, 96px);
  border-top: 1px solid var(--rule);
}
.band--sunk { background: var(--surface-sunk); }

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

h2.band__title {
  font-size: clamp(27px, 3.8vw, 39px);
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.lede {
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: clamp(44px, 6vw, 76px) clamp(48px, 7vw, 84px); }

.lockup { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.lockup img { height: 42px; width: auto; border-radius: 6px; }
:root[data-theme="dark"] .lockup img { background: #fff; padding: 3px 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lockup img { background: #fff; padding: 3px 4px; }
}
.lockup__type { font-weight: 500; font-size: 30px; letter-spacing: .18em; line-height: 1; }
@media (max-width: 620px) { .lockup__type { font-size: 22px; } .lockup img { height: 32px; } }

.hero__tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  max-width: 20ch;
}

.hero__lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 26px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); color: #fff; }
.btn--line { border-color: var(--rule-strong); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

.figure { margin-block: 8px 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figcap {
  font-size: 14.5px;
  color: var(--ink-faint);
  max-width: var(--measure);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* SVG diagram classes */
.dg-line   { stroke: var(--rule-strong); fill: none; }
.dg-node   { fill: var(--surface); stroke: var(--accent); }
.dg-node-t { fill: var(--accent); font-family: var(--ff-mono); font-weight: 700; }
.dg-chip   { fill: var(--accent-wash); stroke: var(--accent); }
.dg-chip-t { fill: var(--accent-deep); font-size: 13px; font-family: var(--ff-body); font-weight: 600; }
.dg-box    { fill: var(--surface); stroke: var(--rule-strong); }
.dg-box-t  { fill: var(--ink); font-size: 13px; font-family: var(--ff-body); font-weight: 600; }
.dg-lbl    { fill: var(--ink); font-size: 13.5px; font-family: var(--ff-body); font-weight: 600; }
.dg-sub    { fill: var(--ink-faint); font-size: 11.5px; font-family: var(--ff-body); }
.dg-accent { fill: var(--accent); }
.dg-go     { stroke: var(--state-go); fill: none; }
.dg-go-t   { fill: var(--state-go); font-size: 12px; font-family: var(--ff-body); font-weight: 600; }
.dg-arrow  { fill: var(--rule-strong); }

/* ============================================================
   BEFORE / AFTER PAIRS
   ============================================================ */
.pairs { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 860px) { .pairs { grid-template-columns: 1fr 1fr; gap: 22px; } }

.pair {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pair__before, .pair__after { padding: 18px 20px; }
.pair__before { background: color-mix(in srgb, var(--surface-sunk) 60%, transparent); border-bottom: 1px solid var(--rule); }
.pair__k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.pair__before .pair__k { color: var(--state-stop); }
.pair__after  .pair__k { color: var(--state-go); }
.pair p { font-size: 15.5px; color: var(--ink-soft); }
.pair__after p { color: var(--ink); }
.pair strong { font-weight: 600; }

/* ============================================================
   STEPS (day cycle)
   ============================================================ */
.steps { display: grid; gap: 2px; margin-top: 40px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: var(--surface); padding: 20px 18px 22px; }
.step__n {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   MODULE CARDS
   ============================================================ */
.mods { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 700px)  { .mods { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .mods { grid-template-columns: repeat(3, 1fr); } }

.mod {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}
.mod__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.mod__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mod h3 { font-size: 17.5px; margin-bottom: 8px; }
.mod > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.mod ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mod li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-inline-start: 17px;
  position: relative;
  line-height: 1.5;
}
.mod li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ============================================================
   WEB CONSOLE MOCKUP (office side)
   ============================================================ */
.console-scroll { overflow-x: auto; margin-top: 40px; padding-bottom: 6px; }

.console {
  min-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  background: var(--surface);
  font-size: 12px;
}

.console__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--rule);
}
.console__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.console__url {
  margin-inline-start: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.console__body { display: grid; grid-template-columns: 190px 1fr; }

.console__side { border-inline-end: 1px solid var(--rule); padding: 12px 0; background: var(--paper); }
.console__ws {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-faint);
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.console__navgroup {
  padding: 6px 14px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
}
.console__navitem { padding: 5px 14px 5px 26px; color: var(--ink-faint); font-size: 11.5px; }
.console__navitem--on {
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  margin-inline: 8px;
  padding-inline-start: 18px;
  font-weight: 600;
}

.console__main { min-width: 0; }
.console__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
}
.console__title { font-family: var(--ff-display); font-size: 14px; font-weight: 700; }
.console__user { font-size: 11px; color: var(--ink-faint); }

.console__tools { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.console__chip {
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  white-space: nowrap;
}
.console__chip--on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

.console__panel { padding: 14px 16px; }
.console__panelhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.console__panelhead h4 { font-family: var(--ff-body); font-size: 12px; font-weight: 700; }
.console__panelhead span { font-size: 10.5px; color: var(--ink-faint); }

/* bar chart */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-inline-start: 30px; position: relative; border-bottom: 1px solid var(--rule); }
.chart::before {
  content: "300 · 225 · 150 · 75 · 0";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 26px;
  font-family: var(--ff-mono);
  font-size: 8px;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  letter-spacing: .5em;
}
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart__bar { border-radius: 3px 3px 0 0; background: var(--accent); opacity: .85; }
.chart__col:nth-child(even) .chart__bar { background: #8A4A72; }
:root[data-theme="dark"] .chart__col:nth-child(even) .chart__bar { background: #C07AA6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chart__col:nth-child(even) .chart__bar { background: #C07AA6; }
}
.chart-x { display: flex; gap: 10px; padding-inline-start: 30px; margin-top: 6px; }
.chart-x span { flex: 1; font-size: 8.5px; color: var(--ink-faint); text-align: center; }

/* table */
.ctable { width: 100%; border-collapse: collapse; margin-top: 16px; }
.ctable th {
  text-align: start;
  font-family: var(--ff-body);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule-strong);
}
.ctable th:not(:first-child), .ctable td:not(:first-child) { text-align: end; }
.ctable td { padding: 9px 10px; border-bottom: 1px solid var(--rule); font-size: 11.5px; color: var(--ink); }
.ctable td:not(:first-child) { font-family: var(--ff-mono); color: var(--ink-soft); }
.ctable tr:last-child td { border-bottom: none; }
.ctable .caret { color: var(--ink-faint); margin-inline-end: 6px; }

/* ============================================================
   TECH ON THE FIELD — split rows with screenshots
   ============================================================ */
.feature { display: grid; gap: 30px; align-items: center; margin-top: 48px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature--flip .feature__media { order: 2; }
}
.feature__text h3 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 12px; }
.feature__text > p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; }

.speclist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.speclist li { padding-inline-start: 22px; position: relative; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.speclist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .45em;
  width: 11px; height: 11px;
  border-radius: 3px;
  border: 2px solid var(--accent);
  opacity: .75;
}
.speclist strong { color: var(--ink); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag {
  font-size: 11.5px;
  font-family: var(--ff-mono);
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
:root[data-theme="dark"] .tag { color: var(--accent-deep); }

/* phone frames */
.phone {
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(155deg, #262B57, #12142B 60%, #1E2245);
  box-shadow: var(--shadow-lift);
  width: min(100%, 300px);
  margin-inline: auto;
}
.phone__notch { height: 5px; width: 34%; margin: 2px auto 7px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.phone__screen { border-radius: 22px; overflow: hidden; background: #000; line-height: 0; }
.phone__screen img { width: 100%; }

.phone-pair { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.phone-pair .phone { width: min(50%, 250px); margin-inline: 0; }
@media (max-width: 520px) { .phone-pair { flex-direction: column; align-items: center; } .phone-pair .phone { width: min(100%, 280px); } }

.slab {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  background: var(--surface);
  line-height: 0;
}

/* ============================================================
   APP GALLERY
   ============================================================ */
.gallery {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.shot { display: flex; flex-direction: column; gap: 12px; }
.shot figcaption { font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; text-align: center; padding-inline: 4px; }
.shot .phone { width: 100%; }

/* ============================================================
   TECH STACK GRID
   ============================================================ */
.stack-grid { display: grid; gap: 2px; margin-top: 40px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
@media (min-width: 620px)  { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px)  { .stack-grid { grid-template-columns: repeat(4, 1fr); } }

.tech { background: var(--surface); padding: 18px 18px 20px; }
.tech__k {
  font-family: var(--ff-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
.tech p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.clients {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.client {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  min-height: 108px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.client img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 700px)  { .metrics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .metrics { grid-template-columns: repeat(4, 1fr); } }

.metric {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.metric__v {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  display: block;
  margin-bottom: 8px;
}
.metric h3 { font-size: 15.5px; margin-bottom: 6px; }
.metric p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel h3 { font-size: 18px; margin-bottom: 14px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { font-size: 14.5px; color: var(--ink-faint); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; background: var(--surface); }

.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

/* form result panel */
.form-result {
  margin-top: 16px;
  border: 1px solid var(--state-go);
  background: var(--state-go-w);
  border-radius: 10px;
  padding: 16px;
}
.form-result[hidden] { display: none; }
.form-result h4 {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--state-go);
  margin-bottom: 8px;
}
.form-result p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.form-result a { font-weight: 600; }
.form-result pre {
  margin: 0 0 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 190px;
  overflow-y: auto;
}
.form-result__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-result .btn { padding: 8px 16px; font-size: 13.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-sunk);
  padding-block: 30px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
