/* adavia.pl – strona „w budowie”: animowane logo w kolorach aplikacji (układ Studio), jasny i ciemny motyw. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/witryna/fonty/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/witryna/fonty/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/witryna/fonty/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/witryna/fonty/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --tlo: #f4f5f7; --naglowki: #16181d; --tekst-2: #636a75; --linia: #e2e5e9; --link: #1850a8;
  --znak: #13294b; --znak-akcent: #ee6a2f;
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --tlo: #1b1c1f; --naglowki: #f3f4f6; --tekst-2: #9aa1ab; --linia: #34363c; --link: #8cb8ff; --znak: #f3f4f6; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: var(--tlo); color: var(--naglowki);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.srodek { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* logo: litera A rysuje się konturem i wypełnia, belka wjeżdża z prawej, potem logo delikatnie „oddycha” */
.logo { width: clamp(96px, 18vw, 132px); height: auto; overflow: visible; margin-bottom: 28px;
  animation: oddech 5s 2.6s ease-in-out infinite; }
.litera { fill: var(--znak); fill-opacity: 0; stroke: var(--znak); stroke-width: 3; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: rysuj 1.3s .2s cubic-bezier(.65, 0, .35, 1) forwards, wypelnij .5s 1.3s ease-out forwards; }
.belka { fill: var(--znak-akcent); opacity: 0; transform: translateX(60px);
  animation: wjazd .8s 1.55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes rysuj { to { stroke-dashoffset: 0; } }
@keyframes wypelnij { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes wjazd { to { opacity: 1; transform: none; } }
@keyframes oddech { 50% { transform: translateY(-4px); } }

h1, .podpis, .postep, .budowa, .kontakt { opacity: 0; animation: pojaw .7s ease-out forwards; }
h1 { margin: 0 0 6px; font: 600 clamp(28px, 4vw, 36px)/1.1 var(--font); letter-spacing: -.02em; animation-delay: 1.9s; }
.podpis { margin: 0 0 32px; color: var(--tekst-2); font-size: 16px; animation-delay: 2.05s; }
@keyframes pojaw { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* pasek postępu bez końca – jak w aplikacji przy wyszukiwaniu danych */
.postep { position: relative; width: 180px; height: 3px; border-radius: 3px; overflow: hidden; background: var(--linia); animation-delay: 2.25s; }
.postep span { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--link);
  animation: przebieg 1.6s ease-in-out infinite; }
@keyframes przebieg { from { left: -40%; } to { left: 100%; } }
.budowa { margin: 14px 0 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tekst-2); animation-delay: 2.3s; }
.kontakt { color: var(--link); text-decoration: none; font-size: 14px; animation-delay: 2.45s; }
.kontakt:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
