/* Cinqtrix — site styles
   Built on the Coming Soon look: near-black background, soft mint and blue glows,
   a faint grid, Space Grotesk, and mint-to-blue gradient accents. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0B0D12;
  --bg-raised: #10131A;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #EEF1F6;
  --text-2: #C5CCD8;
  --muted: #8A93A6;
  --mint: #7CF2D0;
  --blue: #7AA7FF;
  --mint-tint: rgba(124, 242, 208, 0.12);
  --blue-tint: rgba(122, 167, 255, 0.13);
  --grad: linear-gradient(90deg, var(--mint), var(--blue));
  --grad-diag: linear-gradient(135deg, var(--mint), var(--blue));

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #A6F7E1; }
p { margin: 0 0 1em; }
::selection { background: rgba(124, 242, 208, 0.3); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFFFFF 30%, #9AA4B8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em; /* keeps descenders inside the clipped gradient */
}
h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: clamp(21px, 2vw, 25px); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Background: glows + grid (from the Coming Soon page) ---------- */
.bg-glow, .bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-glow { overflow: hidden; }
.bg-glow span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.18;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-glow span:nth-child(1) { background: var(--mint); top: -28vmax; left: -18vmax; }
.bg-glow span:nth-child(2) { background: var(--blue); bottom: -32vmax; right: -22vmax; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  opacity: 0.7;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* Badge with a live dot */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 14px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 242, 208, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(124, 242, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 242, 208, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 242, 208, 0.25); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); color: var(--text); background: var(--surface-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--mint); }
.nav-cta { margin-left: 10px; min-height: 40px; padding: 9px 18px; font-size: 14.5px; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: ""; transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(11, 13, 18, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav-cta { margin: 16px 0 0; width: 100%; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; margin-left: auto; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-white, .section-ink { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.section-white + .section, .section-ink + .section { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 + p { margin-top: 18px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(40px, 4.7vw, 62px); }
.hero .lede { margin: 24px 0 34px; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 8%; z-index: -1;
  background: var(--grad-diag); filter: blur(70px); opacity: 0.18; border-radius: 50%;
}
.ops-svg { width: 100%; height: auto; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* Detection boxes draw in once on load */
.ops-svg .det { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s cubic-bezier(.3,.7,.2,1) forwards; }
.ops-svg .det-label { opacity: 0; animation: fade .4s ease forwards; }
.ops-svg .d1 { animation-delay: .35s; } .ops-svg .d2 { animation-delay: .65s; } .ops-svg .d3 { animation-delay: .95s; }
.ops-svg .l1 { animation-delay: 1.1s; } .ops-svg .l2 { animation-delay: 1.4s; } .ops-svg .l3 { animation-delay: 1.7s; }
.ops-svg .live { animation: blink 1.6s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 24px 26px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong {
  display: block; font-size: 26px; letter-spacing: -0.03em; line-height: 1.2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Product rows ---------- */
.product-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-name, .crumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; font-size: 15px; }
.product-name { margin-bottom: 16px; }
.product-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); }
.product-icon svg { width: 21px; height: 21px; }
.pi-erp { background: var(--blue-tint); color: var(--blue); }
.pi-inv { background: var(--mint-tint); color: var(--mint); }
.pi-vis { background: linear-gradient(135deg, rgba(124,242,208,.14), rgba(122,167,255,.14)); color: #A4D7F0; }
.product-row h3 { font-size: clamp(25px, 2.7vw, 34px); margin-bottom: 14px; max-width: 17ch; }
.product-row p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--mint); }
.text-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .product-row { grid-template-columns: 1fr; } }

/* Checked list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; align-content: start; }
.checks li { position: relative; padding-left: 30px; line-height: 1.45; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--mint-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%237CF2D0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks.single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Two-column layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.wide-right { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 900px) { .split, .split.wide-right { grid-template-columns: 1fr; } }

/* ---------- Chat mock ---------- */
.chat {
  background: rgba(16, 19, 26, 0.85); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; font-size: 15px; line-height: 1.5;
  box-shadow: 0 30px 80px -30px rgba(122, 167, 255, 0.25);
}
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.chat-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; }
.msg-user { margin-left: auto; background: var(--grad-diag); color: var(--bg); font-weight: 500; border-bottom-right-radius: 4px; }
.msg-bot { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-bot strong { color: var(--text); }
.msg-bot table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.msg-bot td { padding: 6px 0; border-top: 1px solid var(--line); }
.msg-bot td:last-child { text-align: right; color: var(--text); }
.msg-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ---------- Tax ---------- */
.tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.tax { padding: 28px; }
.tax + .tax { border-left: 1px solid var(--line); }
.tax .country { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.tax h3 { font-size: 26px; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.tax p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 820px) { .tax-grid { grid-template-columns: 1fr; } .tax + .tax { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 26px 24px 0 0; border-top: 1px solid var(--line-2); }
.steps li::before {
  content: counter(step); position: absolute; top: -15px; left: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad-diag); color: var(--bg);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.steps h4 { margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: 36px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-raised);
  padding: clamp(36px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: 0.2; pointer-events: none; }
.cta-band::before { background: var(--mint); left: -140px; top: -200px; }
.cta-band::after { background: var(--blue); right: -120px; bottom: -220px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: var(--muted); margin: 16px 0 0; max-width: 52ch; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.crumb { margin-bottom: 22px; }
.page-hero h1 { max-width: 17ch; }
.page-hero .lede { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero .split h1 { font-size: clamp(36px, 4.2vw, 56px); max-width: none; }

/* ---------- Modules grid ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.module { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.module h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.module h4 svg { width: 20px; height: 20px; color: var(--mint); flex-shrink: 0; }
.module p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .modules { grid-template-columns: 1fr; } }

/* ---------- Flow diagram ---------- */
.flow { display: grid; grid-template-columns: 1.2fr auto 1fr auto 1fr auto 1fr; align-items: center; }
.flow-col { display: flex; flex-direction: column; gap: 8px; }
.flow-node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; font-weight: 600; text-align: center; color: var(--text-2); }
.flow-node.key { background: var(--grad-diag); border-color: transparent; color: var(--bg); box-shadow: 0 12px 40px -12px rgba(124, 242, 208, 0.45); }
.flow-node small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.flow-node.key small { color: rgba(11, 13, 18, 0.75); }
.flow-arrow { width: 44px; height: 1px; background: var(--line-2); position: relative; margin: 0 6px; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid rgba(255,255,255,.3); border-right: 0; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-col { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-arrow { width: 1px; height: 28px; margin: 6px auto; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid rgba(255,255,255,.3); border-bottom: 0; }
}

/* ---------- Feature list ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.feature { padding: 22px 0; border-top: 1px solid var(--line); }
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Vision pipeline ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: p; }
.pipeline li { counter-increment: p; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 18px; }
.pipeline li::before { content: counter(p); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-diag); color: var(--bg); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.pipeline strong { display: block; font-size: 16px; margin-bottom: 4px; }
.pipeline span { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }
@media (max-width: 1000px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr 1fr; } }

.frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.frame svg { width: 100%; height: auto; }

.statement { font-size: clamp(24px, 3vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; max-width: 30ch; }

/* ---------- Invoicing dashboard mock ---------- */
.inv-mock { background: rgba(16, 19, 26, 0.85); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; font-size: 15px; overflow-x: auto; box-shadow: 0 30px 80px -30px rgba(124, 242, 208, 0.22); }
.inv-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.inv-top span { color: var(--muted); font-size: 14px; }
.inv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.inv-kpis div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.inv-kpis span { display: block; color: var(--muted); font-size: 13px; }
.inv-kpis strong { font-size: 21px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.inv-mock table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.inv-mock th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.inv-mock td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.inv-mock .num { text-align: right; padding-right: 18px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--mint-tint); color: var(--mint); }
.pill-wait { background: var(--blue-tint); color: var(--blue); }
@media (max-width: 560px) { .inv-kpis { grid-template-columns: 1fr 1fr; } .inv-kpis div:last-child { display: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: rgba(16, 19, 26, 0.85); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 500; font-size: 14.5px; color: var(--text-2); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238A93A6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select option { background: var(--bg-raised); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #5F6879; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(124, 242, 208, 0.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; display: none; }
.form-status.ok { display: block; background: var(--mint-tint); color: var(--mint); }
.form-status.err { display: block; background: rgba(255, 120, 120, 0.12); color: #FFA3A3; }
.contact-side h3 { font-size: 20px; margin-bottom: 8px; }
.contact-side .block { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-side .block:first-child { border-top: 0; padding-top: 0; }
.contact-side p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 64px 0 32px; font-size: 15px; background: rgba(11, 13, 18, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-glow span, .pulse, .ops-svg .live { animation: none; }
  .ops-svg .det { animation: none; stroke-dashoffset: 0; }
  .ops-svg .det-label { animation: none; opacity: 1; }
  .btn-primary:hover { transform: none; }
}
