/* ─────────────────────────────────────────────
   O NAS — strona
   Tło: przezroczyste — korzysta z body background + body::before gwiazdy
   ──────────────────────────────────────────── */

/* ══════════════════════════════════════════
   HERO — 2 kolumny
   ══════════════════════════════════════════ */

.about-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 72px);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.about-hero-eyebrow {
  margin-bottom: 18px;
}

.about-hero-h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 24px;
  color: var(--text);
}

.about-hero-lead {
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  margin: 0 0 16px;
}

.about-hero-lead:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════
   TEAM CARD (prawa kolumna hero)
   ══════════════════════════════════════════ */

.team-card {
  background: linear-gradient(150deg, rgba(22, 17, 42, 0.9) 0%, rgba(12, 10, 24, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 20px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(109, 40, 217, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.28);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.team-card-brand-mark { flex-shrink: 0; }

.team-card-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.team-card-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.team-card-personas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.team-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 200ms ease, background 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .team-persona:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
  }
}

.team-persona-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(109, 40, 217, 0.62));
  border: 1px solid rgba(167, 139, 250, 0.32);
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ddd6fe;
  flex-shrink: 0;
}

.team-persona strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.team-persona small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.13);
  position: relative;
}

.team-tag {
  font-size: 0.7rem;
  color: rgba(167, 139, 250, 0.9);
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   4 KARTY — siatka 2×2
   ══════════════════════════════════════════ */

.about-cards-section {
  padding-top: clamp(8px, 1.5vw, 16px);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid);
}

.about-card {
  background: linear-gradient(150deg, rgba(20, 16, 36, 0.88) 0%, rgba(11, 9, 22, 0.93) 100%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.065) 0%, transparent 60%);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .about-card:hover {
    border-color: rgba(167, 139, 250, 0.38);
    box-shadow:
      0 0 0 1px rgba(167, 139, 250, 0.07),
      0 20px 52px rgba(0, 0, 0, 0.3),
      0 0 32px rgba(109, 40, 217, 0.1);
    transform: translateY(-3px);
  }

  .about-card:hover .about-card-icon {
    border-color: rgba(139, 92, 246, 0.38);
    background: rgba(139, 92, 246, 0.18);
  }
}

.about-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: grid;
  place-items: center;
  color: #c4b5fd;
  flex-shrink: 0;
  position: relative;
  transition: background 220ms ease, border-color 220ms ease;
}

.about-card-title {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  position: relative;
}

.about-card-text {
  font-size: 0.91rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
  position: relative;
}

/* ══════════════════════════════════════════
   3 WARTOŚCI — dolne kafelki
   ══════════════════════════════════════════ */

.about-values-section {
  padding-top: clamp(8px, 1.5vw, 16px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 16px;
  overflow: hidden;
}

.about-value {
  background: linear-gradient(150deg, rgba(18, 14, 32, 0.9) 0%, rgba(10, 8, 20, 0.94) 100%);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-value:hover {
    background: linear-gradient(150deg, rgba(22, 17, 42, 0.96) 0%, rgba(14, 11, 28, 0.98) 100%);
  }
}

.about-value-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.about-value-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.about-value-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════
   REVEAL STAGGER dla kart
   ══════════════════════════════════════════ */

.about-cards-grid .reveal-child:nth-child(2) { --reveal-delay: 80ms; }
.about-cards-grid .reveal-child:nth-child(3) { --reveal-delay: 160ms; }
.about-cards-grid .reveal-child:nth-child(4) { --reveal-delay: 240ms; }

.about-values-grid .reveal-child:nth-child(2) { --reveal-delay: 80ms; }
.about-values-grid .reveal-child:nth-child(3) { --reveal-delay: 160ms; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px) {
  .about-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .about-hero {
    padding: 48px 0 52px;
  }

  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Team card na górze na mobile */
  .about-hero-visual {
    order: -1;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-value {
    padding: 22px 20px;
  }

  .team-card {
    padding: 22px 20px 18px;
  }
}
