/* ══════════════════════════════════════════════
   Technology Page Styles
   ══════════════════════════════════════════════ */

/* ── Architecture Diagram ── */
.arch-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 80px 24px 60px;
}

.arch-inner {
  max-width: 800px;
  margin: 0 auto;
}

.arch-header {
  text-align: center;
  margin-bottom: 48px;
}

.arch-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
  opacity: 0;
  transform: translateY(16px);
}

.arch-diagram.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.arch-node {
  flex: 0 0 auto;
  text-align: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
}

.arch-node.primary {
  border-color: rgba(255, 107, 53, 0.2);
  background: rgba(255, 107, 53, 0.03);
}

.arch-node .arch-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-node .arch-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: nodePulse 2.5s ease-in-out infinite;
}

.arch-node:nth-child(2) .arch-icon::after { animation-delay: 0.4s; }
.arch-node:nth-child(3) .arch-icon::after { animation-delay: 0.8s; }
.arch-node:nth-child(4) .arch-icon::after { animation-delay: 1.2s; }

.arch-node .arch-name {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.arch-node .arch-spec {
  font-size: 0.55rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 3px;
}

.arch-connector {
  flex: 0 0 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
  position: relative;
}

.arch-connector::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: flowDot 2s linear infinite;
}

@keyframes flowDot {
  0% { left: 0; opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { left: 100%; opacity: 0; }
}

/* Branch connector for Coordination Field */
.arch-branch {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  text-align: center;
}

.arch-branch-line {
  width: 1px;
  height: 16px;
  margin: 0 auto;
  background: rgba(255, 107, 53, 0.12);
}

.arch-branch-label {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

/* ── By the Numbers ── */
.numbers-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 80px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.numbers-inner {
  max-width: 800px;
  margin: 0 auto;
}

.numbers-header {
  text-align: center;
  margin-bottom: 48px;
}

.numbers-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
}

.number-item {
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
}

.number-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.number-item:nth-child(1).visible { transition-delay: 0s; }
.number-item:nth-child(2).visible { transition-delay: 0.06s; }
.number-item:nth-child(3).visible { transition-delay: 0.12s; }
.number-item:nth-child(4).visible { transition-delay: 0.18s; }
.number-item:nth-child(5).visible { transition-delay: 0.24s; }

.number-val {
  font-size: 1.6rem;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.number-unit {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

.number-label {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 4px;
}

/* ── The Stack ── */
.stack-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 60px 24px 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.stack-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.stack-header {
  text-align: center;
  margin-bottom: 28px;
}

.stack-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
}

.stack-badges.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stack-badge {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.stack-badge:hover {
  border-color: rgba(255, 107, 53, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .arch-diagram { flex-wrap: wrap; gap: 10px; }
  .arch-connector { display: none; }
  .arch-branch { position: static; transform: none; margin-top: 10px; }
  .numbers-grid { gap: 24px; }
  .number-val { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .arch-section { padding: 60px 16px 40px; }
  .numbers-section { padding: 60px 16px; }
}
