/* Strona startowa ECFO (D-121, D-122) – jeden ekran bez przewijania; kolory jak w dashboardzie (indigo + szmaragd, jasny i ciemny
   motyw wg systemu). Wspólny dla index.html i 404.html. Animację arkusza rysuje strona.js (tylko index.html). */
@font-face {
  font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/geist-latin-ext.woff2) format('woff2-variations');
  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: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/geist-latin.woff2) format('woff2-variations');
  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;
}

/* strona.js czyta kolory z --*-rgb i --tlo; --ciemny = 1 włącza świecenie impulsów */
:root {
  --tlo: #f8fafc;
  --tekst: #0f172a;
  --tekst-2: #64748b;
  --akcent-rgb: 79 70 229;
  --akcent2-rgb: 16 185 129;
  --linia-rgb: 100 116 139;
  --karta-rgb: 255 255 255;
  --ciemny: 0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tlo: #020617;
    --tekst: #f1f5f9;
    --tekst-2: #94a3b8;
    --akcent-rgb: 129 140 248;
    --akcent2-rgb: 52 211 153;
    --linia-rgb: 148 163 184;
    --karta-rgb: 15 23 42;
    --ciemny: 1;
  }
}

/* bez przewijania: nic nie może wystawać poza ekran (przeglądarki mobilne poszerzają wtedy stronę i pokazują paski) */
* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
body {
  margin: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column;
  background: var(--tlo); color: var(--tekst);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
#scena { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* pasek: znak eCFO i jedyny przycisk */
.pasek {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
}
.marka { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.znak {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff;
  background: linear-gradient(145deg, #6366f1, #4f46e5 60%, #4338ca);
}
.znak svg { width: 21px; height: 21px; }
.logo-rdzen { transform-box: fill-box; transform-origin: center; transform: scale(calc(1 + var(--puls, 0) * .4)); }
.zaloguj {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 550; color: var(--tekst); text-decoration: none;
  background: rgb(var(--karta-rgb) / .7); border: 1px solid rgb(var(--linia-rgb) / .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.zaloguj svg { width: 15px; height: 15px; transition: transform .2s; }
.zaloguj:hover { border-color: rgb(var(--akcent-rgb) / .6); box-shadow: 0 6px 24px -10px rgb(var(--akcent-rgb) / .7); }
.zaloguj:hover svg { transform: translateX(2px); }
.zaloguj:focus-visible, .marka:focus-visible, .przycisk:focus-visible { outline: 3px solid rgb(var(--akcent-rgb) / .35); outline-offset: 2px; }

/* scena: arkusz z rdzeniem + nagłówek, razem wyśrodkowane w pionie */
main { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 3vh; }
.pole { position: relative; flex: 0 1 auto; min-height: 0; height: min(56vh, 540px); height: min(56svh, 540px); }
.rdzen {
  --puls: 0;
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; translate: -50% -50%;
  display: grid; place-items: center;
}
.rdzen::before {
  content: ""; position: absolute; inset: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--akcent-rgb) / .14), transparent 62%);
}
.jadro {
  position: relative; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #818cf8 0%, #6366f1 35%, #4f46e5 70%, #4338ca 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .35),
    0 16px 40px -14px rgb(79 70 229 / .75),
    0 0 calc(20px + var(--puls) * 30px) rgb(var(--akcent-rgb) / calc(.2 + var(--puls) * .3));
  transform: scale(calc(1 + var(--puls) * .04));
}
.jadro svg { width: 46px; height: 46px; }

.napis { position: relative; text-align: center; padding: clamp(4px, 1.5vh, 16px) 16px 0; }
/* wygaszenie arkusza pod tekstem – nie szersze niż ekran */
.napis::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(860px, 100%); height: 220%; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--tlo) 55%, transparent);
}
h1 { margin: 0; text-wrap: balance; font-size: clamp(26px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; }
.napis p { margin: 10px 0 0; color: var(--tekst-2); font-size: clamp(14px, 1.5vw, 16px); }

.stopka {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px) 16px; font-size: 12px; color: var(--tekst-2);
}

@media (max-width: 639px) {
  .pole { height: min(46vh, 420px); height: min(46svh, 420px); }
  .rdzen, .jadro { width: 62px; height: 62px; }
  .jadro { border-radius: 18px; }
  .jadro svg { width: 38px; height: 38px; }
}

/* 404: ten sam pasek, statyczny arkusz w tle (bez skryptu) */
.arkusz-tlo {
  position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgb(var(--linia-rgb) / .14) 1px, transparent 1px), linear-gradient(to bottom, rgb(var(--linia-rgb) / .14) 1px, transparent 1px);
  background-size: 96px 36px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 85%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 85%);
}
.blad { align-items: center; text-align: center; padding: 0 16px 6vh; }
.blad .kod { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: rgb(var(--akcent-rgb)); }
.blad h1 { font-size: clamp(26px, 4vw, 40px); }
.blad .lead { margin: 12px 0 28px; color: var(--tekst-2); font-size: clamp(14px, 1.5vw, 16px); }
.przycisk {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 999px;
  background: rgb(var(--akcent-rgb)); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.przycisk:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgb(var(--akcent-rgb)); }
@media (prefers-color-scheme: dark) { .przycisk { color: #020617; } }
