/* Ontica Systems | style globalne: zmienne motywów, typografia, układ, komponenty */

/* 1. Zmienne motywu jasnego i ciemnego */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #f5f6f8;
  --inv: #0b111a;
  --ph: #dde2e9;
  --note: #eef2ff;
  --fg: #0b111a;
  --fg2: #4b5563;
  --fg3: #6b7686;
  --fg4: #9aa4b2;
  --line: #e4e8ee;
  --line2: #c9d0da;
  --accent: #0040e8;
  --accent-h: #0032b8;
  --tip2: #9db6ff;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b111a;
  --bg2: #0f1620;
  --inv: #141d2b;
  --ph: #1a2331;
  --note: #12203f;
  --fg: #eef2f7;
  --fg2: #aab5c4;
  --fg3: #8391a4;
  --fg4: #5c697c;
  --line: #1d2733;
  --line2: #2b3747;
  --accent: #7ea0ff;
  --accent-h: #a9c0ff;
  --tip2: #0040e8;
}

/* 2. Podstawy i grafika SVG */
body {
  margin: 0;
  font-family: "Geist", system-ui, sans-serif;
  color: #0b111a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #0040e8;
  text-decoration: none;
}
a:hover {
  color: #0032b8;
}
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
}
.ln {
  fill: none;
  stroke: #c9d0da;
  stroke-width: 1;
}
.ln-d {
  fill: none;
  stroke: #c9d0da;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.ln-b {
  fill: none;
  stroke: #0040e8;
  stroke-width: 1.5;
}
.ln-bd {
  fill: none;
  stroke: #0040e8;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.ln-x {
  fill: none;
  stroke: #0040e8;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.tick {
  fill: none;
  stroke: #9aa4b2;
  stroke-width: 8;
  stroke-dasharray: 1 21.86;
}
.lnw {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}
.lbl {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  fill: #6b7686;
  letter-spacing: 0.08em;
}
.lblw {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  fill: #ffffff;
  letter-spacing: 0.04em;
}
.lblb {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  fill: #9db6ff;
  letter-spacing: 0.04em;
}
.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band {
  fill: rgba(0, 64, 232, 0.08);
  stroke: none;
}

/* 3. Kolory zależne od motywu */
body {
  background: var(--bg);
  color: var(--fg);
  transition: background-color 0.25s;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-h);
}
.ln,
.ln-d {
  stroke: var(--line2);
}
.tick {
  stroke: var(--fg4);
}
.lbl {
  fill: var(--fg3);
}
.ln-b,
.ln-bd,
.ln-x {
  stroke: var(--accent);
}
.band {
  fill: var(--accent);
  fill-opacity: 0.1;
}
.lblw {
  fill: var(--bg);
}
.lblb {
  fill: var(--tip2);
}
.svc:hover {
  border-color: var(--accent) !important;
}
.btn-ink {
  background: var(--fg) !important;
  color: var(--bg) !important;
}
.btn-white {
  background: #ffffff !important;
  color: #0040e8 !important;
}

/* 4. Interakcje, nagłówek, menu mobilne, responsywność */
html {
  scroll-behavior: smooth;
}
.page > header,
.page > section,
.page > footer {
  padding-left: max(120px, calc((100% - 1200px) / 2)) !important;
  padding-right: max(120px, calc((100% - 1200px) / 2)) !important;
}
article {
  transition: border-color 0.25s ease-out;
}
.svc:hover {
  border-color: #0040e8 !important;
}
.svc:hover .arr {
  transform: translateX(3px);
}
.arr {
  display: inline-block;
  transition: transform 0.2s ease-out;
}
a {
  transition:
    color 0.2s ease-out,
    background-color 0.2s ease-out;
}
.btn-blue:hover {
  background: #0032b8 !important;
  color: #ffffff !important;
}
.btn-ink:hover {
  opacity: 0.86;
}
.btn-line:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
}
.btn-white:hover {
  background: #e8eeff !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
nav a:hover {
  color: var(--accent) !important;
}
.tbtn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 4px;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}
.tbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tbtn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.i-sun,
.logo-d,
.i-close {
  display: none !important;
}
.mbtn {
  display: none !important;
}
.mbtn[aria-expanded="true"] .i-open {
  display: none !important;
}
.mbtn[aria-expanded="true"] .i-close {
  display: block !important;
}
.mnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(11, 17, 26, 0.12);
  padding: 8px 32px 28px;
  display: flex;
  flex-direction: column;
}
.mnav[hidden] {
  display: none;
}
.mnav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.mnav a.m-cta {
  margin-top: 20px;
  border: 0;
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0040e8;
  color: #ffffff;
  border-radius: 4px;
  font-size: 16px;
}
.nw {
  flex-wrap: nowrap;
}
[data-theme="dark"] .i-sun,
[data-theme="dark"] .logo-d {
  display: block !important;
}
[data-theme="dark"] .i-moon,
[data-theme="dark"] .logo-l {
  display: none !important;
}
.lang {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg4);
}
.lang a {
  color: var(--fg3);
  padding: 12px 2px;
}
.lang a:hover {
  color: var(--accent);
}
.lang b {
  color: var(--fg);
  font-weight: 500;
}
#axis {
  cursor: crosshair;
}
#axis .hov {
  transition: opacity 0.15s;
}
@keyframes draw {
  from {
    stroke-dashoffset: 1700;
  }
  to {
    stroke-dashoffset: 0;
  }
}
#axis circle.ln {
  stroke-dasharray: 1700;
  animation: draw 1.6s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  #axis circle.ln {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 1100px) {
  .page > header,
  .page > section,
  .page > footer {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .page > section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .page [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 24px;
  }
  .page [style*="display: flex"] {
    flex-wrap: wrap;
  }
  .page [style*="padding: 56px"],
  .page [style*="padding: 40px"] {
    padding: 28px !important;
  }
  .page header .btn-ink {
    display: none !important;
  }
  .mbtn {
    display: flex !important;
  }
  .page > header {
    position: sticky !important;
    top: 0;
    z-index: 40;
  }
  .page section[id] {
    scroll-margin-top: 72px;
  }
  .page h2[style*="font-size: 38px"] {
    font-size: 28px !important;
  }
  .page .nw {
    flex-wrap: nowrap !important;
  }
  .page header {
    height: 72px !important;
  }
  .page header img {
    height: 32px !important;
  }
  .page .nw {
    flex-wrap: nowrap !important;
  }
  .page p,
  .page h1,
  .page h2,
  .page h3 {
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .page [style*="grid-column"] {
    grid-column: auto !important;
  }
  .page nav {
    display: none !important;
  }
  .page h1 {
    font-size: 38px !important;
  }
  .page h2 {
    font-size: 34px !important;
  }
  #axis {
    width: 100%;
    height: auto;
    max-width: 560px;
  }
  .hero-vis {
    justify-content: center !important;
  }
  .std > div {
    border-right: none !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .proc-line {
    display: none;
  }
}
