/* ============================================================
   CRITICAL.CSS – Navbar + Hero
   ============================================================ */

/* ================================================================
   NAWIGACJA
   ================================================================ */
#cs-navigation {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  --bg-color: rgba(255, 255, 255, 0.25);
  --highlight: rgba(255, 255, 255, 0.75);
  --text: #ffffff;

  width: 95%;
  max-width: 1200px;
  height: var(--header-height);
  border-radius: 12px;
  background: transparent;
  transition: top 0.3s ease, width 0.3s ease, max-width 0.3s ease, border-radius 0.3s ease;
}

#cs-navigation.cs-scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  --bg-color: rgba(0, 0, 0, 0.25);
}

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass-filter {
  z-index: -3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-filter: url('#glass-distortion') saturate(120%) brightness(1.15);
  filter: url('#glass-distortion') saturate(120%) brightness(1.15);
}

.glass-overlay {
  z-index: -2;
  background: var(--bg-color);
  transition: background 0.3s ease;
}

.glass-specular {
  z-index: -1;
  box-shadow: inset 1px 1px 1px var(--highlight);
}

@media (prefers-color-scheme: dark) {
  #cs-navigation {
    --bg-color: rgba(0, 0, 0, 0.25);
    --highlight: rgba(255, 255, 255, 0.15);
  }
}

#cs-navigation .cs-container {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cs-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.cs-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.cs-logo-text .accent {
  color: #60a5fa;
}

.cs-logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}

.cs-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.cs-ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.cs-li {
  position: relative;
}

.cs-li-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.cs-li-link:hover,
.cs-li-link.cs-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cs-drop-icon {
  width: 13px;
  height: 13px;
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.cs-li.cs-dropdown:hover .cs-drop-icon,
.cs-li.cs-dropdown:focus-within .cs-drop-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown */
.cs-drop-ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(12, 16, 50, 0.8);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  padding: 0.5rem;
}

.cs-drop-ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.cs-drop-ul::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 24px;
}

.cs-li.cs-dropdown:hover .cs-drop-ul,
.cs-li.cs-dropdown:focus-within .cs-drop-ul {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.cs-drop-li {
  width: 100%;
}

.cs-drop-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}

.cs-drop-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Mobile toggle */
.cs-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cs-toggle:hover {
  opacity: 0.8;
}

.cs-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.cs-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.cs-toggle.active .cs-line1 {
  transform: translateY(6.5px) rotate(45deg);
}

.cs-toggle.active .cs-line2 {
  opacity: 0;
  transform: scaleX(0);
}

.cs-toggle.active .cs-line3 {
  transform: translateY(-6.5px) rotate(-45deg);
}

.cs-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

#dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s;
}

#dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cs-moon {
  display: block;
}

.cs-sun {
  display: none;
}

body.dark-mode .cs-moon {
  display: none;
}

body.dark-mode .cs-sun {
  display: block;
}

/* ================================================================
   HERO
   ================================================================ */
#hero-855 {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(150deg, #0c1033 0%, #142060 45%, #0e1a4a 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

#hero-855 .cs-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 10rem;
}

.cs-content {
  position: relative;
  z-index: 2;
}

#hero-855 .cs-topper {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
}

#hero-855 .cs-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  font-weight: 900;
}

#hero-855 .cs-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.65;
}

.cs-button-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cs-picture {
  position: relative;
  z-index: 2;
}

.cs-picture img {
  width: 100%;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 60px rgba(37, 99, 235, 0.5));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.universe {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  animation: starFlicker var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
}

.star1 {
  width: 2px;
  height: 2px;
  top: 2%;
  left: 25%;
  --dur: 6s;
  --delay: 0s;
}

.star2 {
  width: 2px;
  height: 2px;
  top: 1%;
  left: 48%;
  --dur: 4s;
  --delay: .5s;
}

.star3 {
  width: 2px;
  height: 2px;
  top: 20%;
  left: 36%;
  --dur: 8s;
  --delay: 1s;
}

.star4 {
  width: 2px;
  height: 2px;
  top: 17%;
  left: 5%;
  --dur: 7s;
  --delay: .8s;
}

.star5 {
  width: 2px;
  height: 2px;
  top: 11%;
  right: 19%;
  --dur: 8s;
  --delay: .2s;
}

.star6 {
  width: 2px;
  height: 2px;
  top: 4%;
  right: 24%;
  --dur: 3s;
  --delay: .9s;
}

.star7 {
  width: 2px;
  height: 2px;
  top: 3%;
  left: 29%;
  --dur: 5s;
  --delay: 1.2s;
}

.star8 {
  width: 2px;
  height: 2px;
  top: 18%;
  left: 56%;
  --dur: 7s;
  --delay: .4s;
}

.star9 {
  width: 2px;
  height: 2px;
  top: 31%;
  left: 57%;
  --dur: 4s;
  --delay: .1s;
}

.star10 {
  width: 2px;
  height: 2px;
  top: 27%;
  left: 12%;
  --dur: 4s;
  --delay: .2s;
}

.star11 {
  width: 2px;
  height: 2px;
  top: 7%;
  right: 31%;
  --dur: 3s;
  --delay: 1.4s;
}

.star12 {
  width: 2px;
  height: 2px;
  top: 35%;
  right: 12%;
  --dur: 4.5s;
  --delay: 1.1s;
}

.star13 {
  width: 2px;
  height: 2px;
  top: 12%;
  right: 25%;
  --dur: 3.3s;
  --delay: .7s;
}

@keyframes starFlicker {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.9;
  }
}

.shooting-star {
  position: absolute;
  right: 50%;
  top: -13%;
  width: 1px;
  height: 70px;
  background: #fff;
  transform: rotate(-62deg);
  animation: shootingStar 9s ease-in infinite 1s;
  opacity: 0;
}

.shooting-star2 {
  top: -23%;
  animation: shootingStar2 10s ease-in infinite 1.5s;
}

@keyframes shootingStar {
  0% {
    top: -14%;
    right: 60%;
    opacity: 1;
  }

  2% {
    opacity: 0;
    top: 100%;
    right: 0%;
  }

  86% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes shootingStar2 {
  0% {
    top: -24%;
    right: 50%;
    opacity: 1;
  }

  2% {
    opacity: 0;
    top: 100%;
    right: -17%;
  }

  86% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}



@keyframes ufo-drift {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(20px, -15px) rotate(2deg);
  }

  50% {
    transform: translate(-10px, -25px) rotate(-1deg);
  }

  75% {
    transform: translate(15px, -8px) rotate(1deg);
  }
}

.ufo-svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.8));
}

.cs-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

/* ================================================================
   MOBILE NAV
   ================================================================ */
@media (max-width: 1023px) {
  .cs-nav {
    justify-content: flex-end;
  }

  .cs-toggle {
    display: flex;
  }

  .cs-ul-wrapper {
    position: fixed;
    top: calc(var(--header-height) + 0.75rem);
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(8, 12, 45, 0.8);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.96) translateY(-8px);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-height) - 2rem);
  }

  .cs-ul-wrapper.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .cs-ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
  }

  .cs-li-link {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .cs-drop-ul {
    position: static;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin: 0.25rem 0 0.25rem 1rem;
    display: none;
    padding: 0.3rem;
  }

  .cs-drop-ul::before {
    display: none;
  }

  .cs-li.cs-dropdown.open .cs-drop-ul {
    display: block;
  }

  .cs-li.cs-dropdown.open .cs-drop-icon {
    transform: rotate(180deg);
    opacity: 1;
  }

  #hero-855 .cs-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 7rem;
  }

  .cs-button-box {
    justify-content: center;
  }

  #hero-855 .cs-text {
    margin: 0 auto 2rem;
  }

}