/* 3D Spec Page */
.spec-3d .spec-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.spec-card-3d {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.spec-card-3d .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.spec-card-3d .card-icon {
  font-size: 1.5rem;
}

.spec-card-3d h3 {
  color: var(--brain);
  margin: 0;
}

.constants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.const-item {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.const-symbol {
  font-size: 1.5rem;
  color: var(--golden);
  font-weight: bold;
}

.const-name {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
}

.const-value {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.const-value.golden { color: var(--golden); }
.const-value.green { color: #4ade80; }

.formula-3d {
  background: rgba(0, 0, 0, 0.3);
  color: #4ade80;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.formula-note {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.formula-visual {
  margin-top: 1rem;
  height: 40px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(245, 158, 11, 0.4) 61.8%, rgba(139, 92, 246, 0.2));
  border-radius: 8px;
  position: relative;
}

.peak-indicator {
  position: absolute;
  left: 61.8%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.peak-line {
  width: 2px;
  height: 30px;
  background: var(--golden);
}

.peak-indicator span {
  font-size: 0.7rem;
  color: var(--golden);
}

.tag-cloud-3d {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-3d {
  background: rgba(139, 92, 246, 0.2);
  color: var(--brain);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 0.2s;
  animation: tag-in 0.3s ease-out both;
  animation-delay: var(--delay, 0s);
}

@keyframes tag-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.tag-3d:hover {
  background: var(--brain);
  color: white;
  transform: scale(1.05);
}

.tier-ladder-3d {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ladder-rung {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(26, 26, 46, 0.9);
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
  transition: transform 0.2s;
}

.ladder-rung:hover {
  transform: translateX(5px);
}

.ladder-rung.neuron { border-color: #6b7280; }
.ladder-rung.synapse { border-color: #3b82f6; }
.ladder-rung.cortex { border-color: #8b5cf6; }
.ladder-rung.genius { border-color: var(--golden); }
.ladder-rung.galaxy_brain { border-color: #ec4899; }

.rung-name {
  font-weight: bold;
  color: white;
  text-transform: capitalize;
}

.rung-min {
  color: #9ca3af;
  font-size: 0.85rem;
}

.rung-fee {
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Type grids, hierarchy flow, layer stack split to spec-detail.css */

