/* ==========================================================================
   base.css — reset, typografia bazowa, helpery layoutu, przyciski
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* delikatna śliwkowa poświata w tle całego dokumentu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(48rem 34rem at 96% 12%, rgba(34, 211, 238, 0.09), transparent 72%);
}

main {
  position: relative;
  z-index: 1;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-head);
  color: var(--cream);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}

p {
  margin: 0 0 var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--violet-300);
  text-decoration-color: rgba(183, 151, 255, 0.4);
  text-underline-offset: 3px;
  transition: color var(--dur-1) var(--ease-out);
}

a:hover {
  color: var(--cyan-300);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--violet-500);
  color: var(--cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cream);
  color: var(--ink-on-light);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: clamp(var(--sp-8), 8vw, var(--sp-9));
}

.section--tight {
  padding-block: clamp(var(--sp-7), 6vw, var(--sp-8));
}

.section--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--sp-7);
}

.section-head p {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  margin: 0;
}

.section-head h2 {
  margin-bottom: var(--sp-3);
}

/* ---------- eyebrow (mono, typowa dla marki etykieta z // ) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "//";
  color: var(--violet-400);
}

.eyebrow--warm {
  color: var(--orange-400);
}

/* ---------- SYGNATURA MARKI: pasek okna przeglądarki (.chrome-bar) ----------
   Bluemonster generuje strony, więc cała strona zbudowana jest z „okien”.
   Motyw wraca na: kadrze hero, kartach kroków, zdjęciu zespołu,
   kaflach galerii i karcie formularza.                                      */

.chrome {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chrome-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(180deg, rgba(61, 38, 112, 0.66), rgba(31, 19, 57, 0.66));
  border-bottom: 1px solid var(--line);
}

.chrome-bar__dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.chrome-bar__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.chrome-bar__dots i:nth-child(1) {
  background: var(--orange-500);
}

.chrome-bar__dots i:nth-child(2) {
  background: var(--cyan-400);
}

.chrome-bar__dots i:nth-child(3) {
  background: rgba(248, 245, 255, 0.45);
}

.chrome-bar__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-bar__label b {
  color: var(--violet-300);
  font-weight: 400;
}

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad-cta);
  color: var(--cream);
  box-shadow: var(--glow-violet);
}

.btn-primary:hover {
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(183, 151, 255, 0.55), 0 26px 64px rgba(109, 40, 217, 0.48);
}

.btn-warm {
  background: var(--grad-warm);
  color: #2a1204;
  box-shadow: 0 16px 44px rgba(249, 115, 22, 0.3);
}

.btn-warm:hover {
  color: #2a1204;
}

.btn-ghost {
  background: rgba(248, 245, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--cream);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(248, 245, 255, 0.1);
  border-color: var(--violet-300);
  color: var(--cream);
}

.btn[disabled],
.btn.is-busy {
  opacity: 0.62;
  pointer-events: none;
}

.btn--block {
  width: 100%;
}

/* ---------- scroll reveal (wyłączany przy prefers-reduced-motion) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
