/* ============================================
   AI Agent Teams Page Styles
   Used by: ai-teams.html
   Extends product.css with agent-specific components
   ============================================ */

/* ============================================
   Org Chart Visual
   ============================================ */
.org-chart {
  max-width: 800px;
  margin: 0 auto 64px;
  position: relative;
}

.org-chart__layer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.org-chart__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  min-width: 130px;
  text-align: center;
  transition: border-color 0.6s, box-shadow 0.6s, transform 0.3s, background 0.6s;
  cursor: default;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.org-chart__node::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.6s;
  background: radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.org-chart__node.is--lit {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 0 40px rgba(22, 163, 74, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.org-chart__node.is--lit::before {
  opacity: 1;
}

.org-chart__icon {
  font-size: 24px;
  line-height: 1;
}

.org-chart__role {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.org-chart__agent {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* Connection lines (SVG overlay) */
.org-chart__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.org-chart__lines line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  transition: stroke 0.6s;
}

.org-chart__lines line.is--lit {
  stroke: rgba(22, 163, 74, 0.25);
}

/* ============================================
   Vertical / Industry Cards
   ============================================ */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.vertical-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vertical-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.3);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.vertical-card__icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.vertical-card__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.vertical-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.vertical-card__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  margin-top: auto;
  padding-top: 8px;
}

/* ============================================
   Agent Role Grid (for "Every Role" section)
   ============================================ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.role-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.role-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.role-card__icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.role-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.role-card__examples {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  line-height: 1.4;
}

.role-card__purpose {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Problem / Solution Split
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.split__side {
  padding: 40px;
  border-radius: 20px;
}

.split__side--problem {
  background: rgba(255, 51, 102, 0.06);
  border: 1px solid rgba(255, 51, 102, 0.12);
}

.split__side--solution {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.12);
}

.split__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.split__side--problem .split__label {
  color: #FF3366;
  background: rgba(255, 51, 102, 0.1);
}

.split__side--solution .split__label {
  color: #00D4AA;
  background: rgba(0, 212, 170, 0.1);
}

.split__text {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Metric Cards (Social Proof)
   ============================================ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.metric-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.metric-card__number {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.metric-card__label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ============================================
   How It Works (horizontal steps)
   ============================================ */
.hiw-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.hiw-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.hiw-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hiw-step__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.hiw-step__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* Arrow connectors between steps */
.hiw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 52px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-item__q:hover {
  color: var(--accent-orange);
}

.faq-item__q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.is--open .faq-item__q::after {
  content: '\2212';
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.is--open .faq-item__a {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__a p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   Dual CTA buttons row
   ============================================ */
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-row .product-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-row .product-cta__book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Add-ons section
   ============================================ */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 48px;
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.addon-item__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.addon-item__price {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-orange);
  white-space: nowrap;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 1024px) {
  .vertical-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vertical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vertical-card {
    padding: 24px 20px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split__side {
    padding: 28px 24px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .hiw-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hiw-step:not(:last-child)::after {
    display: none;
  }

  .metrics-row {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .addons-grid {
    grid-template-columns: 1fr;
  }

  .org-chart__layer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .org-chart__node {
    min-width: 90px;
    padding: 12px 14px;
  }

  .org-chart__role {
    font-size: 11px;
  }

  .org-chart__agent {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .vertical-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hiw-row {
    grid-template-columns: 1fr;
  }
}

/* Flat-top card treatment — square top, rounded bottom */
.vertical-card { border-radius: 0 0 20px 20px; }
.role-card { border-radius: 0 0 16px 16px; }
.split__side { border-radius: 0 0 20px 20px; }
.metric-card { border-radius: 0 0 20px 20px; }
.addon-item { border-radius: 0 0 12px 12px; }
.org-chart__node { border-radius: 0 0 16px 16px; }
