/* ================================================
   oferta-hub.css - strona wyboru sciezki wspolpracy
   ================================================ */

/* ─── RESET MAIN ─────────────────────────────── */
main.hub-main {
  min-height: 100vh;
  background: #080d08;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
}

/* ─── CURSOR GLOW ────────────────────────────── */
.hub-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,179,44,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: opacity 0.5s;
}

/* ─── GRID TLO ───────────────────────────────── */
.hub-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,179,44,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,179,44,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: hub-grid-in 1.8s ease-out 0.1s forwards;
}

@keyframes hub-grid-in {
  to { opacity: 1; }
}

/* ─── HERO ───────────────────────────────────── */
.hub-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 2rem 3.5rem;
  opacity: 0;
  animation: hub-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes hub-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00b32c;
  background: rgba(0,179,44,0.09);
  border: 1px solid rgba(0,179,44,0.24);
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 2.25rem;
}

.hub-dot {
  width: 6px;
  height: 6px;
  background: #00b32c;
  border-radius: 50%;
  animation: hub-pulse 2.2s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.55); }
}

.hub-headline {
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.hub-green { color: #00b32c; }

.hub-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.42);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hub-sub {
    white-space: normal;
    font-size: 0.95rem;
  }
}

/* ─── SPLIT ──────────────────────────────────── */
.hub-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 54vh;
  padding: 0 2rem 3.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  animation: hub-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

/* ─── KARTA ──────────────────────────────────── */
.hub-card {
  position: relative;
  flex: 1;
  border-radius: 24px;
  padding: 3rem 2.75rem;
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    flex 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.45s ease;
}

.hub-card--classic {
  background: #13181f;
  border: 1px solid rgba(255,255,255,0.07);
  margin-right: 0.875rem;
}

.hub-card--ai {
  background: #0c1710;
  border: 1px solid rgba(0,179,44,0.18);
  margin-left: 0.875rem;
}

/* Hover split effect */
.hub-split[data-active="classic"] .hub-card--ai {
  flex: 0.52;
  opacity: 0.38;
}
.hub-split[data-active="classic"] .hub-card--classic {
  flex: 1.48;
  box-shadow: 0 0 100px rgba(0,179,44,0.18), 0 40px 80px rgba(0,0,0,0.5);
}
.hub-split[data-active="ai"] .hub-card--classic {
  flex: 0.52;
  opacity: 0.38;
}
.hub-split[data-active="ai"] .hub-card--ai {
  flex: 1.48;
  box-shadow: 0 0 100px rgba(0,179,44,0.28), 0 40px 80px rgba(0,0,0,0.5);
}

.hub-card:hover {
  transform: translateY(-6px);
}

/* Wewnetrzna poswiata karty */
.hub-card__glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.035) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.5s;
}
.hub-card__glow--ai {
  background: radial-gradient(circle, rgba(0,179,44,0.09) 0%, transparent 70%);
}

/* ─── TRESCI KARTY ───────────────────────────── */
.hub-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hub-card__number {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.05);
  margin-bottom: 0.75rem;
  user-select: none;
}

.hub-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.hub-card__badge--ai {
  color: #00b32c;
  background: rgba(0,179,44,0.1);
  border-color: rgba(0,179,44,0.28);
}

.hub-card__title {
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hub-card__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.44);
  line-height: 1.78;
  margin-bottom: 2rem;
  max-width: 380px;
}

.hub-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  margin-bottom: 2.75rem;
  flex: 1;
}

.hub-card__list li {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.56);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.55;
}

.hub-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00b32c;
  font-weight: 700;
}

.hub-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.97rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  align-self: flex-start;
  transition: background 0.3s, border-color 0.3s, gap 0.3s, color 0.3s;
}

.hub-card--ai .hub-card__cta {
  color: #00b32c;
  background: rgba(0,179,44,0.1);
  border-color: rgba(0,179,44,0.3);
}

.hub-card:hover .hub-card__cta {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
  gap: 1.15rem;
}

.hub-card--ai:hover .hub-card__cta {
  background: rgba(0,179,44,0.2);
  border-color: rgba(0,179,44,0.5);
  color: #00d435;
}

.hub-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hub-card:hover .hub-arrow {
  transform: translateX(5px);
}

/* ─── LINIA PODZIAL ──────────────────────────── */
.hub-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  position: relative;
  z-index: 2;
}

.hub-divider__text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  background: #080d08;
  padding: 0.6rem 0;
  position: relative;
  z-index: 1;
}

.hub-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,179,44,0.22) 25%,
    rgba(0,179,44,0.22) 75%,
    transparent 100%
  );
}

/* ─── DOLNY CTA ──────────────────────────────── */
.hub-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 2rem 4rem;
  opacity: 0;
  animation: hub-up 0.8s ease-out 1.1s forwards;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hub-bottom__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.25);
  text-align: center !important;
  margin: 0;
}

.hub-bottom__link {
  color: rgba(0,179,44,0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.hub-bottom__link:hover {
  color: #00b32c;
}

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .hub-hero {
    padding: 5.5rem 1.5rem 2.5rem;
  }

  .hub-split {
    flex-direction: column;
    padding: 0 1.25rem 2rem;
    min-height: auto;
    gap: 1rem;
  }

  .hub-card,
  .hub-card--classic,
  .hub-card--ai {
    flex: 1 !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 2rem 1.75rem;
  }

  .hub-card:hover {
    transform: none;
  }

  .hub-split[data-active] .hub-card {
    flex: 1 !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }

  .hub-divider {
    width: auto;
    height: 40px;
    flex-direction: row;
  }

  .hub-divider::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
  }

  .hub-card__number {
    font-size: 3.5rem;
  }

  .hub-card__title {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hub-headline {
    font-size: 2.8rem;
  }

  .hub-card__desc {
    font-size: 0.9rem;
  }
}
