/* ============================================================================
Urbisoft Design System — Base Tokens (v2 — derived from real logo)
Palette:  Navy (from logomark) + Magenta (from logomark) + Ink/Paper
Type:     Space Grotesk (display/UI) · Inter (body) · JetBrains Mono (meta)
============================================================================ */

.design-root {
  /* ---------- Brand (sampled from logomark) ------------------------------ */
  --navy-900: #141e3c; /* deep navy — hero / ink surfaces */
  --navy-800: #1c2a52;
  --navy-700: #253465; /* deepest navy sampled from logo */
  --navy-600: #2c4277; /* primary navy — logo wing */
  --navy-500: #3d5599;
  --navy-300: #7f91c0; /* mid-blue tint sampled */
  --navy-100: #e6eaf4; /* tint wash */

  --magenta-900: #7a1f46;
  --magenta-700: #a12d60; /* deep magenta sampled */
  --magenta-500: #db4788; /* primary magenta sampled */
  --magenta-400: #e85c9a;
  --magenta-300: #eb77a6; /* bright magenta sampled */
  --magenta-100: #fce3ee; /* magenta tint wash */

  /* ---------- Neutrals --------------------------------------------------- */
  --ink-900: #0c1020; /* near-black with navy undertone */
  --ink-800: #161b2e;
  --ink-700: #2a3148;
  --ink-500: #5a617a;
  --ink-300: #b4bacb;
  --ink-200: #dadee8;
  --ink-100: #eceef4;

  --paper: #ffffff;
  --paper-raised: #fbfbfe;
  --paper-sunken: #f4f5f9;

  /* ---------- Semantic (calibrated to navy/magenta palette) -------------- */
  --ok: #1f8a5c;
  --warn: #b47b17;
  --err: var(--magenta-700);

  /* ---------- Foreground / background aliases --------------------------- */
  --fg-1: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --fg-on-ink: #ffffff;
  --fg-on-ink-muted: rgba(255, 255, 255, 0.64);

  --bg-1: var(--paper);
  --bg-2: var(--paper-raised);
  --bg-3: var(--paper-sunken);
  --bg-ink: var(--navy-900);

  --hairline: var(--ink-200);
  --hairline-strong: var(--ink-900);
  --hairline-on-ink: rgba(255, 255, 255, 0.1);

  /* ---------- Brand accent aliases -------------------------------------- */
  --brand-primary: var(--navy-600);
  --brand-primary-deep: var(--navy-900);
  --brand-accent: var(--magenta-500);
  --brand-accent-deep: var(--magenta-700);
  --brand-accent-soft: var(--magenta-100);

  /* Signature gradient drawn from the logo. Use for hero halo, CTA shine, etc. */
  --brand-gradient: linear-gradient(
    135deg,
    var(--magenta-500) 0%,
    var(--magenta-700) 45%,
    var(--navy-600) 100%
  );
  --brand-gradient-subtle: linear-gradient(
    135deg,
    var(--magenta-100) 0%,
    var(--navy-100) 100%
  );

  /* ---------- Spacing (4 px base) --------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-14: 56px;
  --s-18: 72px;
  --s-24: 96px;
  --s-32: 128px;

  /* ---------- Radius ---------------------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---------- Shadow ---------------------------------------------------- */
  --shadow-1:
    0 1px 2px rgba(12, 16, 32, 0.06), 0 2px 6px rgba(12, 16, 32, 0.04);
  --shadow-2:
    0 6px 16px rgba(12, 16, 32, 0.08), 0 24px 48px rgba(12, 16, 32, 0.06);
  --shadow-glow-magenta:
    0 0 0 1px rgba(219, 71, 136, 0.18), 0 12px 28px rgba(219, 71, 136, 0.22);

  /* ---------- Motion ---------------------------------------------------- */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* ---------- Typography foundations ------------------------------------ */
  --font-display:
    "Space Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* ---------- Layout ---------------------------------------------------- */
  --container-max: 1280px;
  --container-pad: 72px;
  --nav-h: 72px;
}

/* ---------- Semantic type roles ------------------------------------------ */

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 10.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.018em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.body-lg {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--fg-2);
}
.body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
}
.body-sm {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}

.ui-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--fg-1);
}

/* ---------- Foundational element defaults -------------------------------- */
.design-root {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition:
    color var(--dur-fast) var(--ease-out-quint),
    text-decoration-thickness var(--dur-fast) var(--ease-out-quint);
}
a:hover {
  color: var(--brand-accent);
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--magenta-100);
  color: var(--magenta-700);
}

/* ============================================================================
Urbisoft Website — UI Kit styles (v2 — navy + magenta, Space Grotesk)
============================================================================ */

.design-root,
.design-root * {
  box-sizing: border-box;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 72px;
}
@media (max-width: 900px) {
  .container {
    padding: 0 28px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition:
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-primary {
  background: #141e3c;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #db4788 0%, #a12d60 45%, #2c4277 100%);
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(219, 71, 136, 0.18),
    0 12px 28px rgba(219, 71, 136, 0.22);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background: #db4788;
  color: #fff;
}
.btn-accent:hover {
  background: #a12d60;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #0c1020;
  border-color: #dadee8;
}
.btn-ghost:hover {
  border-color: #0c1020;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Nav ----------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #dadee8;
}
.nav.is-on-dark {
  color: #fff;
}
.nav.is-on-dark:not(.is-scrolled) a {
  color: #fff;
}
.nav.is-on-dark:not(.is-scrolled) .nav-cta {
  background: #fff;
  color: #141e3c;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 900px) {
  .nav-inner {
    padding: 14px 28px;
  }
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
/* Full logo on white scrolled nav */
.brandmark-img-full {
  height: 40px;
  width: auto;
  display: block;
}
/* Logomark (arrow only) + wordmark for dark-hero state */
.brandmark-img-dark {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(219, 71, 136, 0.35));
}
.brandmark-wordmark {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2a3148;
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover {
  color: #db4788;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

.nav-cta {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  background: #141e3c;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-cta:hover,
.nav.is-on-dark:not(.is-scrolled) .nav-cta:hover {
  background: #db4788;
  color: #fff;
  transform: translateY(-1px);
}

/* Hero — compressed padding so marquee fits above the fold on 900h */
.hero {
  position: relative;
  padding: 124px 0 0;
  overflow: hidden;
  background: #141e3c;
  color: #fff;
  isolation: isolate;
  min-height: 900px;
  display: flex;
  flex-direction: column;
}
.hero-inner {
  flex: 1 0 auto;
}
/* Hero logomark watermark — large, intentionally bleeding off the right edge */
.hero-logomark {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 760px;
  height: auto;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.is-in .hero-logomark {
  opacity: 0.22;
}
@media (max-width: 1320px) {
  .hero-logomark {
    width: 620px;
    right: -100px;
  }
}
@media (max-width: 1100px) {
  .hero-logomark {
    display: none;
  }
}

/* Layered background: grid + aurora halo in magenta sampling the logo */
.hero-bg-grid {
  position: absolute;
  inset: -4% -4% -4% -4%;
  z-index: -2;
  pointer-events: none;
  transform: translate3d(
    calc(var(--mx, 0) * -16px),
    calc(var(--my, 0) * -12px),
    0
  );
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 80px
      80px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 /
      80px 80px;
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    black 0%,
    transparent 85%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    black 0%,
    transparent 85%
  );
}
.hero-bg-halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  filter: blur(80px);
  transform: translate3d(
    calc(var(--mx, 0) * 24px),
    calc(var(--my, 0) * 18px),
    0
  );
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes heroHaloPulse {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.72;
  }
}
.hero-bg-halo::before,
.hero-bg-halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-bg-halo::before {
  top: -5%;
  right: -15%;
  width: 65%;
  height: 90%;
  background: radial-gradient(
    circle at 45% 50%,
    rgba(219, 71, 136, 0.9) 0%,
    rgba(219, 71, 136, 0.35) 35%,
    transparent 70%
  );
}
.hero-bg-halo::after {
  bottom: -25%;
  left: -15%;
  width: 65%;
  height: 85%;
  background: radial-gradient(
    circle at 60% 60%,
    rgba(61, 85, 153, 0.9) 0%,
    rgba(61, 85, 153, 0.3) 40%,
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (max-width: 1000px) {
  .hero-inner {
    gap: 48px;
  }
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.hero-eyebrow .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #db4788;
  box-shadow: 0 0 0 4px rgba(219, 71, 136, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(219, 71, 136, 0.22);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(219, 71, 136, 0.04);
  }
}

.hero-title {
  margin: 24px 0 28px;
  color: #fff;
  font-feature-settings: "ss01";
}
.hero-title .accent {
  background: linear-gradient(135deg, #eb77a6 0%, #db4788 60%, #a12d60 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  max-width: 580px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 36px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 540px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-ctas .btn {
    justify-content: center;
  }
}

/* Side card */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.64);
}
.hero-card-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-card-row.muted {
  color: rgba(255, 255, 255, 0.5);
}
.hero-card-name {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: #fff;
}
.hero-card-row .meta {
  color: rgba(255, 255, 255, 0.5);
}
.hero-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.hero-card-foot .meta {
  color: rgba(255, 255, 255, 0.5);
}
.mono-tick {
  color: #eb77a6 !important;
  letter-spacing: 0.14em;
}

.hero-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
}
.marquee-track .sep {
  color: #db4788;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Hero proof row (live stats) ---------------------------------- */
.hero-proof {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 36px;
  align-items: center;
  max-width: 880px;
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-proof-num {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 500;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.028em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.hero-proof-unit {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.hero-proof-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.5;
  max-width: 230px;
}
.hero-proof-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 900px) {
  .hero-proof {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-proof-divider {
    display: none;
  }
  .hero-proof-num {
    font-size: 42px;
  }
}

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

/* ---------- Stagger entrance ---------------------------------------------- */
.stagger {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}
.hero.is-in .stagger {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reveal on scroll (applied by observer to sections + cards) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 80ms;
}
.reveal-delay-2 {
  transition-delay: 160ms;
}
.reveal-delay-3 {
  transition-delay: 240ms;
}
@media (prefers-reduced-motion: reduce) {
  .stagger,
  .reveal,
  .hero-bg-halo,
  .marquee-track,
  .hero-bg-grid {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* (hero-logomark defined above with updated sizing) */

/* ---------- Section head ------------------------------------------------- */
.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.section-title {
  margin: 18px 0 22px;
  color: #141e3c;
}
.section-title .accent {
  background: linear-gradient(135deg, #db4788 0%, #a12d60 45%, #2c4277 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  color: #2a3148;
  margin: 0;
}

/* ---------- Services ----------------------------------------------------- */
.services {
  padding: 68px 0 64px;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #dadee8;
  border-left: 1px solid #dadee8;
  border-radius: 16px;
  overflow: hidden;
  background: #fbfbfe;
}
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 22px;
  border-right: 1px solid #dadee8;
  border-bottom: 1px solid #dadee8;
  background: #fbfbfe;
  color: #0c1020;
  text-decoration: none;
  transition:
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 220px;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(135deg, #db4788 0%, #a12d60 45%, #2c4277 100%);
  transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  background: #ffffff;
}
.service-card:hover::before {
  height: 100%;
}
.service-card.is-active {
  background: #141e3c;
  color: #fff;
}
.service-card.is-active::before {
  height: 100%;
}
.service-card.is-active .service-body,
.service-card.is-active .service-num,
.service-card.is-active .service-foot {
  color: rgba(255, 255, 255, 0.68);
}
.service-card.is-active .service-foot {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-icon {
  color: #2c4277;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-icon {
  color: #db4788;
}
.service-card.is-active .service-icon {
  color: #eb77a6;
}
.service-num {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #5a617a;
}
.service-title {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 6px 0 0;
}
.service-body {
  font-size: 14px;
  line-height: 1.55;
  color: #2a3148;
  margin: 0;
}
.service-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #dadee8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a617a;
}

/* ---------- About -------------------------------------------------------- */
.about {
  padding: 140px 0 0;
  background: #f4f5f9;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding-bottom: 120px;
}
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.about-title {
  color: #141e3c;
  margin: 18px 0 0;
}
.about-title .accent {
  background: linear-gradient(135deg, #db4788 0%, #a12d60 45%, #2c4277 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-body p {
  max-width: 58ch;
}

.pillars {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  padding-top: 20px;
  border-top: 2px solid #141e3c;
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 32px;
  height: 2px;
  background: #db4788;
}
.pillar-num {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5a617a;
  margin-bottom: 12px;
}
.pillar h4 {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  color: #141e3c;
}
.pillar p {
  font-size: 14px;
  line-height: 1.5;
  color: #2a3148;
  margin: 0;
}

.stats {
  background: #141e3c;
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 80px
      80px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 /
      80px 80px;
  mask-image: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    black,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    black,
    transparent 90%
  );
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-num {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.035em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
}
.stat-num .plus,
.stat-num .pct {
  color: #eb77a6;
  font-weight: 400;
}
.stat-unit {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.64);
  margin-left: 4px;
}
.stat-label {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

/* ---------- Clients ------------------------------------------------------ */
.clients {
  padding: 140px 0;
  background: #ffffff;
}
.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

.client-card {
  background: #fbfbfe;
  border: 1px solid #dadee8;
  border-radius: 16px;
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.client-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #db4788 0%, #a12d60 45%, #2c4277 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.client-card:hover {
  border-color: #2c4277;
  box-shadow:
    0 6px 16px rgba(12, 16, 32, 0.08),
    0 24px 48px rgba(12, 16, 32, 0.06);
  transform: translateY(-2px);
}
.client-card:hover::before {
  transform: scaleX(1);
}

.client-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.client-logo {
  height: 56px;
  display: flex;
  align-items: center;
}
.client-logo img {
  max-height: 100%;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.client-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  padding: 0 18px;
  border: 1px dashed #b4bacb;
  border-radius: 4px;
  background: #ffffff;
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #141e3c;
  position: relative;
}
.client-logo-placeholder::after {
  content: "logo placeholder";
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a617a;
  font-weight: 400;
}
.client-role {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a617a;
}
.client-name {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.028em;
  margin: 28px 0 0;
  color: #141e3c;
}
.client-sector {
  margin: 6px 0 20px;
}
.client-blurb {
  max-width: 52ch;
  margin: 0 0 24px;
}
.client-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-tag {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border: 1px solid #dadee8;
  border-radius: 4px;
  background: #ffffff;
  color: #2a3148;
  transition:
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.client-card:hover .client-tag {
  border-color: #7f91c0;
  color: #253465;
}

/* ============================================================================
      DESIGN POLISH — consolidated overrides (loaded last → wins on equal specificity)
      Sections: 0 overflow · 1 hero compression · 2 lead · 3 H1 · 4 marquee ·
      5 motion · 7 section rhythm · 8 mobile fixes · 9 a11y/focus ·
      10 contrast · 11 reduced-motion + fallbacks
      ============================================================================ */

/* ---- 0. Kill horizontal overflow (mobile scrollWidth > viewport bug) ----- */
html,
body {
  overflow-x: clip;
}
.design-root {
  overflow-x: clip;
  max-width: 100%;
}

/* ---- 1. Hero compression — let marquee reach the fold on 900h ------------- */
.hero {
  padding: 108px 0 0;
  min-height: 760px;
  min-height: 100svh;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  /* width:100% pins this flex item to the hero (390 on mobile); the base
        .container max-width:1280 still caps it on desktop. Without this the
        flex column resolves to its 1280px max-width and the original grid's
        1fr constraint is gone, so the hero overflowed and was clipped. */
  width: 100%;
  min-width: 0;
}
/* marquee anchored to the bottom of the hero so its motion sits in-view */
.hero-marquee {
  margin-top: auto;
}

/* ---- 2. Lead paragraph — lighter, shorter measure ------------------------ */
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 32px;
}

/* ---- 3. H1 — slightly smaller clamp so it breathes above the fold -------- */
.hero-title {
  margin: 20px 0 24px;
}
.hero-title.display-1 {
  font-size: clamp(40px, 8.4vw, 96px);
  line-height: 1;
}

/* ---- 4. Marquee — soft edge fade + seamless 2× loop (HTML now 12 spans) -- */
.hero-marquee {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* ---- 5. Motion — wake up the hero (pulse halo + drifting noise) ---------- */
.hero-bg-halo {
  animation: heroHaloPulse 9s ease-in-out infinite;
}
@keyframes heroNoiseDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-3%, 2%, 0);
  }
}
.hero-bg-noise {
  animation: heroNoiseDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* ---- 7. Section rhythm — even 120px vertical cadence --------------------- */
.services {
  padding: 120px 0;
}
.about {
  padding: 120px 0 0;
}
.clients {
  padding: 120px 0;
}
.contact {
  padding: 120px 0;
}

/* ---- 8. Mobile fixes — grid overflow + reCAPTCHA scale ------------------- */
@media (max-width: 600px) {
  .hero-proof {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
  }
  .hero-proof-divider {
    display: none;
  }
  .marquee-track {
    gap: 20px;
  }
  /* Real overflow fixes so overflow-x:clip stays a safety net, not a mask.
        Eyebrow was white-space:nowrap → ran past the right edge ("Est. 2004"
        clipped, the ~16px scroll). Hero-sub kept a 540px measure wider than the
        mobile column. Nav actions (lang toggle + CTA) shrink to fit. */
  .hero-eyebrow {
    white-space: normal;
  }
  .hero-sub {
    max-width: 100%;
  }
  .nav-inner > div:last-child {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav-cta {
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
  }
  /* Contact grid collapsed to one column whose 1fr track kept a min-content
        floor (~378px) wider than the padded container, spilling text + the form
        background past the edge. minmax(0,1fr) lets it shrink to the viewport. */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 360px) {
  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: left top;
  }
}

/* ---- 9. A11y — visible keyboard focus + comfortable touch targets ------- */
.design-root :focus-visible {
  outline: 2px solid #db4788;
  outline-offset: 2px;
  border-radius: 3px;
}
.design-root :focus:not(:focus-visible) {
  outline: none;
}
.btn,
.nav-links a,
.lang-toggle,
.footer-links a {
  min-height: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
}

/* ---- 10. Contrast — magenta button/links to AA on white ----------------- */
.btn-accent {
  background: #a12d60;
}
.btn-accent:hover {
  background: #8a204e;
}
.nav-links a:hover,
.contact-row a:hover,
.footer-col a:hover,
.footer-links a:hover {
  color: #a12d60;
}

/* ---- 11. Reduced motion + gradient-text fallback ------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-halo,
  .hero-bg-noise {
    animation: none !important;
    transition: none !important;
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .accent,
  .section-title .accent {
    color: #e85c9a;
    -webkit-text-fill-color: #e85c9a;
  }
}

/* ---------- Contact ------------------------------------------------------ */
.contact {
  padding: 140px 0;
  background: #f4f5f9;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.contact-lead h2 {
  color: #141e3c;
}
.contact-lead h2 .accent {
  background: linear-gradient(135deg, #db4788 0%, #a12d60 45%, #2c4277 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-sub {
  max-width: 48ch;
  margin: 14px 0 32px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #0c1020;
}
.contact-row .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #fce3ee;
  color: #a12d60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-label {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a617a;
  margin-bottom: 4px;
}
.contact-row a {
  color: #0c1020;
  text-decoration: none;
  font-weight: 500;
}
.contact-row a:hover {
  color: #db4788;
}
.contact-row address {
  font-style: normal;
  color: #2a3148;
}
.contact-legal {
  margin-top: 14px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #dadee8;
  border-radius: 16px;
  padding: 36px;
  position: relative;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a617a;
}
.contact-form input,
.contact-form textarea {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 13px 14px;
  border: 1px solid #dadee8;
  border-radius: 4px;
  background: #fbfbfe;
  color: #0c1020;
  outline: none;
  transition:
    border 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: normal;
  text-transform: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #db4788;
  background: #ffffff;
  box-shadow: 0 0 0 4px #fce3ee;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- Footer ------------------------------------------------------- */
.footer {
  background: #141e3c;
  color: #fff;
  padding: 96px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #db4788 0%, transparent 65%);
  opacity: 0.15;
  filter: blur(60px);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-brand {
  max-width: 360px;
}
.footer-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer-logomark {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(219, 71, 136, 0.4));
}
.footer-wordmark {
  font-family:
    "Space Grotesk",
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #fff;
}
.footer-tag {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.footer-col-title {
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-col a:hover {
  color: #eb77a6;
}
.footer-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}
.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .meta {
  color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}

/* ---------- Language toggle --------------------------------------------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border: 1px solid #dadee8;
  border-radius: 4px;
  background: transparent;
  color: #2a3148;
  text-decoration: none;
  transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-toggle:hover {
  border-color: #db4788;
  color: #db4788;
}
.nav.is-on-dark:not(.is-scrolled) .lang-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.nav.is-on-dark:not(.is-scrolled) .lang-toggle:hover {
  border-color: #eb77a6;
  color: #eb77a6;
}

/* ============================================================================
   Podstrony uslugowe (/services/*, /uslugi/*)
   Rozszerzenie design systemu o breadcrumbs, proze i FAQ.
   ============================================================================ */

.subhero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--fg-on-ink);
  /* isolate: bez tego .hero-bg-grid/.hero-bg-halo (z-index: -1/-2)
     chowaja sie za tlem sekcji — tak samo jak w .hero */
  isolation: isolate;
  padding: 132px 0 72px;
}
.subhero .container {
  position: relative;
  z-index: 2;
}
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--magenta-500);
}
.breadcrumbs span {
  margin: 0 8px;
  opacity: 0.4;
}
.subhero-title {
  color: #fff;
  max-width: 16ch;
  margin: 0 0 20px;
}
.subhero-sub {
  color: var(--fg-on-ink-muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

/* ---------- Proza ---------- */
.prose {
  max-width: 68ch;
}
.prose p {
  margin: 0 0 20px;
  color: var(--fg-2);
  line-height: 1.75;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 34px 0 12px;
  color: var(--navy-900);
}
.prose ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  line-height: 1.65;
  color: var(--fg-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--magenta-500);
}
.prose strong {
  color: var(--navy-900);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 78ch;
  margin-top: 8px;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy-900);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--magenta-500);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: "–";
}
.faq summary:hover {
  color: var(--magenta-700);
}
.faq details > div {
  padding: 0 44px 22px 0;
  line-height: 1.75;
  color: var(--fg-2);
}

/* .about ma padding-bottom 0 (na home domyka ja kolejny blok); na podstronach
   proza i siatka powiazanych sa ostatnim elementem sekcji — bez tego tekst
   dotyka dolnej krawedzi szarego tla */
.prose,
.related-grid {
  padding-bottom: 120px;
}

/* ---------- Siatka powiazanych uslug ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.related-card:hover {
  border-color: var(--magenta-500);
  transform: translateY(-2px);
}
.related-card .rc-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 5px;
}
.related-card .rc-sub {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .subhero {
    padding: 108px 0 52px;
  }
  .prose,
  .related-grid {
    padding-bottom: 72px;
  }
  .subhero-title {
    max-width: none;
  }
}
