/* Self-hosted Space Grotesk (variable 300-700) — text on index/about/services.
   Served from 'self' (CSP-safe). Two subsets so Polish glyphs render:
   latin (ó) + latin-ext (ą ę ś ż ź ć ń ł). */
@font-face{
  font-family:'Space Grotesk';
  font-style:normal; font-weight:300 700; font-display:swap;
  src:url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Space Grotesk';
  font-style:normal; font-weight:300 700; font-display:swap;
  src:url('../fonts/space-grotesk-var-latinext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* BAZA */
main, #main-content{ display:flex; flex-direction:column; align-items:stretch; gap:0; }
#main-content .section{ display:block; }
.lp-hero, .lp-section{ display:block; width:100%; }
.lp-section{ padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--lp-border, #2a2d36); }

/* ── FULLSCREEN HERO ─────────────────────────────────────────────────────────── */
.lp-hero--fullscreen {
  position: relative;
  height: 100vh;
  height: 100dvh;         /* dynamic viewport (mobile browsers w/ address bar) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  padding: 0 !important;  /* override .lp-hero { padding: 6rem 0 4rem } */
  background: #030a1e;    /* dark fallback if image hasn't loaded yet */
  isolation: isolate;     /* own stacking context for z-index children */
}

/* background image — covers entire hero, below overlay */
.lp-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);  /* force GPU layer */
}

/* gradient overlay — on top of image, below text */
.lp-hero--fullscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(2, 3, 10, 0.94) 0%,
      rgba(2, 3, 10, 0.88) 22%,
      rgba(2, 3, 10, 0.62) 48%,
      rgba(2, 3, 10, 0.36) 75%,
      rgba(2, 3, 10, 0.34) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(2, 3, 10, 0.28) 0%,
      rgba(2, 3, 10, 0.04) 50%,
      rgba(2, 3, 10, 0.52) 100%
    );
  pointer-events: none;
}

/* AI glow blobs (animated) sit just above overlay */
.lp-hero--fullscreen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 14% 55%, rgba(70,243,255,.10) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 28%, rgba(176,69,255,.08) 0%, transparent 42%);
  animation: heroGlowDrift 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlowDrift {
  from { opacity: .65; transform: scale(1)    translate(0,    0  ); }
  to   { opacity: 1;   transform: scale(1.07) translate(10px, -7px); }
}

.lp-hero--fullscreen .lp-hero__content {
  position: relative;
  z-index: 3;
  /* override .container { margin: 0 auto } – anchor to left edge */
  margin-left: 3.5rem !important;
  margin-right: auto   !important;
  padding: 2rem 2rem 2rem 0;
  max-width: 580px;
  width: auto;
}

.lp-hero--fullscreen .lp-hero__content h1 {
  font-size: clamp(1.5rem, 4.5vw, 4.6rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}
/* Hero headline in self-hosted Space Grotesk (brand line keeps its own styling) */
.lp-hero--fullscreen .lp-hero__content h1 [data-lang="hero_h1_after_brand"]{
  font-family:'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:700;
}

.lp-hero--fullscreen .lead {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.6;
}

.lp-hero--fullscreen .hero-cta {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

@media (max-width: 720px) {
  .lp-hero--fullscreen {
    align-items: center;
    text-align: center;
  }
  .lp-hero--fullscreen .lp-hero__content {
    margin-left: 0 !important;
    padding: 2rem 1.5rem;
    max-width: 94vw;
  }
  .lp-hero--fullscreen .hero-cta {
    justify-content: center;
    flex-direction: column;
  }
  .lp-hero--fullscreen .btn { width: 100%; justify-content: center; }
  .lp-hero--fullscreen .lead { margin: 0 auto; }
  .lp-hero__overlay {
    background: rgba(2, 3, 10, 0.65);
  }
}

/* ── Hero CTA buttons — modern AI style ───────────────────────────────── */
.lp-hero--fullscreen .btn {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  padding: .85rem 1.8rem;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
  transition: box-shadow .4s cubic-bezier(.2,.7,.2,1), background .4s cubic-bezier(.2,.7,.2,1), border-color .4s cubic-bezier(.2,.7,.2,1), filter .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1);
}

/* shimmer sweep on every hero button */
.lp-hero--fullscreen .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}
.lp-hero--fullscreen .btn:hover::after { transform: translateX(100%); }

/* Consultation — gold pulse */
.lp-hero--fullscreen .btn-accent {
  background: linear-gradient(135deg, #f7cc50 0%, #f0970a 100%);
  border: none;
  color: #130900;
  box-shadow: 0 0 18px rgba(240,151,10,.30), 0 6px 20px rgba(0,0,0,.35);
}
.lp-hero--fullscreen .btn-accent:hover {
  box-shadow: 0 0 32px rgba(247,204,80,.60), 0 12px 30px rgba(0,0,0,.4);
  filter: drop-shadow(0 0 14px rgba(247, 204, 80, .65));
}

/* Solutions — purple neon glass */
.lp-hero--fullscreen .btn-solutions {
  background: rgba(176, 69, 255, 0.14);
  border: 2px solid rgba(176, 69, 255, 1);
  color: #e8ccff;
  box-shadow:
    inset 0 0 14px rgba(176,69,255,.10),
    0 0 14px rgba(176,69,255,.22);
}
.btn-solutions:hover {
  background: rgba(176, 69, 255, 0.26);
  border-color: #b045ff;
  color: #f5e8ff;
  box-shadow:
    0 0 0 1px rgba(176,69,255,.7),
    0 0 28px rgba(176,69,255,.55),
    inset 0 0 20px rgba(176,69,255,.18),
    0 12px 30px rgba(0,0,0,.45);
  filter: drop-shadow(0 0 14px rgba(176, 69, 255, .65));
}

/* Poznaj nas — pink neon glass */
.lp-hero--fullscreen .btn-about {
  background: rgba(255, 92, 170, 0.12);
  border: 2px solid rgba(255, 92, 170, 1);
  color: #ffd7ec;
  box-shadow:
    inset 0 0 14px rgba(255,92,170,.09),
    0 0 14px rgba(255,92,170,.20);
}
.btn-about:hover {
  background: rgba(255, 92, 170, 0.24);
  border-color: #ff5caa;
  color: #ffe9f4;
  box-shadow:
    0 0 0 1px rgba(255,92,170,.7),
    0 0 28px rgba(255,92,170,.52),
    inset 0 0 20px rgba(255,92,170,.16),
    0 12px 30px rgba(0,0,0,.45);
  filter: drop-shadow(0 0 14px rgba(255, 92, 170, .6));
}

/* Portal — cyan neon glass */
.lp-hero--fullscreen .btn-portal {
  background: rgba(70, 243, 255, 0.10);
  border: 2px solid rgba(70, 243, 255, 0.95);
  color: #d0faff;
  box-shadow:
    inset 0 0 14px rgba(70,243,255,.08),
    0 0 14px rgba(70,243,255,.20);
}
.btn-portal:hover {
  background: rgba(70, 243, 255, 0.22);
  border-color: #46f3ff;
  color: #edfffe;
  box-shadow:
    0 0 0 1px rgba(70,243,255,.65),
    0 0 28px rgba(70,243,255,.50),
    inset 0 0 20px rgba(70,243,255,.14),
    0 12px 30px rgba(0,0,0,.45);
  filter: drop-shadow(0 0 14px rgba(70, 243, 255, .60));
}

/* Language toggle pill — top-center of hero */
.lp-hero__lang-toggle {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(5, 7, 20, 0.55);
  border: 1px solid rgba(70, 243, 255, 0.30);
  border-radius: 999px;
  padding: 6px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.lp-lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(180, 210, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 10px;
  border-radius: 999px;
  transition: color .18s, background .18s;
}
.lp-lang-btn:hover {
  color: #fff;
}
.lp-lang-btn.active {
  background: rgba(70, 243, 255, 0.15);
  color: #46f3ff;
  box-shadow: 0 0 8px rgba(70,243,255,.25);
}

.lp-lang-sep {
  color: rgba(70, 243, 255, 0.25);
  font-size: 0.75rem;
  pointer-events: none;
  user-select: none;
}

/* Scroll hint — 3 cascading chevrons */
.lp-hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 12px;
  outline: none;
}
.lp-hero__scroll-hint i {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: -4px;
  color: rgba(70, 243, 255, 0.4);
  animation: chevronDrop 1.6s ease-in-out infinite;
}
.lp-hero__scroll-hint i:nth-child(1) { animation-delay: 0s; }
.lp-hero__scroll-hint i:nth-child(2) { animation-delay: 0.18s; }
.lp-hero__scroll-hint i:nth-child(3) { animation-delay: 0.36s; }

.lp-hero__scroll-hint:hover i { color: rgba(70, 243, 255, 0.9); }

@keyframes chevronDrop {
  0%   { opacity: 0;    transform: translateY(-6px); }
  40%  { opacity: 1; }
  80%  { opacity: 0.15; transform: translateY(4px); }
  100% { opacity: 0;    transform: translateY(6px); }
}

/* PÓŁPRZEZROCZYSTE TŁO */
.lp-page-bg{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(circle at top, #10162d 0%, #05070d 45%, #02030a 100%),
    linear-gradient(120deg, rgba(70, 243, 255, 0.08), transparent 60%);
}
/* All landing pages: transparent background */
body.has-lp-bg {
  background-color: transparent;
}

/* ── INDEX PAGE ONLY (body.lp-home) ─────────────────────────────────────── */

/* Override theme.css: body{display:flex} breaks hero height on home page */
body.lp-home {
  display: block;
  min-height: 100dvh;
}

/* Navbar sizing — all landing pages (index, about, services) */
body.has-lp-bg .navbar {
  height: auto;
  min-height: 99px;
  padding: 0.6rem 0;
}

/* Navbar: fixed, hidden above viewport until hero scrolls out of view.
   JS (landing.js initNavbarPin) adds .lp-nav--pinned via IntersectionObserver. */
body.lp-home .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 99px;
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(70, 243, 255, 0.10);
  z-index: 500;
  transform: translateY(-110%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .25s;
}
body.lp-home .navbar.lp-nav--pinned {
  transform: translateY(0);
}
body.lp-home .navbar.scrolled {
  background: rgba(5, 7, 13, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Override theme.css main layout: dashboard uses 80% width + 130px top margin */
body.lp-home main,
body.lp-home #main-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex: unset;
  justify-content: flex-start;
}

/* Anchor links don't hide behind fixed navbar */
html:has(body.lp-home) {
  scroll-padding-top: 86px;
}

/* Logo container 10% smaller than dashboard default (theme.css: 300×90px) */
body.has-lp-bg .logo-container {
  height: 73px;
  width: 243px;
  min-width: 162px;
  max-width: 243px;
}

/* Restore centered containers for content sections
   (theme.css sets .container to width:100% for dashboard) */
body.lp-home .container {
  width: min(1200px, 90vw);
  max-width: unset;
  margin-left: auto;
  margin-right: auto;
}
/* Stickout sections use a custom left-offset container — don't re-center */
body.lp-home .lp-stickout .container {
  width: 100%;
  max-width: 100%;
  margin-left: clamp(12px, 2vw, 32px);
  margin-right: auto;
}

/* ZMIENNE */
:root{
  --lp-card: rgba(14, 20, 38, 0.92);
  --lp-border: rgba(70, 243, 255, 0.2);
  --lp-text: #e8ecf8;
  --lp-muted: #9ba6c7;
  --lp-primary: #46f3ff;
  --lp-accent: #b045ff;

  /* Kafelki flow */
  --tile-size: 220px;         /* delikatnie mniejsze */
  --tile-radius: 16px;
  --neon-blue:  #46f3ff;
  --neon-blue-glow: rgba(70,243,255,.45);
  --neon-gold:  #b045ff;
  --neon-gold-glow: rgba(176,69,255,.55);

  /* Navbar-like tło do hovera na kafelkach i przycisku */
  --surface-elev: #0f1424;
}
.container{ width:min(1200px,80vw); margin:0 auto; }
.lead{ font-size: clamp(16px, 2.2vw, 20px); color: var(--lp-muted); }
.btn{ appearance:none; border:1px solid var(--lp-border); background:var(--surface-elev); color:var(--lp-text);
  padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer; transition: box-shadow .15s, transform .05s; }
.btn:hover{ box-shadow:0 10px 30px rgba(0,0,0,.25); }
.btn-primary{ background:linear-gradient(120deg, var(--lp-primary), var(--lp-accent)); border-color: transparent; color:#02030a; }
.btn-secondary{
  background: rgba(16, 26, 42, 0.95);
  border-color: rgba(70, 243, 255, 0.45);
  color: var(--lp-text);
}
.btn-secondary:hover{
  box-shadow:
    0 0 10px rgba(70, 243, 255, 0.35),
    0 0 20px rgba(70, 243, 255, 0.3),
    0 12px 26px rgba(0,0,0,.35);
  
}
.btn-accent{
  background: linear-gradient(120deg, #f7d26a, #f4b740);
  border-color: transparent;
  color:#1b1403;
}
.btn-accent:hover{
  box-shadow:
    0 0 10px rgba(247, 210, 106, 0.55),
    0 0 22px rgba(244, 183, 64, 0.6),
    0 12px 26px rgba(0,0,0,.35);
  
}
.micro{ color: var(--lp-muted); }

/* HERO */
.lp-hero{ padding: clamp(100px, 14vw, 130px) 0; border-bottom:1px solid var(--lp-border); }
.lp-hero .container{ max-width: 1200px; }
.lp-hero__grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:64px; align-items:center; }
@media (max-width:900px){ .lp-hero__grid{ grid-template-columns:1fr; gap:32px; } }
.lp-hero__copy{ display:flex; flex-direction:column; gap:32px; }
.lp-hero__copy h1{ font-size: clamp(32px, 4.8vw, 56px); line-height:1.06; margin:0; }
.lp-hero__copy .hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-top:12px; }
.lp-hero__copy .micro{ margin-top:8px; }
.lp-hero__ill{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)), #0f1117;
  border:1px solid var(--lp-border); border-radius:16px; padding:15px; display:grid; place-items:center; min-height:320px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.lp-hero__ill img{ width:100%; height:auto; border-radius:10px; opacity:.95; }
.hero-title {
  font-size: clamp(1.4rem, 6vw, 3.2rem);
  font-weight: 700;
  margin-top: 1%;
  padding-bottom: clamp(1.5rem, 6vw, 5rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  position: relative;
  letter-spacing: 6px;
  color: #0e372d;
  width: 100%;
  text-align: center;
  line-height: 1.50em;
  outline: none;
  animation: animate 15s linear infinite;
}
@keyframes animate{
  0%,10%,18%,20%,50.1%,60%,65.1%,80.1%,90%,92.1%,100%{
    color:#0e3743; text-shadow: none;
  }
  10%,18.1%,20.1%,30%,50%,60.1%,80.1%,90%,92.1%,100%{
    color: #fff;
    text-shadow: 0 0 5px #03bcf4,
                 0 0 8px #03bcf4,
                 0 0 12px #03bcf4,
                 0 0 20px #03bcf4,
                 0 0 30px #03bcf4;
  }
}

/* CYTAT */
.lp-quote blockquote{
  font-size: clamp(20px, 2.8vw, 28px);
  line-height:1.35; font-style:italic; color:#e7e7ea;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-left:3px solid var(--lp-primary); padding:24px 18px 24px 22px; border-radius:8px;
}

/* DLACZEGO AI – „wychodzący” panel */
.lp-stickout{ overflow:visible; }
.lp-stickout .stick-rail{
  position: relative;
  width: 80vw;
  margin-left: calc(50% - 50vw + 20vw);
  background: transparent;
  border: none;
  border-radius: 14px 0 0 14px;
  box-shadow: none;
  --fade-edge: clamp(120px, 28vw, 36%);
  -webkit-mask-image: linear-gradient(to right,#000 0%,#000 calc(100% - var(--fade-edge)),rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right,#000 0%,#000 calc(100% - var(--fade-edge)),rgba(0,0,0,0) 100%);
}
.lp-stickout .why-inner{
  padding: clamp(22px, 2.8vw, 34px);
  width: 100%;
  margin-left: clamp(12px, 2vw, 32px);
  margin-right: auto;
}
.lp-stickout h2{ margin:0 0 14px; }
.why-list{ display:flex; flex-direction:column; gap:10px; }
.why-item{
  display:grid; grid-template-columns:64px 1fr; gap:18px; align-items:flex-start;
  padding:12px 4px; border-bottom:1px solid rgba(255,255,255,.06);
}
.why-item:last-child{ border-bottom:none; }
.why-icon{
  width:64px; height:64px; border-radius:14px; display:grid; place-items:center;
  background: radial-gradient(120px 120px at 50% 40%, rgba(70,243,255,.18), rgba(70,243,255,.06));
  border:1px solid rgba(70,243,255,.28);
}
.why-icon i{ font-size:26px; color: var(--lp-primary); }
.why-copy h3{ margin:0 0 6px; font-size: clamp(18px, 2.4vw, 22px); line-height:1.2; }
.why-copy p{ margin:0; color: var(--lp-muted); font-size: clamp(14px, 1.8vw, 16px); }

/* Mobile: zwykła karta */
@media (max-width:900px){
  .lp-stickout .stick-rail{
    width: 100%;
    margin-left: 0;
    border-right: 1px solid var(--lp-border);
    border-radius: 14px;
    -webkit-mask-image: none; mask-image: none;
  }
  .lp-stickout .why-inner{ margin-left: 0; }
  /* About: the shared 80% content column is too narrow on phones. Widen the WHOLE About
     main to ~94% (almost full width, still responsive with a small side gutter). Scoped
     to About via :has(#vision) so index/services are untouched. The vision card also gets
     lighter inner padding so its text has real room. */
  body:has(#vision) main#main-content{ width: 94%; min-width: 0; }
  #vision .why-inner{ padding: clamp(18px, 5vw, 28px); }
}

/* OBRAZ – siatka 3 kolumn */
.lp-visual__grid{ display:grid; grid-template-columns: 1fr 0.7fr; gap: 26px; align-items:center; }
.lp-visual__text{ grid-column: 1 / 2; }
.lp-visual__text h2{ margin:0 0 12px; font-size: clamp(22px, 3vw, 32px); }
.lp-visual__media{
  grid-column: 2 / 3;
  margin:0;
  max-width: 100%;
  width: 100%;
  justify-self: stretch;
}
.lp-visual__media img{ width:100%; height:auto; border-radius:14px; border:1px solid var(--lp-border); box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.lp-visual__media figcaption{ color: var(--lp-muted); margin-top:6px; }
@media (max-width:900px){
  .lp-visual__grid{ grid-template-columns:1fr; }
  .lp-visual__text, .lp-visual__media{ grid-column:1; }
}

/* =========================================
   MAPA PRZEPŁYWU – KAFELKI (NEONOWE KWADRATY)
   ========================================= */

/* Wider container for steps section only */
#steps .container {
  width: min(1480px, 96vw);
  max-width: unset;
}

.steps-title{ font-size: clamp(28px, 4vw, 44px); margin:0 0 32px; }
.steps-subtitle{ margin: 40px 0 20px; font-size: clamp(20px, 2.6vw, 26px); text-align:center; }

.flow-wrap{
  position:relative;
  display:grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  --tile-size: 260px;
  --tile-height: 330px;
  gap: 20px;
  justify-items: stretch;
  align-items: stretch;
  padding: 10px 0;
}
.flow-wrap--collab{
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  --tile-size: 220px;
  --tile-height: 244px;
  row-gap: 20px;
  justify-items: center;
  align-items: stretch;
}

/* Wyśrodkowanie tytułu sekcji „Jak działa MAIN Intelligence?” */
#steps .steps-title{
  text-align: center;
}

/* Delikatny reset stylu animowanego tytułu w tej sekcji */
#steps .steps-title .hero-title{
  display: inline-block;
  padding-bottom: 0; /* w hero było 5rem – tu nie chcemy tego odstępu */
}

/* Prostokąt pionowy + neon */
.flow-node{
  width: min(100%, var(--tile-size));
  min-height: var(--tile-height);
  height: auto;
  border-radius: var(--tile-radius);
  background: radial-gradient(140% 110% at 20% 10%, rgba(70,243,255,.12), rgba(255,255,255,.02) 40%, rgba(0,0,0,.06) 100%);
  border: 1px solid rgba(70,243,255,.55);
  box-shadow:
    0 0 10px var(--neon-blue-glow),
    inset 0 0 20px rgba(106,165,255,.18),
    0 16px 40px rgba(0,0,0,.25);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center;
  padding: 14px 14px 14px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, border-color .2s ease, outline-color .2s ease, background .2s ease;
  position: relative;
  z-index: 1;
  outline: 1px solid rgba(106,165,255,.25);
  outline-offset: -6px;
}
.flow-node .step-icon{ display:none; }

/* Fixed-height title zone — keeps all headers on the same baseline */
.flow-node h3{
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  width: 100%;
}
.flow-node p{ margin:0; color: var(--lp-muted); font-size:9px; line-height:1.45; word-break: break-word; }

/* Main 5-step tiles: full width, more top padding for step-num badge */
.flow-wrap:not(.flow-wrap--collab) .flow-node {
  width: 100%;
  padding-top: 38px;
}
.flow-wrap:not(.flow-wrap--collab) .flow-node h3 { font-size: 19px; min-height: 2.6em; }
.flow-wrap:not(.flow-wrap--collab) .flow-node p  { font-size: 9px; }

/* Collab tiles: centre vertically, standard top padding */
.flow-wrap--collab .flow-node {
  padding-top: 24px;
  justify-content: flex-start;
}
.flow-wrap--collab .flow-node h3 { font-size: 19px; min-height: 1.5em; white-space: nowrap; }
.flow-wrap--collab .flow-node p  { font-size: 9px; }

/* Gentler body text inside the trust tiles only (beats the global .lp-section p rule) */
body.has-lp-bg .lp-section .flow-wrap--collab .flow-node p:not(.why-copy p):not(.micro){
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.5;
}

/* Hover: come forward ~7% + gold glow */
.flow-node:hover{
  transform: scale(1.07);
  z-index: 10;
  background: var(--surface-elev);
  border-color: var(--neon-gold);
  box-shadow:
    0 0 18px var(--neon-gold-glow),
    0 0 38px rgba(243,197,91,.45),
    inset 0 0 26px rgba(243,197,91,.18),
    0 28px 60px rgba(0,0,0,.50);
  outline-color: rgba(243,197,91,.35);
}
.flow-node:hover .step-icon{ transform: scale(1.08); }

/* Numer w okręgu – zostaje, ale delikatny */
.flow-node .step-num{
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  background: var(--lp-primary);
  color: #0b1b1a;
  border: 3px solid #ffffff33;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Odpowiedź na różne szerokości */
@media (max-width:1200px){
  .flow-wrap{
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .flow-wrap--collab{
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}
@media (max-width:900px){
  :root{ --tile-size: 190px; } /* trochę mniejsze na mobile */
  .flow-wrap, .flow-wrap--collab{ grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width:540px){
  :root{ --tile-size: 170px; }
}

/* TECHNOLOGIE */
.lp-tech .tech-title{ margin: 0 0 56px; text-align:center; }
.lp-tech .container{ width: min(1200px, 88vw); }
.lp-tech .tech-slider{ position:relative; display:flex; align-items:center; gap:10px; }
.lp-tech .tech-viewport{ overflow:hidden; border:1px solid var(--lp-border); border-radius:14px; background:#0f1117; width:100%; }
.lp-tech .tech-track{ display:flex; gap:14px; padding:10px; will-change: transform; scrollbar-width: none; }
.lp-tech .tech-track::-webkit-scrollbar{ display:none; }
.tech-item{ min-width: 160px; height: 64px; display:grid; place-items:center; padding:8px 12px; border-radius:12px; border:1px dashed rgba(255,255,255,.06); }
.tech-item img{ height:28px; width:auto; filter: grayscale(0) contrast(.95); opacity:.9; }
.tech-item span{ color:#e7e7ea; font-weight:700; letter-spacing:.3px; }
.tech-nav{
  background:transparent; border:1px solid var(--lp-border); color:#e7e7ea; width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; transition: background .2s, transform .1s; flex: 0 0 auto;
}
.tech-nav:hover{ background:#151822; }

/* KONTAKT */
.lp-contact .contact-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap:24px; align-items:start; }
@media (max-width:900px){ .lp-contact .contact-grid{ grid-template-columns:1fr; } }
.lp-contact .contact-copy h2{ margin:0 0 8px; font-size: clamp(22px, 3vw, 32px); }
.lp-contact .contact-points{ list-style:none; padding:0; margin:12px 0 0; color: var(--lp-muted); }
.lp-contact .contact-points i{ color: var(--lp-primary); margin-right:8px; }
.contact-form{ background:#0f1117; border:1px solid var(--lp-border); border-radius:14px; padding:16px; }
.contact-form .form-row{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.contact-form label{ font-size:14px; color: var(--lp-muted); }
/* Neumorphic ("soft UI") fields: no visible border, soft inset shadow so each field
   looks carved into the form card; focus lightens the inset and adds a faint brand ring.
   Dark colour scheme kept - only the effect (shadows/transition) changes. */
.contact-form input, .contact-form select, .contact-form textarea{
  background:#0f1117; border:1px solid transparent; color:#e7e7ea;
  border-radius:12px; padding:12px 14px; outline:none;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,.62), inset -3px -3px 6px rgba(255,255,255,.03);
  transition: box-shadow .2s ease-in-out;
}
.contact-form input::placeholder, .contact-form textarea::placeholder{ color: var(--lp-muted); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  box-shadow: inset 2px 2px 4px rgba(0,0,0,.55), inset -2px -2px 4px rgba(255,255,255,.045),
              0 0 0 2px rgba(70,243,255,.20);
}
.contact-form textarea{ min-height:120px; resize:vertical; }
.contact-form .form-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.contact-form .micro-spaced{ margin-top:14px; }

/* ANIMACJE WEJŚCIA */
.lp-reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.is-visible{ opacity:1; transform: translateY(0); }
.lp-reveal-left{ opacity:0; transform: translateX(-28px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal-left.is-visible{ opacity:1; transform: translateX(0); }

/* BACK TO TOP - złota poświata na hoverze */
/* Match the DocMAIN (maidocs) dark back-to-top exactly: rounded-square, blue gradient,
   gold hover, scale-down active. index/about JS toggles .is-visible (not .visible). */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a2a4a 0%, #0d1a30 55%, #091422 100%);
  box-shadow:
    0 6px 16px rgba(0,0,0,.55),
    0 1px 0 rgba(80,180,255,.18) inset,
    0 -2px 0 rgba(0,0,0,.45) inset,
    2px 0 0 rgba(70,140,220,.12) inset;
  color: #7dd6f7;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, box-shadow .15s;
  z-index: 999;
  letter-spacing: 0;
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover{
  box-shadow:
    0 8px 22px rgba(0,0,0,.65),
    0 0 14px rgba(212,175,55,.28),
    0 1px 0 rgba(212,175,55,.35) inset,
    0 -2px 0 rgba(0,0,0,.5) inset,
    2px 0 0 rgba(212,175,55,.18) inset;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,.35);
}
.back-to-top:active{
  transform: scale(.95);
  box-shadow:
    0 2px 8px rgba(0,0,0,.55),
    0 -1px 0 rgba(80,180,255,.12) inset,
    0 2px 0 rgba(0,0,0,.4) inset;
}

.sub{font-size: 1.3em}

/* ── Larger typography + proportional elements (index & about) ───────────── */
body.has-lp-bg .lp-section h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
#why-ai .why-inner h2 {
  font-size: clamp(16px, 1.9vw, 22px);
}

body.has-lp-bg .lp-section .lead,
body.has-lp-bg .lp-section p:not(.why-copy p):not(.micro) {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

body.has-lp-bg .why-copy h3 {
  font-size: clamp(18px, 2.3vw, 21px);
  margin-bottom: 0.35rem;
}

body.has-lp-bg .why-copy p {
  font-size: clamp(15px, 1.7vw, 16px);
  line-height: 1.5;
}

body.has-lp-bg .why-item {
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 11px 4px;
}

body.has-lp-bg .why-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

body.has-lp-bg .why-icon i {
  font-size: 22px;
}

/* ── Active / hover underline on navbar links (all public pages) ─────────── */
body.has-lp-bg .navbar .nav-link {
  position: relative;
}
body.has-lp-bg .navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(247,204,80,0.0) 0%, rgba(247,204,80,0.75) 50%, rgba(247,204,80,0.0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
body.has-lp-bg .navbar .nav-link:hover::after {
  transform: scaleX(1);
}
body.has-lp-bg .navbar .nav-link.is-active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, rgba(247,204,80,0.0) 0%, rgba(247,204,80,0.50) 50%, rgba(247,204,80,0.0) 100%);
}

/* ── Page loader (hidden until video canplaythrough) ─────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #030a1e;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
#page-loader.is-hidden {
  opacity: 0;
}

/* ── Hero brand logo — top-right corner ──────────────────────────────────── */
.hero-brand-logo {
  position: absolute;
  top: clamp(20px, 3vh, 40px);
  right: clamp(24px, 4vw, 72px);
  z-index: 3;
  width: clamp(96px, 13vw, 176px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(70,243,255,.40));
  opacity: .90;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-brand-logo { display: none; }
}

/* ── Professional dropdown — public pages (index, services, about) ───────── */
body.has-lp-bg .user-menu__trigger {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(70, 243, 255, 0.28);
  background: rgba(5, 10, 22, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--lp-text);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(70,243,255,0);
}
body.has-lp-bg .user-menu__trigger:hover {
  border-color: rgba(70, 243, 255, 0.65);
  background: rgba(10, 18, 38, 0.80);
  box-shadow: 0 0 12px rgba(70,243,255,.18);
}
body.has-lp-bg .user-menu.open .user-menu__trigger {
  border-color: rgba(70, 243, 255, 0.70);
  box-shadow: 0 0 16px rgba(70,243,255,.22);
}

body.has-lp-bg .user-menu__dropdown {
  background: rgba(6, 10, 24, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(70, 243, 255, 0.22);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(70,243,255,.08),
    0 20px 50px rgba(0,0,0,.55),
    0 0 30px rgba(70,243,255,.06);
  padding: 8px;
  min-width: 230px;
  top: calc(100% + 12px);
  /* entrance animation */
  display: block;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.3,.64,1), pointer-events 0s;
}
/* Invisible bridge so mouse can travel from trigger to menu without gap closing it */
body.has-lp-bg .user-menu__dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
body.has-lp-bg .user-menu.open .user-menu__dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;   /* appear instantly on the way IN */
}
@media (hover: hover) {
  body.has-lp-bg .user-menu:hover .user-menu__dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
  }
}

body.has-lp-bg .user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: .9rem !important;
  color: rgba(220, 230, 255, 0.85);
  transition: background .15s, color .15s, box-shadow .15s;
}
body.has-lp-bg .user-menu__item:hover {
  background: rgba(70, 243, 255, 0.09);
  color: #fff;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(70,243,255,.14);
}
body.has-lp-bg .user-menu__item i {
  color: var(--lp-primary);
  font-size: .95rem;
  width: 16px;
  text-align: center;
  opacity: 1;
}

body.has-lp-bg .user-menu__logout {
  color: rgba(255, 160, 160, 0.80);
  border-top: 1px solid rgba(70, 243, 255, 0.12);
  margin-top: 4px;
  padding-top: 10px;
}
body.has-lp-bg .user-menu__logout i {
  color: rgba(255, 120, 120, 0.80);
}
body.has-lp-bg .user-menu__logout:hover {
  background: rgba(255, 80, 80, 0.10);
  color: #ffaaaa;
  box-shadow: inset 0 0 0 1px rgba(255,80,80,.18);
}

/* ── #simple-feature section ─────────────────────────────────────────────── */
#simple-feature .container {
  width: min(1400px, 94vw);
  max-width: unset;
}

#simple-feature .sf-content {
  padding: clamp(20px, 2.5vw, 40px) clamp(16px, 2vw, 32px);
}

#simple-feature .sf-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
  line-height: 1.2;
}

#simple-feature .sf-content p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

/* Fix .sf-row.reverse — text left, image right */
#simple-feature .sf-row.reverse {
  direction: ltr;
}
#simple-feature .sf-row.reverse .sf-content { order: 1; }
#simple-feature .sf-row.reverse .sf-media   { order: 2; }
