/* =============================================================
   nimda.pl — style.css
   Dark premium / cyber / enterprise software / AI lab
   Główny efekt: większość treści odbita lustrzanie (.mirror),
   logo "nimda.pl" pozostaje czytelne.
   ============================================================= */

/* -------------------------------------------------------------
   1. RESET / BAZA
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  /* Kolory bazowe */
  --bg: #07080d;
  --bg-2: #0b0d16;
  --bg-3: #11142099;
  --surface: rgba(22, 26, 44, 0.6);
  --surface-2: rgba(28, 34, 56, 0.7);
  --surface-3: rgba(36, 44, 72, 0.55);

  /* Linie i obrysy */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Tekst */
  --text: #e6ebf5;
  --text-dim: #9aa3b8;
  --text-muted: #6b7388;

  /* Akcenty */
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --accent-soft: rgba(91, 140, 255, 0.18);

  /* Gradienty */
  --grad-text: linear-gradient(110deg, #5b8cff 0%, #8b5cf6 45%, #22d3ee 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.6), transparent);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Cienie / glowy */
  --glow-blue: 0 0 80px rgba(91, 140, 255, 0.35);
  --glow-purple: 0 0 80px rgba(139, 92, 246, 0.3);

  /* Layout */
  --container: 1360px;
  --container-wide: 1480px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Fonty */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(91, 140, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(91, 140, 255, 0.45);
  color: #fff;
}

/* -------------------------------------------------------------
   2. EFEKT MIRROR — kluczowy element designu

   Strategia: cały <main> dostaje scaleX(-1) jako jeden blok.
   To daje "prawdziwe" odbicie lustrzane — teksty wyrównane do
   lewej w HTML lądują wizualnie po prawej, karty układają się
   od prawej do lewej, kompozycja faktycznie wygląda jak
   patrzenie na stronę przez lustro.

   Header i footer NIE są flipowane; wewnątrz nich klasa
   .mirror nadal lokalnie odbija pojedyncze elementy
   (np. menu, brand__tag, hasła w stopce).
   ------------------------------------------------------------- */

main {
  transform: scaleX(-1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
  /* Płynna animacja flipa po kliknięciu w przełącznik w stopce */
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}

/* .mirror — lokalny mirror dla elementów POZA <main>
   (header, footer). Wewnątrz <main> staje się no-opem,
   bo cały main jest już odbity. */
.mirror {
  transform: scaleX(-1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}

main .mirror {
  transform: none;
}

/* Stan po kliknięciu w "K. Krawczyk" — wyłączamy efekt lustra
   na całej stronie. Przełącznik bez przeładowania. */
body.is-unmirrored main {
  transform: none;
}

body.is-unmirrored .mirror {
  transform: none;
}

/* -------------------------------------------------------------
   3. LAYOUT POMOCNICZY
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(91, 140, 255, 0.04), transparent 40%),
    rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 760px;
  margin-bottom: 64px;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.08);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__lead {
  color: var(--text-dim);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 60ch;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------
   4. EFEKTY TŁA — siatka, glow, szum
   ------------------------------------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  opacity: 0.7;
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.55;
  border-radius: 50%;
}

.bg-glow--1 {
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.55), transparent);
}

.bg-glow--2 {
  top: 40%;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.45), transparent);
}

.bg-glow--3 {
  bottom: -300px;
  left: 40%;
  width: 800px;
  height: 800px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.35), transparent);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 8, 13, 0.78);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand--logo {
  gap: 0;
}

.brand__image {
  display: block;
  width: clamp(84px, 8.5vw, 120px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(91, 140, 255, 0.18));
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #5b8cff, #8b5cf6 60%, #22d3ee);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 30px rgba(91, 140, 255, 0.35);
  display: grid;
  place-items: center;
}

.brand__mark-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.brand__logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  /* Nieskorygowany, bezwzględnie czytelny */
}

.brand__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: var(--grad-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 24px;
  border-top: 1px solid var(--border);
  background: rgba(7, 8, 13, 0.95);
}

.mobile-nav a {
  padding: 14px 8px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.site-header.is-menu-open .mobile-nav {
  display: flex;
}

/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(91, 140, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 980px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee, 0 0 0 4px rgba(34, 211, 238, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero__title {
  font-size: 55px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: #fff;
}

.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-dim);
  max-width: 65ch;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__meta-item strong {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: var(--mono);
}

.hero__meta-item span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* -------------------------------------------------------------
   7. PRZYCISKI
   ------------------------------------------------------------- */
.btn {
  --pad-y: 14px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--xl {
  --pad-y: 18px;
  --pad-x: 30px;
  font-size: 17px;
}

.btn--primary {
  background: linear-gradient(135deg, #5b8cff 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow:
    0 8px 30px rgba(91, 140, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6e9bff 0%, #9d72f7 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn--primary > * {
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  box-shadow:
    0 14px 40px rgba(91, 140, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn__arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   8. SEKCJA TECHNOLOGIE
   ------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tech-card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    var(--grad-card),
    rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tech-card:hover {
  /* main flipuje całość, hover dokłada tylko ruch w pionie */
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 20px 60px rgba(91, 140, 255, 0.18);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tech-card__index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
}

.tech-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.tech-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
}

/* -------------------------------------------------------------
   9. WARSTWA ARCHITEKTURY
   ------------------------------------------------------------- */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.architecture-card {
  position: relative;
  min-height: 260px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.07), transparent 45%),
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.architecture-card::before {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.75;
}

.architecture-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  z-index: -1;
}

.architecture-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.16);
}

.architecture-card__tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 6px;
  color: var(--accent-3);
  background: rgba(34, 211, 238, 0.06);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.architecture-card h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.architecture-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* -------------------------------------------------------------
   10. SEKCJA USŁUGI
   ------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(91, 140, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(7, 8, 13, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.service:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 24px 70px rgba(139, 92, 246, 0.22);
}

.service__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 4px;
}

.service h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

.service p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.service__points {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service__points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.service__points li::before {
  content: "↳";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

/* -------------------------------------------------------------
   10. SEKCJA PROCES
   ------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.process__step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 16px;
  height: 1px;
  background: var(--grad-line);
}

.process__step:last-child::after {
  display: none;
}

.process__step:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.03);
}

.process__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.process__step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.01em;
}

.process__step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* -------------------------------------------------------------
   11. SEKCJA "DLACZEGO NIMDA?"
   ------------------------------------------------------------- */
.reverse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reverse-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reverse-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 18px 50px rgba(91, 140, 255, 0.18);
}

.reverse-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(139, 92, 246, 0.14));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 22px;
  font-family: var(--mono);
  margin-bottom: 4px;
}

.reverse-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.reverse-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   12. SEKCJA KONTAKT
   ------------------------------------------------------------- */
.section--contact {
  padding-top: 100px;
  padding-bottom: 140px;
}

.contact {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(91, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.6), rgba(139, 92, 246, 0.2) 40%, rgba(34, 211, 238, 0.4));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.contact .section__eyebrow {
  margin-bottom: 24px;
}

.contact__title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #fff;
}

.contact__lead {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 50ch;
}

.contact__box {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
}

#contact-trigger {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, filter 0.3s ease;
}

.contact__box.is-resolved #contact-trigger {
  transform: scale(0.7) translateY(-12px);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.contact__message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.contact__box.is-resolved .contact__message {
  opacity: 1;
  transform: translateY(0);
}

.contact__message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact__message h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.contact__message p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.5;
}

.contact__message small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-3);
  margin-top: 8px;
}

/* -------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 44px;
  background: rgba(7, 8, 13, 0.6);
  backdrop-filter: blur(10px);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer__tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(91, 140, 255, 0.34);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.1);
  color: #dce6ff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.08);
}

.site-footer__tagline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(91, 140, 255, 0.7);
  flex: 0 0 auto;
}

.site-footer__claims {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Copyright — czytelny, nie-odbity (świadomie poza efektem mirror) */
.site-footer__copyright {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 14px;
  margin-top: -8px;
}

.site-footer__copyright .copyright__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
}

.site-footer__copyright .copyright__mark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-text);
  display: inline-block;
}

.site-footer__copyright .copyright__name {
  color: var(--text);
  font-weight: 500;
}

/* Nazwisko jako ukryty przełącznik orientacji.
   Wygląda jak normalny tekst, ale klikalny. */
.copyright__toggle {
  background: none;
  border: 0;
  padding: 0 2px;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  border-bottom: 1px dashed transparent;
  line-height: 1.4;
}

.copyright__toggle::after {
  /* Subtelna ikonka "↻" pojawia się na hover — sygnalizuje interakcję */
  content: " ↻";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.copyright__toggle:hover,
.copyright__toggle:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(91, 140, 255, 0.5);
  text-shadow: 0 0 12px rgba(91, 140, 255, 0.5);
  outline: none;
}

.copyright__toggle:hover::after,
.copyright__toggle:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.copyright__toggle:active {
  color: var(--accent-3);
}

/* Po przełączeniu — ikonka jest "obrócona" zamiast strzałki */
body.is-unmirrored .copyright__toggle::after {
  content: " ⇌";
}

.dotsep {
  opacity: 0.5;
}

/* -------------------------------------------------------------
   14. ANIMACJE — fade-in / reveal
   Wszystkie reveal-e są wewnątrz <main>, więc flipuje je
   transform na <main>. Tu tylko ruch w pionie + opacity.
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tech-grid,
  .architecture-grid,
  .services,
  .reverse-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__step::after {
    display: none;
  }

  .hero__meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 720px) {
  .container,
  .site-header__inner,
  .site-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand__tag {
    display: none;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__meta {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .tech-grid,
  .architecture-grid,
  .services,
  .reverse-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 40px 24px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand__logo {
    font-size: 18px;
  }

  .hero__meta-item strong {
    font-size: 22px;
  }

  .contact__title {
    font-size: 26px;
  }
}

/* Wyłączenie animacji dla użytkowników preferujących redukcję ruchu */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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