/* ═══════════ TEAM PAGE — MicroBot ═══════════ */
.team-page { padding: 140px 24px 100px; max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; }

.team-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.team-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  padding: 6px 14px; border: 1px solid var(--border-hover); border-radius: 100px;
  background: rgba(99,102,241,0.06);
}
.team-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 22px; color: var(--text);
}
.team-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.team-sub { font-size: 1.08rem; color: var(--muted2, #94a3b8); line-height: 1.7; }

/* ── Grid 2 oameni ── */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 88px; }

.person {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  overflow: hidden; transition: var(--transition);
}
.person:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.45); }

.person-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0b0b14; }
.person-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: saturate(0.94) contrast(1.02); transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.person:hover .person-photo img { transform: scale(1.035); }
.person-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7,7,13,0.55) 78%, rgba(7,7,13,0.96) 100%);
}

.person-info { padding: 26px 28px 30px; }
.person-name { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.person-role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.person-bio { font-size: 0.96rem; line-height: 1.75; color: var(--muted2, #94a3b8); }

/* ── Ce construim impreuna ── */
.team-values { border-top: 1px solid var(--border); padding-top: 72px; }
.values-title {
  text-align: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em;
}
.values-sub { text-align: center; color: var(--muted2, #94a3b8); margin-bottom: 46px; font-size: 1rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  padding: 28px 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,0.02); transition: var(--transition);
}
.value-card:hover { border-color: var(--border-hover); background: rgba(99,102,241,0.05); }
.value-icon {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(99,102,241,0.12); color: var(--accent);
  font-size: 1.2rem; margin-bottom: 18px;
}
.value-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; line-height: 1.7; color: var(--muted2, #94a3b8); }

/* ── CTA ── */
.team-cta { text-align: center; margin-top: 80px; padding: 52px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, rgba(99,102,241,0.10), rgba(255,255,255,0.015)); }
.team-cta h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; }
.team-cta p { color: var(--muted2, #94a3b8); margin-bottom: 28px; }

/* ── RTL (araba) ── */
[dir="rtl"] .team-grid { direction: rtl; }
[dir="rtl"] .person-info { text-align: right; }
[dir="rtl"] .team-title,
[dir="rtl"] .team-sub,
[dir="rtl"] .values-title,
[dir="rtl"] .values-sub,
[dir="rtl"] .team-cta { text-align: center; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .team-page { padding: 110px 20px 72px; }
  .team-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 64px; }
  .person-photo { aspect-ratio: 4/4.6; }
  .values-grid { grid-template-columns: 1fr; }
  .team-cta { padding: 40px 22px; }
}
@media (max-width: 520px) {
  .team-name { font-size: 1.3rem; }
  .team-head { margin-bottom: 52px; }
}
/* v7.0-MARK-START
/* ══════════════════════════════════════════════════════════════════════════
   v7.0 — PAGINA DE ECHIPA: redesign complet (structura + aspect)
   --------------------------------------------------------------------------
   Bloc append-only. CSS-ul de mai sus ramane pe loc (nu se sterge), dar
   clasele .contrib-* de acolo nu mai sunt folosite de HTML-ul nou: pagina
   v7 foloseste namespace-ul .tp-* (team page).
   Paleta si fonturile se preiau din css/style.css (Incarcat primul):
   --accent #6366f1, --accent2 #8b5cf6, Inter + Instrument Serif.
   Fara JS, fara imagini de fundal, fara dependinte externe.
   ══════════════════════════════════════════════════════════════════════════ */

.contrib-page {
  --tp-max: 1160px;
  --tp-ink: #f1f5f9;
  --tp-ink2: #b8c1d1;
  --tp-ink3: #8d97a9;
  --tp-line: rgba(255, 255, 255, .07);
  --tp-card: rgba(255, 255, 255, .028);
  --tp-accent: var(--accent, #6366f1);
  --tp-accent2: var(--accent2, #8b5cf6);
  --tp-soft: rgba(99, 102, 241, .10);
  --tp-ring: rgba(99, 102, 241, .24);
  --tp-r: 22px;

  position: relative;
  z-index: 2;
  max-width: var(--tp-max);
  margin: 0 auto;
  padding: 128px 24px 96px;
}

/* ── 1. HERO ────────────────────────────────────────────────────────────── */
.tp-hero {
  position: relative;
  max-width: 840px;
  margin: 0 auto 92px;
  text-align: center;
}
/* halou violet in spatele titlului, pur CSS.
   Atentie: fara bleed pe orizontala (stanga/dreapta 0), altfel lateste
   viewport-ul pe mobil si apare scroll orizontal. */
.tp-hero::before {
  content: "";
  position: absolute;
  inset: -170px 0 auto;
  height: 470px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 48% 64% at 50% 32%,
              rgba(99, 102, 241, .22), rgba(99, 102, 241, 0) 72%);
}

.tp-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  margin-bottom: 26px;
  border: 1px solid var(--tp-ring);
  border-radius: 100px;
  background: var(--tp-soft);
  color: #a5b4fc;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tp-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tp-accent);
  animation: tpDot 2.4s ease-in-out infinite;
}
@keyframes tpDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.4); }
}

.tp-title {
  margin: 0 0 22px;
  color: var(--tp-ink);
  font-size: clamp(2.05rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.tp-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  background: linear-gradient(118deg, #e0e6ff 0%, #a5b4fc 45%, var(--tp-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tp-lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--tp-ink2);
  font-size: clamp(1rem, 1.5vw, 1.09rem);
  line-height: 1.78;
}

/* ── 2. POVESTEA ECHIPEI ───────────────────────────────────────────────── */
.tp-story {
  max-width: 830px;
  margin: 0 auto 96px;
  padding: 46px 48px;
  border: 1px solid var(--tp-line);
  border-radius: 26px;
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(99, 102, 241, .10), rgba(99, 102, 241, 0) 58%),
    var(--tp-card);
}
.tp-story p {
  margin: 0;
  color: #a9b2c3;
  font-size: 1.02rem;
  line-height: 1.85;
}
.tp-story p + p { margin-top: 1.2rem; }

/* paragraful 1 = introducere, cu bara de accent */
.tp-story .tp-story-intro {
  padding-inline-start: 22px;
  border-inline-start: 3px solid var(--tp-accent);
  color: #e8ecf5;
  font-size: 1.2rem;
  line-height: 1.68;
}
.tp-story .tp-story-intro + p { margin-top: 28px; }

/* paragraful 5 = incheiere, separata printr-o linie */
.tp-story .tp-story-outro {
  margin-top: 32px;
  padding-top: 26px;
  padding-inline-start: 22px;
  border-top: 1px solid var(--tp-line);
  border-inline-start: 3px solid rgba(99, 102, 241, .45);
  color: #d3dae6;
  font-size: 1.05rem;
}

/* ── 3. ECHIPA: 3 carduri ──────────────────────────────────────────────── */
.tp-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto 96px;
}
.tp-team > .tp-member {
  flex: 1 1 250px;
  max-width: 327px;
}
.tp-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 26px 28px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
  background: var(--tp-card);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.tp-member:hover {
  transform: translateY(-4px);
  border-color: var(--tp-ring);
  background: rgba(99, 102, 241, .05);
}

.tp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  border: 2px solid rgba(99, 102, 241, .45);
  border-radius: 50%;
  overflow: hidden;
  background: var(--tp-soft);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, .07), 0 10px 30px rgba(0, 0, 0, .35);
}
.tp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
/* placeholder pentru cine nu are poza inca */
.tp-avatar--ph {
  border-style: dashed;
  border-color: var(--tp-ring);
  box-shadow: none;
}
.tp-avatar--ph span {
  color: #a5b4fc;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.tp-member-name {
  margin: 0 0 7px;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-align: center;
}
.tp-member-role {
  margin: 0 0 11px;
  color: #a5b4fc;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
}
.tp-member-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--tp-ink3);
  font-size: .8rem;
}
.tp-member-loc svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}
/* link LinkedIn in cardul de membru */
.tp-member-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 13px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  color: #c7d2fe;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.tp-member-social:hover {
  border-color: var(--tp-ring);
  background: rgba(99, 102, 241, .12);
  color: #fff;
}
.tp-member-social svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
}

.tp-member-bio {
  width: 100%;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--tp-line);
  color: #98a2b4;
  font-size: .9rem;
  line-height: 1.7;
  text-align: start;
}

/* ── 4. EXPERTIZA: 11 domenii ──────────────────────────────────────────── */
.tp-expertise {
  counter-reset: tpd;
  max-width: var(--tp-max);
  margin: 0 auto 96px;
}
.tp-sec {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.tp-sec h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.tp-sec p {
  margin: 0;
  color: var(--tp-ink2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.tp-domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-domain {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--tp-line);
  border-radius: 18px;
  background: var(--tp-card);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.tp-domain:hover {
  transform: translateY(-3px);
  border-color: var(--tp-ring);
  background: rgba(99, 102, 241, .06);
}
/* numerotare automata 01 … 11 */
.tp-domain::before {
  counter-increment: tpd;
  content: counter(tpd, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--tp-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  opacity: .9;
}
.tp-domain h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.4;
}
.tp-domain p {
  margin: 0;
  color: #98a2b4;
  font-size: .885rem;
  line-height: 1.62;
}

/* ── 5. INVITATIE (scrie-ne) ───────────────────────────────────────────── */
.tp-join {
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 46px 44px;
  border: 1px solid var(--tp-ring);
  border-radius: 26px;
  background: radial-gradient(120% 130% at 50% 0%, rgba(99, 102, 241, .14), rgba(99, 102, 241, .03) 72%);
  text-align: center;
}
.tp-join h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.tp-join p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #b4bccc;
  font-size: 1.02rem;
  line-height: 1.78;
}

/* ── 6. CTA FINAL ──────────────────────────────────────────────────────── */
.tp-cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 58px 40px;
  border: 1px solid var(--tp-line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(139, 92, 246, .08) 55%, rgba(6, 182, 212, .07));
  text-align: center;
}
.tp-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.tp-cta p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: #c0c8d8;
  font-size: 1.04rem;
  line-height: 1.7;
}

/* ── Butoane ───────────────────────────────────────────────────────────── */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.tp-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--tp-accent), var(--tp-accent2));
  box-shadow: 0 10px 26px rgba(99, 102, 241, .30);
}
.tp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(99, 102, 241, .42);
}
.tp-btn--ghost {
  color: #cdd7ff;
  background: rgba(99, 102, 241, .12);
  border-color: var(--tp-ring);
}
.tp-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(99, 102, 241, .20);
}
.tp-btn:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}

/* ── Tableta ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contrib-page { padding: 116px 22px 84px; }
  .tp-hero { margin-bottom: 76px; }
  .tp-story { padding: 38px 34px; margin-bottom: 80px; }
  .tp-team { margin-bottom: 80px; }
  .tp-expertise { margin-bottom: 80px; }
}

/* ── Mobil: o singura coloana ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .contrib-page { padding: 104px 18px 72px; }
  .tp-hero { margin-bottom: 60px; }
  .tp-hero::before { inset: -110px 0 auto; height: 340px; }
  .tp-title { line-height: 1.14; }
  .tp-lead { font-size: 1rem; line-height: 1.75; }

  .tp-story { padding: 30px 22px; border-radius: 20px; margin-bottom: 60px; }
  .tp-story p { font-size: 1rem; line-height: 1.8; }
  .tp-story .tp-story-intro { padding-inline-start: 16px; font-size: 1.08rem; line-height: 1.7; }
  .tp-story .tp-story-outro { padding-inline-start: 16px; font-size: 1rem; }

  .tp-team { gap: 16px; margin-bottom: 60px; }
  .tp-team > .tp-member { max-width: none; }
  .tp-member { padding: 26px 22px 24px; }
  .tp-avatar { width: 96px; height: 96px; margin-bottom: 18px; }
  .tp-avatar--ph span { font-size: 1.5rem; }

  .tp-expertise { margin-bottom: 60px; }
  .tp-sec { margin-bottom: 32px; }
  .tp-domains { grid-template-columns: 1fr; gap: 12px; }
  .tp-domain { padding: 20px 20px 22px; }

  .tp-join { padding: 34px 22px; margin-bottom: 30px; border-radius: 22px; }
  .tp-cta { padding: 40px 22px; border-radius: 24px; }

  .tp-btn { width: 100%; max-width: 340px; padding: 14px 22px; }
}

/* ── RTL (araba) ───────────────────────────────────────────────────────── */
/* Fara spatii intre litere (rup scrierea araba), fara em italic,
   fara litera mare ornamentala. Alinierea o face 'start' automat. */
[dir="rtl"] .tp-label { letter-spacing: 0; }
[dir="rtl"] .tp-title { letter-spacing: 0; line-height: 1.38; }
[dir="rtl"] .tp-title em {
  font-family: inherit;
  font-style: normal;
  font-size: 1em;
  background: none;
  color: #a5b4fc;
  -webkit-text-fill-color: #a5b4fc;
}
[dir="rtl"] .tp-lead { line-height: 1.95; }
[dir="rtl"] .tp-story {
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(99, 102, 241, .10), rgba(99, 102, 241, 0) 58%),
    var(--tp-card);
}
[dir="rtl"] .tp-story p { line-height: 2; }
[dir="rtl"] .tp-story .tp-story-intro { line-height: 1.85; }
[dir="rtl"] .tp-member-role { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .tp-domain::before { letter-spacing: 0; }
[dir="rtl"] .tp-domain p { line-height: 1.8; }
[dir="rtl"] .tp-btn svg { transform: scaleX(-1); }

/* ── Accesibilitate ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tp-label::before { animation: none; }
  .tp-member, .tp-domain, .tp-btn { transition: none; }
}
/* v7.0-MARK-END */
