/* ============================================================
   DreamFix — base: tokens, reset, header, buttons, a11y
   ============================================================ */

:root {
  /* brand */
  --blue: #3D7DF6;
  --blue-dark: #2E63D8;
  --blue-light: #8FBAFF;
  --wa: #25D366;

  /* surfaces */
  --bg: #0B0E13;
  --bg-alt: #10141B;
  --card: #12161D;
  --card-alt: #161B23;
  --hero-bg: #14171C;
  --footer-bg: #15181C;

  /* text */
  --text: #F2F4F8;
  --text-soft: #B7BEC9;
  --text-mute: #9AA2AE;
  --text-dim: #8B929B;

  /* lines */
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .16);

  /* layout */
  --wrap: 1240px;
  --gutter: 28px;
  --header-h: 74px;
  --dock-h: 66px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 26px;
}

*, *::before, *::after { box-sizing: border-box; }

/* the hidden attribute must beat any display rule below */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg, iframe { max-width: 100%; }
img, video { display: block; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover { color: var(--blue-dark); }

a, button { touch-action: manipulation; }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }

::selection { background: rgba(61, 125, 246, .25); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #232A35;
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* anchors clear the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- accessibility ---------- */

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden,
.field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- film grain ---------- */

.df-noise {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: opacity .5s ease;
}
.preloader.is-fading { opacity: 0; }
.preloader.is-done { display: none; }

.preloader__logo {
  width: 72px;
  height: auto;
}

.preloader__bar {
  position: relative;
  width: min(340px, 70vw);
  height: 38px;
  border-radius: 99px;
  background: var(--bg-alt);
}

.preloader__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 99px;
  background: var(--blue);
  transition: width .12s linear;
}

.preloader__roller {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -62%) rotate(-90deg);
  transition: left .12s linear;
	margin-left: 28px;
}
.preloader__roller svg {
  width: 54px;
  height: 54px;
  display: block;
  animation: df-roller-wobble 1s ease-in-out infinite;
	fill: var(--blue);
}

.preloader__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #9AA0A8;
}

@keyframes df-roller-wobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 13, 18, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;   /* cel dotykowy */
  color: #fff;
}
.brand:hover { color: #fff; }

.brand__mark { height: 40px; width: auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand__name {
  display: flex;
  gap: 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand__name-accent { color: var(--blue); }

.brand__tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;   /* cel dotykowy na laptopach z ekranem dotykowym */
  color: rgba(255, 255, 255, .72);
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: var(--blue); }

.header__cta {
  border: 1px solid rgba(61, 125, 246, .6);
  background: rgba(61, 125, 246, .1);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 99px;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.header__cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* phone circle — mobile only */
.header__call {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(61, 125, 246, .5);
  background: rgba(61, 125, 246, .12);
  align-items: center;
  justify-content: center;
}
.header__call svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: none;
  border-radius: 10px;
  padding: 19px 34px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(61, 125, 246, .35);
}
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--glass {
  background: rgba(253, 253, 252, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
}
.btn--glass:hover { background: rgba(253, 253, 252, .2); color: #fff; }

/* Przycisk drugorzędny w arkuszu usługi. Wcześniej było to samo wypełnienie (--bg-alt)
   na karcie (--card) — kontrast 1.02, czyli praktycznie niewidoczny.
   Widoczność daje teraz OBRYS, bo na ciemnym tle żadne wypełnienie tego nie załatwi. */
.btn--dark {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--text);
}
.btn--dark:hover {
  background: rgba(61, 125, 246, .16);
  border-color: var(--blue);
  color: #fff;
}

.btn--ghost {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, .2);
  color: var(--text);
  border-radius: 99px;
  padding: 12px 26px;
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--pill {
  border-radius: 99px;
  padding: 16px 34px;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  gap: 10px;
}

.btn--block {
  width: 100%;
  border-radius: 99px;
  padding: 17px 24px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.icon-btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.icon-btn:hover {
  background: rgba(61, 125, 246, .4);
  border-color: rgba(61, 125, 246, .6);
}
.icon-btn svg { width: 19px; height: 19px; }
