:root {
  --ink: #f2f5fb;
  --ink-dim: rgba(242, 245, 251, 0.62);
  --bg: #060d1a;
  --navy: #1a3a6b;
  --blue: #2f5a9e;
  --gold: #e8a020;
  --gold-soft: rgba(232, 160, 32, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .hud, .telemetry, .scroll-hint, .stat-num, .card-no, .cta {
  font-family: "Sora", system-ui, sans-serif;
}

/* ---------- Fixed chrome ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(242, 245, 251, 0.85);
}
.hud-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.96);   /* oryginalne logo jest ciemne — jasna pigułka zapewnia kontrast na granacie */
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(2, 5, 12, 0.35);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hud-brand:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232, 160, 32, 0.35); }
.hud-brand img { height: 26px; width: auto; display: block; }
.hud-brand::after {            /* okresowy refleks światła przesuwajacy się po logo */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(232, 160, 32, 0.28), transparent);
  transform: skewX(-18deg);
  animation: logo-shine 5.5s ease-in-out infinite;
}
@keyframes logo-shine {
  0%, 72% { left: -60%; }
  88%     { left: 120%; }
  100%    { left: 120%; }
}
.hud-mid { color: rgba(242,245,251,0.5); font-weight: 500; letter-spacing: 0.34em; }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; height: 520vh; }
#flow { height: 460vh; }

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(2, 5, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(2,5,12,0.5) 0%, transparent 24%, transparent 70%, rgba(2,5,12,0.75) 100%);
}

/* ---------- Overlay copy ---------- */
.overlay { position: relative; z-index: 10; text-align: center; padding: 0 24px; }
.line {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;   /* JS animates `transform`; keep centering on the standalone property so they compose */
  width: max-content;
  max-width: 92vw;
  opacity: 0;
  will-change: opacity, transform;
}
.line h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 7.5vw, 6.4rem);
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-shadow: 0 8px 60px rgba(2, 5, 12, 0.85);
}
.line .kicker {
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.line.gold h1 {
  background: linear-gradient(100deg, #ffd98a 0%, var(--gold) 45%, #f4c25e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 50px var(--gold-soft));
}

/* ---------- Telemetry corners ---------- */
.telemetry {
  position: absolute;
  z-index: 12;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: rgba(242, 245, 251, 0.55);
}
.tl { top: 92px; left: 32px; }
.tr { top: 92px; right: 32px; }
.bl { bottom: 72px; left: 32px; }
.br { bottom: 72px; right: 32px; }

/* ---------- Progress + hint ---------- */
.progress {
  position: absolute;
  left: 32px; right: 32px; bottom: 46px;
  height: 2px;
  background: rgba(242, 245, 251, 0.12);
  z-index: 12;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  box-shadow: 0 0 14px var(--gold-soft);
}
.scroll-hint {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(242, 245, 251, 0.55);
  animation: bob 1.8s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Content panels ---------- */
.panel {
  position: relative;
  padding: 18vh 8vw;
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.panel h2, .outro h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 26px;
}
.lede {
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 64px;
}

/* stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.stat {
  border-top: 1px solid rgba(242,245,251,0.14);
  padding-top: 26px;
}
.stat-num {
  display: block;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label { color: var(--ink-dim); font-size: 1rem; line-height: 1.5; }

/* services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 48px;
}
.card {
  position: relative;
  padding: 36px 30px;
  border: 1px solid rgba(242,245,251,0.1);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26,58,107,0.32), rgba(6,13,26,0.6));
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.card-no {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.card h3 { font-size: 1.4rem; font-weight: 700; margin: 16px 0 12px; }
.card p { color: var(--ink-dim); line-height: 1.7; font-size: 0.98rem; }

/* process */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  border-left: 2px solid var(--gold-soft);
  padding: 4px 0 4px 24px;
}
.step span {
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.step h3 { font-size: 1.18rem; font-weight: 700; margin: 12px 0 10px; }
.step p { color: var(--ink-dim); line-height: 1.65; font-size: 0.95rem; }

/* ---------- Outro / CTA ---------- */
.outro {
  min-height: 92vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 60px 24px;
  background:
    radial-gradient(70% 55% at 50% 8%, rgba(232,160,32,0.1), transparent 62%),
    radial-gradient(90% 70% at 50% 110%, rgba(26,58,107,0.5), transparent 70%),
    var(--bg);
}
.outro .eyebrow { margin-bottom: 8px; }
.cta {
  justify-self: center;
  margin-top: 30px;
  padding: 18px 44px;
  border-radius: 999px;
  background: linear-gradient(100deg, #f4c25e, var(--gold));
  color: #1c1404;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 12px 50px rgba(232, 160, 32, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 18px 64px rgba(232, 160, 32, 0.45); }
.foot {
  margin-top: 70px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,245,251,0.4);
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hud { padding: 16px 18px; font-size: 10px; letter-spacing: 0.2em; }
  .hud-mid { display: none; }
  .telemetry { font-size: 8.5px; letter-spacing: 0.16em; }
  .tl, .tr { top: 66px; }
  .bl, .br { display: none; }   /* collide on narrow screens */
  .progress { left: 18px; right: 18px; }
  .panel { padding: 14vh 7vw; }
}
