/* =====================================================================
   PoryBot-U — Fancy enhancement layer
   Modern glassmorphism, neon glow, animated gradients & hover effects.
   Layered on top of nicepage.css / index.css — overrides only visuals,
   never the existing layout structure.
   ===================================================================== */

:root {
  --pb-blue:    #73b3ef;
  --pb-base:    #0f497f;
  --pb-cyan:    #5ad1ff;
  --pb-green:   #c5ffb3;
  --pb-purple:  #a494f0;
  --pb-red:     #db545a;
  --pb-gold:    #f5d654;
  --pb-navy:    #1a2733;
  --pb-glass:   rgba(255, 255, 255, 0.05);
  --pb-glass-border: rgba(255, 255, 255, 0.12);
}

/* ---------- Global polish ---------- */
html { scroll-behavior: smooth; }

.u-body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Richer animated backdrop for the dark sections */
.u-palette-1-dark-3,
.u-section-3,
.u-section-9 {
  position: relative;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(115,179,239,0.10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(90,209,255,0.10), transparent 45%) !important;
  background-attachment: fixed;
}

/* Subtle moving tech grid on feature sections */
.u-section-4,
.u-section-5,
.u-section-6,
.u-section-7 {
  position: relative;
  overflow: hidden;
}
.u-section-4::before,
.u-section-5::before,
.u-section-6::before,
.u-section-7::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(115,179,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115,179,239,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  animation: pb-grid-drift 28s linear infinite;
  z-index: 0;
}
@keyframes pb-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 46px 46px, 46px 46px; }
}
.u-section-4 > *,
.u-section-5 > *,
.u-section-6 > *,
.u-section-7 > * { position: relative; z-index: 1; }

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0c161f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pb-blue), var(--pb-base));
  border-radius: 10px;
  border: 2px solid #0c161f;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pb-cyan), var(--pb-blue));
}
html { scrollbar-color: var(--pb-blue) #0c161f; scrollbar-width: thin; }

/* ---------- Scroll progress bar ---------- */
#pb-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--pb-cyan), var(--pb-blue), var(--pb-purple));
  box-shadow: 0 0 12px rgba(90,209,255,0.8);
  transition: width 0.08s linear;
}

/* =====================================================================
   NEW HEADER  (.pbh) — clean flexbox, glassmorphism, sticky
   ===================================================================== */
.pbh {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(13, 22, 33, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(115,179,239,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transition: background 0.35s ease, box-shadow 0.35s ease,
              border-color 0.35s ease, height 0.35s ease;
}
/* glowing accent line under the bar */
.pbh::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pb-cyan), var(--pb-blue), transparent);
  opacity: 0.7;
  background-size: 200% 100%;
  animation: pb-shimmer 6s linear infinite;
}
/* shrinks + darkens once you scroll (toggled from JS) */
.pbh.pbh-scrolled {
  background: rgba(10, 17, 26, 0.82);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border-color: rgba(115,179,239,0.30);
}

.pbh-inner {
  max-width: 1340px;
  margin: 0 auto;
  height: 84px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height 0.35s ease;
}
.pbh.pbh-scrolled .pbh-inner { height: 66px; }

/* ----- Logo ----- */
.pbh-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.pbh-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), filter 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(90,209,255,0.35));
}
.pbh.pbh-scrolled .pbh-logo img { width: 44px; height: 44px; }
.pbh-logo:hover img {
  transform: scale(1.1) rotate(-4deg);
  filter: drop-shadow(0 0 12px rgba(90,209,255,0.8));
}
.pbh-logo-text {
  font-family: "Oswald", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(90,209,255,0.35);
}
.pbh-logo-text b { color: var(--pb-cyan); }

/* ----- Nav ----- */
.pbh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;       /* equal auto space on both sides of the nav+actions */
}
.pbh-nav a {
  position: relative;
  padding: 10px 16px;
  color: #d6e6f5;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}
.pbh-nav a::after {       /* animated underline */
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--pb-cyan), var(--pb-blue));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
}
.pbh-nav a:hover {
  color: #fff;
  background: rgba(115,179,239,0.10);
}
.pbh-nav a:hover::after { transform: scaleX(1); }

/* ----- Right cluster ----- */
.pbh-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-right: auto;      /* centres the nav + actions block in the space after the logo */
}
.pbh-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pbh-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, background 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.pbh-social a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: filter 0.3s ease;
}
.pbh-social a:hover {
  transform: translateY(-3px);
  background: rgba(115,179,239,0.18);
  border-color: rgba(115,179,239,0.5);
  box-shadow: 0 6px 18px rgba(90,209,255,0.35);
}
.pbh-social a:hover img { filter: drop-shadow(0 0 6px rgba(90,209,255,0.9)); }

/* ----- CTA button ----- */
.pbh-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: #10202a;
  background: linear-gradient(120deg, var(--pb-gold), var(--pb-green));
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: 0 6px 20px rgba(245,214,84,0.35);
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
}
.pbh-cta:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 10px 28px rgba(245,214,84,0.5), inset 0 0 18px rgba(255,255,255,0.3);
}

/* ----- Burger (mobile only) ----- */
.pbh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  cursor: pointer;
}
.pbh-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.pbh.pbh-open .pbh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pbh.pbh-open .pbh-burger span:nth-child(2) { opacity: 0; }
.pbh.pbh-open .pbh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .pbh-inner { padding: 0 20px; gap: 16px; }
  .pbh-logo-text { display: none; }
  .pbh-burger { display: flex; }

  /* nav collapses into a dropdown panel */
  .pbh-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 16px 18px;
    background: rgba(10, 17, 26, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(115,179,239,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .pbh.pbh-open .pbh-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .pbh-nav a {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .pbh-nav a::after { display: none; }
  .pbh-social { display: none; }
}
@media (max-width: 575px) {
  .pbh-inner { padding: 0 14px; height: 70px; }
  .pbh-cta { padding: 10px 16px; font-size: 0.75rem; }
  .pbh-logo img { width: 42px; height: 42px; }
}

/* ---------- Hero + particle canvas ---------- */
.u-section-1 {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, #163a5e 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, #122a44 0%, transparent 50%),
    linear-gradient(160deg, #0a1722 0%, #0d2236 45%, #081019 100%) !important;
}
#pb-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
/* drop the old decorative cell image so the particles/gradient show through */
.u-section-1 .u-image-1 {
  background-image: none !important;
}
.u-section-1 .u-layout-wrap,
.u-section-1 > .u-btn-2 { position: relative; z-index: 2; }

.u-section-1 .u-image-2 {           /* main PoryBot-U logo */
  filter: drop-shadow(0 0 25px rgba(90,209,255,0.45));
  animation: pb-float 7s ease-in-out infinite;
}
@keyframes pb-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.u-section-1 .u-text-3 {            /* "UNIVERSE BOT" */
  background: linear-gradient(90deg, #73b3ef 0%, #5ad1ff 25%, #c9f0ff 50%, #5ad1ff 75%, #73b3ef 100%);
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(90,209,255,0.55));
  animation: pb-text-flow 45s ease-in-out infinite alternate;
}
@keyframes pb-text-flow {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}
/* Glass info box in hero */
.u-section-1 .u-group-1 {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(15, 25, 40, 0.45) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(90,209,255,0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.u-section-1 .u-group-1:hover {
  box-shadow: 0 8px 50px rgba(0,0,0,0.6), inset 0 0 60px rgba(90,209,255,0.12);
}

/* Animated vignette glow on hero */
.u-section-1::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(8,14,22,0.55) 100%);
  z-index: 1;
}

/* ---------- Glowing animated section dividers ---------- */
.u-line-horizontal {
  position: relative;
  background: linear-gradient(90deg, transparent, var(--pb-cyan), var(--pb-blue), transparent) !important;
  border: none !important;
  height: 3px !important;
  box-shadow: 0 0 14px rgba(90,209,255,0.6);
  background-size: 200% 100% !important;
  animation: pb-shimmer 4s linear infinite;
}
@keyframes pb-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- Section heading glow ---------- */
.u-section-3 .u-text-1,
.u-section-4 .u-text-1,
.u-section-5 .u-text-1,
.u-section-6 .u-text-1,
.u-section-7 .u-text-1,
.u-section-8 .u-text-1 {
  letter-spacing: 0.5px;
  transition: text-shadow 0.4s ease;
}
.u-section-4 .u-text-1 { text-shadow: 0 0 24px rgba(115,179,239,0.55); }
.u-section-5 .u-text-1 { text-shadow: 0 0 24px rgba(197,255,179,0.45); }
.u-section-6 .u-text-1 { text-shadow: 0 0 24px rgba(164,148,240,0.5); }
.u-section-7 .u-text-1 { text-shadow: 0 0 24px rgba(245,214,84,0.45); }
.u-section-8 .u-text-1 { text-shadow: 0 0 26px rgba(90,209,255,0.6); }

/* ---------- Feature cards: glassmorphism + hover ---------- */
.u-list-item,
.u-repeater-item {
  position: relative;
  border-radius: 16px !important;
  background: linear-gradient(160deg, rgba(41,66,89,0.55), rgba(20,30,42,0.65)) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: transform;
}
/* sheen sweep that follows the mouse (set via JS custom props) */
.u-list-item::after,
.u-repeater-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255,255,255,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.u-list-item:hover::after,
.u-repeater-item:hover::after { opacity: 1; }

.u-list-item:hover,
.u-repeater-item:hover {
  transform: translateY(-10px) scale(1.025);
}

/* per-section colored glow on hover (matches each card's top border colour) */
.u-list-item.u-border-palette-1-light-1:hover { box-shadow: 0 14px 40px rgba(115,179,239,0.45); border-top-color: var(--pb-blue) !important; }
.u-list-item.u-border-custom-color-13:hover   { box-shadow: 0 14px 40px rgba(197,255,179,0.40); border-top-color: var(--pb-green) !important; }
.u-list-item.u-border-custom-color-8:hover    { box-shadow: 0 14px 40px rgba(164,148,240,0.45); border-top-color: var(--pb-purple) !important; }
.u-list-item.u-border-palette-2-base:hover    { box-shadow: 0 14px 40px rgba(219,84,90,0.42); }
.u-list-item.u-border-palette-3-light-1:hover { box-shadow: 0 14px 40px rgba(245,214,84,0.42); }

/* thicker, brighter top accent border */
.u-list-item[class*="u-border-"],
.u-repeater-item[class*="u-border-"] {
  border-top-width: 3px !important;
}

/* Card icons */
.u-list-item .u-icon img,
.u-repeater-item .u-icon img {
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), filter 0.4s ease;
}
.u-list-item:hover .u-icon img,
.u-repeater-item:hover .u-icon img {
  transform: scale(1.18) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(90,209,255,0.65));
}
.u-list-item:hover .u-text-3,
.u-list-item:hover .u-text-5,
.u-list-item:hover .u-text-7,
.u-list-item:hover .u-text-9,
.u-list-item:hover .u-text-11,
.u-list-item:hover .u-text-13 {
  letter-spacing: 0.6px;
}

/* ---------- Buttons: clean gradient + glow (no overflow sweep) ---------- */
.u-btn {
  position: relative;
  border: none !important;
  background: linear-gradient(120deg, var(--pb-blue), var(--pb-base)) !important;
  background-size: 180% 100% !important;
  background-position: 0% 50% !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(15,73,127,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
  letter-spacing: 0.5px;
}
.u-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(90,209,255,0.55),
              inset 0 0 22px rgba(255,255,255,0.18);
  background-position: 100% 50% !important;
}
.u-btn:active { transform: translateY(-1px) scale(0.99); }

/* Hero "PURCHASE LICENSE" button (2nd from top) — make it bigger */
.u-section-1 .u-btn-2 {
  font-size: 1.2rem !important;
  padding: 20px 56px !important;
  letter-spacing: 1px;
  border-radius: 10px !important;
}

/* Header purchase button — keep it eye-catching (gold→green) */
.u-header .u-btn-1,
.u-section-1 .u-btn-2 {
  background: linear-gradient(120deg, var(--pb-gold), var(--pb-green)) !important;
  background-size: 180% 100% !important;
  background-position: 0% 50% !important;
  color: #10202a !important;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(245,214,84,0.55);
  animation: pb-pulse 2.6s ease-in-out infinite;
}
.u-header .u-btn-1:hover,
.u-section-1 .u-btn-2:hover {
  background-position: 100% 50% !important;
  box-shadow: 0 12px 34px rgba(245,214,84,0.5),
              inset 0 0 22px rgba(255,255,255,0.28);
}
@keyframes pb-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,214,84,0.45); }
  50%     { box-shadow: 0 0 22px 4px rgba(245,214,84,0.35); }
}

/* ---------- Pricing block ---------- */
.u-section-8 .u-group-1 {
  border-radius: 22px !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: linear-gradient(160deg, rgba(41,66,89,0.55), rgba(15,25,40,0.7)) !important;
  border: 1px solid rgba(115,179,239,0.35) !important;
  box-shadow: 0 12px 50px rgba(0,0,0,0.5), inset 0 0 60px rgba(90,209,255,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.u-section-8 .u-group-1:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 60px rgba(90,209,255,0.35), inset 0 0 70px rgba(90,209,255,0.14);
}

/* ---------- "Looking for more bots" block ---------- */
.u-section-9 .u-group-1 {
  border-radius: 20px !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: linear-gradient(160deg, rgba(60,60,68,0.6), rgba(25,28,34,0.7)) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.u-section-9 .u-group-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(90,209,255,0.25);
}

/* ---------- Footer ---------- */
.u-footer {
  border-top: 1px solid rgba(115,179,239,0.2);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.pb-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.pb-reveal.pb-in {
  opacity: 1;
  transform: none;
}

/* ---------- FEATURES intro: vertically centre the content ---------- */
.u-section-3 .u-sheet-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.u-section-3 .u-layout-wrap-1 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.u-section-3 .u-layout-cell-1 {
  display: flex;
}
.u-section-3 .u-container-layout-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
}
.u-section-3 .u-text-1 {        /* drop leading top margin that biased content upward */
  margin-top: 0 !important;
}

/* ---------- Material collector: remove blue border around card icons ---------- */
.u-section-6 .u-list-item .u-icon {
  border: none !important;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .u-section-1 .u-image-2,
  .u-line-horizontal,
  .u-section-4::before, .u-section-5::before,
  .u-section-6::before, .u-section-7::before,
  .u-header .u-btn-1, .u-section-1 .u-btn-2 { animation: none !important; }
  .pb-reveal { opacity: 1; transform: none; transition: none; }
}
