/* Critical above-the-fold CSS — fully styles the hero (LCP element) so it
   paints immediately without waiting for the async stylesheet. */
/* Inline @font-face for the hero fonts (preloaded above) so the preloaded
   files are APPLIED at first paint — without this the @font-face only
   registers when the async stylesheet loads, forcing a late font swap that
   pushes the LCP paint (hero-mission paragraph) ~2s later. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/dm-sans-400-latin.woff2') format('woff2');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}
@font-face{font-family:'Oxanium';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/oxanium-800-latin.woff2') format('woff2');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}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#0d0d14;--bg2:#111118;--bg3:#18181f;
  --green:#7c3aed;--cyan:#10b981;--red:#f43f5e;--amber:#f59e0b;
  --navy:#4c1d95;--navy2:#7c3aed;
  --white:#ededff;--muted:#a3a3b8;
  --border:rgba(124,58,237,.18);--card:rgba(255,255,255,0.03);
  --glow-g:0 0 40px rgba(124,58,237,.3);--glow-c:0 0 40px rgba(16,185,129,.3);
  --fd:'Oxanium',sans-serif;--fb:'DM Sans',sans-serif;--fm:'JetBrains Mono',monospace}
html{font-size:16px;scroll-behavior:smooth;scrollbar-gutter:stable}
html,body{background:#0d0d14;color:#ededff;overflow-x:hidden;max-width:100%;
  font-family:var(--fb),system-ui,sans-serif;line-height:1.65}
body::before{content:'';position:fixed;inset:0;
  background-image:radial-gradient(circle,rgba(124,58,237,.08) 1px,transparent 1px);
  background-size:28px 28px;pointer-events:none;z-index:0}
nav{position:fixed;inset:0 0 auto;z-index:9999;display:flex;align-items:center;
  justify-content:space-between;min-height:70px;padding:.6rem 6%;
  background:rgba(5,8,16,.82);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,0.07);transition:box-shadow .3s}
nav.scrolled{box-shadow:0 4px 24px rgba(0,0,0,.35)}
.logo{font-family:var(--fd),sans-serif;font-size:1.45rem;font-weight:800;color:#eef2ff;
  text-decoration:none;display:flex;align-items:center;gap:.5rem}
.logo em{color:var(--navy2);font-style:normal}
.logo-mark{width:30px;height:30px;border-radius:7px;object-fit:contain}
.page{display:none}.page.active{display:block;width:100%;max-width:100vw;overflow-x:hidden}
#hero{position:relative;min-height:100vh;display:flex;align-items:center;padding:0 6%;
  background:radial-gradient(ellipse 80% 60% at 60% 40%,rgba(124,58,237,.18) 0%,transparent 70%),radial-gradient(ellipse 50% 40% at 20% 80%,rgba(16,185,129,.1) 0%,transparent 60%),#0d0d14}
.hero-content{position:relative;z-index:2;max-width:660px}
/* Everything ABOVE the LCP paragraph must be fully styled inline, otherwise
   it changes size when the async stylesheet loads and pushes the paragraph
   down — repainting it late and reintroducing the LCP render delay. */
.badge{display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--fm),monospace;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;
  color:#a78bfa;border:1px solid rgba(124,58,237,.3);
  background:rgba(124,58,237,.1);padding:.4rem 1rem;border-radius:100px;margin-bottom:2rem}
.badge-dot{width:6px;height:6px;border-radius:50%;background:#7c3aed}
h1{font-family:var(--fd),sans-serif;font-size:clamp(2.6rem,5.5vw,4.6rem);font-weight:800;
  line-height:1.04;letter-spacing:-.025em;margin-bottom:1.5rem}
h1 .strike{position:relative;color:var(--muted)}
h1 .strike::after{content:'';position:absolute;top:52%;left:-2%;right:-2%;height:3px;
  background:var(--red);transform:rotate(-2deg)}
h1 .acc{color:#b39dff;text-shadow:0 0 30px rgba(124,58,237,.5)}
.hero-mission{font-family:var(--fb),system-ui,sans-serif;font-size:1.02rem;color:#eef2ff;max-width:560px;margin:0 0 1.6rem;
  line-height:1.7;padding-left:1rem;border-left:3px solid var(--green)}
.hero-mission strong{color:#b39dff}
.hero-sub{font-size:1.1rem;color:var(--muted);max-width:540px;margin-bottom:2.5rem;line-height:1.75}
.hero-sub strong{color:#eef2ff;font-weight:500}
.hero-backup{font-size:.88rem;color:#6ee7b7;max-width:540px;margin-bottom:.9rem;line-height:1.6;
  background:rgba(16,185,129,.06);border:1px solid rgba(16,185,129,.2);border-radius:8px;padding:.6rem 1rem}
nav ul{list-style:none;display:flex;gap:1.5rem;align-items:center}
.terminal{position:absolute;right:6%;top:50%;transform:translateY(-50%);width:470px}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px}
.hamburger span{width:22px;height:2px;background:#eef2ff;border-radius:2px}
/* Critical mobile layout — MUST be inline. Without it the first paint uses
   the desktop layout (floating terminal + full nav visible), then the async
   stylesheet's media query reflows the whole hero at ~2.3s, which is exactly
   when the LCP paragraph reaches its final paint. Matching the mobile layout
   at first paint removes that reflow and the LCP render delay. */
@media(max-width:1100px){
  .terminal{display:none}
  nav ul{display:none}
  .hamburger{display:flex}
  /* Mobile paint cost: drop the full-viewport dot pattern, the layered hero
     gradients and the nav blur. These are expensive composited layers on a
     throttled mobile GPU/CPU and delay first paint; a flat background and a
     near-opaque nav are visually equivalent at mobile scale. */
  body::before{display:none}
  #hero{background:#0d0d14}
  nav{background:rgba(5,8,16,.95);backdrop-filter:none}
}

/* Pre-paint language sync for EN visitors (class set by inline <head> script).
   Shows the EN content block and hides nav/footer labels until setLanguage()
   swaps + reveals them, so navigating in English never flashes Polish first. */
html.i18n-en [data-lang="pl"]{display:none!important}
html.i18n-en [data-lang="en"]{display:block!important}
html.i18n-en nav [data-i18n],html.i18n-en footer [data-i18n]{visibility:hidden}

/* GDPR cookie-consent banner */
.cookie-consent{position:fixed;left:0;right:0;bottom:0;z-index:10000}
.cookie-consent:not([hidden]){display:block}
.cc-inner{max-width:1080px;margin:0 12px 12px;background:rgba(13,13,20,.97);border:1px solid rgba(124,58,237,.25);border-radius:14px;padding:14px 18px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;box-shadow:0 8px 30px rgba(0,0,0,.45)}
@media(min-width:1104px){.cc-inner{margin-left:auto;margin-right:auto}}
.cc-text{flex:1;min-width:240px;margin:0;font-size:.85rem;line-height:1.55;color:#a3a3b8}
.cc-text a{color:#b39dff;text-decoration:underline}
.cc-btns{display:flex;gap:10px;flex-shrink:0}
.cc-btn{font-family:'DM Sans',sans-serif;font-size:.85rem;font-weight:600;padding:.55rem 1.15rem;border-radius:8px;cursor:pointer;border:1px solid rgba(124,58,237,.3)}
.cc-accept{background:#7c3aed;color:#fff;border-color:transparent}
.cc-reject{background:transparent;color:#a3a3b8}
@media(max-width:560px){.cc-inner{flex-direction:column;align-items:stretch}.cc-btns{justify-content:flex-end}}
