/* ══════════════════════════════════════════
   PARA QUEM É — Switch Tabs Section
══════════════════════════════════════════ */

.tabs-section {
  background: #0d0b1a;
  padding: var(--section-padding-y) 0;
}

/* ── Header ── */
.tabs-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.tabs-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: var(--space-4);
}

.tabs-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: var(--font-weight-semibold);
  color: white;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* ── Container ── */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
}

@media (min-width: 900px) {
  .tabs-container {
    flex-direction: row-reverse;
    align-items: center;
  }
}

/* ── Left: tab list ── */
.tabs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ── Tab button ── */
.tab-btn {
  text-align: left;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 280ms ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.80);
}

.tab-btn.is-active {
  background: rgba(139, 69, 255, 0.12);
  border-color: rgba(139, 69, 255, 0.35);
  color: white;
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 4px 20px rgba(139, 69, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Barra esquerda roxa (ativa) */
.tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(139, 69, 255, 0.70);
}

/* ── Right: panel ── */
.tabs-panel {
  flex: 1.3;
  height: clamp(320px, 40vw, 420px);
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.30),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 60px rgba(139, 69, 255, 0.06);
}

/* Ambient slow-spin bg */
.tabs-panel__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(139, 69, 255, 0.18) 0%, transparent 70%);
  animation: ambientSpin 20s linear infinite;
}

@keyframes ambientSpin {
  0%   { transform: rotate(0deg) scale(1.4); }
  100% { transform: rotate(360deg) scale(1.4); }
}

/* ── Panel content ── */
.panel-content {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 450ms cubic-bezier(0.25, 1, 0.5, 1),
              transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.panel-content.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.panel-content__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: white;
  margin-bottom: var(--space-2);
  letter-spacing: -0.2px;
}

.panel-content__desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: var(--space-6);
  max-width: 440px;
}

/* ── Panel features list ── */
.panel-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.panel-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
}

.panel-feature:hover {
  background: rgba(139, 69, 255, 0.08);
  border-color: rgba(139, 69, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(139, 69, 255, 0.08);
}

.panel-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-purple-light);
  font-size: 20px;
  padding-top: 4px;
}

.panel-feature__text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 6px;
}

@media (max-width: 899px) {
  .tabs-panel {
    height: auto;
    min-height: clamp(320px, 80vw, 480px);
  }

  .panel-content {
    position: relative;
    inset: auto;
    opacity: 0;
    pointer-events: none;
    display: none;
  }

  .panel-content.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 599px) {
  .tab-btn {
    padding: 14px 16px;
    font-size: var(--text-base);
  }

  .tabs-panel {
    min-height: auto;
  }

  .panel-content__desc {
    max-width: 100%;
  }

  .panel-feature {
    padding: 12px 14px;
  }
}
