/* ==========================================================================
   CogniMeet - Stacking Cards (Paleta Suave)
   ========================================================================== */

.stacking-section {
  padding: 120px 0 160px;
  position: relative;
}

.stacking-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 var(--container-padding);
}

.section-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Stacking Container */
.stacking-cards-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Individual Stacking Card */
.stacking-card {
  position: sticky;
  top: 100px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 480px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.stacking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0.9;
}

/* Left Content Area */
.stacking-card-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border-right: 1px solid var(--border-color);
  background: var(--bg-surface-1);
}

.card-number-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.card-text-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.card-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  align-self: flex-start;
}

/* Right Interactive Visual Area */
.stacking-card-visual {
  background: var(--bg-surface-2);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-ambient-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.glow-card-1 { background: rgba(74, 124, 122, 0.12); }
.glow-card-2 { background: rgba(155, 138, 169, 0.15); }
.glow-card-3 { background: rgba(74, 124, 122, 0.1); }
.glow-card-4 { background: rgba(232, 223, 216, 0.5); }
.glow-card-5 { background: rgba(74, 124, 122, 0.12); }

/* Interactive UI Mock Inside Cards */
.card-ui-mock {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.ui-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ui-mock-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
}

.ui-mock-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stacking Card 1: Zero Bot Waveform & Audio Loop */
.zero-bot-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-stream-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
}

.stream-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.stream-info {
  flex: 1;
}

.stream-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.stream-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.privacy-stamp {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--feedback-success-text);
  background: var(--feedback-success-bg);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--feedback-success-border);
}

/* Stacking Card 2: AI Live Interventions */
.intervention-item-mock {
  background: var(--feedback-info-bg);
  border: 1px solid var(--feedback-info-border);
  border-radius: var(--border-radius-md);
  padding: 12px;
}

.intervention-q {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.intervention-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--feedback-info-text);
}

/* Stacking Card 3: Topic Map */
.topic-tree-node {
  background: var(--bg-surface-2);
  border-left: 3px solid var(--secondary);
  padding: 10px 14px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.topic-node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.topic-node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Stacking Card 4: Action Matrix */
.action-matrix-table {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-main);
}

.action-matrix-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.action-matrix-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border-color);
}

.time-tag {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
}

/* Stacking Card 5: News Grounding */
.news-grounding-mock {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

.news-headline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.news-snippet {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
  .stacking-card {
    grid-template-columns: 1fr;
    position: relative;
    top: 0;
  }
  .stacking-card-content {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 32px;
  }
  .stacking-card-visual {
    padding: 24px;
  }
}
