/**
* RepowerX brand overrides for the Visible template.
* Loaded AFTER assets/css/main.css so the template file stays untouched
* and can be replaced on a template update.
*/

/* ---------------------------------------------------------------
   0. Typography
   The template ships Abel for headings and Mukta for the nav. Abel has
   no Polish diacritics, so every ą/ć/ę/ł/ń/ś/ż fell back to a system
   font — wider and heavier than the surrounding letters, which made
   words with ogonki look randomly bolded. Montserrat and Inter both
   cover latin-ext, so a Polish word now renders in one single face.
   --------------------------------------------------------------- */
:root {
  --heading-font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --default-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --nav-font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body {
  font-synthesis-weight: none; /* never let a fallback fake a bold weight */
}

/* Space Grotesk carries more weight than Abel at the same numeric value,
   so the big uppercase headings are eased back to keep the airy feel. */
.section-title h2 {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero .title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Space Grotesk's numerals are the most characterful thing in the family —
   worth spending them on the step counters and section numbers. */
.brand-panel .panel-list li::before,
.section-title .description-title,
.pricing .pricing-item .stage-label,
.hero .subtitle span {
  font-family: var(--heading-font);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   1a. Justified body copy
   Justification is applied to running prose only — headings, buttons,
   nav links, badges and short labels stay as the template set them,
   because stretching a two-word line just pulls it apart.
   hyphens: auto is not optional here: Polish words are long, and
   without hyphenation the browser opens huge word gaps ("rivers")
   to reach the right edge.
   --------------------------------------------------------------- */
.about-info p,
.concept-note p,
.services-intro p,
.features .main-heading p,
.faq-content p,
.cta-content > p,
.contact-info-header p,
.form-container > p,
.footer-about p,
.mission-card p,
.benefit-item p,
.brand-panel > p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3; /* don't hyphenate short words or leave stubs */
}

/* Card copy sits in 240–300px columns. Justification there only settles
   if the browser may break words more eagerly, hence the looser limit. */
.service-card p,
.feature-card .feature-details p,
.pricing-item .description {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 5 2 2;
}

/* Still NOT justified, on purpose:
   - .hero .description p — the first panel, excluded by request.
   - .section-title p — centred by the template, so it already has two
     soft edges; justifying would only stretch its first line.
   - bullet lists (.features-list, .panel-list, .benefit-group ul) —
     single-line items, which justification would pull apart.
   - .brand-quote p — a display pull-quote, not running text. */
:root {
  --background-color: #0f1a30;
  --default-color: #d9e3f2;
  --heading-color: #f4f8ff;
  --accent-color: #2f9cf4;
  --surface-color: #16233f;
  --contrast-color: #ffffff;

  --brand-gradient: linear-gradient(135deg, #3a9df5 0%, #1445d6 100%);
  --brand-deep: #1445d6;
}

:root {
  --nav-color: #d9e3f2;
  --nav-hover-color: #2f9cf4;
  --nav-mobile-background-color: rgba(15, 26, 48, 0.97);
  --nav-dropdown-background-color: rgba(22, 35, 63, 0.97);
  --nav-dropdown-color: rgba(217, 227, 242, 0.7);
  --nav-dropdown-hover-color: #ffffff;
}

.light-background {
  --background-color: #131f38;
  --surface-color: #1b2a49;
}

/* ---------------------------------------------------------------
   2. Wordmark — "RePowerX" with the gradient X, as in the logo
   --------------------------------------------------------------- */
.sitename {
  letter-spacing: -0.01em;
}

/* Used by the footer wordmark, where the X is still typographic. */
.sitename .x {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header wordmark: the real X mark lifted out of the logo artwork,
   because the letter X of the typeface is a plain glyph and does not
   resemble the brand mark at all. Sized to the cap height of "RePower"
   so it reads as the last letter of the word. The alt text completes the
   word if the image fails or is read aloud.
   Proportions come from the artwork itself, not from eyeballing: there the
   mark is 140px tall against a 122px cap height (1.148x) and it hangs 17px
   below the baseline. Space Grotesk's cap height is 0.731em, so those two
   ratios convert to 0.839em tall and 0.102em below the baseline. */
.header .logo .logo-x {
  height: 0.839em;
  width: auto;
  display: inline-block;
  vertical-align: -0.102em;
  margin-left: 0.03em;
  max-width: none;
}

.header .logo {
  flex-direction: column;
  align-items: flex-start !important;
  line-height: 1.05;
}

.header .logo .tagline,
.footer .logo .tagline {
  display: block;
  font-family: var(--default-font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  margin: 2px 0 0 0;
}

/* ---------------------------------------------------------------
   2b. Top navigation bar
   Visible ships an off-canvas drawer at every breakpoint. This restores
   a conventional sticky top bar on desktop — logo left, links inline,
   CTA right — and keeps the drawer below 1200px, where eight links plus
   the button no longer fit on one line.
   --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 15px;
  min-height: 78px;
}

/* The template keeps the bar transparent and only adds a shadow once
   scrolled; a sticky bar needs an opaque ground or the page runs under it. */
.header,
.scrolled .header {
  --background-color: color-mix(in srgb, #0f1a30, transparent 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

/* The frosted-glass blur lives on a pseudo-element, not on .header
   itself. backdrop-filter — like transform/filter/will-change — makes
   its element the containing block for any position:fixed descendant.
   #navmenu is fixed with top:0;bottom:0 when it's the off-canvas drawer
   (<1300px), meant to span the full viewport; with backdrop-filter
   sitting directly on .header (its ancestor), that containing block
   became .header's own ~78px box instead of the viewport, so the drawer
   could only ever show about one link's worth of height before
   overflow:hidden clipped the rest — "Start" and nothing below it, no
   matter the screen width. A ::before is not an ancestor of #navmenu,
   so it gets the same visual blur without hijacking anything's fixed
   positioning. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(10px);
}

/* Blue light effect, matching the animated glow that runs around the
   hero tile ("RePowerX" logo card, see .hero .hero-visual .image-wrapper
   ::before / rpx-energy). Here it's a bright band travelling along the
   header's bottom edge instead of circling a ring, since the header is
   a bar, not a square tile — same colour, same idea. */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(58, 157, 245, 0) 0%,
      rgba(58, 157, 245, 0.85) 45%,
      #eaf6ff 50%,
      rgba(58, 157, 245, 0.85) 55%,
      rgba(58, 157, 245, 0) 100%);
  background-size: 250% 100%;
  animation: rpx-header-light 10s linear infinite;
}

@keyframes rpx-header-light {
  0% {
    background-position: 130% 0;
  }

  100% {
    background-position: -130% 0;
  }
}

.scrolled .header {
  --background-color: color-mix(in srgb, #0f1a30, transparent 2%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

/* The template forces the sitename to ALL CAPS. The wordmark in the logo
   artwork is mixed case, so the header now matches it (and the footer,
   which the template never uppercased). */
.header .logo h1 {
  font-size: 26px;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Groups the language switch and logout on portal pages so they sit
   close together as one unit. Without this, .container-fluid's
   justify-content:space-between treated them as two independent items
   and spread its leftover space evenly between every pair — nav↔lang
   and lang↔logout alike — leaving a huge gap in front of "Wyloguj".
   Public/login pages have only the lang-switch on the right and skip
   this wrapper entirely; nothing changes for them. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  /* Hugs the right edge on its own terms instead of relying on
     .container-fluid's justify-content:space-between to place it —
     with .navmenu pulled out of flow (it's position:fixed once it
     becomes the drawer), space-between had only logo + this wrapper
     to distribute against, and margin on a child inside a nested flex
     wrapper wasn't being honoured the way margin on a plain sibling
     pill was; auto-margin here sidesteps that entirely. */
  margin-left: auto;
}

@media (max-width: 1299px) {
  /* Padding on the wrapper's own box, not margin on whichever child
     happens to be last — reliably clears the fixed hamburger regardless
     of how the two pills inside are laid out. */
  .header-actions {
    padding-right: 46px;
  }

  /* The full "Wyloguj"/"Log out" pill plus its 46px hamburger clearance
     plus the lang-switch plus the logo genuinely don't fit a narrow
     phone screen at once (measured: ~353px of content in ~321px of
     room). Rather than shave a few px off paddings and stay one bad
     translation away from overflowing again, the label collapses to an
     icon-only circle here — the same logout target, a fraction of the
     width. aria-label on the link keeps it announced to screen readers. */
  .header-cta.logout-cta {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .header-cta.logout-cta .cta-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Language switcher. Unlike the CTA it stays visible below 1200px, where
   the nav collapses into the drawer — swapping language must not require
   opening a menu. The right margin there clears the fixed hamburger. */
.lang-switch {
  flex-shrink: 0;
  order: 1;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  margin-left: 14px;
  border-radius: 50rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 78%);
  color: var(--nav-color);
  transition: 0.25s;
}

.lang-switch:hover {
  color: var(--contrast-color);
  border-color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
}

@media (max-width: 1299px) {
  /* Public/login pages: lang-switch is the lone right-side item, a
     direct child of .container-fluid — clear the hamburger directly.
     Portal pages carry .header-actions instead, which clears it via
     its own padding-right (see above), so it's excluded here. */
  .header .container-fluid > *:last-child:not(.header-actions) {
    margin-right: 46px;
  }

  /* Bootstrap's d-xl-none hides the hamburger from 1200px up. Since the
     inline bar now only appears at 1300px, it has to come back in between,
     otherwise the drawer would have no opener at all. */
  .mobile-nav-toggle {
    display: block !important;
  }
}

.header-cta {
  order: 2;
  display: none;
  flex-shrink: 0;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50rem;
  background: var(--brand-gradient);
  color: var(--contrast-color);
  white-space: nowrap;
  transition: 0.25s;
}

.header-cta:hover {
  color: var(--contrast-color);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 65%);
}

/* 1300px, not 1200px: with eight links, the language switch and the CTA,
   the bar was packing edge to edge at 1200 with zero breathing room. */
@media (min-width: 1300px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  /* Anchors the absolutely-centred nav below to the header bar rather
     than to whatever positioned ancestor it would otherwise find. */
  .header .container-fluid {
    position: relative;
  }

  .navmenu {
    /* True centre of the header, independent of the logo's and the
       right-hand pills' widths — not just the mid-point of the leftover
       space between them. flex:1+justify-content:center (tried first)
       centres in THAT space, but with a ~190px logo and a ~55–200px
       actions block those are different points: measured ~60–90px off
       the header's actual centre, which is what read as "not centred".
       Checked this doesn't collide with the logo or the actions pills
       even in the tightest case — portal's 8 links at exactly 1300px
       still clear both sides by 45px+. */
    position: absolute;
    left: 50%;
    top: 50%;
    /* The template's base rule sets bottom:0 for the off-canvas drawer.
       Left in place here, top:50%+bottom:0 stretches the element between
       the two instead of letting it size to its content, so it centred
       on the wrong (taller, stretched) box — the links rendered lower
       than the logo instead of level with it. bottom:auto restores
       content-based sizing so the translate below centres correctly. */
    bottom: auto;
    transform: translate(-50%, -50%);
    width: auto;
    right: auto;
    overflow: visible;
  }

  .navmenu ul {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    overflow: visible;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 9px 15px;
    font-size: 15px;
    border-radius: 50rem;
    display: block;
  }

  .navmenu a:hover {
    color: var(--nav-hover-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  }

  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 88%);
  }

  .header-cta {
    display: inline-block;
  }
}

/* Anchors must clear the sticky bar when jumped to. */
section[id] {
  scroll-margin-top: 86px;
}

/* ---------------------------------------------------------------
   3. Branded panels replacing the template's stock photography.
      The stock images ship with the template and show a design
      studio, so every image slot is swapped for an on-topic panel.
   --------------------------------------------------------------- */
.brand-panel {
  position: relative;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 82%);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 82% 8%, color-mix(in srgb, var(--accent-color), transparent 84%), transparent 62%),
    linear-gradient(color-mix(in srgb, var(--default-color), transparent 96%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--default-color), transparent 96%) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-panel .panel-kicker {
  display: block;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 18px;
}

.brand-panel .panel-figure {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 22px;
}

.brand-panel .panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: panelstep;
}

.brand-panel .panel-list li {
  counter-increment: panelstep;
  position: relative;
  padding: 12px 0 12px 46px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-size: 15px;
}

.brand-panel .panel-list li:last-child {
  border-bottom: 0;
}

.brand-panel .panel-list li::before {
  content: counter(panelstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-color), transparent 86%);
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The template anchors .mission-card absolutely (bottom: -30px) so it
   overhangs a tall photo. Here it sits over a panel that carries text,
   where it covered the last items of .panel-list. Putting it back into
   normal flow keeps the callout styling and cannot clip content at any
   breakpoint or text length. */
#cel .about-image-wrapper .mission-card {
  position: static;
  width: 100%;
  margin-top: 20px;
}

/* The accent blue sits on a translucent white card here, which composites
   to a lighter ground than elsewhere — 4.46:1, just under the 4.5 minimum.
   A lighter tint of the same hue clears it. */
.contact .info-card a {
  color: color-mix(in srgb, var(--accent-color), #ffffff 25%);
}

/* Same blue-glow language as the team cards, logo tile and header light —
   ties the contact cards into the rest of the site's lighting motif. */
.contact .info-card:hover {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.contact .info-card:hover .icon-container {
  background-color: var(--accent-color);
}

/* ---------------------------------------------------------------
   3z. Hero background turbine — a real CC0 photo (wind turbines on a
   snowy ridge, Jason Blackeye / Unsplash, via Wikimedia Commons),
   duotoned into the site's navy/accent palette in
   assets/img/hero-turbine-photo.jpg so it reads as this site's photo
   rather than a raw stock shot. Sits on z-index 0, behind the dot grid
   and particles (z-index 1) — a dark gradient is layered over it in the
   same background-image so the headline on the left keeps full contrast
   while the photo shows through more on the right, behind the logo tile.
   --------------------------------------------------------------- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(100deg,
      rgba(15, 26, 48, 0.98) 0%,
      rgba(15, 26, 48, 0.94) 40%,
      rgba(15, 26, 48, 0.6) 62%,
      rgba(15, 26, 48, 0.32) 100%),
    linear-gradient(to top,
      rgba(15, 26, 48, 0.95) 0%,
      rgba(15, 26, 48, 0) 26%),
    url("../img/hero-turbine-photo.jpg");
  background-repeat: no-repeat;
  background-position: center, center, center 60%;
  background-size: cover, cover, cover;
}

@media (max-width: 991px) {
  .hero::after {
    background-image:
      linear-gradient(to bottom,
        rgba(15, 26, 48, 0.97) 0%,
        rgba(15, 26, 48, 0.75) 55%,
        rgba(15, 26, 48, 0.94) 100%),
      url("../img/hero-turbine-photo.jpg");
    background-position: center, center 40%;
    background-size: cover, cover;
  }
}

/* A field of dots at the foot of the hero — the same particle motif as
   the drifting dust, just grounded instead of falling, so the turbine
   reads as standing in a field rather than floating on flat black.
   Real element, not a third pseudo-element: .hero already spends its
   ::before (dot grid) and ::after (turbine) budget. Fades to nothing via
   mask-image rather than stopping at a hard edge, so it reads as a field
   receding into the dark instead of a box. */
.hero-field {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 280px;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}

@media (max-width: 991px) {
  .hero-field {
    height: 200px;
  }
}

/* ---------------------------------------------------------------
   3a. Drifting particles — hero only
   Painted by assets/js/repowerx.js into a canvas appended to #hero.
   The template already gives .hero position:relative and puts its
   .container on z-index 2, so z-index 1 places the particles above the
   hero's dot pattern but behind the headline and the logo panel.
   .hero also has overflow:hidden, which clips them to the section.
   --------------------------------------------------------------- */
.rpx-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .rpx-particles {
    display: none;
  }
}

/* ---------------------------------------------------------------
   3b. Life-cycle dial (#cel)
   A hand steps between the three phases and the matching sentence in
   the list below lights up with it. Driven by assets/js/repowerx.js,
   which only sets --rpx-angle and a data-active index — all the motion
   and colour lives here.
   --------------------------------------------------------------- */
.rpx-cycle {
  --rpx-angle: 0deg;
  overflow: visible;
}

.rpx-cycle .rpx-hand {
  transform-box: view-box;
  transform-origin: 160px 100px;
  transform: rotate(var(--rpx-angle));
  transition: transform 750ms cubic-bezier(0.66, 0, 0.28, 1);
}

.rpx-cycle .rpx-ring {
  transform-box: view-box;
  transform-origin: 160px 100px;
  animation: rpx-ring-spin 48s linear infinite;
  opacity: 0.4;
}

@keyframes rpx-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.rpx-cycle .rpx-spokes {
  opacity: 0.22;
}

.rpx-cycle .rpx-node {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.35;
  transition: opacity 400ms ease, transform 400ms ease;
}

.rpx-cycle .rpx-node.is-active {
  opacity: 1;
  transform: scale(1.55);
}

.rpx-cycle .rpx-label {
  font-family: var(--nav-font);
  fill: color-mix(in srgb, var(--default-color), transparent 45%);
  transition: fill 400ms ease;
}

.rpx-cycle .rpx-label.is-active {
  fill: var(--accent-color);
  font-weight: 600;
}

/* The sentence the hand is currently pointing at */
.rpx-steps li {
  transition: color 400ms ease, background-color 400ms ease;
  border-radius: 8px;
  padding-right: 10px;
}

.rpx-steps li.is-active {
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.rpx-steps li::before {
  transition: background-color 400ms ease, color 400ms ease;
}

.rpx-steps li.is-active::before {
  background: var(--brand-gradient);
  color: var(--contrast-color);
}

/* Motion is decorative here — the list reads the same either way. */
@media (prefers-reduced-motion: reduce) {
  .rpx-cycle .rpx-hand,
  .rpx-cycle .rpx-node,
  .rpx-cycle .rpx-label,
  .rpx-steps li,
  .rpx-steps li::before {
    transition: none;
  }

  .rpx-cycle .rpx-ring {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   3c. Members area — nav entry point, login page, logout
   --------------------------------------------------------------- */
/* Logout has no drawer duplicate (unlike the old "Dla członków" pill),
   so it must stay reachable on its own below 1300px too — shown at every
   width instead of only on the wide inline bar, with the same
   hamburger-clearing margin the language switch uses there. */
.header-cta.logout-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  color: var(--default-color);
}


.header-cta.logout-cta:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: none;
  filter: none;
}

/* ---------------------------------------------------------------
   3e. Login page
   --------------------------------------------------------------- */
.login-section {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  /* Anchors and clips the particle canvas repowerx.js appends here,
     matching how .hero contains its own field. Without position:relative
     the canvas (position:absolute) would anchor to the nearest
     positioned ancestor up the tree instead — likely spanning well past
     this section — and without overflow:hidden it wouldn't be clipped
     back down to it either. */
  position: relative;
  overflow: hidden;
}

/* Bootstrap's plain .container has no position of its own, so a
   position:absolute sibling (the canvas, z-index 1) would otherwise
   paint on top of it — static in-flow content is painted before
   positioned content per the CSS stacking order, regardless of
   z-index. Lifting the card's own container into the stacking order
   keeps it above the particles, same as .hero .container does. */
.login-section > .container {
  position: relative;
  z-index: 2;
}

.login-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 44px 40px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
  font-size: 28px;
  margin: 8px 0 14px;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ff8080;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

/* Login submit button, matched to .primary-btn — the site's actual house
   style for a lead call-to-action, used for "Skontaktuj się" / "Get in
   touch" right in the hero. Flat accent colour, not a gradient: a
   gradient reads as a distinct one-off treatment (that's what
   header-cta/logout-cta are for, chrome-level pills), whereas flat
   accent + this exact hover/press pattern is what makes a button read as
   "this site's primary action" the moment you see it, since it's the
   first button every visitor already met on the homepage.
   Scoped to .btn-login so the contact-form send button, which nobody
   asked to change, keeps its current look. */
.btn-submit.btn-login {
  background: var(--accent-color);
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: none;
}

.btn-submit.btn-login:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.btn-submit.btn-login:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-color), transparent 75%);
}

/* Contact-form honeypot (forms/contact.php reads the "website" field).
   Off-screen rather than display:none / visibility:hidden — some spam
   bots skip fields hidden that way but still fill ones that are merely
   positioned off-canvas. tabindex="-1" in the HTML keeps it out of the
   keyboard tab order for real visitors; aria-hidden keeps it out of
   screen readers, so nobody sighted-but-blind gets told to leave a field
   empty that they were never going to reach in the first place. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
}

/* Hero — the logo lockup sits where the template put a stock photo.
   The template tilts this tile in 3D (rotateY(-5deg) rotateX(5deg)),
   which is fine for a photograph but skews a wordmark: the two halves of
   "RePowerX" end up at different sizes and the baseline runs downhill.
   A logo is read as a shape, so it is squared up here. The lift on hover
   keeps the tile interactive without distorting the mark. */
.hero .hero-visual .image-wrapper {
  transform: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero .hero-visual .image-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 60px -12px rgba(0, 0, 0, 0.35);
}

/* Energy trace running around the tile.
   A conic gradient — mostly transparent with one bright arc — spins on a
   pseudo-element behind the image. The wrapper's 2px padding is the only
   place it shows, so the arc reads as a light travelling along the edge.
   No @property needed: the element itself rotates, which works in every
   browser. The square is 200% of the tile width so its corners still
   cover the tile at every angle of rotation. */
.hero .hero-visual .image-wrapper {
  padding: 2px;
  isolation: isolate;
}

.hero .hero-visual .image-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  aspect-ratio: 1;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0turn,
      rgba(58, 157, 245, 0) 0turn,
      rgba(58, 157, 245, 0) 0.54turn,
      rgba(58, 157, 245, 0.85) 0.72turn,
      #eaf6ff 0.785turn,
      rgba(58, 157, 245, 0.85) 0.85turn,
      rgba(58, 157, 245, 0) 0.97turn,
      rgba(58, 157, 245, 0) 1turn);
  animation: rpx-energy 9s linear infinite;
}

@keyframes rpx-energy {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* The image covers the middle, leaving only the 2px ring visible. */
.hero .image-wrapper .main-image {
  position: relative;
  z-index: 1;
  border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-visual .image-wrapper::before {
    animation: none;
    background: rgba(58, 157, 245, 0.55);
  }
}

/* Cursor-follow sheen — a soft light spot tracking the pointer, appended
   by repowerx.js. Kept flat (no rotateX/rotateY): the tile above squares
   the wordmark up on purpose, since 3D-tilting "RePowerX" as a shape
   skews the two halves unevenly. A moving highlight reads as the same
   family of light effect as the energy ring without touching the text. */
.hero .hero-visual .image-wrapper .rpx-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 18px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(234, 246, 255, 0.35) 0%,
      rgba(58, 157, 245, 0.18) 28%,
      rgba(58, 157, 245, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero .hero-visual .image-wrapper:hover .rpx-shine {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-visual .image-wrapper .rpx-shine {
    display: none;
  }
}

/* ---------------------------------------------------------------
   4. Concept notice — the teaser is explicitly a concept document,
      so the site carries the same caveat rather than implying
      an operating business.
   --------------------------------------------------------------- */
.concept-note {
  border-left: 3px solid var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  font-size: 15px;
  margin-top: 28px;
}

.concept-note p {
  margin: 0;
}

/* Pull-quote used in the closing section */
.brand-quote {
  border: 0;
  margin: 0;
  padding: 40px;
  background: var(--surface-color);
  border-radius: 16px;
  position: relative;
}

.brand-quote::before {
  content: "\201E";
  position: absolute;
  top: 0;
  left: 26px;
  font-family: var(--heading-font);
  font-size: 110px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-color), transparent 78%);
}

.brand-quote p {
  position: relative;
  font-family: var(--heading-font);
  font-size: 24px;
  line-height: 1.5;
  color: var(--heading-color);
  margin: 0;
}

.brand-quote footer {
  margin-top: 18px;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Benefit groups (section 06) reuse the service card shell */
.benefit-group h3 {
  font-size: 20px;
}

.benefit-group ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.benefit-group ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
}

.benefit-group ul li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--accent-color);
  font-size: 14px;
}

/* Stage cards (section 08) reuse .pricing-item without a price */
.pricing .pricing-item .stage-label {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .brand-panel {
    padding: 24px;
  }

  .brand-quote {
    padding: 32px 24px;
  }

  .brand-quote p {
    font-size: 19px;
  }
}
