/* ============================================================
   Motyw: ciemny, spokojny, czysta typografia
   ============================================================ */
:root {
  --bg: #0b0b0c;
  --card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --fg: #f2f2f0;
  --muted: rgba(242, 242, 240, 0.58);
  --subtle: rgba(242, 242, 240, 0.36);
  --ok: #8fd6a4;
  --err: #f19a9a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- tlo: miekka poswiata ---------- */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(255,255,255,0.06), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255,255,255,0.04), transparent 70%);
}

/* ---------- uklad ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 40px);
}
.logo { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.logo b { font-weight: 400; color: var(--muted); }
.tag { font-size: 13px; color: var(--muted); display: flex; align-items: center; }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: 8px;
}

.stage {
  position: relative; z-index: 2; min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 16px 90px;
}
.eyebrow {
  display: inline-block; font-size: 13px; color: var(--muted);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); margin-bottom: 28px;
}
h1 {
  font-weight: 300; font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08; letter-spacing: -0.035em; max-width: 15ch;
}
.lead {
  margin-top: 20px; max-width: 44ch; color: var(--muted);
  font-size: 16px; line-height: 1.6;
}

/* ---------- przycisk ---------- */
.btn {
  margin-top: 40px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; height: 50px; padding: 0 30px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: #0b0b0c; background: var(--fg);
  border: 1px solid var(--fg); border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap; overflow: hidden;
  box-shadow: 0 6px 24px rgba(255,255,255,0.08);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,0.14); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.btn.is-scrambling {
  cursor: default; transform: none; box-shadow: none;
  background: transparent; color: var(--fg); border-color: var(--border);
}
.btn .glyph {
  display: inline-block; width: 0.66em; text-align: center;
  font-family: var(--mono); font-size: 14px;
  transition: opacity .55s ease, filter .55s ease, transform .55s ease;
}
.btn .glyph.gone { opacity: 0; filter: blur(3px); transform: translateY(-3px); }
.btn.fade-in { animation: fadein .45s ease; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }

/* ---------- status / postep ---------- */
.status {
  margin-top: 22px; min-height: 20px; font-size: 14px; color: var(--subtle);
  transition: color .3s;
}
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.bar {
  width: 200px; height: 3px; margin: 18px auto 0; border-radius: 3px;
  background: var(--border); overflow: hidden; opacity: 0; transition: opacity .4s;
}
.bar.on { opacity: 1; }
.bar i { display: block; height: 100%; width: 0; background: var(--fg); border-radius: 3px; transition: width .2s; }

.footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px clamp(16px, 4vw, 40px);
  font-size: 12px; color: var(--subtle);
}

.reveal { opacity: 0; transform: translateY(8px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .05s } .reveal.d2 { animation-delay: .15s }
.reveal.d3 { animation-delay: .25s } .reveal.d4 { animation-delay: .35s }
@keyframes rise { to { opacity: 1; transform: none } }

@media (max-width: 560px) {
  .footer { justify-content: center; text-align: center; }
  .hide-sm { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}
