/* This file contains any additional section-specific styles */

/* Section entrance animations */
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ========= ARCHITECTURE ========= */
.arch-block {
  margin-bottom: 48px;
}

.arch-block:last-child {
  margin-bottom: 0;
}

.arch-block-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(80,120,150,0.75);
  letter-spacing: 0.06em;
  padding: 8px 14px;
  background: rgba(100,140,170,0.06);
  border-radius: 6px;
  border-left: 3px solid var(--water-line-strong);
  margin-bottom: 20px;
}

/* --- Layered Data Architecture --- */
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.arch-layer {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.55);
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateX(-10px);
}

.arch-layer:hover {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

.arch-layer.visible {
  opacity: 1;
  transform: translateX(0);
}

.arch-layer-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(100,140,170,0.12);
  color: rgba(80,120,150,0.7);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.arch-layer-badge.active {
  background: rgba(80,120,150,0.2);
  color: rgba(60,100,130,0.85);
}

.arch-layer-body {
  flex: 1;
  min-width: 0;
}

.arch-layer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.arch-layer-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.arch-layer-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: rgba(100,140,170,0.6);
  background: rgba(100,140,170,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-family: "SF Mono", "Fira Code", monospace;
  letter-spacing: 0.02em;
}

/* --- Agent Network --- */
.arch-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.arch-agent {
  display: flex;
}

.arch-agent-card {
  padding: 20px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 10px rgba(0,0,0,0.02);
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.arch-agent-card.visible {
  opacity: 1;
}

.arch-agent-card:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 24px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.arch-agent-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.arch-agent-avatar {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-yy .arch-agent-avatar { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(59,130,246,0.1)); }
.arch-gj .arch-agent-avatar { background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(52,211,153,0.1)); }
.arch-js .arch-agent-avatar { background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(249,115,22,0.1)); }
.arch-jr .arch-agent-avatar { background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(167,139,250,0.1)); }

.arch-agent-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.arch-agent-role {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.arch-agent-tagline {
  font-size: 12px;
  color: rgba(80,120,150,0.65);
  font-style: italic;
  padding: 12px;
  background: rgba(245,242,237,0.5);
  border-radius: 8px;
  margin-bottom: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.arch-agent-skills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.arch-skill {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(245,242,237,0.6);
  color: var(--text-body);
  letter-spacing: 0.02em;
}

.arch-agent-connector {
  font-size: 11px;
  color: rgba(100,140,170,0.55);
  padding: 7px 10px;
  background: rgba(245,242,237,0.35);
  border-radius: 6px;
  line-height: 1.5;
  font-style: italic;
}

/* --- Morning Flow --- */
.arch-morning-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.arch-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  opacity: 0;
  transform: scale(0.96);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-flow-step.visible {
  opacity: 1;
  transform: scale(1);
}

.step-highlight {
  border-left: 3px solid rgba(234,88,12,0.3);
  background: rgba(234,88,12,0.03);
}

.step-notify {
  border-left: 3px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.03);
}

.step-action {
  border-left: 3px solid rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.03);
}

.step-done {
  border-left: 3px solid rgba(20,184,166,0.3);
  background: rgba(20,184,166,0.03);
}

.arch-flow-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(100,140,170,0.12);
  color: rgba(80,120,150,0.7);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-highlight .arch-flow-step-num {
  background: rgba(234,88,12,0.15);
  color: rgba(234,88,12,0.8);
}

.step-notify .arch-flow-step-num {
  background: rgba(59,130,246,0.15);
  color: rgba(59,130,246,0.8);
}

.step-action .arch-flow-step-num {
  background: rgba(52,211,153,0.15);
  color: rgba(52,211,153,0.8);
}

.step-done .arch-flow-step-num {
  background: rgba(20,184,166,0.15);
  color: rgba(20,184,166,0.8);
}

.arch-flow-step-body {
  flex: 1;
  min-width: 0;
}

.arch-flow-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.arch-flow-step-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.arch-flow-arrow {
  font-size: 14px;
  color: rgba(100,140,170,0.25);
  line-height: 1;
  font-weight: 300;
}

/* --- Autonomous Operation --- */
.arch-autonomous {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.arch-cron-card {
  padding: 14px 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.arch-cron-card:hover {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.arch-cron-card.visible {
  opacity: 1;
}

.arch-cron-card.highlight {
  border-color: rgba(100,140,170,0.25);
  background: rgba(100,140,170,0.06);
}

.arch-cron-time {
  font-size: 16px;
  font-weight: 700;
  color: rgba(80,120,150,0.75);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.arch-cron-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-cron-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Design Principles --- */
.arch-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.arch-principle {
  padding: 18px 20px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.arch-principle:hover {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.arch-principle.visible {
  opacity: 1;
}

.arch-principle-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.arch-principle-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-principle-desc {
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .arch-agent-grid { grid-template-columns: 1fr; }
  .arch-principles { grid-template-columns: 1fr; }
  .arch-autonomous { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .arch-autonomous { grid-template-columns: 1fr; }
  .arch-hub { padding: 14px 16px; }
  .arch-block { margin-bottom: 36px; }
}

/* ========= CHAT REPLAY ========= */
.chat-replay {
  text-align: center;
  padding: 16px;
  border-top: 1px solid rgba(120,160,190,0.08);
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.replay-btn:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.replay-btn svg {
  width: 14px;
  height: 14px;
}

/* ========= TYPEWRITER ========= */
.typewriter-text {
  position: relative;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(100,140,170,0.6);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: typewriter-blink 0.6s step-end infinite;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

