/*
Theme Name: borem-ai
Theme URI: https://example.com/borem-ai
Author: Borem AI
Author URI: https://example.com
Description: Szkielet motywu WordPress dla projektu Borem AI.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: borem-ai
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --color-bg: #0d1117;
  --color-surface: #111827;
  --color-text: #e5e7eb;
  --color-muted: #94a3b8;
  --color-primary: #7ea6ff;
  --color-border: rgba(255, 255, 255, 0.08);
  --gap: 1.25rem;
  --header-bg: rgba(13, 17, 23, 0.82);
  --header-glow: rgba(56, 189, 248, 0.2);
}

html {
  overflow-x: clip;
  scrollbar-color: rgba(45, 212, 191, 0.72) rgba(13, 17, 23, 0.92);
  scrollbar-width: thin;
}

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

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(13, 17, 23, 0.96);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.88), rgba(15, 118, 110, 0.92));
  border: 2px solid rgba(13, 17, 23, 0.96);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.96), rgba(20, 184, 166, 0.98));
}

*::-webkit-scrollbar-corner {
  background: rgba(13, 17, 23, 0.96);
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.72);
  color: #dffdf7;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  cursor: pointer;
  z-index: 9998;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.scroll-top-button i {
  font-size: 0.9rem;
  line-height: 1;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: #ffffff;
  color: #050708;
  border-color: rgba(255, 255, 255, 0.96);
}

.site-main {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 1100px;
  border-radius: 100px;
  min-height: 64px;
  height: 64px;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-sizing: border-box;
  border: 0.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: none !important;
  transition: none !important;
}

.elementor-sticky--effects.site-header {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header.elementor-sticky--effects {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  transition: none !important;
  animation: none !important;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.92);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background:
  radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.05), transparent 45%),
  linear-gradient(180deg, rgba(13, 17, 23, 0.9), rgba(13, 17, 23, 0.78));
  border: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.site-header__inner {
  width: min(100%, 1100px);
  margin: 0;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 2;
  background: transparent;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 4px;
  height: 100%;
  min-height: 0;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  align-self: center;
  transition: opacity 160ms ease;
}

.site-brand:hover,
.site-brand:focus-visible {
  opacity: 0.9;
}

.site-brand:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
  border-radius: 999px;
}

.site-brand__text {
  position: relative;
  font-family: inherit;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
  color: var(--color-text);
}

.site-brand__top {
  position: relative;
  z-index: 2;
  font-size: 1.18rem;
  font-weight: 900;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  animation: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(255, 255, 255, 0.06);
}

.site-brand__divider {
  display: block;
  width: 100%;
  max-width: 4.8rem;
  height: 0.5px;
  margin: 0.06rem auto 0.08rem;
  background: linear-gradient(90deg, rgba(142, 242, 223, 0.18), rgba(94, 234, 212, 0.92) 50%, rgba(142, 242, 223, 0.18));
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.16);
  border-radius: 999px;
}

.site-brand__sub {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.08rem;
  font-family: inherit;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.site-brand__sub-accent {
  color: #8ef2df;
  text-shadow: 0 0 12px rgba(45, 212, 191, 0.26);
}

.site-brand__sub-main {
  color: #ffffff;
  letter-spacing: 0.06em;
}

.site-brand__badge {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 0.25rem;
  margin-top: 0.01rem;
  padding: 0.26rem 0.56rem;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.site-brand__badge-icon {
  width: 0.92rem;
  height: 0.92rem;
  object-fit: contain;
  display: block;
}

.site-brand__badge-text {
  font-family: inherit;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1;
  white-space: nowrap;
}

.site-header__floating-badge {
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  transform: translateX(-50%);
  display: block;
  z-index: 3;
}

.site-header__floating-badge:hover,
.site-header__floating-badge:focus-within {
  transform: translateX(-50%);
}

.site-brand__floating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: inherit;
  text-decoration: none;
  padding: 0.23rem 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-brand__floating-link:hover,
.site-brand__floating-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.72);
}

.site-header__menu-control {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-header__menu-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  position: relative;
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  z-index: 9999;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-header__menu-toggle span {
  position: absolute;
  left: 0.54rem;
  width: 1.17rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header__menu-toggle span:nth-child(1) {
  top: 0.76rem;
}

.site-header__menu-toggle span:nth-child(2) {
  top: 1.07rem;
}

.site-header__menu-toggle span:nth-child(3) {
  top: 1.38rem;
}

.site-header--menu-open .site-header__menu-toggle span:nth-child(1) {
  transform: translateY(0.31rem) rotate(45deg);
}

.site-header--menu-open .site-header__menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .site-header__menu-toggle span:nth-child(3) {
  transform: translateY(-0.31rem) rotate(-45deg);
}

.site-header__menu-control:checked ~ .site-header__actions .site-header__menu-toggle span:nth-child(1) {
  transform: translateY(0.31rem) rotate(45deg);
}

.site-header__menu-control:checked ~ .site-header__actions .site-header__menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-control:checked ~ .site-header__actions .site-header__menu-toggle span:nth-child(3) {
  transform: translateY(-0.31rem) rotate(-45deg);
}

@keyframes brand-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.site-brand__logo img {
  max-height: 28px;
  width: auto;
  display: block;
}

.site-nav {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.site-nav__mobile-actions {
  display: none;
}

.header-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-width: 0;
  flex-wrap: wrap;
  height: auto;
  margin-inline: auto;
}

.header-nav__list li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: auto;
}

.header-nav__list a,
.header-btn,
.site-header a {
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.header-nav__list a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 0.22rem 0.14rem 0.1rem;
  position: relative;
  transition:
    color 160ms ease,
    text-shadow 160ms ease,
    transform 160ms ease;
}

.header-nav__list a::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0.1rem;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform-origin: center;
  transform: scaleX(0);
  transition:
    transform 200ms ease,
    opacity 200ms ease;
  opacity: 0;
}

.header-nav__list a:hover,
.header-nav__list a:focus-visible {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-nav__list a:hover::after,
.header-nav__list a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  height: 100%;
  align-self: center;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
  box-shadow 160ms ease;
}

.header-btn i {
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.95;
  position: relative;
  top: 0.5px;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5";
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
}

.header-btn--ghost {
  border: 0.5px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header-btn--ghost:hover,
.header-btn--ghost:focus-visible {
  border: 0.5px solid rgba(255, 255, 255, 0.96);
  background: #ffffff;
  color: #050708;
  transform: translateY(-1px);
}

.header-btn--solid {
  position: relative;
  overflow: hidden;
  background: #0f766e;
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 26px rgba(14, 116, 144, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.header-btn--solid:hover,
.header-btn--solid:focus-visible {
  transform: scale(1.05);
  background: #ffffff;
  color: #050708;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 34px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.header-btn--solid::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 55%;
  height: 40px;
  border-radius: 50%;
  transform: scale(0.9);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.42) 0%, rgba(14, 116, 144, 0) 65%);
  filter: blur(8px);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
  animation: cta-glow 2.2s ease-in-out infinite;
}

.header-btn--solid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 35%);
  transform: translateX(-120%);
  transition: transform 220ms ease;
  z-index: 2;
  opacity: 0.2;
  pointer-events: none;
}

.header-btn--solid:hover::after,
.header-btn--solid:focus-visible::after {
  transform: translateX(120%);
}

.header-btn--solid:hover::before,
.header-btn--solid:focus-visible::before {
  opacity: 0.55;
}

.header-btn--ghost:hover i,
.header-btn--ghost:focus-visible i,
.header-btn--solid:hover i,
.header-btn--solid:focus-visible i {
  color: #050708;
}

@keyframes cta-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.26;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.52;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.26;
  }
}

@media (max-width: 768px) {
  html,
  body {
    transform: none !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .scroll-top-button {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .site-header {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 10px);
    left: 10px !important;
    right: auto !important;
    transform: none !important;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    min-height: 56px;
    height: 56px;
    padding: 0;
    overflow: visible;
    margin: 0;
    animation: none !important;
    transition: none !important;
  }

  .site-header.elementor-sticky--effects {
    left: 10px !important;
    right: auto !important;
    top: calc(env(safe-area-inset-top) + 10px) !important;
    transform: none !important;
    position: fixed !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header__inner {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: visible;
  }

  .site-brand {
    max-width: calc(100% - 132px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    overflow: hidden;
  }

  .site-brand__text {
    gap: 0.08rem;
  }

  .site-brand__top {
    font-size: 1.18rem;
    letter-spacing: 0.12em;
  }

  .site-brand__divider {
    max-width: 4.8rem;
    margin: 0.06rem auto 0.08rem;
  }

  .site-brand__sub {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .site-header__floating-badge {
    display: inline-flex;
    left: 12px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: auto;
    max-width: 92px;
    overflow: hidden;
    padding: 0.16rem 0.34rem;
    gap: 0.16rem;
    box-sizing: border-box;
  }

  .site-brand__badge-icon {
    width: 0.62rem;
    height: 0.62rem;
  }

  .site-brand__badge-text {
    font-size: 0.36rem;
    letter-spacing: 0.05em;
  }

  .site-header__actions {
    gap: 0.3rem;
    height: auto;
    margin-left: auto;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
  }

  .site-header__actions .header-btn {
    display: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    z-index: 20;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    margin: 0;
    width: auto;
    max-width: none;
    border: 0.75px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: auto;
    max-height: none;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
    padding: 0;
    display: block;
    z-index: 25;
  }

  .site-header--menu-open .site-nav,
  .site-header__menu-control:checked ~ .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 0.7rem;
  }

  .header-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    min-width: 0;
  }

  .header-nav__list li {
    width: 100%;
    position: relative;
  }

  .header-nav__list li + li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12), transparent);
  }

  .header-nav__list a {
    width: 100%;
    padding: 0.98rem 0.9rem;
    border-radius: 10px;
    font-size: 0.89rem;
    justify-content: center;
  }

  .header-nav__list a::after {
    display: none;
  }

  .header-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .site-nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 0.75px solid rgba(255, 255, 255, 0.12);
    width: 100%;
  }

  .site-nav__mobile-actions .header-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 0.9rem 0.95rem;
    font-size: 0.84rem;
  }

  .header-nav__list a:hover,
  .header-nav__list a:focus-visible {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
  }
}


@supports (backdrop-filter: blur(1px)) {
  .site-header__inner {
    text-rendering: optimizeLegibility;
  }
}
